AWS SDK for C++  1.9.66
AWS SDK for C++
GetLifecyclePolicyRequest.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 "GetLifecyclePolicy"; }
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 GetLifecyclePolicyRequest& WithRegistryId(const Aws::String& value) { SetRegistryId(value); return *this;}
72 
77  inline GetLifecyclePolicyRequest& WithRegistryId(Aws::String&& value) { SetRegistryId(std::move(value)); return *this;}
78 
83  inline GetLifecyclePolicyRequest& 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 GetLifecyclePolicyRequest& WithRepositoryName(const Aws::String& value) { SetRepositoryName(value); return *this;}
115 
119  inline GetLifecyclePolicyRequest& WithRepositoryName(Aws::String&& value) { SetRepositoryName(std::move(value)); return *this;}
120 
124  inline GetLifecyclePolicyRequest& WithRepositoryName(const char* value) { SetRepositoryName(value); return *this;}
125 
126  private:
127 
128  Aws::String m_registryId;
129  bool m_registryIdHasBeenSet;
130 
131  Aws::String m_repositoryName;
132  bool m_repositoryNameHasBeenSet;
133  };
134 
135 } // namespace Model
136 } // namespace ECR
137 } // namespace Aws
Aws::ECR::Model::GetLifecyclePolicyRequest::RegistryIdHasBeenSet
bool RegistryIdHasBeenSet() const
Definition: GetLifecyclePolicyRequest.h:47
Aws::ECR::Model::GetLifecyclePolicyRequest::SetRegistryId
void SetRegistryId(Aws::String &&value)
Definition: GetLifecyclePolicyRequest.h:59
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::ECR::Model::GetLifecyclePolicyRequest::SetRegistryId
void SetRegistryId(const Aws::String &value)
Definition: GetLifecyclePolicyRequest.h:53
Aws::ECR::Model::GetLifecyclePolicyRequest
Definition: GetLifecyclePolicyRequest.h:22
Aws::ECR::Model::GetLifecyclePolicyRequest::GetRepositoryName
const Aws::String & GetRepositoryName() const
Definition: GetLifecyclePolicyRequest.h:89
Aws::ECR::Model::GetLifecyclePolicyRequest::SetRepositoryName
void SetRepositoryName(const Aws::String &value)
Definition: GetLifecyclePolicyRequest.h:99
Aws::ECR::Model::GetLifecyclePolicyRequest::WithRepositoryName
GetLifecyclePolicyRequest & WithRepositoryName(Aws::String &&value)
Definition: GetLifecyclePolicyRequest.h:119
Aws::ECR::Model::GetLifecyclePolicyRequest::GetRegistryId
const Aws::String & GetRegistryId() const
Definition: GetLifecyclePolicyRequest.h:41
Aws::ECR::Model::GetLifecyclePolicyRequest::WithRegistryId
GetLifecyclePolicyRequest & WithRegistryId(const char *value)
Definition: GetLifecyclePolicyRequest.h:83
Aws::ECR::Model::GetLifecyclePolicyRequest::WithRegistryId
GetLifecyclePolicyRequest & WithRegistryId(Aws::String &&value)
Definition: GetLifecyclePolicyRequest.h:77
Aws::ECR::Model::GetLifecyclePolicyRequest::SetRepositoryName
void SetRepositoryName(const char *value)
Definition: GetLifecyclePolicyRequest.h:109
Aws::ECR::Model::GetLifecyclePolicyRequest::WithRepositoryName
GetLifecyclePolicyRequest & WithRepositoryName(const Aws::String &value)
Definition: GetLifecyclePolicyRequest.h:114
Aws::imagebuilder::Model::ContainerRepositoryService::NOT_SET
@ NOT_SET
Aws::ECR::Model::GetLifecyclePolicyRequest::WithRegistryId
GetLifecyclePolicyRequest & WithRegistryId(const Aws::String &value)
Definition: GetLifecyclePolicyRequest.h:71
ECR_EXPORTS.h
Aws::ECR::Model::GetLifecyclePolicyRequest::GetLifecyclePolicyRequest
GetLifecyclePolicyRequest()
AWSString.h
Aws::ECR::Model::GetLifecyclePolicyRequest::SetRegistryId
void SetRegistryId(const char *value)
Definition: GetLifecyclePolicyRequest.h:65
AWS_ECR_API
#define AWS_ECR_API
Definition: ECR_EXPORTS.h:28
ECRRequest.h
Aws::ECR::Model::GetLifecyclePolicyRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::ECR::Model::GetLifecyclePolicyRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws
Definition: AccessManagementClient.h:15
Aws::ECR::Model::GetLifecyclePolicyRequest::RepositoryNameHasBeenSet
bool RepositoryNameHasBeenSet() const
Definition: GetLifecyclePolicyRequest.h:94
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::ECR::Model::GetLifecyclePolicyRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: GetLifecyclePolicyRequest.h:30
Aws::ECR::Model::GetLifecyclePolicyRequest::WithRepositoryName
GetLifecyclePolicyRequest & WithRepositoryName(const char *value)
Definition: GetLifecyclePolicyRequest.h:124
Aws::ECR::ECRRequest
Definition: ECRRequest.h:17
Aws::ECR::Model::GetLifecyclePolicyRequest::SetRepositoryName
void SetRepositoryName(Aws::String &&value)
Definition: GetLifecyclePolicyRequest.h:104