AWS SDK for C++  1.9.123
AWS SDK for C++
SetRepositoryPolicyRequest.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 "SetRepositoryPolicy"; }
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 SetRepositoryPolicyRequest& WithRegistryId(const Aws::String& value) { SetRegistryId(value); return *this;}
78 
84  inline SetRepositoryPolicyRequest& WithRegistryId(Aws::String&& value) { SetRegistryId(std::move(value)); return *this;}
85 
91  inline SetRepositoryPolicyRequest& 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 SetRepositoryPolicyRequest& WithRepositoryName(const Aws::String& value) { SetRepositoryName(value); return *this;}
123 
127  inline SetRepositoryPolicyRequest& WithRepositoryName(Aws::String&& value) { SetRepositoryName(std::move(value)); return *this;}
128 
132  inline SetRepositoryPolicyRequest& WithRepositoryName(const char* value) { SetRepositoryName(value); return *this;}
133 
134 
142  inline const Aws::String& GetPolicyText() const{ return m_policyText; }
143 
151  inline bool PolicyTextHasBeenSet() const { return m_policyTextHasBeenSet; }
152 
160  inline void SetPolicyText(const Aws::String& value) { m_policyTextHasBeenSet = true; m_policyText = value; }
161 
169  inline void SetPolicyText(Aws::String&& value) { m_policyTextHasBeenSet = true; m_policyText = std::move(value); }
170 
178  inline void SetPolicyText(const char* value) { m_policyTextHasBeenSet = true; m_policyText.assign(value); }
179 
187  inline SetRepositoryPolicyRequest& WithPolicyText(const Aws::String& value) { SetPolicyText(value); return *this;}
188 
196  inline SetRepositoryPolicyRequest& WithPolicyText(Aws::String&& value) { SetPolicyText(std::move(value)); return *this;}
197 
205  inline SetRepositoryPolicyRequest& WithPolicyText(const char* value) { SetPolicyText(value); return *this;}
206 
207 
214  inline bool GetForce() const{ return m_force; }
215 
222  inline bool ForceHasBeenSet() const { return m_forceHasBeenSet; }
223 
230  inline void SetForce(bool value) { m_forceHasBeenSet = true; m_force = value; }
231 
238  inline SetRepositoryPolicyRequest& WithForce(bool value) { SetForce(value); return *this;}
239 
240  private:
241 
242  Aws::String m_registryId;
243  bool m_registryIdHasBeenSet;
244 
245  Aws::String m_repositoryName;
246  bool m_repositoryNameHasBeenSet;
247 
248  Aws::String m_policyText;
249  bool m_policyTextHasBeenSet;
250 
251  bool m_force;
252  bool m_forceHasBeenSet;
253  };
254 
255 } // namespace Model
256 } // namespace ECR
257 } // namespace Aws
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::ECR::Model::SetRepositoryPolicyRequest::SetRepositoryName
void SetRepositoryName(const Aws::String &value)
Definition: SetRepositoryPolicyRequest.h:107
Aws::ECR::Model::SetRepositoryPolicyRequest::GetRepositoryName
const Aws::String & GetRepositoryName() const
Definition: SetRepositoryPolicyRequest.h:97
Aws::ECR::Model::SetRepositoryPolicyRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: SetRepositoryPolicyRequest.h:30
Aws::ECR::Model::SetRepositoryPolicyRequest::SetRegistryId
void SetRegistryId(const char *value)
Definition: SetRepositoryPolicyRequest.h:70
Aws::ECR::Model::SetRepositoryPolicyRequest::SetRegistryId
void SetRegistryId(const Aws::String &value)
Definition: SetRepositoryPolicyRequest.h:56
Aws::ECR::Model::SetRepositoryPolicyRequest::GetForce
bool GetForce() const
Definition: SetRepositoryPolicyRequest.h:214
Aws::ECR::Model::SetRepositoryPolicyRequest::WithPolicyText
SetRepositoryPolicyRequest & WithPolicyText(const Aws::String &value)
Definition: SetRepositoryPolicyRequest.h:187
Aws::ECR::Model::SetRepositoryPolicyRequest::SetRegistryId
void SetRegistryId(Aws::String &&value)
Definition: SetRepositoryPolicyRequest.h:63
Aws::ECR::Model::SetRepositoryPolicyRequest
Definition: SetRepositoryPolicyRequest.h:22
Aws::ECR::Model::SetRepositoryPolicyRequest::WithPolicyText
SetRepositoryPolicyRequest & WithPolicyText(Aws::String &&value)
Definition: SetRepositoryPolicyRequest.h:196
Aws::ECR::Model::SetRepositoryPolicyRequest::WithRegistryId
SetRepositoryPolicyRequest & WithRegistryId(const Aws::String &value)
Definition: SetRepositoryPolicyRequest.h:77
Aws::ECR::Model::SetRepositoryPolicyRequest::WithRegistryId
SetRepositoryPolicyRequest & WithRegistryId(const char *value)
Definition: SetRepositoryPolicyRequest.h:91
Aws::ECR::Model::SetRepositoryPolicyRequest::WithForce
SetRepositoryPolicyRequest & WithForce(bool value)
Definition: SetRepositoryPolicyRequest.h:238
Aws::ECR::Model::SetRepositoryPolicyRequest::SetRepositoryName
void SetRepositoryName(const char *value)
Definition: SetRepositoryPolicyRequest.h:117
Aws::imagebuilder::Model::ContainerRepositoryService::NOT_SET
@ NOT_SET
Aws::ECR::Model::SetRepositoryPolicyRequest::WithRepositoryName
SetRepositoryPolicyRequest & WithRepositoryName(const char *value)
Definition: SetRepositoryPolicyRequest.h:132
Aws::ECR::Model::SetRepositoryPolicyRequest::RegistryIdHasBeenSet
bool RegistryIdHasBeenSet() const
Definition: SetRepositoryPolicyRequest.h:49
ECR_EXPORTS.h
Aws::ECR::Model::SetRepositoryPolicyRequest::RepositoryNameHasBeenSet
bool RepositoryNameHasBeenSet() const
Definition: SetRepositoryPolicyRequest.h:102
Aws::ECR::Model::SetRepositoryPolicyRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::ECR::Model::SetRepositoryPolicyRequest::SetRepositoryName
void SetRepositoryName(Aws::String &&value)
Definition: SetRepositoryPolicyRequest.h:112
Aws::ECR::Model::SetRepositoryPolicyRequest::WithPolicyText
SetRepositoryPolicyRequest & WithPolicyText(const char *value)
Definition: SetRepositoryPolicyRequest.h:205
AWSString.h
Aws::ECR::Model::SetRepositoryPolicyRequest::SetForce
void SetForce(bool value)
Definition: SetRepositoryPolicyRequest.h:230
AWS_ECR_API
#define AWS_ECR_API
Definition: ECR_EXPORTS.h:28
ECRRequest.h
Aws::ECR::Model::SetRepositoryPolicyRequest::SetRepositoryPolicyRequest
SetRepositoryPolicyRequest()
Aws::ECR::Model::SetRepositoryPolicyRequest::ForceHasBeenSet
bool ForceHasBeenSet() const
Definition: SetRepositoryPolicyRequest.h:222
Aws::ECR::Model::SetRepositoryPolicyRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws
Definition: AccessManagementClient.h:15
Aws::ECR::Model::SetRepositoryPolicyRequest::SetPolicyText
void SetPolicyText(Aws::String &&value)
Definition: SetRepositoryPolicyRequest.h:169
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::ECR::Model::SetRepositoryPolicyRequest::WithRegistryId
SetRepositoryPolicyRequest & WithRegistryId(Aws::String &&value)
Definition: SetRepositoryPolicyRequest.h:84
Aws::ECR::Model::SetRepositoryPolicyRequest::PolicyTextHasBeenSet
bool PolicyTextHasBeenSet() const
Definition: SetRepositoryPolicyRequest.h:151
Aws::ECR::Model::SetRepositoryPolicyRequest::SetPolicyText
void SetPolicyText(const char *value)
Definition: SetRepositoryPolicyRequest.h:178
Aws::ECR::Model::SetRepositoryPolicyRequest::WithRepositoryName
SetRepositoryPolicyRequest & WithRepositoryName(Aws::String &&value)
Definition: SetRepositoryPolicyRequest.h:127
Aws::ECR::Model::SetRepositoryPolicyRequest::WithRepositoryName
SetRepositoryPolicyRequest & WithRepositoryName(const Aws::String &value)
Definition: SetRepositoryPolicyRequest.h:122
Aws::ECR::ECRRequest
Definition: ECRRequest.h:17
Aws::ECR::Model::SetRepositoryPolicyRequest::GetPolicyText
const Aws::String & GetPolicyText() const
Definition: SetRepositoryPolicyRequest.h:142
Aws::ECR::Model::SetRepositoryPolicyRequest::SetPolicyText
void SetPolicyText(const Aws::String &value)
Definition: SetRepositoryPolicyRequest.h:160
Aws::ECR::Model::SetRepositoryPolicyRequest::GetRegistryId
const Aws::String & GetRegistryId() const
Definition: SetRepositoryPolicyRequest.h:42