AWS SDK for C++  1.9.71
AWS SDK for C++
DeleteRepositoryPolicyRequest.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 "DeleteRepositoryPolicy"; }
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 DeleteRepositoryPolicyRequest& WithRegistryId(const Aws::String& value) { SetRegistryId(value); return *this;}
78 
84  inline DeleteRepositoryPolicyRequest& WithRegistryId(Aws::String&& value) { SetRegistryId(std::move(value)); return *this;}
85 
91  inline DeleteRepositoryPolicyRequest& WithRegistryId(const char* value) { SetRegistryId(value); return *this;}
92 
93 
98  inline const Aws::String& GetRepositoryName() const{ return m_repositoryName; }
99 
104  inline bool RepositoryNameHasBeenSet() const { return m_repositoryNameHasBeenSet; }
105 
110  inline void SetRepositoryName(const Aws::String& value) { m_repositoryNameHasBeenSet = true; m_repositoryName = value; }
111 
116  inline void SetRepositoryName(Aws::String&& value) { m_repositoryNameHasBeenSet = true; m_repositoryName = std::move(value); }
117 
122  inline void SetRepositoryName(const char* value) { m_repositoryNameHasBeenSet = true; m_repositoryName.assign(value); }
123 
128  inline DeleteRepositoryPolicyRequest& WithRepositoryName(const Aws::String& value) { SetRepositoryName(value); return *this;}
129 
134  inline DeleteRepositoryPolicyRequest& WithRepositoryName(Aws::String&& value) { SetRepositoryName(std::move(value)); return *this;}
135 
140  inline DeleteRepositoryPolicyRequest& WithRepositoryName(const char* value) { SetRepositoryName(value); return *this;}
141 
142  private:
143 
144  Aws::String m_registryId;
145  bool m_registryIdHasBeenSet;
146 
147  Aws::String m_repositoryName;
148  bool m_repositoryNameHasBeenSet;
149  };
150 
151 } // namespace Model
152 } // namespace ECR
153 } // namespace Aws
Aws::ECR::Model::DeleteRepositoryPolicyRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::ECR::Model::DeleteRepositoryPolicyRequest::RepositoryNameHasBeenSet
bool RepositoryNameHasBeenSet() const
Definition: DeleteRepositoryPolicyRequest.h:104
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::ECR::Model::DeleteRepositoryPolicyRequest::DeleteRepositoryPolicyRequest
DeleteRepositoryPolicyRequest()
Aws::ECR::Model::DeleteRepositoryPolicyRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::ECR::Model::DeleteRepositoryPolicyRequest::SetRegistryId
void SetRegistryId(const char *value)
Definition: DeleteRepositoryPolicyRequest.h:70
Aws::imagebuilder::Model::ContainerRepositoryService::NOT_SET
@ NOT_SET
Aws::ECR::Model::DeleteRepositoryPolicyRequest::WithRegistryId
DeleteRepositoryPolicyRequest & WithRegistryId(const Aws::String &value)
Definition: DeleteRepositoryPolicyRequest.h:77
Aws::ECR::Model::DeleteRepositoryPolicyRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: DeleteRepositoryPolicyRequest.h:30
ECR_EXPORTS.h
Aws::ECR::Model::DeleteRepositoryPolicyRequest::SetRepositoryName
void SetRepositoryName(const char *value)
Definition: DeleteRepositoryPolicyRequest.h:122
AWSString.h
Aws::ECR::Model::DeleteRepositoryPolicyRequest::SetRegistryId
void SetRegistryId(Aws::String &&value)
Definition: DeleteRepositoryPolicyRequest.h:63
AWS_ECR_API
#define AWS_ECR_API
Definition: ECR_EXPORTS.h:28
ECRRequest.h
Aws::ECR::Model::DeleteRepositoryPolicyRequest::SetRepositoryName
void SetRepositoryName(Aws::String &&value)
Definition: DeleteRepositoryPolicyRequest.h:116
Aws::ECR::Model::DeleteRepositoryPolicyRequest::WithRepositoryName
DeleteRepositoryPolicyRequest & WithRepositoryName(const char *value)
Definition: DeleteRepositoryPolicyRequest.h:140
Aws::ECR::Model::DeleteRepositoryPolicyRequest::WithRegistryId
DeleteRepositoryPolicyRequest & WithRegistryId(const char *value)
Definition: DeleteRepositoryPolicyRequest.h:91
Aws
Definition: AccessManagementClient.h:15
Aws::ECR::Model::DeleteRepositoryPolicyRequest
Definition: DeleteRepositoryPolicyRequest.h:22
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::ECR::Model::DeleteRepositoryPolicyRequest::SetRepositoryName
void SetRepositoryName(const Aws::String &value)
Definition: DeleteRepositoryPolicyRequest.h:110
Aws::ECR::Model::DeleteRepositoryPolicyRequest::RegistryIdHasBeenSet
bool RegistryIdHasBeenSet() const
Definition: DeleteRepositoryPolicyRequest.h:49
Aws::ECR::Model::DeleteRepositoryPolicyRequest::WithRepositoryName
DeleteRepositoryPolicyRequest & WithRepositoryName(Aws::String &&value)
Definition: DeleteRepositoryPolicyRequest.h:134
Aws::ECR::Model::DeleteRepositoryPolicyRequest::GetRegistryId
const Aws::String & GetRegistryId() const
Definition: DeleteRepositoryPolicyRequest.h:42
Aws::ECR::Model::DeleteRepositoryPolicyRequest::WithRepositoryName
DeleteRepositoryPolicyRequest & WithRepositoryName(const Aws::String &value)
Definition: DeleteRepositoryPolicyRequest.h:128
Aws::ECR::Model::DeleteRepositoryPolicyRequest::SetRegistryId
void SetRegistryId(const Aws::String &value)
Definition: DeleteRepositoryPolicyRequest.h:56
Aws::ECR::ECRRequest
Definition: ECRRequest.h:17
Aws::ECR::Model::DeleteRepositoryPolicyRequest::WithRegistryId
DeleteRepositoryPolicyRequest & WithRegistryId(Aws::String &&value)
Definition: DeleteRepositoryPolicyRequest.h:84
Aws::ECR::Model::DeleteRepositoryPolicyRequest::GetRepositoryName
const Aws::String & GetRepositoryName() const
Definition: DeleteRepositoryPolicyRequest.h:98