AWS SDK for C++  1.9.40
AWS SDK for C++
RemoveRegionsFromReplicationRequest.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace SecretsManager
16 {
17 namespace Model
18 {
19 
23  {
24  public:
26 
27  // Service request name is the Operation name which will send this request out,
28  // each operation should has unique request name, so that we can get operation's name from this request.
29  // Note: this is not true for response, multiple operations may have the same response name,
30  // so we can not get operation's name from response.
31  inline virtual const char* GetServiceRequestName() const override { return "RemoveRegionsFromReplication"; }
32 
33  Aws::String SerializePayload() const override;
34 
36 
37 
41  inline const Aws::String& GetSecretId() const{ return m_secretId; }
42 
46  inline bool SecretIdHasBeenSet() const { return m_secretIdHasBeenSet; }
47 
51  inline void SetSecretId(const Aws::String& value) { m_secretIdHasBeenSet = true; m_secretId = value; }
52 
56  inline void SetSecretId(Aws::String&& value) { m_secretIdHasBeenSet = true; m_secretId = std::move(value); }
57 
61  inline void SetSecretId(const char* value) { m_secretIdHasBeenSet = true; m_secretId.assign(value); }
62 
66  inline RemoveRegionsFromReplicationRequest& WithSecretId(const Aws::String& value) { SetSecretId(value); return *this;}
67 
71  inline RemoveRegionsFromReplicationRequest& WithSecretId(Aws::String&& value) { SetSecretId(std::move(value)); return *this;}
72 
76  inline RemoveRegionsFromReplicationRequest& WithSecretId(const char* value) { SetSecretId(value); return *this;}
77 
78 
82  inline const Aws::Vector<Aws::String>& GetRemoveReplicaRegions() const{ return m_removeReplicaRegions; }
83 
87  inline bool RemoveReplicaRegionsHasBeenSet() const { return m_removeReplicaRegionsHasBeenSet; }
88 
92  inline void SetRemoveReplicaRegions(const Aws::Vector<Aws::String>& value) { m_removeReplicaRegionsHasBeenSet = true; m_removeReplicaRegions = value; }
93 
97  inline void SetRemoveReplicaRegions(Aws::Vector<Aws::String>&& value) { m_removeReplicaRegionsHasBeenSet = true; m_removeReplicaRegions = std::move(value); }
98 
102  inline RemoveRegionsFromReplicationRequest& WithRemoveReplicaRegions(const Aws::Vector<Aws::String>& value) { SetRemoveReplicaRegions(value); return *this;}
103 
107  inline RemoveRegionsFromReplicationRequest& WithRemoveReplicaRegions(Aws::Vector<Aws::String>&& value) { SetRemoveReplicaRegions(std::move(value)); return *this;}
108 
112  inline RemoveRegionsFromReplicationRequest& AddRemoveReplicaRegions(const Aws::String& value) { m_removeReplicaRegionsHasBeenSet = true; m_removeReplicaRegions.push_back(value); return *this; }
113 
117  inline RemoveRegionsFromReplicationRequest& AddRemoveReplicaRegions(Aws::String&& value) { m_removeReplicaRegionsHasBeenSet = true; m_removeReplicaRegions.push_back(std::move(value)); return *this; }
118 
122  inline RemoveRegionsFromReplicationRequest& AddRemoveReplicaRegions(const char* value) { m_removeReplicaRegionsHasBeenSet = true; m_removeReplicaRegions.push_back(value); return *this; }
123 
124  private:
125 
126  Aws::String m_secretId;
127  bool m_secretIdHasBeenSet;
128 
129  Aws::Vector<Aws::String> m_removeReplicaRegions;
130  bool m_removeReplicaRegionsHasBeenSet;
131  };
132 
133 } // namespace Model
134 } // namespace SecretsManager
135 } // namespace Aws
Aws::SecretsManager::Model::RemoveRegionsFromReplicationRequest::GetSecretId
const Aws::String & GetSecretId() const
Definition: RemoveRegionsFromReplicationRequest.h:41
Aws::SecretsManager::Model::RemoveRegionsFromReplicationRequest::RemoveRegionsFromReplicationRequest
RemoveRegionsFromReplicationRequest()
Aws::SecretsManager::Model::RemoveRegionsFromReplicationRequest::WithRemoveReplicaRegions
RemoveRegionsFromReplicationRequest & WithRemoveReplicaRegions(const Aws::Vector< Aws::String > &value)
Definition: RemoveRegionsFromReplicationRequest.h:102
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::SecretsManager::Model::RemoveRegionsFromReplicationRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: RemoveRegionsFromReplicationRequest.h:31
Aws::SecretsManager::Model::RemoveRegionsFromReplicationRequest::WithRemoveReplicaRegions
RemoveRegionsFromReplicationRequest & WithRemoveReplicaRegions(Aws::Vector< Aws::String > &&value)
Definition: RemoveRegionsFromReplicationRequest.h:107
Aws::SecretsManager::Model::RemoveRegionsFromReplicationRequest::SetSecretId
void SetSecretId(const Aws::String &value)
Definition: RemoveRegionsFromReplicationRequest.h:51
Aws::SecretsManager::Model::RemoveRegionsFromReplicationRequest::SetRemoveReplicaRegions
void SetRemoveReplicaRegions(Aws::Vector< Aws::String > &&value)
Definition: RemoveRegionsFromReplicationRequest.h:97
Aws::SecretsManager::Model::RemoveRegionsFromReplicationRequest::AddRemoveReplicaRegions
RemoveRegionsFromReplicationRequest & AddRemoveReplicaRegions(const char *value)
Definition: RemoveRegionsFromReplicationRequest.h:122
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
AWSVector.h
Aws::SecretsManager::Model::RemoveRegionsFromReplicationRequest
Definition: RemoveRegionsFromReplicationRequest.h:23
Aws::SecretsManager::Model::RemoveRegionsFromReplicationRequest::SecretIdHasBeenSet
bool SecretIdHasBeenSet() const
Definition: RemoveRegionsFromReplicationRequest.h:46
Aws::SecretsManager::Model::RemoveRegionsFromReplicationRequest::GetRemoveReplicaRegions
const Aws::Vector< Aws::String > & GetRemoveReplicaRegions() const
Definition: RemoveRegionsFromReplicationRequest.h:82
Aws::SecretsManager::Model::RemoveRegionsFromReplicationRequest::SetSecretId
void SetSecretId(Aws::String &&value)
Definition: RemoveRegionsFromReplicationRequest.h:56
Aws::SecretsManager::Model::RemoveRegionsFromReplicationRequest::WithSecretId
RemoveRegionsFromReplicationRequest & WithSecretId(const Aws::String &value)
Definition: RemoveRegionsFromReplicationRequest.h:66
Aws::SecretsManager::Model::RemoveRegionsFromReplicationRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::SecretsManager::Model::RemoveRegionsFromReplicationRequest::SetRemoveReplicaRegions
void SetRemoveReplicaRegions(const Aws::Vector< Aws::String > &value)
Definition: RemoveRegionsFromReplicationRequest.h:92
AWSString.h
Aws::SecretsManager::Model::RemoveRegionsFromReplicationRequest::WithSecretId
RemoveRegionsFromReplicationRequest & WithSecretId(const char *value)
Definition: RemoveRegionsFromReplicationRequest.h:76
AWS_SECRETSMANAGER_API
#define AWS_SECRETSMANAGER_API
Definition: SecretsManager_EXPORTS.h:28
Aws::SecretsManager::SecretsManagerRequest
Definition: SecretsManagerRequest.h:17
Aws::SecretsManager::Model::RemoveRegionsFromReplicationRequest::AddRemoveReplicaRegions
RemoveRegionsFromReplicationRequest & AddRemoveReplicaRegions(const Aws::String &value)
Definition: RemoveRegionsFromReplicationRequest.h:112
Aws
Definition: AccessManagementClient.h:15
SecretsManagerRequest.h
Aws::SecretsManager::Model::RemoveRegionsFromReplicationRequest::SetSecretId
void SetSecretId(const char *value)
Definition: RemoveRegionsFromReplicationRequest.h:61
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::SecretsManager::Model::RemoveRegionsFromReplicationRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::SecretsManager::Model::RemoveRegionsFromReplicationRequest::RemoveReplicaRegionsHasBeenSet
bool RemoveReplicaRegionsHasBeenSet() const
Definition: RemoveRegionsFromReplicationRequest.h:87
Aws::SecretsManager::Model::RemoveRegionsFromReplicationRequest::AddRemoveReplicaRegions
RemoveRegionsFromReplicationRequest & AddRemoveReplicaRegions(Aws::String &&value)
Definition: RemoveRegionsFromReplicationRequest.h:117
SecretsManager_EXPORTS.h
Aws::SecretsManager::Model::RemoveRegionsFromReplicationRequest::WithSecretId
RemoveRegionsFromReplicationRequest & WithSecretId(Aws::String &&value)
Definition: RemoveRegionsFromReplicationRequest.h:71