AWS SDK for C++  1.9.66
AWS SDK for C++
PutImageTagMutabilityRequest.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>
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace ECR
16 {
17 namespace Model
18 {
19 
23  {
24  public:
26 
27  // Service request name is the Operation name which will send this request out,
28  // each operation should has unique request name, so that we can get operation's name from this request.
29  // Note: this is not true for response, multiple operations may have the same response name,
30  // so we can not get operation's name from response.
31  inline virtual const char* GetServiceRequestName() const override { return "PutImageTagMutability"; }
32 
33  Aws::String SerializePayload() const override;
34 
36 
37 
43  inline const Aws::String& GetRegistryId() const{ return m_registryId; }
44 
50  inline bool RegistryIdHasBeenSet() const { return m_registryIdHasBeenSet; }
51 
57  inline void SetRegistryId(const Aws::String& value) { m_registryIdHasBeenSet = true; m_registryId = value; }
58 
64  inline void SetRegistryId(Aws::String&& value) { m_registryIdHasBeenSet = true; m_registryId = std::move(value); }
65 
71  inline void SetRegistryId(const char* value) { m_registryIdHasBeenSet = true; m_registryId.assign(value); }
72 
78  inline PutImageTagMutabilityRequest& WithRegistryId(const Aws::String& value) { SetRegistryId(value); return *this;}
79 
85  inline PutImageTagMutabilityRequest& WithRegistryId(Aws::String&& value) { SetRegistryId(std::move(value)); return *this;}
86 
92  inline PutImageTagMutabilityRequest& WithRegistryId(const char* value) { SetRegistryId(value); return *this;}
93 
94 
99  inline const Aws::String& GetRepositoryName() const{ return m_repositoryName; }
100 
105  inline bool RepositoryNameHasBeenSet() const { return m_repositoryNameHasBeenSet; }
106 
111  inline void SetRepositoryName(const Aws::String& value) { m_repositoryNameHasBeenSet = true; m_repositoryName = value; }
112 
117  inline void SetRepositoryName(Aws::String&& value) { m_repositoryNameHasBeenSet = true; m_repositoryName = std::move(value); }
118 
123  inline void SetRepositoryName(const char* value) { m_repositoryNameHasBeenSet = true; m_repositoryName.assign(value); }
124 
129  inline PutImageTagMutabilityRequest& WithRepositoryName(const Aws::String& value) { SetRepositoryName(value); return *this;}
130 
135  inline PutImageTagMutabilityRequest& WithRepositoryName(Aws::String&& value) { SetRepositoryName(std::move(value)); return *this;}
136 
141  inline PutImageTagMutabilityRequest& WithRepositoryName(const char* value) { SetRepositoryName(value); return *this;}
142 
143 
150  inline const ImageTagMutability& GetImageTagMutability() const{ return m_imageTagMutability; }
151 
158  inline bool ImageTagMutabilityHasBeenSet() const { return m_imageTagMutabilityHasBeenSet; }
159 
166  inline void SetImageTagMutability(const ImageTagMutability& value) { m_imageTagMutabilityHasBeenSet = true; m_imageTagMutability = value; }
167 
174  inline void SetImageTagMutability(ImageTagMutability&& value) { m_imageTagMutabilityHasBeenSet = true; m_imageTagMutability = std::move(value); }
175 
182  inline PutImageTagMutabilityRequest& WithImageTagMutability(const ImageTagMutability& value) { SetImageTagMutability(value); return *this;}
183 
190  inline PutImageTagMutabilityRequest& WithImageTagMutability(ImageTagMutability&& value) { SetImageTagMutability(std::move(value)); return *this;}
191 
192  private:
193 
194  Aws::String m_registryId;
195  bool m_registryIdHasBeenSet;
196 
197  Aws::String m_repositoryName;
198  bool m_repositoryNameHasBeenSet;
199 
200  ImageTagMutability m_imageTagMutability;
201  bool m_imageTagMutabilityHasBeenSet;
202  };
203 
204 } // namespace Model
205 } // namespace ECR
206 } // namespace Aws
Aws::ECR::Model::PutImageTagMutabilityRequest::GetRepositoryName
const Aws::String & GetRepositoryName() const
Definition: PutImageTagMutabilityRequest.h:99
Aws::ECR::Model::PutImageTagMutabilityRequest::WithImageTagMutability
PutImageTagMutabilityRequest & WithImageTagMutability(const ImageTagMutability &value)
Definition: PutImageTagMutabilityRequest.h:182
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::ECR::Model::PutImageTagMutabilityRequest::SetRepositoryName
void SetRepositoryName(Aws::String &&value)
Definition: PutImageTagMutabilityRequest.h:117
Aws::ECR::Model::PutImageTagMutabilityRequest::GetRegistryId
const Aws::String & GetRegistryId() const
Definition: PutImageTagMutabilityRequest.h:43
Aws::ECR::Model::PutImageTagMutabilityRequest::ImageTagMutabilityHasBeenSet
bool ImageTagMutabilityHasBeenSet() const
Definition: PutImageTagMutabilityRequest.h:158
Aws::ECR::Model::ImageTagMutability
ImageTagMutability
Definition: ImageTagMutability.h:17
Aws::ECR::Model::PutImageTagMutabilityRequest::SetRepositoryName
void SetRepositoryName(const Aws::String &value)
Definition: PutImageTagMutabilityRequest.h:111
Aws::ECR::Model::PutImageTagMutabilityRequest::SetRegistryId
void SetRegistryId(const char *value)
Definition: PutImageTagMutabilityRequest.h:71
Aws::ECR::Model::PutImageTagMutabilityRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::ECR::Model::PutImageTagMutabilityRequest::PutImageTagMutabilityRequest
PutImageTagMutabilityRequest()
Aws::ECR::Model::PutImageTagMutabilityRequest::WithRepositoryName
PutImageTagMutabilityRequest & WithRepositoryName(Aws::String &&value)
Definition: PutImageTagMutabilityRequest.h:135
Aws::ECR::Model::PutImageTagMutabilityRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: PutImageTagMutabilityRequest.h:31
Aws::ECR::Model::PutImageTagMutabilityRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::ECR::Model::PutImageTagMutabilityRequest::SetRegistryId
void SetRegistryId(const Aws::String &value)
Definition: PutImageTagMutabilityRequest.h:57
Aws::imagebuilder::Model::ContainerRepositoryService::NOT_SET
@ NOT_SET
ECR_EXPORTS.h
Aws::ECR::Model::PutImageTagMutabilityRequest::WithImageTagMutability
PutImageTagMutabilityRequest & WithImageTagMutability(ImageTagMutability &&value)
Definition: PutImageTagMutabilityRequest.h:190
Aws::ECR::Model::PutImageTagMutabilityRequest::RepositoryNameHasBeenSet
bool RepositoryNameHasBeenSet() const
Definition: PutImageTagMutabilityRequest.h:105
Aws::ECR::Model::PutImageTagMutabilityRequest::WithRepositoryName
PutImageTagMutabilityRequest & WithRepositoryName(const Aws::String &value)
Definition: PutImageTagMutabilityRequest.h:129
AWSString.h
Aws::ECR::Model::PutImageTagMutabilityRequest::SetImageTagMutability
void SetImageTagMutability(ImageTagMutability &&value)
Definition: PutImageTagMutabilityRequest.h:174
AWS_ECR_API
#define AWS_ECR_API
Definition: ECR_EXPORTS.h:28
ECRRequest.h
Aws::ECR::Model::PutImageTagMutabilityRequest::WithRegistryId
PutImageTagMutabilityRequest & WithRegistryId(Aws::String &&value)
Definition: PutImageTagMutabilityRequest.h:85
Aws::ECR::Model::PutImageTagMutabilityRequest
Definition: PutImageTagMutabilityRequest.h:23
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::PutImageTagMutabilityRequest::WithRegistryId
PutImageTagMutabilityRequest & WithRegistryId(const char *value)
Definition: PutImageTagMutabilityRequest.h:92
Aws::ECR::Model::PutImageTagMutabilityRequest::SetRegistryId
void SetRegistryId(Aws::String &&value)
Definition: PutImageTagMutabilityRequest.h:64
ImageTagMutability.h
Aws::ECR::Model::PutImageTagMutabilityRequest::WithRegistryId
PutImageTagMutabilityRequest & WithRegistryId(const Aws::String &value)
Definition: PutImageTagMutabilityRequest.h:78
Aws::ECR::Model::PutImageTagMutabilityRequest::SetRepositoryName
void SetRepositoryName(const char *value)
Definition: PutImageTagMutabilityRequest.h:123
Aws::ECR::Model::PutImageTagMutabilityRequest::SetImageTagMutability
void SetImageTagMutability(const ImageTagMutability &value)
Definition: PutImageTagMutabilityRequest.h:166
Aws::ECR::Model::PutImageTagMutabilityRequest::RegistryIdHasBeenSet
bool RegistryIdHasBeenSet() const
Definition: PutImageTagMutabilityRequest.h:50
Aws::ECR::Model::PutImageTagMutabilityRequest::WithRepositoryName
PutImageTagMutabilityRequest & WithRepositoryName(const char *value)
Definition: PutImageTagMutabilityRequest.h:141
Aws::ECR::Model::PutImageTagMutabilityRequest::GetImageTagMutability
const ImageTagMutability & GetImageTagMutability() const
Definition: PutImageTagMutabilityRequest.h:150
Aws::ECR::ECRRequest
Definition: ECRRequest.h:17