AWS SDK for C++  1.9.71
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 
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 SetRepositoryPolicyRequest& WithRegistryId(const Aws::String& value) { SetRegistryId(value); return *this;}
72 
77  inline SetRepositoryPolicyRequest& WithRegistryId(Aws::String&& value) { SetRegistryId(std::move(value)); return *this;}
78 
83  inline SetRepositoryPolicyRequest& 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 SetRepositoryPolicyRequest& WithRepositoryName(const Aws::String& value) { SetRepositoryName(value); return *this;}
115 
119  inline SetRepositoryPolicyRequest& WithRepositoryName(Aws::String&& value) { SetRepositoryName(std::move(value)); return *this;}
120 
124  inline SetRepositoryPolicyRequest& WithRepositoryName(const char* value) { SetRepositoryName(value); return *this;}
125 
126 
134  inline const Aws::String& GetPolicyText() const{ return m_policyText; }
135 
143  inline bool PolicyTextHasBeenSet() const { return m_policyTextHasBeenSet; }
144 
152  inline void SetPolicyText(const Aws::String& value) { m_policyTextHasBeenSet = true; m_policyText = value; }
153 
161  inline void SetPolicyText(Aws::String&& value) { m_policyTextHasBeenSet = true; m_policyText = std::move(value); }
162 
170  inline void SetPolicyText(const char* value) { m_policyTextHasBeenSet = true; m_policyText.assign(value); }
171 
179  inline SetRepositoryPolicyRequest& WithPolicyText(const Aws::String& value) { SetPolicyText(value); return *this;}
180 
188  inline SetRepositoryPolicyRequest& WithPolicyText(Aws::String&& value) { SetPolicyText(std::move(value)); return *this;}
189 
197  inline SetRepositoryPolicyRequest& WithPolicyText(const char* value) { SetPolicyText(value); return *this;}
198 
199 
206  inline bool GetForce() const{ return m_force; }
207 
214  inline bool ForceHasBeenSet() const { return m_forceHasBeenSet; }
215 
222  inline void SetForce(bool value) { m_forceHasBeenSet = true; m_force = value; }
223 
230  inline SetRepositoryPolicyRequest& WithForce(bool value) { SetForce(value); return *this;}
231 
232  private:
233 
234  Aws::String m_registryId;
235  bool m_registryIdHasBeenSet;
236 
237  Aws::String m_repositoryName;
238  bool m_repositoryNameHasBeenSet;
239 
240  Aws::String m_policyText;
241  bool m_policyTextHasBeenSet;
242 
243  bool m_force;
244  bool m_forceHasBeenSet;
245  };
246 
247 } // namespace Model
248 } // namespace ECR
249 } // 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:99
Aws::ECR::Model::SetRepositoryPolicyRequest::GetRepositoryName
const Aws::String & GetRepositoryName() const
Definition: SetRepositoryPolicyRequest.h:89
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:65
Aws::ECR::Model::SetRepositoryPolicyRequest::SetRegistryId
void SetRegistryId(const Aws::String &value)
Definition: SetRepositoryPolicyRequest.h:53
Aws::ECR::Model::SetRepositoryPolicyRequest::GetForce
bool GetForce() const
Definition: SetRepositoryPolicyRequest.h:206
Aws::ECR::Model::SetRepositoryPolicyRequest::WithPolicyText
SetRepositoryPolicyRequest & WithPolicyText(const Aws::String &value)
Definition: SetRepositoryPolicyRequest.h:179
Aws::ECR::Model::SetRepositoryPolicyRequest::SetRegistryId
void SetRegistryId(Aws::String &&value)
Definition: SetRepositoryPolicyRequest.h:59
Aws::ECR::Model::SetRepositoryPolicyRequest
Definition: SetRepositoryPolicyRequest.h:22
Aws::ECR::Model::SetRepositoryPolicyRequest::WithPolicyText
SetRepositoryPolicyRequest & WithPolicyText(Aws::String &&value)
Definition: SetRepositoryPolicyRequest.h:188
Aws::ECR::Model::SetRepositoryPolicyRequest::WithRegistryId
SetRepositoryPolicyRequest & WithRegistryId(const Aws::String &value)
Definition: SetRepositoryPolicyRequest.h:71
Aws::ECR::Model::SetRepositoryPolicyRequest::WithRegistryId
SetRepositoryPolicyRequest & WithRegistryId(const char *value)
Definition: SetRepositoryPolicyRequest.h:83
Aws::ECR::Model::SetRepositoryPolicyRequest::WithForce
SetRepositoryPolicyRequest & WithForce(bool value)
Definition: SetRepositoryPolicyRequest.h:230
Aws::ECR::Model::SetRepositoryPolicyRequest::SetRepositoryName
void SetRepositoryName(const char *value)
Definition: SetRepositoryPolicyRequest.h:109
Aws::imagebuilder::Model::ContainerRepositoryService::NOT_SET
@ NOT_SET
Aws::ECR::Model::SetRepositoryPolicyRequest::WithRepositoryName
SetRepositoryPolicyRequest & WithRepositoryName(const char *value)
Definition: SetRepositoryPolicyRequest.h:124
Aws::ECR::Model::SetRepositoryPolicyRequest::RegistryIdHasBeenSet
bool RegistryIdHasBeenSet() const
Definition: SetRepositoryPolicyRequest.h:47
ECR_EXPORTS.h
Aws::ECR::Model::SetRepositoryPolicyRequest::RepositoryNameHasBeenSet
bool RepositoryNameHasBeenSet() const
Definition: SetRepositoryPolicyRequest.h:94
Aws::ECR::Model::SetRepositoryPolicyRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::ECR::Model::SetRepositoryPolicyRequest::SetRepositoryName
void SetRepositoryName(Aws::String &&value)
Definition: SetRepositoryPolicyRequest.h:104
Aws::ECR::Model::SetRepositoryPolicyRequest::WithPolicyText
SetRepositoryPolicyRequest & WithPolicyText(const char *value)
Definition: SetRepositoryPolicyRequest.h:197
AWSString.h
Aws::ECR::Model::SetRepositoryPolicyRequest::SetForce
void SetForce(bool value)
Definition: SetRepositoryPolicyRequest.h:222
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:214
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:161
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:77
Aws::ECR::Model::SetRepositoryPolicyRequest::PolicyTextHasBeenSet
bool PolicyTextHasBeenSet() const
Definition: SetRepositoryPolicyRequest.h:143
Aws::ECR::Model::SetRepositoryPolicyRequest::SetPolicyText
void SetPolicyText(const char *value)
Definition: SetRepositoryPolicyRequest.h:170
Aws::ECR::Model::SetRepositoryPolicyRequest::WithRepositoryName
SetRepositoryPolicyRequest & WithRepositoryName(Aws::String &&value)
Definition: SetRepositoryPolicyRequest.h:119
Aws::ECR::Model::SetRepositoryPolicyRequest::WithRepositoryName
SetRepositoryPolicyRequest & WithRepositoryName(const Aws::String &value)
Definition: SetRepositoryPolicyRequest.h:114
Aws::ECR::ECRRequest
Definition: ECRRequest.h:17
Aws::ECR::Model::SetRepositoryPolicyRequest::GetPolicyText
const Aws::String & GetPolicyText() const
Definition: SetRepositoryPolicyRequest.h:134
Aws::ECR::Model::SetRepositoryPolicyRequest::SetPolicyText
void SetPolicyText(const Aws::String &value)
Definition: SetRepositoryPolicyRequest.h:152
Aws::ECR::Model::SetRepositoryPolicyRequest::GetRegistryId
const Aws::String & GetRegistryId() const
Definition: SetRepositoryPolicyRequest.h:41