AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ReplicateSecretToRegionsRequest.h
1
6#pragma once
7#include <aws/secretsmanager/SecretsManager_EXPORTS.h>
8#include <aws/secretsmanager/SecretsManagerRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/secretsmanager/model/ReplicaRegionType.h>
12#include <utility>
13
14namespace Aws
15{
16namespace SecretsManager
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_SECRETSMANAGER_API ReplicateSecretToRegionsRequest();
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "ReplicateSecretToRegions"; }
33
34 AWS_SECRETSMANAGER_API Aws::String SerializePayload() const override;
35
36 AWS_SECRETSMANAGER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
37
38
40
43 inline const Aws::String& GetSecretId() const{ return m_secretId; }
44 inline bool SecretIdHasBeenSet() const { return m_secretIdHasBeenSet; }
45 inline void SetSecretId(const Aws::String& value) { m_secretIdHasBeenSet = true; m_secretId = value; }
46 inline void SetSecretId(Aws::String&& value) { m_secretIdHasBeenSet = true; m_secretId = std::move(value); }
47 inline void SetSecretId(const char* value) { m_secretIdHasBeenSet = true; m_secretId.assign(value); }
48 inline ReplicateSecretToRegionsRequest& WithSecretId(const Aws::String& value) { SetSecretId(value); return *this;}
49 inline ReplicateSecretToRegionsRequest& WithSecretId(Aws::String&& value) { SetSecretId(std::move(value)); return *this;}
50 inline ReplicateSecretToRegionsRequest& WithSecretId(const char* value) { SetSecretId(value); return *this;}
52
54
57 inline const Aws::Vector<ReplicaRegionType>& GetAddReplicaRegions() const{ return m_addReplicaRegions; }
58 inline bool AddReplicaRegionsHasBeenSet() const { return m_addReplicaRegionsHasBeenSet; }
59 inline void SetAddReplicaRegions(const Aws::Vector<ReplicaRegionType>& value) { m_addReplicaRegionsHasBeenSet = true; m_addReplicaRegions = value; }
60 inline void SetAddReplicaRegions(Aws::Vector<ReplicaRegionType>&& value) { m_addReplicaRegionsHasBeenSet = true; m_addReplicaRegions = std::move(value); }
63 inline ReplicateSecretToRegionsRequest& AddAddReplicaRegions(const ReplicaRegionType& value) { m_addReplicaRegionsHasBeenSet = true; m_addReplicaRegions.push_back(value); return *this; }
64 inline ReplicateSecretToRegionsRequest& AddAddReplicaRegions(ReplicaRegionType&& value) { m_addReplicaRegionsHasBeenSet = true; m_addReplicaRegions.push_back(std::move(value)); return *this; }
66
68
72 inline bool GetForceOverwriteReplicaSecret() const{ return m_forceOverwriteReplicaSecret; }
73 inline bool ForceOverwriteReplicaSecretHasBeenSet() const { return m_forceOverwriteReplicaSecretHasBeenSet; }
74 inline void SetForceOverwriteReplicaSecret(bool value) { m_forceOverwriteReplicaSecretHasBeenSet = true; m_forceOverwriteReplicaSecret = value; }
77 private:
78
79 Aws::String m_secretId;
80 bool m_secretIdHasBeenSet = false;
81
82 Aws::Vector<ReplicaRegionType> m_addReplicaRegions;
83 bool m_addReplicaRegionsHasBeenSet = false;
84
85 bool m_forceOverwriteReplicaSecret;
86 bool m_forceOverwriteReplicaSecretHasBeenSet = false;
87 };
88
89} // namespace Model
90} // namespace SecretsManager
91} // namespace Aws
ReplicateSecretToRegionsRequest & AddAddReplicaRegions(ReplicaRegionType &&value)
ReplicateSecretToRegionsRequest & WithSecretId(const char *value)
void SetAddReplicaRegions(Aws::Vector< ReplicaRegionType > &&value)
AWS_SECRETSMANAGER_API Aws::String SerializePayload() const override
ReplicateSecretToRegionsRequest & WithForceOverwriteReplicaSecret(bool value)
ReplicateSecretToRegionsRequest & WithSecretId(const Aws::String &value)
ReplicateSecretToRegionsRequest & WithAddReplicaRegions(const Aws::Vector< ReplicaRegionType > &value)
ReplicateSecretToRegionsRequest & AddAddReplicaRegions(const ReplicaRegionType &value)
AWS_SECRETSMANAGER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
void SetAddReplicaRegions(const Aws::Vector< ReplicaRegionType > &value)
ReplicateSecretToRegionsRequest & WithAddReplicaRegions(Aws::Vector< ReplicaRegionType > &&value)
ReplicateSecretToRegionsRequest & WithSecretId(Aws::String &&value)
const Aws::Vector< ReplicaRegionType > & GetAddReplicaRegions() const
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector