AWS SDK for C++  1.9.130
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 
42  inline const Aws::String& GetRegistryId() const{ return m_registryId; }
43 
49  inline bool RegistryIdHasBeenSet() const { return m_registryIdHasBeenSet; }
50 
56  inline void SetRegistryId(const Aws::String& value) { m_registryIdHasBeenSet = true; m_registryId = value; }
57 
63  inline void SetRegistryId(Aws::String&& value) { m_registryIdHasBeenSet = true; m_registryId = std::move(value); }
64 
70  inline void SetRegistryId(const char* value) { m_registryIdHasBeenSet = true; m_registryId.assign(value); }
71 
77  inline StartLifecyclePolicyPreviewRequest& WithRegistryId(const Aws::String& value) { SetRegistryId(value); return *this;}
78 
84  inline StartLifecyclePolicyPreviewRequest& WithRegistryId(Aws::String&& value) { SetRegistryId(std::move(value)); return *this;}
85 
91  inline StartLifecyclePolicyPreviewRequest& WithRegistryId(const char* value) { SetRegistryId(value); return *this;}
92 
93 
97  inline const Aws::String& GetRepositoryName() const{ return m_repositoryName; }
98 
102  inline bool RepositoryNameHasBeenSet() const { return m_repositoryNameHasBeenSet; }
103 
107  inline void SetRepositoryName(const Aws::String& value) { m_repositoryNameHasBeenSet = true; m_repositoryName = value; }
108 
112  inline void SetRepositoryName(Aws::String&& value) { m_repositoryNameHasBeenSet = true; m_repositoryName = std::move(value); }
113 
117  inline void SetRepositoryName(const char* value) { m_repositoryNameHasBeenSet = true; m_repositoryName.assign(value); }
118 
122  inline StartLifecyclePolicyPreviewRequest& WithRepositoryName(const Aws::String& value) { SetRepositoryName(value); return *this;}
123 
127  inline StartLifecyclePolicyPreviewRequest& WithRepositoryName(Aws::String&& value) { SetRepositoryName(std::move(value)); return *this;}
128 
132  inline StartLifecyclePolicyPreviewRequest& WithRepositoryName(const char* value) { SetRepositoryName(value); return *this;}
133 
134 
139  inline const Aws::String& GetLifecyclePolicyText() const{ return m_lifecyclePolicyText; }
140 
145  inline bool LifecyclePolicyTextHasBeenSet() const { return m_lifecyclePolicyTextHasBeenSet; }
146 
151  inline void SetLifecyclePolicyText(const Aws::String& value) { m_lifecyclePolicyTextHasBeenSet = true; m_lifecyclePolicyText = value; }
152 
157  inline void SetLifecyclePolicyText(Aws::String&& value) { m_lifecyclePolicyTextHasBeenSet = true; m_lifecyclePolicyText = std::move(value); }
158 
163  inline void SetLifecyclePolicyText(const char* value) { m_lifecyclePolicyTextHasBeenSet = true; m_lifecyclePolicyText.assign(value); }
164 
169  inline StartLifecyclePolicyPreviewRequest& WithLifecyclePolicyText(const Aws::String& value) { SetLifecyclePolicyText(value); return *this;}
170 
175  inline StartLifecyclePolicyPreviewRequest& WithLifecyclePolicyText(Aws::String&& value) { SetLifecyclePolicyText(std::move(value)); return *this;}
176 
181  inline StartLifecyclePolicyPreviewRequest& WithLifecyclePolicyText(const char* value) { SetLifecyclePolicyText(value); return *this;}
182 
183  private:
184 
185  Aws::String m_registryId;
186  bool m_registryIdHasBeenSet;
187 
188  Aws::String m_repositoryName;
189  bool m_repositoryNameHasBeenSet;
190 
191  Aws::String m_lifecyclePolicyText;
192  bool m_lifecyclePolicyTextHasBeenSet;
193  };
194 
195 } // namespace Model
196 } // namespace ECR
197 } // namespace Aws
Aws::ECR::Model::StartLifecyclePolicyPreviewRequest::WithRegistryId
StartLifecyclePolicyPreviewRequest & WithRegistryId(Aws::String &&value)
Definition: StartLifecyclePolicyPreviewRequest.h:84
Aws::ECR::Model::StartLifecyclePolicyPreviewRequest::GetRegistryId
const Aws::String & GetRegistryId() const
Definition: StartLifecyclePolicyPreviewRequest.h:42
Aws::ECR::Model::StartLifecyclePolicyPreviewRequest::WithRepositoryName
StartLifecyclePolicyPreviewRequest & WithRepositoryName(const char *value)
Definition: StartLifecyclePolicyPreviewRequest.h:132
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:91
Aws::ECR::Model::StartLifecyclePolicyPreviewRequest::StartLifecyclePolicyPreviewRequest
StartLifecyclePolicyPreviewRequest()
Aws::ECR::Model::StartLifecyclePolicyPreviewRequest::WithRegistryId
StartLifecyclePolicyPreviewRequest & WithRegistryId(const Aws::String &value)
Definition: StartLifecyclePolicyPreviewRequest.h:77
Aws::ECR::Model::StartLifecyclePolicyPreviewRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::ECR::Model::StartLifecyclePolicyPreviewRequest::SetRepositoryName
void SetRepositoryName(Aws::String &&value)
Definition: StartLifecyclePolicyPreviewRequest.h:112
Aws::ECR::Model::StartLifecyclePolicyPreviewRequest::WithRepositoryName
StartLifecyclePolicyPreviewRequest & WithRepositoryName(const Aws::String &value)
Definition: StartLifecyclePolicyPreviewRequest.h:122
Aws::ECR::Model::StartLifecyclePolicyPreviewRequest::SetRepositoryName
void SetRepositoryName(const Aws::String &value)
Definition: StartLifecyclePolicyPreviewRequest.h:107
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:97
Aws::ECR::Model::StartLifecyclePolicyPreviewRequest::WithLifecyclePolicyText
StartLifecyclePolicyPreviewRequest & WithLifecyclePolicyText(const char *value)
Definition: StartLifecyclePolicyPreviewRequest.h:181
Aws::ECR::Model::StartLifecyclePolicyPreviewRequest::GetLifecyclePolicyText
const Aws::String & GetLifecyclePolicyText() const
Definition: StartLifecyclePolicyPreviewRequest.h:139
Aws::ECR::Model::StartLifecyclePolicyPreviewRequest::SetRegistryId
void SetRegistryId(Aws::String &&value)
Definition: StartLifecyclePolicyPreviewRequest.h:63
ECR_EXPORTS.h
Aws::ECR::Model::StartLifecyclePolicyPreviewRequest::SetLifecyclePolicyText
void SetLifecyclePolicyText(const Aws::String &value)
Definition: StartLifecyclePolicyPreviewRequest.h:151
AWSString.h
Aws::ECR::Model::StartLifecyclePolicyPreviewRequest::SetLifecyclePolicyText
void SetLifecyclePolicyText(const char *value)
Definition: StartLifecyclePolicyPreviewRequest.h:163
Aws::ECR::Model::StartLifecyclePolicyPreviewRequest::SetRegistryId
void SetRegistryId(const char *value)
Definition: StartLifecyclePolicyPreviewRequest.h:70
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:175
Aws::ECR::Model::StartLifecyclePolicyPreviewRequest::LifecyclePolicyTextHasBeenSet
bool LifecyclePolicyTextHasBeenSet() const
Definition: StartLifecyclePolicyPreviewRequest.h:145
Aws::ECR::Model::StartLifecyclePolicyPreviewRequest::SetLifecyclePolicyText
void SetLifecyclePolicyText(Aws::String &&value)
Definition: StartLifecyclePolicyPreviewRequest.h:157
Aws::ECR::Model::StartLifecyclePolicyPreviewRequest::SetRegistryId
void SetRegistryId(const Aws::String &value)
Definition: StartLifecyclePolicyPreviewRequest.h:56
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:49
Aws::ECR::Model::StartLifecyclePolicyPreviewRequest::SetRepositoryName
void SetRepositoryName(const char *value)
Definition: StartLifecyclePolicyPreviewRequest.h:117
Aws::ECR::Model::StartLifecyclePolicyPreviewRequest::WithRepositoryName
StartLifecyclePolicyPreviewRequest & WithRepositoryName(Aws::String &&value)
Definition: StartLifecyclePolicyPreviewRequest.h:127
Aws::ECR::Model::StartLifecyclePolicyPreviewRequest::WithLifecyclePolicyText
StartLifecyclePolicyPreviewRequest & WithLifecyclePolicyText(const Aws::String &value)
Definition: StartLifecyclePolicyPreviewRequest.h:169
Aws::ECR::Model::StartLifecyclePolicyPreviewRequest::RepositoryNameHasBeenSet
bool RepositoryNameHasBeenSet() const
Definition: StartLifecyclePolicyPreviewRequest.h:102
Aws::ECR::ECRRequest
Definition: ECRRequest.h:17
Aws::ECR::Model::StartLifecyclePolicyPreviewRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: StartLifecyclePolicyPreviewRequest.h:30