AWS SDK for C++  1.9.123
AWS SDK for C++
DeleteResourcePolicyRequest.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 "DeleteResourcePolicy"; }
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 DeleteResourcePolicyRequest& WithSecretId(const Aws::String& value) { SetSecretId(value); return *this;}
84 
91  inline DeleteResourcePolicyRequest& WithSecretId(Aws::String&& value) { SetSecretId(std::move(value)); return *this;}
92 
99  inline DeleteResourcePolicyRequest& WithSecretId(const char* value) { SetSecretId(value); return *this;}
100 
101  private:
102 
103  Aws::String m_secretId;
104  bool m_secretIdHasBeenSet;
105  };
106 
107 } // namespace Model
108 } // namespace SecretsManager
109 } // namespace Aws
Aws::SecretsManager::Model::DeleteResourcePolicyRequest::GetSecretId
const Aws::String & GetSecretId() const
Definition: DeleteResourcePolicyRequest.h:43
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::SecretsManager::Model::DeleteResourcePolicyRequest::SetSecretId
void SetSecretId(const Aws::String &value)
Definition: DeleteResourcePolicyRequest.h:59
Aws::SecretsManager::Model::DeleteResourcePolicyRequest::SecretIdHasBeenSet
bool SecretIdHasBeenSet() const
Definition: DeleteResourcePolicyRequest.h:51
Aws::SecretsManager::Model::DeleteResourcePolicyRequest::DeleteResourcePolicyRequest
DeleteResourcePolicyRequest()
Aws::SecretsManager::Model::DeleteResourcePolicyRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::SecretsManager::Model::DeleteResourcePolicyRequest::WithSecretId
DeleteResourcePolicyRequest & WithSecretId(const char *value)
Definition: DeleteResourcePolicyRequest.h:99
AWSString.h
Aws::SecretsManager::Model::DeleteResourcePolicyRequest::SerializePayload
Aws::String SerializePayload() const override
AWS_SECRETSMANAGER_API
#define AWS_SECRETSMANAGER_API
Definition: SecretsManager_EXPORTS.h:28
Aws::SecretsManager::Model::DeleteResourcePolicyRequest::WithSecretId
DeleteResourcePolicyRequest & WithSecretId(const Aws::String &value)
Definition: DeleteResourcePolicyRequest.h:83
Aws::SecretsManager::SecretsManagerRequest
Definition: SecretsManagerRequest.h:17
Aws::SecretsManager::Model::DeleteResourcePolicyRequest::SetSecretId
void SetSecretId(const char *value)
Definition: DeleteResourcePolicyRequest.h:75
Aws::SecretsManager::Model::DeleteResourcePolicyRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: DeleteResourcePolicyRequest.h:30
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::DeleteResourcePolicyRequest
Definition: DeleteResourcePolicyRequest.h:22
Aws::SecretsManager::Model::DeleteResourcePolicyRequest::SetSecretId
void SetSecretId(Aws::String &&value)
Definition: DeleteResourcePolicyRequest.h:67
Aws::SecretsManager::Model::DeleteResourcePolicyRequest::WithSecretId
DeleteResourcePolicyRequest & WithSecretId(Aws::String &&value)
Definition: DeleteResourcePolicyRequest.h:91
SecretsManager_EXPORTS.h