AWS SDK for C++  1.9.66
AWS SDK for C++
DeleteRepositoryRequest.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 "DeleteRepository"; }
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 DeleteRepositoryRequest& WithRegistryId(const Aws::String& value) { SetRegistryId(value); return *this;}
78 
84  inline DeleteRepositoryRequest& WithRegistryId(Aws::String&& value) { SetRegistryId(std::move(value)); return *this;}
85 
91  inline DeleteRepositoryRequest& 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 DeleteRepositoryRequest& WithRepositoryName(const Aws::String& value) { SetRepositoryName(value); return *this;}
123 
127  inline DeleteRepositoryRequest& WithRepositoryName(Aws::String&& value) { SetRepositoryName(std::move(value)); return *this;}
128 
132  inline DeleteRepositoryRequest& WithRepositoryName(const char* value) { SetRepositoryName(value); return *this;}
133 
134 
138  inline bool GetForce() const{ return m_force; }
139 
143  inline bool ForceHasBeenSet() const { return m_forceHasBeenSet; }
144 
148  inline void SetForce(bool value) { m_forceHasBeenSet = true; m_force = value; }
149 
153  inline DeleteRepositoryRequest& WithForce(bool value) { SetForce(value); return *this;}
154 
155  private:
156 
157  Aws::String m_registryId;
158  bool m_registryIdHasBeenSet;
159 
160  Aws::String m_repositoryName;
161  bool m_repositoryNameHasBeenSet;
162 
163  bool m_force;
164  bool m_forceHasBeenSet;
165  };
166 
167 } // namespace Model
168 } // namespace ECR
169 } // namespace Aws
Aws::ECR::Model::DeleteRepositoryRequest::SetRepositoryName
void SetRepositoryName(const char *value)
Definition: DeleteRepositoryRequest.h:117
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::ECR::Model::DeleteRepositoryRequest::WithRepositoryName
DeleteRepositoryRequest & WithRepositoryName(Aws::String &&value)
Definition: DeleteRepositoryRequest.h:127
Aws::ECR::Model::DeleteRepositoryRequest::GetRepositoryName
const Aws::String & GetRepositoryName() const
Definition: DeleteRepositoryRequest.h:97
Aws::ECR::Model::DeleteRepositoryRequest::WithRegistryId
DeleteRepositoryRequest & WithRegistryId(const char *value)
Definition: DeleteRepositoryRequest.h:91
Aws::ECR::Model::DeleteRepositoryRequest::WithRegistryId
DeleteRepositoryRequest & WithRegistryId(Aws::String &&value)
Definition: DeleteRepositoryRequest.h:84
Aws::ECR::Model::DeleteRepositoryRequest::RegistryIdHasBeenSet
bool RegistryIdHasBeenSet() const
Definition: DeleteRepositoryRequest.h:49
Aws::ECR::Model::DeleteRepositoryRequest::RepositoryNameHasBeenSet
bool RepositoryNameHasBeenSet() const
Definition: DeleteRepositoryRequest.h:102
Aws::imagebuilder::Model::ContainerRepositoryService::NOT_SET
@ NOT_SET
Aws::ECR::Model::DeleteRepositoryRequest
Definition: DeleteRepositoryRequest.h:22
Aws::ECR::Model::DeleteRepositoryRequest::ForceHasBeenSet
bool ForceHasBeenSet() const
Definition: DeleteRepositoryRequest.h:143
ECR_EXPORTS.h
Aws::ECR::Model::DeleteRepositoryRequest::SetForce
void SetForce(bool value)
Definition: DeleteRepositoryRequest.h:148
Aws::ECR::Model::DeleteRepositoryRequest::SetRegistryId
void SetRegistryId(const Aws::String &value)
Definition: DeleteRepositoryRequest.h:56
Aws::ECR::Model::DeleteRepositoryRequest::DeleteRepositoryRequest
DeleteRepositoryRequest()
AWSString.h
AWS_ECR_API
#define AWS_ECR_API
Definition: ECR_EXPORTS.h:28
ECRRequest.h
Aws::ECR::Model::DeleteRepositoryRequest::WithForce
DeleteRepositoryRequest & WithForce(bool value)
Definition: DeleteRepositoryRequest.h:153
Aws::ECR::Model::DeleteRepositoryRequest::SetRegistryId
void SetRegistryId(Aws::String &&value)
Definition: DeleteRepositoryRequest.h:63
Aws::ECR::Model::DeleteRepositoryRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws
Definition: AccessManagementClient.h:15
Aws::ECR::Model::DeleteRepositoryRequest::SetRepositoryName
void SetRepositoryName(Aws::String &&value)
Definition: DeleteRepositoryRequest.h:112
Aws::ECR::Model::DeleteRepositoryRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: DeleteRepositoryRequest.h:30
Aws::ECR::Model::DeleteRepositoryRequest::WithRepositoryName
DeleteRepositoryRequest & WithRepositoryName(const char *value)
Definition: DeleteRepositoryRequest.h:132
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::ECR::Model::DeleteRepositoryRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::ECR::Model::DeleteRepositoryRequest::WithRepositoryName
DeleteRepositoryRequest & WithRepositoryName(const Aws::String &value)
Definition: DeleteRepositoryRequest.h:122
Aws::ECR::Model::DeleteRepositoryRequest::GetRegistryId
const Aws::String & GetRegistryId() const
Definition: DeleteRepositoryRequest.h:42
Aws::ECR::Model::DeleteRepositoryRequest::WithRegistryId
DeleteRepositoryRequest & WithRegistryId(const Aws::String &value)
Definition: DeleteRepositoryRequest.h:77
Aws::ECR::Model::DeleteRepositoryRequest::SetRegistryId
void SetRegistryId(const char *value)
Definition: DeleteRepositoryRequest.h:70
Aws::ECR::Model::DeleteRepositoryRequest::SetRepositoryName
void SetRepositoryName(const Aws::String &value)
Definition: DeleteRepositoryRequest.h:107
Aws::ECR::ECRRequest
Definition: ECRRequest.h:17
Aws::ECR::Model::DeleteRepositoryRequest::GetForce
bool GetForce() const
Definition: DeleteRepositoryRequest.h:138