AWS SDK for C++  1.9.131
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 SecretsManager
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 "PutResourcePolicy"; }
31 
32  Aws::String SerializePayload() const override;
33 
35 
36 
42  inline const Aws::String& GetSecretId() const{ return m_secretId; }
43 
49  inline bool SecretIdHasBeenSet() const { return m_secretIdHasBeenSet; }
50 
56  inline void SetSecretId(const Aws::String& value) { m_secretIdHasBeenSet = true; m_secretId = value; }
57 
63  inline void SetSecretId(Aws::String&& value) { m_secretIdHasBeenSet = true; m_secretId = std::move(value); }
64 
70  inline void SetSecretId(const char* value) { m_secretIdHasBeenSet = true; m_secretId.assign(value); }
71 
77  inline PutResourcePolicyRequest& WithSecretId(const Aws::String& value) { SetSecretId(value); return *this;}
78 
84  inline PutResourcePolicyRequest& WithSecretId(Aws::String&& value) { SetSecretId(std::move(value)); return *this;}
85 
91  inline PutResourcePolicyRequest& WithSecretId(const char* value) { SetSecretId(value); return *this;}
92 
93 
103  inline const Aws::String& GetResourcePolicy() const{ return m_resourcePolicy; }
104 
114  inline bool ResourcePolicyHasBeenSet() const { return m_resourcePolicyHasBeenSet; }
115 
125  inline void SetResourcePolicy(const Aws::String& value) { m_resourcePolicyHasBeenSet = true; m_resourcePolicy = value; }
126 
136  inline void SetResourcePolicy(Aws::String&& value) { m_resourcePolicyHasBeenSet = true; m_resourcePolicy = std::move(value); }
137 
147  inline void SetResourcePolicy(const char* value) { m_resourcePolicyHasBeenSet = true; m_resourcePolicy.assign(value); }
148 
158  inline PutResourcePolicyRequest& WithResourcePolicy(const Aws::String& value) { SetResourcePolicy(value); return *this;}
159 
169  inline PutResourcePolicyRequest& WithResourcePolicy(Aws::String&& value) { SetResourcePolicy(std::move(value)); return *this;}
170 
180  inline PutResourcePolicyRequest& WithResourcePolicy(const char* value) { SetResourcePolicy(value); return *this;}
181 
182 
188  inline bool GetBlockPublicPolicy() const{ return m_blockPublicPolicy; }
189 
195  inline bool BlockPublicPolicyHasBeenSet() const { return m_blockPublicPolicyHasBeenSet; }
196 
202  inline void SetBlockPublicPolicy(bool value) { m_blockPublicPolicyHasBeenSet = true; m_blockPublicPolicy = value; }
203 
209  inline PutResourcePolicyRequest& WithBlockPublicPolicy(bool value) { SetBlockPublicPolicy(value); return *this;}
210 
211  private:
212 
213  Aws::String m_secretId;
214  bool m_secretIdHasBeenSet;
215 
216  Aws::String m_resourcePolicy;
217  bool m_resourcePolicyHasBeenSet;
218 
219  bool m_blockPublicPolicy;
220  bool m_blockPublicPolicyHasBeenSet;
221  };
222 
223 } // namespace Model
224 } // namespace SecretsManager
225 } // namespace Aws
Aws::SecretsManager::Model::PutResourcePolicyRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: PutResourcePolicyRequest.h:30
Aws::SecretsManager::Model::PutResourcePolicyRequest::GetResourcePolicy
const Aws::String & GetResourcePolicy() const
Definition: PutResourcePolicyRequest.h:103
Aws::SecretsManager::Model::PutResourcePolicyRequest::SecretIdHasBeenSet
bool SecretIdHasBeenSet() const
Definition: PutResourcePolicyRequest.h:49
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::SecretsManager::Model::PutResourcePolicyRequest::GetBlockPublicPolicy
bool GetBlockPublicPolicy() const
Definition: PutResourcePolicyRequest.h:188
Aws::SecretsManager::Model::PutResourcePolicyRequest::WithSecretId
PutResourcePolicyRequest & WithSecretId(const Aws::String &value)
Definition: PutResourcePolicyRequest.h:77
Aws::SecretsManager::Model::PutResourcePolicyRequest
Definition: PutResourcePolicyRequest.h:22
Aws::SecretsManager::Model::PutResourcePolicyRequest::SetResourcePolicy
void SetResourcePolicy(const char *value)
Definition: PutResourcePolicyRequest.h:147
Aws::SecretsManager::Model::PutResourcePolicyRequest::SetResourcePolicy
void SetResourcePolicy(Aws::String &&value)
Definition: PutResourcePolicyRequest.h:136
Aws::SecretsManager::Model::PutResourcePolicyRequest::SetResourcePolicy
void SetResourcePolicy(const Aws::String &value)
Definition: PutResourcePolicyRequest.h:125
Aws::SecretsManager::Model::PutResourcePolicyRequest::WithBlockPublicPolicy
PutResourcePolicyRequest & WithBlockPublicPolicy(bool value)
Definition: PutResourcePolicyRequest.h:209
Aws::SecretsManager::Model::PutResourcePolicyRequest::WithResourcePolicy
PutResourcePolicyRequest & WithResourcePolicy(const Aws::String &value)
Definition: PutResourcePolicyRequest.h:158
Aws::SecretsManager::Model::PutResourcePolicyRequest::SetSecretId
void SetSecretId(Aws::String &&value)
Definition: PutResourcePolicyRequest.h:63
Aws::SecretsManager::Model::PutResourcePolicyRequest::SerializePayload
Aws::String SerializePayload() const override
AWSString.h
Aws::SecretsManager::Model::PutResourcePolicyRequest::SetSecretId
void SetSecretId(const char *value)
Definition: PutResourcePolicyRequest.h:70
Aws::SecretsManager::Model::PutResourcePolicyRequest::WithSecretId
PutResourcePolicyRequest & WithSecretId(Aws::String &&value)
Definition: PutResourcePolicyRequest.h:84
Aws::SecretsManager::Model::PutResourcePolicyRequest::SetBlockPublicPolicy
void SetBlockPublicPolicy(bool value)
Definition: PutResourcePolicyRequest.h:202
AWS_SECRETSMANAGER_API
#define AWS_SECRETSMANAGER_API
Definition: SecretsManager_EXPORTS.h:28
Aws::SecretsManager::Model::PutResourcePolicyRequest::ResourcePolicyHasBeenSet
bool ResourcePolicyHasBeenSet() const
Definition: PutResourcePolicyRequest.h:114
Aws::SecretsManager::SecretsManagerRequest
Definition: SecretsManagerRequest.h:17
Aws::SecretsManager::Model::PutResourcePolicyRequest::WithResourcePolicy
PutResourcePolicyRequest & WithResourcePolicy(const char *value)
Definition: PutResourcePolicyRequest.h:180
Aws
Definition: AccessManagementClient.h:15
SecretsManagerRequest.h
Aws::SecretsManager::Model::PutResourcePolicyRequest::SetSecretId
void SetSecretId(const Aws::String &value)
Definition: PutResourcePolicyRequest.h:56
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::SecretsManager::Model::PutResourcePolicyRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::SecretsManager::Model::PutResourcePolicyRequest::WithSecretId
PutResourcePolicyRequest & WithSecretId(const char *value)
Definition: PutResourcePolicyRequest.h:91
Aws::SecretsManager::Model::PutResourcePolicyRequest::BlockPublicPolicyHasBeenSet
bool BlockPublicPolicyHasBeenSet() const
Definition: PutResourcePolicyRequest.h:195
Aws::SecretsManager::Model::PutResourcePolicyRequest::GetSecretId
const Aws::String & GetSecretId() const
Definition: PutResourcePolicyRequest.h:42
SecretsManager_EXPORTS.h
Aws::SecretsManager::Model::PutResourcePolicyRequest::WithResourcePolicy
PutResourcePolicyRequest & WithResourcePolicy(Aws::String &&value)
Definition: PutResourcePolicyRequest.h:169
Aws::SecretsManager::Model::PutResourcePolicyRequest::PutResourcePolicyRequest
PutResourcePolicyRequest()