AWS SDK for C++

AWS SDK for C++ Version 1.11.937

Loading...
Searching...
No Matches
EncapsulateRequest.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/kms/KMSRequest.h>
10#include <aws/kms/KMS_EXPORTS.h>
11#include <aws/kms/model/EncapsulationAlgorithmSpec.h>
12
13#include <utility>
14
15namespace Aws {
16namespace KMS {
17namespace Model {
18
22 public:
23 AWS_KMS_API EncapsulateRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "Encapsulate"; }
30
31 AWS_KMS_API Aws::String SerializePayload() const override;
32
34
36
55 inline const Aws::String& GetKeyId() const { return m_keyId; }
56 inline bool KeyIdHasBeenSet() const { return m_keyIdHasBeenSet; }
57 template <typename KeyIdT = Aws::String>
58 void SetKeyId(KeyIdT&& value) {
59 m_keyIdHasBeenSet = true;
60 m_keyId = std::forward<KeyIdT>(value);
61 }
62 template <typename KeyIdT = Aws::String>
63 EncapsulateRequest& WithKeyId(KeyIdT&& value) {
64 SetKeyId(std::forward<KeyIdT>(value));
65 return *this;
66 }
68
70
74 inline EncapsulationAlgorithmSpec GetEncapsulationAlgorithm() const { return m_encapsulationAlgorithm; }
75 inline bool EncapsulationAlgorithmHasBeenSet() const { return m_encapsulationAlgorithmHasBeenSet; }
77 m_encapsulationAlgorithmHasBeenSet = true;
78 m_encapsulationAlgorithm = value;
79 }
85
87
96 inline const Aws::Vector<Aws::String>& GetGrantTokens() const { return m_grantTokens; }
97 inline bool GrantTokensHasBeenSet() const { return m_grantTokensHasBeenSet; }
98 template <typename GrantTokensT = Aws::Vector<Aws::String>>
99 void SetGrantTokens(GrantTokensT&& value) {
100 m_grantTokensHasBeenSet = true;
101 m_grantTokens = std::forward<GrantTokensT>(value);
102 }
103 template <typename GrantTokensT = Aws::Vector<Aws::String>>
104 EncapsulateRequest& WithGrantTokens(GrantTokensT&& value) {
105 SetGrantTokens(std::forward<GrantTokensT>(value));
106 return *this;
107 }
108 template <typename GrantTokensT = Aws::String>
109 EncapsulateRequest& AddGrantTokens(GrantTokensT&& value) {
110 m_grantTokensHasBeenSet = true;
111 m_grantTokens.emplace_back(std::forward<GrantTokensT>(value));
112 return *this;
113 }
115
117
123 inline bool GetDryRun() const { return m_dryRun; }
124 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
125 inline void SetDryRun(bool value) {
126 m_dryRunHasBeenSet = true;
127 m_dryRun = value;
128 }
129 inline EncapsulateRequest& WithDryRun(bool value) {
130 SetDryRun(value);
131 return *this;
132 }
134 private:
135 Aws::String m_keyId;
136
138
139 Aws::Vector<Aws::String> m_grantTokens;
140
141 bool m_dryRun{false};
142 bool m_keyIdHasBeenSet = false;
143 bool m_encapsulationAlgorithmHasBeenSet = false;
144 bool m_grantTokensHasBeenSet = false;
145 bool m_dryRunHasBeenSet = false;
146};
147
148} // namespace Model
149} // namespace KMS
150} // namespace Aws
virtual const char * GetServiceRequestName() const override
const Aws::Vector< Aws::String > & GetGrantTokens() const
const Aws::String & GetKeyId() const
EncapsulateRequest & WithEncapsulationAlgorithm(EncapsulationAlgorithmSpec value)
AWS_KMS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_KMS_API EncapsulateRequest()=default
EncapsulateRequest & AddGrantTokens(GrantTokensT &&value)
EncapsulationAlgorithmSpec GetEncapsulationAlgorithm() const
void SetEncapsulationAlgorithm(EncapsulationAlgorithmSpec value)
EncapsulateRequest & WithDryRun(bool value)
EncapsulateRequest & WithGrantTokens(GrantTokensT &&value)
void SetGrantTokens(GrantTokensT &&value)
AWS_KMS_API Aws::String SerializePayload() const override
EncapsulateRequest & WithKeyId(KeyIdT &&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