AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
GetLifecyclePolicyPreviewResult.h
1
6#pragma once
7#include <aws/ecr/ECR_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/ecr/model/LifecyclePolicyPreviewStatus.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/ecr/model/LifecyclePolicyPreviewSummary.h>
12#include <aws/ecr/model/LifecyclePolicyPreviewResult.h>
13#include <utility>
14
15namespace Aws
16{
17template<typename RESULT_TYPE>
18class AmazonWebServiceResult;
19
20namespace Utils
21{
22namespace Json
23{
24 class JsonValue;
25} // namespace Json
26} // namespace Utils
27namespace ECR
28{
29namespace Model
30{
32 {
33 public:
37
38
40
43 inline const Aws::String& GetRegistryId() const{ return m_registryId; }
44 inline void SetRegistryId(const Aws::String& value) { m_registryId = value; }
45 inline void SetRegistryId(Aws::String&& value) { m_registryId = std::move(value); }
46 inline void SetRegistryId(const char* value) { m_registryId.assign(value); }
47 inline GetLifecyclePolicyPreviewResult& WithRegistryId(const Aws::String& value) { SetRegistryId(value); return *this;}
48 inline GetLifecyclePolicyPreviewResult& WithRegistryId(Aws::String&& value) { SetRegistryId(std::move(value)); return *this;}
49 inline GetLifecyclePolicyPreviewResult& WithRegistryId(const char* value) { SetRegistryId(value); return *this;}
51
53
56 inline const Aws::String& GetRepositoryName() const{ return m_repositoryName; }
57 inline void SetRepositoryName(const Aws::String& value) { m_repositoryName = value; }
58 inline void SetRepositoryName(Aws::String&& value) { m_repositoryName = std::move(value); }
59 inline void SetRepositoryName(const char* value) { m_repositoryName.assign(value); }
61 inline GetLifecyclePolicyPreviewResult& WithRepositoryName(Aws::String&& value) { SetRepositoryName(std::move(value)); return *this;}
62 inline GetLifecyclePolicyPreviewResult& WithRepositoryName(const char* value) { SetRepositoryName(value); return *this;}
64
66
69 inline const Aws::String& GetLifecyclePolicyText() const{ return m_lifecyclePolicyText; }
70 inline void SetLifecyclePolicyText(const Aws::String& value) { m_lifecyclePolicyText = value; }
71 inline void SetLifecyclePolicyText(Aws::String&& value) { m_lifecyclePolicyText = std::move(value); }
72 inline void SetLifecyclePolicyText(const char* value) { m_lifecyclePolicyText.assign(value); }
75 inline GetLifecyclePolicyPreviewResult& WithLifecyclePolicyText(const char* value) { SetLifecyclePolicyText(value); return *this;}
77
79
82 inline const LifecyclePolicyPreviewStatus& GetStatus() const{ return m_status; }
83 inline void SetStatus(const LifecyclePolicyPreviewStatus& value) { m_status = value; }
84 inline void SetStatus(LifecyclePolicyPreviewStatus&& value) { m_status = std::move(value); }
86 inline GetLifecyclePolicyPreviewResult& WithStatus(LifecyclePolicyPreviewStatus&& value) { SetStatus(std::move(value)); return *this;}
88
90
97 inline const Aws::String& GetNextToken() const{ return m_nextToken; }
98 inline void SetNextToken(const Aws::String& value) { m_nextToken = value; }
99 inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); }
100 inline void SetNextToken(const char* value) { m_nextToken.assign(value); }
101 inline GetLifecyclePolicyPreviewResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
102 inline GetLifecyclePolicyPreviewResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
103 inline GetLifecyclePolicyPreviewResult& WithNextToken(const char* value) { SetNextToken(value); return *this;}
105
107
110 inline const Aws::Vector<LifecyclePolicyPreviewResult>& GetPreviewResults() const{ return m_previewResults; }
111 inline void SetPreviewResults(const Aws::Vector<LifecyclePolicyPreviewResult>& value) { m_previewResults = value; }
112 inline void SetPreviewResults(Aws::Vector<LifecyclePolicyPreviewResult>&& value) { m_previewResults = std::move(value); }
115 inline GetLifecyclePolicyPreviewResult& AddPreviewResults(const LifecyclePolicyPreviewResult& value) { m_previewResults.push_back(value); return *this; }
116 inline GetLifecyclePolicyPreviewResult& AddPreviewResults(LifecyclePolicyPreviewResult&& value) { m_previewResults.push_back(std::move(value)); return *this; }
118
120
123 inline const LifecyclePolicyPreviewSummary& GetSummary() const{ return m_summary; }
124 inline void SetSummary(const LifecyclePolicyPreviewSummary& value) { m_summary = value; }
125 inline void SetSummary(LifecyclePolicyPreviewSummary&& value) { m_summary = std::move(value); }
127 inline GetLifecyclePolicyPreviewResult& WithSummary(LifecyclePolicyPreviewSummary&& value) { SetSummary(std::move(value)); return *this;}
129
131
132 inline const Aws::String& GetRequestId() const{ return m_requestId; }
133 inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
134 inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
135 inline void SetRequestId(const char* value) { m_requestId.assign(value); }
136 inline GetLifecyclePolicyPreviewResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
137 inline GetLifecyclePolicyPreviewResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
138 inline GetLifecyclePolicyPreviewResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
140 private:
141
142 Aws::String m_registryId;
143
144 Aws::String m_repositoryName;
145
146 Aws::String m_lifecyclePolicyText;
147
149
150 Aws::String m_nextToken;
151
153
155
156 Aws::String m_requestId;
157 };
158
159} // namespace Model
160} // namespace ECR
161} // namespace Aws
GetLifecyclePolicyPreviewResult & WithPreviewResults(Aws::Vector< LifecyclePolicyPreviewResult > &&value)
GetLifecyclePolicyPreviewResult & WithPreviewResults(const Aws::Vector< LifecyclePolicyPreviewResult > &value)
GetLifecyclePolicyPreviewResult & WithLifecyclePolicyText(const Aws::String &value)
GetLifecyclePolicyPreviewResult & WithRequestId(const Aws::String &value)
GetLifecyclePolicyPreviewResult & AddPreviewResults(const LifecyclePolicyPreviewResult &value)
GetLifecyclePolicyPreviewResult & WithRegistryId(const Aws::String &value)
const LifecyclePolicyPreviewSummary & GetSummary() const
GetLifecyclePolicyPreviewResult & WithRepositoryName(const char *value)
GetLifecyclePolicyPreviewResult & WithRepositoryName(const Aws::String &value)
const LifecyclePolicyPreviewStatus & GetStatus() const
GetLifecyclePolicyPreviewResult & WithNextToken(const char *value)
GetLifecyclePolicyPreviewResult & WithSummary(LifecyclePolicyPreviewSummary &&value)
GetLifecyclePolicyPreviewResult & WithNextToken(Aws::String &&value)
void SetPreviewResults(const Aws::Vector< LifecyclePolicyPreviewResult > &value)
GetLifecyclePolicyPreviewResult & WithRegistryId(Aws::String &&value)
GetLifecyclePolicyPreviewResult & WithStatus(const LifecyclePolicyPreviewStatus &value)
GetLifecyclePolicyPreviewResult & AddPreviewResults(LifecyclePolicyPreviewResult &&value)
GetLifecyclePolicyPreviewResult & WithNextToken(const Aws::String &value)
GetLifecyclePolicyPreviewResult & WithRegistryId(const char *value)
GetLifecyclePolicyPreviewResult & WithRepositoryName(Aws::String &&value)
void SetSummary(const LifecyclePolicyPreviewSummary &value)
void SetPreviewResults(Aws::Vector< LifecyclePolicyPreviewResult > &&value)
GetLifecyclePolicyPreviewResult & WithSummary(const LifecyclePolicyPreviewSummary &value)
GetLifecyclePolicyPreviewResult & WithRequestId(Aws::String &&value)
GetLifecyclePolicyPreviewResult & WithLifecyclePolicyText(Aws::String &&value)
GetLifecyclePolicyPreviewResult & WithRequestId(const char *value)
AWS_ECR_API GetLifecyclePolicyPreviewResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
void SetStatus(const LifecyclePolicyPreviewStatus &value)
GetLifecyclePolicyPreviewResult & WithStatus(LifecyclePolicyPreviewStatus &&value)
GetLifecyclePolicyPreviewResult & WithLifecyclePolicyText(const char *value)
const Aws::Vector< LifecyclePolicyPreviewResult > & GetPreviewResults() const
AWS_ECR_API GetLifecyclePolicyPreviewResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
void SetSummary(LifecyclePolicyPreviewSummary &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue