AWS SDK for C++  1.9.153
AWS SDK for C++
DeleteLifecyclePolicyRequest.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 "DeleteLifecyclePolicy"; }
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 DeleteLifecyclePolicyRequest& WithRegistryId(const Aws::String& value) { SetRegistryId(value); return *this;}
78 
84  inline DeleteLifecyclePolicyRequest& WithRegistryId(Aws::String&& value) { SetRegistryId(std::move(value)); return *this;}
85 
91  inline DeleteLifecyclePolicyRequest& 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 DeleteLifecyclePolicyRequest& WithRepositoryName(const Aws::String& value) { SetRepositoryName(value); return *this;}
123 
127  inline DeleteLifecyclePolicyRequest& WithRepositoryName(Aws::String&& value) { SetRepositoryName(std::move(value)); return *this;}
128 
132  inline DeleteLifecyclePolicyRequest& WithRepositoryName(const char* value) { SetRepositoryName(value); return *this;}
133 
134  private:
135 
136  Aws::String m_registryId;
137  bool m_registryIdHasBeenSet;
138 
139  Aws::String m_repositoryName;
140  bool m_repositoryNameHasBeenSet;
141  };
142 
143 } // namespace Model
144 } // namespace ECR
145 } // namespace Aws
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::ECR::Model::DeleteLifecyclePolicyRequest
Definition: DeleteLifecyclePolicyRequest.h:22
Aws::ECR::Model::DeleteLifecyclePolicyRequest::WithRepositoryName
DeleteLifecyclePolicyRequest & WithRepositoryName(const char *value)
Definition: DeleteLifecyclePolicyRequest.h:132
Aws::ECR::Model::DeleteLifecyclePolicyRequest::GetRepositoryName
const Aws::String & GetRepositoryName() const
Definition: DeleteLifecyclePolicyRequest.h:97
Aws::ECR::Model::DeleteLifecyclePolicyRequest::WithRepositoryName
DeleteLifecyclePolicyRequest & WithRepositoryName(Aws::String &&value)
Definition: DeleteLifecyclePolicyRequest.h:127
Aws::ECR::Model::DeleteLifecyclePolicyRequest::SetRegistryId
void SetRegistryId(const char *value)
Definition: DeleteLifecyclePolicyRequest.h:70
Aws::ECR::Model::DeleteLifecyclePolicyRequest::RegistryIdHasBeenSet
bool RegistryIdHasBeenSet() const
Definition: DeleteLifecyclePolicyRequest.h:49
Aws::ECR::Model::DeleteLifecyclePolicyRequest::WithRegistryId
DeleteLifecyclePolicyRequest & WithRegistryId(Aws::String &&value)
Definition: DeleteLifecyclePolicyRequest.h:84
Aws::ECR::Model::DeleteLifecyclePolicyRequest::DeleteLifecyclePolicyRequest
DeleteLifecyclePolicyRequest()
Aws::imagebuilder::Model::ContainerRepositoryService::NOT_SET
@ NOT_SET
ECR_EXPORTS.h
Aws::ECR::Model::DeleteLifecyclePolicyRequest::SetRepositoryName
void SetRepositoryName(Aws::String &&value)
Definition: DeleteLifecyclePolicyRequest.h:112
Aws::ECR::Model::DeleteLifecyclePolicyRequest::GetRegistryId
const Aws::String & GetRegistryId() const
Definition: DeleteLifecyclePolicyRequest.h:42
Aws::ECR::Model::DeleteLifecyclePolicyRequest::SetRegistryId
void SetRegistryId(const Aws::String &value)
Definition: DeleteLifecyclePolicyRequest.h:56
Aws::ECR::Model::DeleteLifecyclePolicyRequest::SetRepositoryName
void SetRepositoryName(const char *value)
Definition: DeleteLifecyclePolicyRequest.h:117
AWSString.h
AWS_ECR_API
#define AWS_ECR_API
Definition: ECR_EXPORTS.h:28
ECRRequest.h
Aws::ECR::Model::DeleteLifecyclePolicyRequest::WithRegistryId
DeleteLifecyclePolicyRequest & WithRegistryId(const Aws::String &value)
Definition: DeleteLifecyclePolicyRequest.h:77
Aws::ECR::Model::DeleteLifecyclePolicyRequest::RepositoryNameHasBeenSet
bool RepositoryNameHasBeenSet() const
Definition: DeleteLifecyclePolicyRequest.h:102
Aws::ECR::Model::DeleteLifecyclePolicyRequest::SetRegistryId
void SetRegistryId(Aws::String &&value)
Definition: DeleteLifecyclePolicyRequest.h:63
Aws::ECR::Model::DeleteLifecyclePolicyRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws
Definition: AccessManagementClient.h:15
Aws::ECR::Model::DeleteLifecyclePolicyRequest::SetRepositoryName
void SetRepositoryName(const Aws::String &value)
Definition: DeleteLifecyclePolicyRequest.h:107
Aws::ECR::Model::DeleteLifecyclePolicyRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: DeleteLifecyclePolicyRequest.h:30
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::ECR::Model::DeleteLifecyclePolicyRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::ECR::Model::DeleteLifecyclePolicyRequest::WithRepositoryName
DeleteLifecyclePolicyRequest & WithRepositoryName(const Aws::String &value)
Definition: DeleteLifecyclePolicyRequest.h:122
Aws::ECR::Model::DeleteLifecyclePolicyRequest::WithRegistryId
DeleteLifecyclePolicyRequest & WithRegistryId(const char *value)
Definition: DeleteLifecyclePolicyRequest.h:91
Aws::ECR::ECRRequest
Definition: ECRRequest.h:17