AWS SDK for C++

AWS SDK for C++ Version 1.11.644

Loading...
Searching...
No Matches
AddKeyReplicationRegionsRequest.h
1
6#pragma once
7#include <aws/payment-cryptography/PaymentCryptography_EXPORTS.h>
8#include <aws/payment-cryptography/PaymentCryptographyRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <utility>
12
13namespace Aws
14{
15namespace PaymentCryptography
16{
17namespace Model
18{
19
27 {
28 public:
29 AWS_PAYMENTCRYPTOGRAPHY_API AddKeyReplicationRegionsRequest() = default;
30
31 // Service request name is the Operation name which will send this request out,
32 // each operation should has unique request name, so that we can get operation's name from this request.
33 // Note: this is not true for response, multiple operations may have the same response name,
34 // so we can not get operation's name from response.
35 inline virtual const char* GetServiceRequestName() const override { return "AddKeyReplicationRegions"; }
36
37 AWS_PAYMENTCRYPTOGRAPHY_API Aws::String SerializePayload() const override;
38
39 AWS_PAYMENTCRYPTOGRAPHY_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
40
41
43
48 inline const Aws::String& GetKeyIdentifier() const { return m_keyIdentifier; }
49 inline bool KeyIdentifierHasBeenSet() const { return m_keyIdentifierHasBeenSet; }
50 template<typename KeyIdentifierT = Aws::String>
51 void SetKeyIdentifier(KeyIdentifierT&& value) { m_keyIdentifierHasBeenSet = true; m_keyIdentifier = std::forward<KeyIdentifierT>(value); }
52 template<typename KeyIdentifierT = Aws::String>
53 AddKeyReplicationRegionsRequest& WithKeyIdentifier(KeyIdentifierT&& value) { SetKeyIdentifier(std::forward<KeyIdentifierT>(value)); return *this;}
55
57
64 inline const Aws::Vector<Aws::String>& GetReplicationRegions() const { return m_replicationRegions; }
65 inline bool ReplicationRegionsHasBeenSet() const { return m_replicationRegionsHasBeenSet; }
66 template<typename ReplicationRegionsT = Aws::Vector<Aws::String>>
67 void SetReplicationRegions(ReplicationRegionsT&& value) { m_replicationRegionsHasBeenSet = true; m_replicationRegions = std::forward<ReplicationRegionsT>(value); }
68 template<typename ReplicationRegionsT = Aws::Vector<Aws::String>>
69 AddKeyReplicationRegionsRequest& WithReplicationRegions(ReplicationRegionsT&& value) { SetReplicationRegions(std::forward<ReplicationRegionsT>(value)); return *this;}
70 template<typename ReplicationRegionsT = Aws::String>
71 AddKeyReplicationRegionsRequest& AddReplicationRegions(ReplicationRegionsT&& value) { m_replicationRegionsHasBeenSet = true; m_replicationRegions.emplace_back(std::forward<ReplicationRegionsT>(value)); return *this; }
73 private:
74
75 Aws::String m_keyIdentifier;
76 bool m_keyIdentifierHasBeenSet = false;
77
78 Aws::Vector<Aws::String> m_replicationRegions;
79 bool m_replicationRegionsHasBeenSet = false;
80 };
81
82} // namespace Model
83} // namespace PaymentCryptography
84} // 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