AWS SDK for C++

AWS SDK for C++ Version 1.11.788

Loading...
Searching...
No Matches
DescribeImageReplicationStatusResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/ecr/ECR_EXPORTS.h>
11#include <aws/ecr/model/ImageIdentifier.h>
12#include <aws/ecr/model/ImageReplicationStatus.h>
13
14#include <utility>
15
16namespace Aws {
17template <typename RESULT_TYPE>
18class AmazonWebServiceResult;
19
20namespace Utils {
21namespace Json {
22class JsonValue;
23} // namespace Json
24} // namespace Utils
25namespace ECR {
26namespace Model {
28 public:
29 AWS_ECR_API DescribeImageReplicationStatusResult() = default;
32
34
37 inline const Aws::String& GetRepositoryName() const { return m_repositoryName; }
38 template <typename RepositoryNameT = Aws::String>
39 void SetRepositoryName(RepositoryNameT&& value) {
40 m_repositoryNameHasBeenSet = true;
41 m_repositoryName = std::forward<RepositoryNameT>(value);
42 }
43 template <typename RepositoryNameT = Aws::String>
45 SetRepositoryName(std::forward<RepositoryNameT>(value));
46 return *this;
47 }
49
51
52 inline const ImageIdentifier& GetImageId() const { return m_imageId; }
53 template <typename ImageIdT = ImageIdentifier>
54 void SetImageId(ImageIdT&& value) {
55 m_imageIdHasBeenSet = true;
56 m_imageId = std::forward<ImageIdT>(value);
57 }
58 template <typename ImageIdT = ImageIdentifier>
60 SetImageId(std::forward<ImageIdT>(value));
61 return *this;
62 }
64
66
70 inline const Aws::Vector<ImageReplicationStatus>& GetReplicationStatuses() const { return m_replicationStatuses; }
71 template <typename ReplicationStatusesT = Aws::Vector<ImageReplicationStatus>>
72 void SetReplicationStatuses(ReplicationStatusesT&& value) {
73 m_replicationStatusesHasBeenSet = true;
74 m_replicationStatuses = std::forward<ReplicationStatusesT>(value);
75 }
76 template <typename ReplicationStatusesT = Aws::Vector<ImageReplicationStatus>>
78 SetReplicationStatuses(std::forward<ReplicationStatusesT>(value));
79 return *this;
80 }
81 template <typename ReplicationStatusesT = ImageReplicationStatus>
83 m_replicationStatusesHasBeenSet = true;
84 m_replicationStatuses.emplace_back(std::forward<ReplicationStatusesT>(value));
85 return *this;
86 }
88
90
91 inline const Aws::String& GetRequestId() const { return m_requestId; }
92 template <typename RequestIdT = Aws::String>
93 void SetRequestId(RequestIdT&& value) {
94 m_requestIdHasBeenSet = true;
95 m_requestId = std::forward<RequestIdT>(value);
96 }
97 template <typename RequestIdT = Aws::String>
99 SetRequestId(std::forward<RequestIdT>(value));
100 return *this;
101 }
103 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
104
105 private:
106 Aws::String m_repositoryName;
107
108 ImageIdentifier m_imageId;
109
110 Aws::Vector<ImageReplicationStatus> m_replicationStatuses;
111
112 Aws::String m_requestId;
113 Aws::Http::HttpResponseCode m_HttpResponseCode;
114 bool m_repositoryNameHasBeenSet = false;
115 bool m_imageIdHasBeenSet = false;
116 bool m_replicationStatusesHasBeenSet = false;
117 bool m_requestIdHasBeenSet = false;
118};
119
120} // namespace Model
121} // namespace ECR
122} // namespace Aws
DescribeImageReplicationStatusResult & AddReplicationStatuses(ReplicationStatusesT &&value)
DescribeImageReplicationStatusResult & WithImageId(ImageIdT &&value)
const Aws::Vector< ImageReplicationStatus > & GetReplicationStatuses() const
DescribeImageReplicationStatusResult & WithRepositoryName(RepositoryNameT &&value)
AWS_ECR_API DescribeImageReplicationStatusResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
DescribeImageReplicationStatusResult & WithRequestId(RequestIdT &&value)
DescribeImageReplicationStatusResult & WithReplicationStatuses(ReplicationStatusesT &&value)
AWS_ECR_API DescribeImageReplicationStatusResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue