AWS SDK for C++  1.9.108
AWS SDK for C++
PutRegistryPolicyResult.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ecr/ECR_EXPORTS.h>
9 #include <utility>
10 
11 namespace Aws
12 {
13 template<typename RESULT_TYPE>
14 class AmazonWebServiceResult;
15 
16 namespace Utils
17 {
18 namespace Json
19 {
20  class JsonValue;
21 } // namespace Json
22 } // namespace Utils
23 namespace ECR
24 {
25 namespace Model
26 {
28  {
29  public:
33 
34 
38  inline const Aws::String& GetRegistryId() const{ return m_registryId; }
39 
43  inline void SetRegistryId(const Aws::String& value) { m_registryId = value; }
44 
48  inline void SetRegistryId(Aws::String&& value) { m_registryId = std::move(value); }
49 
53  inline void SetRegistryId(const char* value) { m_registryId.assign(value); }
54 
58  inline PutRegistryPolicyResult& WithRegistryId(const Aws::String& value) { SetRegistryId(value); return *this;}
59 
63  inline PutRegistryPolicyResult& WithRegistryId(Aws::String&& value) { SetRegistryId(std::move(value)); return *this;}
64 
68  inline PutRegistryPolicyResult& WithRegistryId(const char* value) { SetRegistryId(value); return *this;}
69 
70 
74  inline const Aws::String& GetPolicyText() const{ return m_policyText; }
75 
79  inline void SetPolicyText(const Aws::String& value) { m_policyText = value; }
80 
84  inline void SetPolicyText(Aws::String&& value) { m_policyText = std::move(value); }
85 
89  inline void SetPolicyText(const char* value) { m_policyText.assign(value); }
90 
94  inline PutRegistryPolicyResult& WithPolicyText(const Aws::String& value) { SetPolicyText(value); return *this;}
95 
99  inline PutRegistryPolicyResult& WithPolicyText(Aws::String&& value) { SetPolicyText(std::move(value)); return *this;}
100 
104  inline PutRegistryPolicyResult& WithPolicyText(const char* value) { SetPolicyText(value); return *this;}
105 
106  private:
107 
108  Aws::String m_registryId;
109 
110  Aws::String m_policyText;
111  };
112 
113 } // namespace Model
114 } // namespace ECR
115 } // namespace Aws
Aws::ECR::Model::PutRegistryPolicyResult::WithPolicyText
PutRegistryPolicyResult & WithPolicyText(const Aws::String &value)
Definition: PutRegistryPolicyResult.h:94
Aws::ECR::Model::PutRegistryPolicyResult::GetPolicyText
const Aws::String & GetPolicyText() const
Definition: PutRegistryPolicyResult.h:74
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
Aws::ECR::Model::PutRegistryPolicyResult::SetPolicyText
void SetPolicyText(const Aws::String &value)
Definition: PutRegistryPolicyResult.h:79
Aws::ECR::Model::PutRegistryPolicyResult::PutRegistryPolicyResult
PutRegistryPolicyResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::ECR::Model::PutRegistryPolicyResult::SetRegistryId
void SetRegistryId(Aws::String &&value)
Definition: PutRegistryPolicyResult.h:48
Aws::ECR::Model::PutRegistryPolicyResult::WithRegistryId
PutRegistryPolicyResult & WithRegistryId(Aws::String &&value)
Definition: PutRegistryPolicyResult.h:63
Aws::imagebuilder::Model::ContainerRepositoryService::NOT_SET
@ NOT_SET
Aws::ECR::Model::PutRegistryPolicyResult
Definition: PutRegistryPolicyResult.h:28
Aws::ECR::Model::PutRegistryPolicyResult::WithPolicyText
PutRegistryPolicyResult & WithPolicyText(const char *value)
Definition: PutRegistryPolicyResult.h:104
ECR_EXPORTS.h
Aws::ECR::Model::PutRegistryPolicyResult::GetRegistryId
const Aws::String & GetRegistryId() const
Definition: PutRegistryPolicyResult.h:38
AWSString.h
AWS_ECR_API
#define AWS_ECR_API
Definition: ECR_EXPORTS.h:28
Aws::ECR::Model::PutRegistryPolicyResult::SetPolicyText
void SetPolicyText(const char *value)
Definition: PutRegistryPolicyResult.h:89
Aws::ECR::Model::PutRegistryPolicyResult::WithPolicyText
PutRegistryPolicyResult & WithPolicyText(Aws::String &&value)
Definition: PutRegistryPolicyResult.h:99
Aws::ECR::Model::PutRegistryPolicyResult::operator=
PutRegistryPolicyResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::ECR::Model::PutRegistryPolicyResult::WithRegistryId
PutRegistryPolicyResult & WithRegistryId(const char *value)
Definition: PutRegistryPolicyResult.h:68
Aws::ECR::Model::PutRegistryPolicyResult::SetRegistryId
void SetRegistryId(const Aws::String &value)
Definition: PutRegistryPolicyResult.h:43
Aws
Definition: AccessManagementClient.h:15
Aws::ECR::Model::PutRegistryPolicyResult::WithRegistryId
PutRegistryPolicyResult & WithRegistryId(const Aws::String &value)
Definition: PutRegistryPolicyResult.h:58
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::ECR::Model::PutRegistryPolicyResult::SetPolicyText
void SetPolicyText(Aws::String &&value)
Definition: PutRegistryPolicyResult.h:84
Aws::ECR::Model::PutRegistryPolicyResult::PutRegistryPolicyResult
PutRegistryPolicyResult()
Aws::ECR::Model::PutRegistryPolicyResult::SetRegistryId
void SetRegistryId(const char *value)
Definition: PutRegistryPolicyResult.h:53