AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
AddKeyReplicationRegionsRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/payment-cryptography/PaymentCryptographyRequest.h>
10#include <aws/payment-cryptography/PaymentCryptography_EXPORTS.h>
11
12#include <utility>
13
14namespace Aws {
15namespace PaymentCryptography {
16namespace Model {
17
25 public:
26 AWS_PAYMENTCRYPTOGRAPHY_API AddKeyReplicationRegionsRequest() = default;
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 "AddKeyReplicationRegions"; }
33
34 AWS_PAYMENTCRYPTOGRAPHY_API Aws::String SerializePayload() const override;
35
36 AWS_PAYMENTCRYPTOGRAPHY_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
37
39
44 inline const Aws::String& GetKeyIdentifier() const { return m_keyIdentifier; }
45 inline bool KeyIdentifierHasBeenSet() const { return m_keyIdentifierHasBeenSet; }
46 template <typename KeyIdentifierT = Aws::String>
47 void SetKeyIdentifier(KeyIdentifierT&& value) {
48 m_keyIdentifierHasBeenSet = true;
49 m_keyIdentifier = std::forward<KeyIdentifierT>(value);
50 }
51 template <typename KeyIdentifierT = Aws::String>
53 SetKeyIdentifier(std::forward<KeyIdentifierT>(value));
54 return *this;
55 }
57
59
66 inline const Aws::Vector<Aws::String>& GetReplicationRegions() const { return m_replicationRegions; }
67 inline bool ReplicationRegionsHasBeenSet() const { return m_replicationRegionsHasBeenSet; }
68 template <typename ReplicationRegionsT = Aws::Vector<Aws::String>>
69 void SetReplicationRegions(ReplicationRegionsT&& value) {
70 m_replicationRegionsHasBeenSet = true;
71 m_replicationRegions = std::forward<ReplicationRegionsT>(value);
72 }
73 template <typename ReplicationRegionsT = Aws::Vector<Aws::String>>
75 SetReplicationRegions(std::forward<ReplicationRegionsT>(value));
76 return *this;
77 }
78 template <typename ReplicationRegionsT = Aws::String>
80 m_replicationRegionsHasBeenSet = true;
81 m_replicationRegions.emplace_back(std::forward<ReplicationRegionsT>(value));
82 return *this;
83 }
85 private:
86 Aws::String m_keyIdentifier;
87
88 Aws::Vector<Aws::String> m_replicationRegions;
89 bool m_keyIdentifierHasBeenSet = false;
90 bool m_replicationRegionsHasBeenSet = false;
91};
92
93} // namespace Model
94} // namespace PaymentCryptography
95} // namespace Aws
AWS_PAYMENTCRYPTOGRAPHY_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AddKeyReplicationRegionsRequest & WithReplicationRegions(ReplicationRegionsT &&value)
AWS_PAYMENTCRYPTOGRAPHY_API Aws::String SerializePayload() const override
AddKeyReplicationRegionsRequest & AddReplicationRegions(ReplicationRegionsT &&value)
AWS_PAYMENTCRYPTOGRAPHY_API AddKeyReplicationRegionsRequest()=default
AddKeyReplicationRegionsRequest & WithKeyIdentifier(KeyIdentifierT &&value)
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