AWS SDK for C++  1.8.127
AWS SDK for C++
PutResourcePolicyRequest.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Http
15 {
16  class URI;
17 } //namespace Http
18 namespace Schemas
19 {
20 namespace Model
21 {
22 
29  {
30  public:
32 
33  // Service request name is the Operation name which will send this request out,
34  // each operation should has unique request name, so that we can get operation's name from this request.
35  // Note: this is not true for response, multiple operations may have the same response name,
36  // so we can not get operation's name from response.
37  inline virtual const char* GetServiceRequestName() const override { return "PutResourcePolicy"; }
38 
39  Aws::String SerializePayload() const override;
40 
41  void AddQueryStringParameters(Aws::Http::URI& uri) const override;
42 
43 
47  inline const Aws::String& GetPolicy() const{ return m_policy; }
48 
52  inline bool PolicyHasBeenSet() const { return m_policyHasBeenSet; }
53 
57  inline void SetPolicy(const Aws::String& value) { m_policyHasBeenSet = true; m_policy = value; }
58 
62  inline void SetPolicy(Aws::String&& value) { m_policyHasBeenSet = true; m_policy = std::move(value); }
63 
67  inline void SetPolicy(const char* value) { m_policyHasBeenSet = true; m_policy.assign(value); }
68 
72  inline PutResourcePolicyRequest& WithPolicy(const Aws::String& value) { SetPolicy(value); return *this;}
73 
77  inline PutResourcePolicyRequest& WithPolicy(Aws::String&& value) { SetPolicy(std::move(value)); return *this;}
78 
82  inline PutResourcePolicyRequest& WithPolicy(const char* value) { SetPolicy(value); return *this;}
83 
84 
88  inline const Aws::String& GetRegistryName() const{ return m_registryName; }
89 
93  inline bool RegistryNameHasBeenSet() const { return m_registryNameHasBeenSet; }
94 
98  inline void SetRegistryName(const Aws::String& value) { m_registryNameHasBeenSet = true; m_registryName = value; }
99 
103  inline void SetRegistryName(Aws::String&& value) { m_registryNameHasBeenSet = true; m_registryName = std::move(value); }
104 
108  inline void SetRegistryName(const char* value) { m_registryNameHasBeenSet = true; m_registryName.assign(value); }
109 
113  inline PutResourcePolicyRequest& WithRegistryName(const Aws::String& value) { SetRegistryName(value); return *this;}
114 
118  inline PutResourcePolicyRequest& WithRegistryName(Aws::String&& value) { SetRegistryName(std::move(value)); return *this;}
119 
123  inline PutResourcePolicyRequest& WithRegistryName(const char* value) { SetRegistryName(value); return *this;}
124 
125 
129  inline const Aws::String& GetRevisionId() const{ return m_revisionId; }
130 
134  inline bool RevisionIdHasBeenSet() const { return m_revisionIdHasBeenSet; }
135 
139  inline void SetRevisionId(const Aws::String& value) { m_revisionIdHasBeenSet = true; m_revisionId = value; }
140 
144  inline void SetRevisionId(Aws::String&& value) { m_revisionIdHasBeenSet = true; m_revisionId = std::move(value); }
145 
149  inline void SetRevisionId(const char* value) { m_revisionIdHasBeenSet = true; m_revisionId.assign(value); }
150 
154  inline PutResourcePolicyRequest& WithRevisionId(const Aws::String& value) { SetRevisionId(value); return *this;}
155 
159  inline PutResourcePolicyRequest& WithRevisionId(Aws::String&& value) { SetRevisionId(std::move(value)); return *this;}
160 
164  inline PutResourcePolicyRequest& WithRevisionId(const char* value) { SetRevisionId(value); return *this;}
165 
166  private:
167 
168  Aws::String m_policy;
169  bool m_policyHasBeenSet;
170 
171  Aws::String m_registryName;
172  bool m_registryNameHasBeenSet;
173 
174  Aws::String m_revisionId;
175  bool m_revisionIdHasBeenSet;
176  };
177 
178 } // namespace Model
179 } // namespace Schemas
180 } // namespace Aws
Aws::Http::URI
Definition: URI.h:32
Aws::Schemas::Model::PutResourcePolicyRequest::WithPolicy
PutResourcePolicyRequest & WithPolicy(const Aws::String &value)
Definition: PutResourcePolicyRequest.h:72
Aws::Schemas::Model::PutResourcePolicyRequest::SetRegistryName
void SetRegistryName(const char *value)
Definition: PutResourcePolicyRequest.h:108
Aws::Schemas::Model::PutResourcePolicyRequest::SetPolicy
void SetPolicy(const char *value)
Definition: PutResourcePolicyRequest.h:67
Aws::Schemas::Model::PutResourcePolicyRequest::WithRegistryName
PutResourcePolicyRequest & WithRegistryName(const Aws::String &value)
Definition: PutResourcePolicyRequest.h:113
Aws::Schemas::SchemasRequest
Definition: SchemasRequest.h:17
Aws::Schemas::Model::PutResourcePolicyRequest::WithPolicy
PutResourcePolicyRequest & WithPolicy(const char *value)
Definition: PutResourcePolicyRequest.h:82
SchemasRequest.h
Aws::Schemas::Model::PutResourcePolicyRequest::RevisionIdHasBeenSet
bool RevisionIdHasBeenSet() const
Definition: PutResourcePolicyRequest.h:134
Aws::Schemas::Model::PutResourcePolicyRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::Schemas::Model::PutResourcePolicyRequest
Definition: PutResourcePolicyRequest.h:29
Schemas_EXPORTS.h
Aws::Schemas::Model::PutResourcePolicyRequest::WithRevisionId
PutResourcePolicyRequest & WithRevisionId(const char *value)
Definition: PutResourcePolicyRequest.h:164
Aws::Schemas::Model::PutResourcePolicyRequest::WithRegistryName
PutResourcePolicyRequest & WithRegistryName(const char *value)
Definition: PutResourcePolicyRequest.h:123
Aws::Schemas::Model::PutResourcePolicyRequest::WithRevisionId
PutResourcePolicyRequest & WithRevisionId(Aws::String &&value)
Definition: PutResourcePolicyRequest.h:159
Aws::Schemas::Model::PutResourcePolicyRequest::WithPolicy
PutResourcePolicyRequest & WithPolicy(Aws::String &&value)
Definition: PutResourcePolicyRequest.h:77
AWSString.h
Aws::Schemas::Model::PutResourcePolicyRequest::SetRevisionId
void SetRevisionId(const Aws::String &value)
Definition: PutResourcePolicyRequest.h:139
Aws::Schemas::Model::PutResourcePolicyRequest::SetRevisionId
void SetRevisionId(Aws::String &&value)
Definition: PutResourcePolicyRequest.h:144
Aws::Schemas::Model::PutResourcePolicyRequest::AddQueryStringParameters
void AddQueryStringParameters(Aws::Http::URI &uri) const override
Aws::Schemas::Model::PutResourcePolicyRequest::SetRevisionId
void SetRevisionId(const char *value)
Definition: PutResourcePolicyRequest.h:149
Aws::Schemas::Model::PutResourcePolicyRequest::RegistryNameHasBeenSet
bool RegistryNameHasBeenSet() const
Definition: PutResourcePolicyRequest.h:93
Aws::Schemas::Model::PutResourcePolicyRequest::GetPolicy
const Aws::String & GetPolicy() const
Definition: PutResourcePolicyRequest.h:47
Aws::Schemas::Model::PutResourcePolicyRequest::SetPolicy
void SetPolicy(Aws::String &&value)
Definition: PutResourcePolicyRequest.h:62
Aws::Schemas::Model::PutResourcePolicyRequest::SetPolicy
void SetPolicy(const Aws::String &value)
Definition: PutResourcePolicyRequest.h:57
Aws::Schemas::Model::PutResourcePolicyRequest::PutResourcePolicyRequest
PutResourcePolicyRequest()
Aws
Definition: AccessManagementClient.h:15
Aws::Schemas::Model::PutResourcePolicyRequest::WithRegistryName
PutResourcePolicyRequest & WithRegistryName(Aws::String &&value)
Definition: PutResourcePolicyRequest.h:118
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
AWS_SCHEMAS_API
#define AWS_SCHEMAS_API
Definition: Schemas_EXPORTS.h:28
Aws::Schemas::Model::PutResourcePolicyRequest::GetRegistryName
const Aws::String & GetRegistryName() const
Definition: PutResourcePolicyRequest.h:88
Aws::Schemas::Model::PutResourcePolicyRequest::SetRegistryName
void SetRegistryName(const Aws::String &value)
Definition: PutResourcePolicyRequest.h:98
Aws::Schemas::Model::PutResourcePolicyRequest::SetRegistryName
void SetRegistryName(Aws::String &&value)
Definition: PutResourcePolicyRequest.h:103
Aws::Schemas::Model::PutResourcePolicyRequest::WithRevisionId
PutResourcePolicyRequest & WithRevisionId(const Aws::String &value)
Definition: PutResourcePolicyRequest.h:154
Aws::Schemas::Model::PutResourcePolicyRequest::GetRevisionId
const Aws::String & GetRevisionId() const
Definition: PutResourcePolicyRequest.h:129
Aws::Schemas::Model::PutResourcePolicyRequest::PolicyHasBeenSet
bool PolicyHasBeenSet() const
Definition: PutResourcePolicyRequest.h:52
Aws::Schemas::Model::PutResourcePolicyRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: PutResourcePolicyRequest.h:37