AWS SDK for C++  1.9.103
AWS SDK for C++
GetLifecyclePolicyPreviewResult.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ecr/ECR_EXPORTS.h>
13 #include <utility>
14 
15 namespace Aws
16 {
17 template<typename RESULT_TYPE>
18 class AmazonWebServiceResult;
19 
20 namespace Utils
21 {
22 namespace Json
23 {
24  class JsonValue;
25 } // namespace Json
26 } // namespace Utils
27 namespace ECR
28 {
29 namespace Model
30 {
32  {
33  public:
37 
38 
42  inline const Aws::String& GetRegistryId() const{ return m_registryId; }
43 
47  inline void SetRegistryId(const Aws::String& value) { m_registryId = value; }
48 
52  inline void SetRegistryId(Aws::String&& value) { m_registryId = std::move(value); }
53 
57  inline void SetRegistryId(const char* value) { m_registryId.assign(value); }
58 
62  inline GetLifecyclePolicyPreviewResult& WithRegistryId(const Aws::String& value) { SetRegistryId(value); return *this;}
63 
67  inline GetLifecyclePolicyPreviewResult& WithRegistryId(Aws::String&& value) { SetRegistryId(std::move(value)); return *this;}
68 
72  inline GetLifecyclePolicyPreviewResult& WithRegistryId(const char* value) { SetRegistryId(value); return *this;}
73 
74 
78  inline const Aws::String& GetRepositoryName() const{ return m_repositoryName; }
79 
83  inline void SetRepositoryName(const Aws::String& value) { m_repositoryName = value; }
84 
88  inline void SetRepositoryName(Aws::String&& value) { m_repositoryName = std::move(value); }
89 
93  inline void SetRepositoryName(const char* value) { m_repositoryName.assign(value); }
94 
98  inline GetLifecyclePolicyPreviewResult& WithRepositoryName(const Aws::String& value) { SetRepositoryName(value); return *this;}
99 
103  inline GetLifecyclePolicyPreviewResult& WithRepositoryName(Aws::String&& value) { SetRepositoryName(std::move(value)); return *this;}
104 
108  inline GetLifecyclePolicyPreviewResult& WithRepositoryName(const char* value) { SetRepositoryName(value); return *this;}
109 
110 
114  inline const Aws::String& GetLifecyclePolicyText() const{ return m_lifecyclePolicyText; }
115 
119  inline void SetLifecyclePolicyText(const Aws::String& value) { m_lifecyclePolicyText = value; }
120 
124  inline void SetLifecyclePolicyText(Aws::String&& value) { m_lifecyclePolicyText = std::move(value); }
125 
129  inline void SetLifecyclePolicyText(const char* value) { m_lifecyclePolicyText.assign(value); }
130 
134  inline GetLifecyclePolicyPreviewResult& WithLifecyclePolicyText(const Aws::String& value) { SetLifecyclePolicyText(value); return *this;}
135 
139  inline GetLifecyclePolicyPreviewResult& WithLifecyclePolicyText(Aws::String&& value) { SetLifecyclePolicyText(std::move(value)); return *this;}
140 
144  inline GetLifecyclePolicyPreviewResult& WithLifecyclePolicyText(const char* value) { SetLifecyclePolicyText(value); return *this;}
145 
146 
150  inline const LifecyclePolicyPreviewStatus& GetStatus() const{ return m_status; }
151 
155  inline void SetStatus(const LifecyclePolicyPreviewStatus& value) { m_status = value; }
156 
160  inline void SetStatus(LifecyclePolicyPreviewStatus&& value) { m_status = std::move(value); }
161 
165  inline GetLifecyclePolicyPreviewResult& WithStatus(const LifecyclePolicyPreviewStatus& value) { SetStatus(value); return *this;}
166 
170  inline GetLifecyclePolicyPreviewResult& WithStatus(LifecyclePolicyPreviewStatus&& value) { SetStatus(std::move(value)); return *this;}
171 
172 
180  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
181 
189  inline void SetNextToken(const Aws::String& value) { m_nextToken = value; }
190 
198  inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); }
199 
207  inline void SetNextToken(const char* value) { m_nextToken.assign(value); }
208 
216  inline GetLifecyclePolicyPreviewResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
217 
225  inline GetLifecyclePolicyPreviewResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
226 
234  inline GetLifecyclePolicyPreviewResult& WithNextToken(const char* value) { SetNextToken(value); return *this;}
235 
236 
240  inline const Aws::Vector<LifecyclePolicyPreviewResult>& GetPreviewResults() const{ return m_previewResults; }
241 
245  inline void SetPreviewResults(const Aws::Vector<LifecyclePolicyPreviewResult>& value) { m_previewResults = value; }
246 
250  inline void SetPreviewResults(Aws::Vector<LifecyclePolicyPreviewResult>&& value) { m_previewResults = std::move(value); }
251 
255  inline GetLifecyclePolicyPreviewResult& WithPreviewResults(const Aws::Vector<LifecyclePolicyPreviewResult>& value) { SetPreviewResults(value); return *this;}
256 
260  inline GetLifecyclePolicyPreviewResult& WithPreviewResults(Aws::Vector<LifecyclePolicyPreviewResult>&& value) { SetPreviewResults(std::move(value)); return *this;}
261 
265  inline GetLifecyclePolicyPreviewResult& AddPreviewResults(const LifecyclePolicyPreviewResult& value) { m_previewResults.push_back(value); return *this; }
266 
270  inline GetLifecyclePolicyPreviewResult& AddPreviewResults(LifecyclePolicyPreviewResult&& value) { m_previewResults.push_back(std::move(value)); return *this; }
271 
272 
276  inline const LifecyclePolicyPreviewSummary& GetSummary() const{ return m_summary; }
277 
281  inline void SetSummary(const LifecyclePolicyPreviewSummary& value) { m_summary = value; }
282 
286  inline void SetSummary(LifecyclePolicyPreviewSummary&& value) { m_summary = std::move(value); }
287 
291  inline GetLifecyclePolicyPreviewResult& WithSummary(const LifecyclePolicyPreviewSummary& value) { SetSummary(value); return *this;}
292 
296  inline GetLifecyclePolicyPreviewResult& WithSummary(LifecyclePolicyPreviewSummary&& value) { SetSummary(std::move(value)); return *this;}
297 
298  private:
299 
300  Aws::String m_registryId;
301 
302  Aws::String m_repositoryName;
303 
304  Aws::String m_lifecyclePolicyText;
305 
307 
308  Aws::String m_nextToken;
309 
311 
313  };
314 
315 } // namespace Model
316 } // namespace ECR
317 } // namespace Aws
Aws::ECR::Model::GetLifecyclePolicyPreviewResult::WithLifecyclePolicyText
GetLifecyclePolicyPreviewResult & WithLifecyclePolicyText(Aws::String &&value)
Definition: GetLifecyclePolicyPreviewResult.h:139
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
Aws::ECR::Model::GetLifecyclePolicyPreviewResult::GetRepositoryName
const Aws::String & GetRepositoryName() const
Definition: GetLifecyclePolicyPreviewResult.h:78
Aws::ECR::Model::GetLifecyclePolicyPreviewResult::WithNextToken
GetLifecyclePolicyPreviewResult & WithNextToken(const char *value)
Definition: GetLifecyclePolicyPreviewResult.h:234
Aws::ECR::Model::GetLifecyclePolicyPreviewResult::GetLifecyclePolicyPreviewResult
GetLifecyclePolicyPreviewResult()
Aws::ECR::Model::GetLifecyclePolicyPreviewResult::SetStatus
void SetStatus(const LifecyclePolicyPreviewStatus &value)
Definition: GetLifecyclePolicyPreviewResult.h:155
LifecyclePolicyPreviewStatus.h
Aws::ECR::Model::GetLifecyclePolicyPreviewResult::WithRegistryId
GetLifecyclePolicyPreviewResult & WithRegistryId(const Aws::String &value)
Definition: GetLifecyclePolicyPreviewResult.h:62
Aws::ECR::Model::GetLifecyclePolicyPreviewResult::WithLifecyclePolicyText
GetLifecyclePolicyPreviewResult & WithLifecyclePolicyText(const char *value)
Definition: GetLifecyclePolicyPreviewResult.h:144
Aws::ECR::Model::GetLifecyclePolicyPreviewResult::SetPreviewResults
void SetPreviewResults(Aws::Vector< LifecyclePolicyPreviewResult > &&value)
Definition: GetLifecyclePolicyPreviewResult.h:250
Aws::ECR::Model::GetLifecyclePolicyPreviewResult::WithSummary
GetLifecyclePolicyPreviewResult & WithSummary(const LifecyclePolicyPreviewSummary &value)
Definition: GetLifecyclePolicyPreviewResult.h:291
Aws::ECR::Model::GetLifecyclePolicyPreviewResult::SetLifecyclePolicyText
void SetLifecyclePolicyText(const char *value)
Definition: GetLifecyclePolicyPreviewResult.h:129
Aws::ECR::Model::GetLifecyclePolicyPreviewResult
Definition: GetLifecyclePolicyPreviewResult.h:32
Aws::ECR::Model::GetLifecyclePolicyPreviewResult::SetRepositoryName
void SetRepositoryName(Aws::String &&value)
Definition: GetLifecyclePolicyPreviewResult.h:88
Aws::ECR::Model::GetLifecyclePolicyPreviewResult::AddPreviewResults
GetLifecyclePolicyPreviewResult & AddPreviewResults(LifecyclePolicyPreviewResult &&value)
Definition: GetLifecyclePolicyPreviewResult.h:270
Aws::ECR::Model::GetLifecyclePolicyPreviewResult::SetStatus
void SetStatus(LifecyclePolicyPreviewStatus &&value)
Definition: GetLifecyclePolicyPreviewResult.h:160
Aws::ECR::Model::GetLifecyclePolicyPreviewResult::GetPreviewResults
const Aws::Vector< LifecyclePolicyPreviewResult > & GetPreviewResults() const
Definition: GetLifecyclePolicyPreviewResult.h:240
Aws::ECR::Model::LifecyclePolicyPreviewStatus
LifecyclePolicyPreviewStatus
Definition: LifecyclePolicyPreviewStatus.h:17
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::ECR::Model::GetLifecyclePolicyPreviewResult::GetRegistryId
const Aws::String & GetRegistryId() const
Definition: GetLifecyclePolicyPreviewResult.h:42
AWSVector.h
Aws::ECR::Model::GetLifecyclePolicyPreviewResult::WithSummary
GetLifecyclePolicyPreviewResult & WithSummary(LifecyclePolicyPreviewSummary &&value)
Definition: GetLifecyclePolicyPreviewResult.h:296
Aws::ECR::Model::GetLifecyclePolicyPreviewResult::operator=
GetLifecyclePolicyPreviewResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::ECR::Model::GetLifecyclePolicyPreviewResult::SetRegistryId
void SetRegistryId(const Aws::String &value)
Definition: GetLifecyclePolicyPreviewResult.h:47
Aws::ECR::Model::GetLifecyclePolicyPreviewResult::WithNextToken
GetLifecyclePolicyPreviewResult & WithNextToken(Aws::String &&value)
Definition: GetLifecyclePolicyPreviewResult.h:225
Aws::ECR::Model::GetLifecyclePolicyPreviewResult::SetRepositoryName
void SetRepositoryName(const char *value)
Definition: GetLifecyclePolicyPreviewResult.h:93
Aws::imagebuilder::Model::ContainerRepositoryService::NOT_SET
@ NOT_SET
Aws::ECR::Model::GetLifecyclePolicyPreviewResult::WithStatus
GetLifecyclePolicyPreviewResult & WithStatus(const LifecyclePolicyPreviewStatus &value)
Definition: GetLifecyclePolicyPreviewResult.h:165
Aws::ECR::Model::GetLifecyclePolicyPreviewResult::SetNextToken
void SetNextToken(const char *value)
Definition: GetLifecyclePolicyPreviewResult.h:207
Aws::ECR::Model::GetLifecyclePolicyPreviewResult::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: GetLifecyclePolicyPreviewResult.h:198
Aws::ECR::Model::LifecyclePolicyPreviewResult
Definition: LifecyclePolicyPreviewResult.h:35
Aws::ECR::Model::GetLifecyclePolicyPreviewResult::SetRegistryId
void SetRegistryId(const char *value)
Definition: GetLifecyclePolicyPreviewResult.h:57
Aws::ECR::Model::GetLifecyclePolicyPreviewResult::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: GetLifecyclePolicyPreviewResult.h:189
ECR_EXPORTS.h
Aws::ECR::Model::GetLifecyclePolicyPreviewResult::WithStatus
GetLifecyclePolicyPreviewResult & WithStatus(LifecyclePolicyPreviewStatus &&value)
Definition: GetLifecyclePolicyPreviewResult.h:170
Aws::ECR::Model::GetLifecyclePolicyPreviewResult::GetLifecyclePolicyPreviewResult
GetLifecyclePolicyPreviewResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::ECR::Model::GetLifecyclePolicyPreviewResult::WithLifecyclePolicyText
GetLifecyclePolicyPreviewResult & WithLifecyclePolicyText(const Aws::String &value)
Definition: GetLifecyclePolicyPreviewResult.h:134
Aws::ECR::Model::GetLifecyclePolicyPreviewResult::WithRepositoryName
GetLifecyclePolicyPreviewResult & WithRepositoryName(Aws::String &&value)
Definition: GetLifecyclePolicyPreviewResult.h:103
Aws::ECR::Model::GetLifecyclePolicyPreviewResult::GetNextToken
const Aws::String & GetNextToken() const
Definition: GetLifecyclePolicyPreviewResult.h:180
Aws::ECR::Model::GetLifecyclePolicyPreviewResult::WithNextToken
GetLifecyclePolicyPreviewResult & WithNextToken(const Aws::String &value)
Definition: GetLifecyclePolicyPreviewResult.h:216
Aws::ECR::Model::GetLifecyclePolicyPreviewResult::GetStatus
const LifecyclePolicyPreviewStatus & GetStatus() const
Definition: GetLifecyclePolicyPreviewResult.h:150
Aws::ECR::Model::GetLifecyclePolicyPreviewResult::WithRepositoryName
GetLifecyclePolicyPreviewResult & WithRepositoryName(const Aws::String &value)
Definition: GetLifecyclePolicyPreviewResult.h:98
AWSString.h
Aws::ECR::Model::LifecyclePolicyPreviewSummary
Definition: LifecyclePolicyPreviewSummary.h:31
AWS_ECR_API
#define AWS_ECR_API
Definition: ECR_EXPORTS.h:28
Aws::ECR::Model::GetLifecyclePolicyPreviewResult::WithRegistryId
GetLifecyclePolicyPreviewResult & WithRegistryId(Aws::String &&value)
Definition: GetLifecyclePolicyPreviewResult.h:67
Aws::ECR::Model::GetLifecyclePolicyPreviewResult::SetSummary
void SetSummary(LifecyclePolicyPreviewSummary &&value)
Definition: GetLifecyclePolicyPreviewResult.h:286
Aws::ECR::Model::GetLifecyclePolicyPreviewResult::SetRegistryId
void SetRegistryId(Aws::String &&value)
Definition: GetLifecyclePolicyPreviewResult.h:52
Aws::ECR::Model::GetLifecyclePolicyPreviewResult::SetLifecyclePolicyText
void SetLifecyclePolicyText(const Aws::String &value)
Definition: GetLifecyclePolicyPreviewResult.h:119
Aws::ECR::Model::GetLifecyclePolicyPreviewResult::WithRegistryId
GetLifecyclePolicyPreviewResult & WithRegistryId(const char *value)
Definition: GetLifecyclePolicyPreviewResult.h:72
Aws
Definition: AccessManagementClient.h:15
Aws::ECR::Model::GetLifecyclePolicyPreviewResult::AddPreviewResults
GetLifecyclePolicyPreviewResult & AddPreviewResults(const LifecyclePolicyPreviewResult &value)
Definition: GetLifecyclePolicyPreviewResult.h:265
LifecyclePolicyPreviewSummary.h
Aws::ECR::Model::GetLifecyclePolicyPreviewResult::SetPreviewResults
void SetPreviewResults(const Aws::Vector< LifecyclePolicyPreviewResult > &value)
Definition: GetLifecyclePolicyPreviewResult.h:245
Aws::ECR::Model::GetLifecyclePolicyPreviewResult::GetSummary
const LifecyclePolicyPreviewSummary & GetSummary() const
Definition: GetLifecyclePolicyPreviewResult.h:276
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::ECR::Model::GetLifecyclePolicyPreviewResult::SetRepositoryName
void SetRepositoryName(const Aws::String &value)
Definition: GetLifecyclePolicyPreviewResult.h:83
Aws::ECR::Model::GetLifecyclePolicyPreviewResult::WithPreviewResults
GetLifecyclePolicyPreviewResult & WithPreviewResults(Aws::Vector< LifecyclePolicyPreviewResult > &&value)
Definition: GetLifecyclePolicyPreviewResult.h:260
Aws::ECR::Model::GetLifecyclePolicyPreviewResult::GetLifecyclePolicyText
const Aws::String & GetLifecyclePolicyText() const
Definition: GetLifecyclePolicyPreviewResult.h:114
Aws::ECR::Model::GetLifecyclePolicyPreviewResult::WithPreviewResults
GetLifecyclePolicyPreviewResult & WithPreviewResults(const Aws::Vector< LifecyclePolicyPreviewResult > &value)
Definition: GetLifecyclePolicyPreviewResult.h:255
Aws::ECR::Model::GetLifecyclePolicyPreviewResult::SetLifecyclePolicyText
void SetLifecyclePolicyText(Aws::String &&value)
Definition: GetLifecyclePolicyPreviewResult.h:124
Aws::ECR::Model::GetLifecyclePolicyPreviewResult::WithRepositoryName
GetLifecyclePolicyPreviewResult & WithRepositoryName(const char *value)
Definition: GetLifecyclePolicyPreviewResult.h:108
LifecyclePolicyPreviewResult.h
Aws::ECR::Model::GetLifecyclePolicyPreviewResult::SetSummary
void SetSummary(const LifecyclePolicyPreviewSummary &value)
Definition: GetLifecyclePolicyPreviewResult.h:281