AWS SDK for C++  1.9.73
AWS SDK for C++
StartLifecyclePolicyPreviewRequest.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ecr/ECR_EXPORTS.h>
8 #include <aws/ecr/ECRRequest.h>
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace ECR
15 {
16 namespace Model
17 {
18 
22  {
23  public:
25 
26  // Service request name is the Operation name which will send this request out,
27  // each operation should has unique request name, so that we can get operation's name from this request.
28  // Note: this is not true for response, multiple operations may have the same response name,
29  // so we can not get operation's name from response.
30  inline virtual const char* GetServiceRequestName() const override { return "StartLifecyclePolicyPreview"; }
31 
32  Aws::String SerializePayload() const override;
33 
35 
36 
41  inline const Aws::String& GetRegistryId() const{ return m_registryId; }
42 
47  inline bool RegistryIdHasBeenSet() const { return m_registryIdHasBeenSet; }
48 
53  inline void SetRegistryId(const Aws::String& value) { m_registryIdHasBeenSet = true; m_registryId = value; }
54 
59  inline void SetRegistryId(Aws::String&& value) { m_registryIdHasBeenSet = true; m_registryId = std::move(value); }
60 
65  inline void SetRegistryId(const char* value) { m_registryIdHasBeenSet = true; m_registryId.assign(value); }
66 
71  inline StartLifecyclePolicyPreviewRequest& WithRegistryId(const Aws::String& value) { SetRegistryId(value); return *this;}
72 
77  inline StartLifecyclePolicyPreviewRequest& WithRegistryId(Aws::String&& value) { SetRegistryId(std::move(value)); return *this;}
78 
83  inline StartLifecyclePolicyPreviewRequest& WithRegistryId(const char* value) { SetRegistryId(value); return *this;}
84 
85 
89  inline const Aws::String& GetRepositoryName() const{ return m_repositoryName; }
90 
94  inline bool RepositoryNameHasBeenSet() const { return m_repositoryNameHasBeenSet; }
95 
99  inline void SetRepositoryName(const Aws::String& value) { m_repositoryNameHasBeenSet = true; m_repositoryName = value; }
100 
104  inline void SetRepositoryName(Aws::String&& value) { m_repositoryNameHasBeenSet = true; m_repositoryName = std::move(value); }
105 
109  inline void SetRepositoryName(const char* value) { m_repositoryNameHasBeenSet = true; m_repositoryName.assign(value); }
110 
114  inline StartLifecyclePolicyPreviewRequest& WithRepositoryName(const Aws::String& value) { SetRepositoryName(value); return *this;}
115 
119  inline StartLifecyclePolicyPreviewRequest& WithRepositoryName(Aws::String&& value) { SetRepositoryName(std::move(value)); return *this;}
120 
124  inline StartLifecyclePolicyPreviewRequest& WithRepositoryName(const char* value) { SetRepositoryName(value); return *this;}
125 
126 
131  inline const Aws::String& GetLifecyclePolicyText() const{ return m_lifecyclePolicyText; }
132 
137  inline bool LifecyclePolicyTextHasBeenSet() const { return m_lifecyclePolicyTextHasBeenSet; }
138 
143  inline void SetLifecyclePolicyText(const Aws::String& value) { m_lifecyclePolicyTextHasBeenSet = true; m_lifecyclePolicyText = value; }
144 
149  inline void SetLifecyclePolicyText(Aws::String&& value) { m_lifecyclePolicyTextHasBeenSet = true; m_lifecyclePolicyText = std::move(value); }
150 
155  inline void SetLifecyclePolicyText(const char* value) { m_lifecyclePolicyTextHasBeenSet = true; m_lifecyclePolicyText.assign(value); }
156 
161  inline StartLifecyclePolicyPreviewRequest& WithLifecyclePolicyText(const Aws::String& value) { SetLifecyclePolicyText(value); return *this;}
162 
167  inline StartLifecyclePolicyPreviewRequest& WithLifecyclePolicyText(Aws::String&& value) { SetLifecyclePolicyText(std::move(value)); return *this;}
168 
173  inline StartLifecyclePolicyPreviewRequest& WithLifecyclePolicyText(const char* value) { SetLifecyclePolicyText(value); return *this;}
174 
175  private:
176 
177  Aws::String m_registryId;
178  bool m_registryIdHasBeenSet;
179 
180  Aws::String m_repositoryName;
181  bool m_repositoryNameHasBeenSet;
182 
183  Aws::String m_lifecyclePolicyText;
184  bool m_lifecyclePolicyTextHasBeenSet;
185  };
186 
187 } // namespace Model
188 } // namespace ECR
189 } // namespace Aws
Aws::ECR::Model::StartLifecyclePolicyPreviewRequest::WithRegistryId
StartLifecyclePolicyPreviewRequest & WithRegistryId(Aws::String &&value)
Definition: StartLifecyclePolicyPreviewRequest.h:77
Aws::ECR::Model::StartLifecyclePolicyPreviewRequest::GetRegistryId
const Aws::String & GetRegistryId() const
Definition: StartLifecyclePolicyPreviewRequest.h:41
Aws::ECR::Model::StartLifecyclePolicyPreviewRequest::WithRepositoryName
StartLifecyclePolicyPreviewRequest & WithRepositoryName(const char *value)
Definition: StartLifecyclePolicyPreviewRequest.h:124
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::ECR::Model::StartLifecyclePolicyPreviewRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::ECR::Model::StartLifecyclePolicyPreviewRequest::WithRegistryId
StartLifecyclePolicyPreviewRequest & WithRegistryId(const char *value)
Definition: StartLifecyclePolicyPreviewRequest.h:83
Aws::ECR::Model::StartLifecyclePolicyPreviewRequest::StartLifecyclePolicyPreviewRequest
StartLifecyclePolicyPreviewRequest()
Aws::ECR::Model::StartLifecyclePolicyPreviewRequest::WithRegistryId
StartLifecyclePolicyPreviewRequest & WithRegistryId(const Aws::String &value)
Definition: StartLifecyclePolicyPreviewRequest.h:71
Aws::ECR::Model::StartLifecyclePolicyPreviewRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::ECR::Model::StartLifecyclePolicyPreviewRequest::SetRepositoryName
void SetRepositoryName(Aws::String &&value)
Definition: StartLifecyclePolicyPreviewRequest.h:104
Aws::ECR::Model::StartLifecyclePolicyPreviewRequest::WithRepositoryName
StartLifecyclePolicyPreviewRequest & WithRepositoryName(const Aws::String &value)
Definition: StartLifecyclePolicyPreviewRequest.h:114
Aws::ECR::Model::StartLifecyclePolicyPreviewRequest::SetRepositoryName
void SetRepositoryName(const Aws::String &value)
Definition: StartLifecyclePolicyPreviewRequest.h:99
Aws::ECR::Model::StartLifecyclePolicyPreviewRequest
Definition: StartLifecyclePolicyPreviewRequest.h:22
Aws::imagebuilder::Model::ContainerRepositoryService::NOT_SET
@ NOT_SET
Aws::ECR::Model::StartLifecyclePolicyPreviewRequest::GetRepositoryName
const Aws::String & GetRepositoryName() const
Definition: StartLifecyclePolicyPreviewRequest.h:89
Aws::ECR::Model::StartLifecyclePolicyPreviewRequest::WithLifecyclePolicyText
StartLifecyclePolicyPreviewRequest & WithLifecyclePolicyText(const char *value)
Definition: StartLifecyclePolicyPreviewRequest.h:173
Aws::ECR::Model::StartLifecyclePolicyPreviewRequest::GetLifecyclePolicyText
const Aws::String & GetLifecyclePolicyText() const
Definition: StartLifecyclePolicyPreviewRequest.h:131
Aws::ECR::Model::StartLifecyclePolicyPreviewRequest::SetRegistryId
void SetRegistryId(Aws::String &&value)
Definition: StartLifecyclePolicyPreviewRequest.h:59
ECR_EXPORTS.h
Aws::ECR::Model::StartLifecyclePolicyPreviewRequest::SetLifecyclePolicyText
void SetLifecyclePolicyText(const Aws::String &value)
Definition: StartLifecyclePolicyPreviewRequest.h:143
AWSString.h
Aws::ECR::Model::StartLifecyclePolicyPreviewRequest::SetLifecyclePolicyText
void SetLifecyclePolicyText(const char *value)
Definition: StartLifecyclePolicyPreviewRequest.h:155
Aws::ECR::Model::StartLifecyclePolicyPreviewRequest::SetRegistryId
void SetRegistryId(const char *value)
Definition: StartLifecyclePolicyPreviewRequest.h:65
AWS_ECR_API
#define AWS_ECR_API
Definition: ECR_EXPORTS.h:28
ECRRequest.h
Aws::ECR::Model::StartLifecyclePolicyPreviewRequest::WithLifecyclePolicyText
StartLifecyclePolicyPreviewRequest & WithLifecyclePolicyText(Aws::String &&value)
Definition: StartLifecyclePolicyPreviewRequest.h:167
Aws::ECR::Model::StartLifecyclePolicyPreviewRequest::LifecyclePolicyTextHasBeenSet
bool LifecyclePolicyTextHasBeenSet() const
Definition: StartLifecyclePolicyPreviewRequest.h:137
Aws::ECR::Model::StartLifecyclePolicyPreviewRequest::SetLifecyclePolicyText
void SetLifecyclePolicyText(Aws::String &&value)
Definition: StartLifecyclePolicyPreviewRequest.h:149
Aws::ECR::Model::StartLifecyclePolicyPreviewRequest::SetRegistryId
void SetRegistryId(const Aws::String &value)
Definition: StartLifecyclePolicyPreviewRequest.h:53
Aws
Definition: AccessManagementClient.h:15
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::ECR::Model::StartLifecyclePolicyPreviewRequest::RegistryIdHasBeenSet
bool RegistryIdHasBeenSet() const
Definition: StartLifecyclePolicyPreviewRequest.h:47
Aws::ECR::Model::StartLifecyclePolicyPreviewRequest::SetRepositoryName
void SetRepositoryName(const char *value)
Definition: StartLifecyclePolicyPreviewRequest.h:109
Aws::ECR::Model::StartLifecyclePolicyPreviewRequest::WithRepositoryName
StartLifecyclePolicyPreviewRequest & WithRepositoryName(Aws::String &&value)
Definition: StartLifecyclePolicyPreviewRequest.h:119
Aws::ECR::Model::StartLifecyclePolicyPreviewRequest::WithLifecyclePolicyText
StartLifecyclePolicyPreviewRequest & WithLifecyclePolicyText(const Aws::String &value)
Definition: StartLifecyclePolicyPreviewRequest.h:161
Aws::ECR::Model::StartLifecyclePolicyPreviewRequest::RepositoryNameHasBeenSet
bool RepositoryNameHasBeenSet() const
Definition: StartLifecyclePolicyPreviewRequest.h:94
Aws::ECR::ECRRequest
Definition: ECRRequest.h:17
Aws::ECR::Model::StartLifecyclePolicyPreviewRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: StartLifecyclePolicyPreviewRequest.h:30