AWS SDK for C++  1.9.131
AWS SDK for C++
ValidateResourcePolicyRequest.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 "ValidateResourcePolicy"; }
31 
32  Aws::String SerializePayload() const override;
33 
35 
36 
43  inline const Aws::String& GetSecretId() const{ return m_secretId; }
44 
51  inline bool SecretIdHasBeenSet() const { return m_secretIdHasBeenSet; }
52 
59  inline void SetSecretId(const Aws::String& value) { m_secretIdHasBeenSet = true; m_secretId = value; }
60 
67  inline void SetSecretId(Aws::String&& value) { m_secretIdHasBeenSet = true; m_secretId = std::move(value); }
68 
75  inline void SetSecretId(const char* value) { m_secretIdHasBeenSet = true; m_secretId.assign(value); }
76 
83  inline ValidateResourcePolicyRequest& WithSecretId(const Aws::String& value) { SetSecretId(value); return *this;}
84 
91  inline ValidateResourcePolicyRequest& WithSecretId(Aws::String&& value) { SetSecretId(std::move(value)); return *this;}
92 
99  inline ValidateResourcePolicyRequest& WithSecretId(const char* value) { SetSecretId(value); return *this;}
100 
101 
111  inline const Aws::String& GetResourcePolicy() const{ return m_resourcePolicy; }
112 
122  inline bool ResourcePolicyHasBeenSet() const { return m_resourcePolicyHasBeenSet; }
123 
133  inline void SetResourcePolicy(const Aws::String& value) { m_resourcePolicyHasBeenSet = true; m_resourcePolicy = value; }
134 
144  inline void SetResourcePolicy(Aws::String&& value) { m_resourcePolicyHasBeenSet = true; m_resourcePolicy = std::move(value); }
145 
155  inline void SetResourcePolicy(const char* value) { m_resourcePolicyHasBeenSet = true; m_resourcePolicy.assign(value); }
156 
166  inline ValidateResourcePolicyRequest& WithResourcePolicy(const Aws::String& value) { SetResourcePolicy(value); return *this;}
167 
177  inline ValidateResourcePolicyRequest& WithResourcePolicy(Aws::String&& value) { SetResourcePolicy(std::move(value)); return *this;}
178 
188  inline ValidateResourcePolicyRequest& WithResourcePolicy(const char* value) { SetResourcePolicy(value); return *this;}
189 
190  private:
191 
192  Aws::String m_secretId;
193  bool m_secretIdHasBeenSet;
194 
195  Aws::String m_resourcePolicy;
196  bool m_resourcePolicyHasBeenSet;
197  };
198 
199 } // namespace Model
200 } // namespace SecretsManager
201 } // namespace Aws
Aws::SecretsManager::Model::ValidateResourcePolicyRequest::WithSecretId
ValidateResourcePolicyRequest & WithSecretId(Aws::String &&value)
Definition: ValidateResourcePolicyRequest.h:91
Aws::SecretsManager::Model::ValidateResourcePolicyRequest::GetSecretId
const Aws::String & GetSecretId() const
Definition: ValidateResourcePolicyRequest.h:43
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::SecretsManager::Model::ValidateResourcePolicyRequest::GetResourcePolicy
const Aws::String & GetResourcePolicy() const
Definition: ValidateResourcePolicyRequest.h:111
Aws::SecretsManager::Model::ValidateResourcePolicyRequest::SetSecretId
void SetSecretId(Aws::String &&value)
Definition: ValidateResourcePolicyRequest.h:67
Aws::SecretsManager::Model::ValidateResourcePolicyRequest::WithResourcePolicy
ValidateResourcePolicyRequest & WithResourcePolicy(const char *value)
Definition: ValidateResourcePolicyRequest.h:188
Aws::SecretsManager::Model::ValidateResourcePolicyRequest::ResourcePolicyHasBeenSet
bool ResourcePolicyHasBeenSet() const
Definition: ValidateResourcePolicyRequest.h:122
Aws::SecretsManager::Model::ValidateResourcePolicyRequest::SecretIdHasBeenSet
bool SecretIdHasBeenSet() const
Definition: ValidateResourcePolicyRequest.h:51
Aws::SecretsManager::Model::ValidateResourcePolicyRequest::SetSecretId
void SetSecretId(const Aws::String &value)
Definition: ValidateResourcePolicyRequest.h:59
Aws::SecretsManager::Model::ValidateResourcePolicyRequest::WithResourcePolicy
ValidateResourcePolicyRequest & WithResourcePolicy(Aws::String &&value)
Definition: ValidateResourcePolicyRequest.h:177
Aws::SecretsManager::Model::ValidateResourcePolicyRequest::WithSecretId
ValidateResourcePolicyRequest & WithSecretId(const char *value)
Definition: ValidateResourcePolicyRequest.h:99
Aws::SecretsManager::Model::ValidateResourcePolicyRequest::SetResourcePolicy
void SetResourcePolicy(const char *value)
Definition: ValidateResourcePolicyRequest.h:155
Aws::SecretsManager::Model::ValidateResourcePolicyRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: ValidateResourcePolicyRequest.h:30
Aws::SecretsManager::Model::ValidateResourcePolicyRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWSString.h
Aws::SecretsManager::Model::ValidateResourcePolicyRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::SecretsManager::Model::ValidateResourcePolicyRequest::SetResourcePolicy
void SetResourcePolicy(Aws::String &&value)
Definition: ValidateResourcePolicyRequest.h:144
AWS_SECRETSMANAGER_API
#define AWS_SECRETSMANAGER_API
Definition: SecretsManager_EXPORTS.h:28
Aws::SecretsManager::Model::ValidateResourcePolicyRequest::SetResourcePolicy
void SetResourcePolicy(const Aws::String &value)
Definition: ValidateResourcePolicyRequest.h:133
Aws::SecretsManager::SecretsManagerRequest
Definition: SecretsManagerRequest.h:17
Aws::SecretsManager::Model::ValidateResourcePolicyRequest::WithResourcePolicy
ValidateResourcePolicyRequest & WithResourcePolicy(const Aws::String &value)
Definition: ValidateResourcePolicyRequest.h:166
Aws::SecretsManager::Model::ValidateResourcePolicyRequest::SetSecretId
void SetSecretId(const char *value)
Definition: ValidateResourcePolicyRequest.h:75
Aws
Definition: AccessManagementClient.h:15
SecretsManagerRequest.h
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::SecretsManager::Model::ValidateResourcePolicyRequest::WithSecretId
ValidateResourcePolicyRequest & WithSecretId(const Aws::String &value)
Definition: ValidateResourcePolicyRequest.h:83
Aws::SecretsManager::Model::ValidateResourcePolicyRequest
Definition: ValidateResourcePolicyRequest.h:22
Aws::SecretsManager::Model::ValidateResourcePolicyRequest::ValidateResourcePolicyRequest
ValidateResourcePolicyRequest()
SecretsManager_EXPORTS.h