AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
DeriveSharedSecretRequest.h
1
6#pragma once
7#include <aws/kms/KMS_EXPORTS.h>
8#include <aws/kms/KMSRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/kms/model/KeyAgreementAlgorithmSpec.h>
11#include <aws/core/utils/Array.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13#include <aws/kms/model/RecipientInfo.h>
14#include <utility>
15
16namespace Aws
17{
18namespace KMS
19{
20namespace Model
21{
22
26 {
27 public:
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "DeriveSharedSecret"; }
35
36 AWS_KMS_API Aws::String SerializePayload() const override;
37
39
40
42
59 inline const Aws::String& GetKeyId() const{ return m_keyId; }
60 inline bool KeyIdHasBeenSet() const { return m_keyIdHasBeenSet; }
61 inline void SetKeyId(const Aws::String& value) { m_keyIdHasBeenSet = true; m_keyId = value; }
62 inline void SetKeyId(Aws::String&& value) { m_keyIdHasBeenSet = true; m_keyId = std::move(value); }
63 inline void SetKeyId(const char* value) { m_keyIdHasBeenSet = true; m_keyId.assign(value); }
64 inline DeriveSharedSecretRequest& WithKeyId(const Aws::String& value) { SetKeyId(value); return *this;}
65 inline DeriveSharedSecretRequest& WithKeyId(Aws::String&& value) { SetKeyId(std::move(value)); return *this;}
66 inline DeriveSharedSecretRequest& WithKeyId(const char* value) { SetKeyId(value); return *this;}
68
70
74 inline const KeyAgreementAlgorithmSpec& GetKeyAgreementAlgorithm() const{ return m_keyAgreementAlgorithm; }
75 inline bool KeyAgreementAlgorithmHasBeenSet() const { return m_keyAgreementAlgorithmHasBeenSet; }
76 inline void SetKeyAgreementAlgorithm(const KeyAgreementAlgorithmSpec& value) { m_keyAgreementAlgorithmHasBeenSet = true; m_keyAgreementAlgorithm = value; }
77 inline void SetKeyAgreementAlgorithm(KeyAgreementAlgorithmSpec&& value) { m_keyAgreementAlgorithmHasBeenSet = true; m_keyAgreementAlgorithm = std::move(value); }
81
83
98 inline const Aws::Utils::ByteBuffer& GetPublicKey() const{ return m_publicKey; }
99 inline bool PublicKeyHasBeenSet() const { return m_publicKeyHasBeenSet; }
100 inline void SetPublicKey(const Aws::Utils::ByteBuffer& value) { m_publicKeyHasBeenSet = true; m_publicKey = value; }
101 inline void SetPublicKey(Aws::Utils::ByteBuffer&& value) { m_publicKeyHasBeenSet = true; m_publicKey = std::move(value); }
102 inline DeriveSharedSecretRequest& WithPublicKey(const Aws::Utils::ByteBuffer& value) { SetPublicKey(value); return *this;}
103 inline DeriveSharedSecretRequest& WithPublicKey(Aws::Utils::ByteBuffer&& value) { SetPublicKey(std::move(value)); return *this;}
105
107
116 inline const Aws::Vector<Aws::String>& GetGrantTokens() const{ return m_grantTokens; }
117 inline bool GrantTokensHasBeenSet() const { return m_grantTokensHasBeenSet; }
118 inline void SetGrantTokens(const Aws::Vector<Aws::String>& value) { m_grantTokensHasBeenSet = true; m_grantTokens = value; }
119 inline void SetGrantTokens(Aws::Vector<Aws::String>&& value) { m_grantTokensHasBeenSet = true; m_grantTokens = std::move(value); }
121 inline DeriveSharedSecretRequest& WithGrantTokens(Aws::Vector<Aws::String>&& value) { SetGrantTokens(std::move(value)); return *this;}
122 inline DeriveSharedSecretRequest& AddGrantTokens(const Aws::String& value) { m_grantTokensHasBeenSet = true; m_grantTokens.push_back(value); return *this; }
123 inline DeriveSharedSecretRequest& AddGrantTokens(Aws::String&& value) { m_grantTokensHasBeenSet = true; m_grantTokens.push_back(std::move(value)); return *this; }
124 inline DeriveSharedSecretRequest& AddGrantTokens(const char* value) { m_grantTokensHasBeenSet = true; m_grantTokens.push_back(value); return *this; }
126
128
134 inline bool GetDryRun() const{ return m_dryRun; }
135 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
136 inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
137 inline DeriveSharedSecretRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
139
141
167 inline const RecipientInfo& GetRecipient() const{ return m_recipient; }
168 inline bool RecipientHasBeenSet() const { return m_recipientHasBeenSet; }
169 inline void SetRecipient(const RecipientInfo& value) { m_recipientHasBeenSet = true; m_recipient = value; }
170 inline void SetRecipient(RecipientInfo&& value) { m_recipientHasBeenSet = true; m_recipient = std::move(value); }
171 inline DeriveSharedSecretRequest& WithRecipient(const RecipientInfo& value) { SetRecipient(value); return *this;}
172 inline DeriveSharedSecretRequest& WithRecipient(RecipientInfo&& value) { SetRecipient(std::move(value)); return *this;}
174 private:
175
176 Aws::String m_keyId;
177 bool m_keyIdHasBeenSet = false;
178
179 KeyAgreementAlgorithmSpec m_keyAgreementAlgorithm;
180 bool m_keyAgreementAlgorithmHasBeenSet = false;
181
182 Aws::Utils::ByteBuffer m_publicKey;
183 bool m_publicKeyHasBeenSet = false;
184
185 Aws::Vector<Aws::String> m_grantTokens;
186 bool m_grantTokensHasBeenSet = false;
187
188 bool m_dryRun;
189 bool m_dryRunHasBeenSet = false;
190
191 RecipientInfo m_recipient;
192 bool m_recipientHasBeenSet = false;
193 };
194
195} // namespace Model
196} // namespace KMS
197} // namespace Aws
void SetGrantTokens(const Aws::Vector< Aws::String > &value)
DeriveSharedSecretRequest & WithKeyAgreementAlgorithm(KeyAgreementAlgorithmSpec &&value)
const Aws::Vector< Aws::String > & GetGrantTokens() const
DeriveSharedSecretRequest & WithKeyAgreementAlgorithm(const KeyAgreementAlgorithmSpec &value)
void SetGrantTokens(Aws::Vector< Aws::String > &&value)
DeriveSharedSecretRequest & WithKeyId(const char *value)
void SetPublicKey(const Aws::Utils::ByteBuffer &value)
DeriveSharedSecretRequest & WithKeyId(const Aws::String &value)
void SetKeyAgreementAlgorithm(const KeyAgreementAlgorithmSpec &value)
const Aws::Utils::ByteBuffer & GetPublicKey() const
DeriveSharedSecretRequest & WithGrantTokens(const Aws::Vector< Aws::String > &value)
DeriveSharedSecretRequest & WithPublicKey(const Aws::Utils::ByteBuffer &value)
DeriveSharedSecretRequest & WithRecipient(RecipientInfo &&value)
AWS_KMS_API Aws::String SerializePayload() const override
void SetPublicKey(Aws::Utils::ByteBuffer &&value)
DeriveSharedSecretRequest & WithPublicKey(Aws::Utils::ByteBuffer &&value)
DeriveSharedSecretRequest & WithKeyId(Aws::String &&value)
void SetKeyAgreementAlgorithm(KeyAgreementAlgorithmSpec &&value)
DeriveSharedSecretRequest & WithDryRun(bool value)
DeriveSharedSecretRequest & AddGrantTokens(Aws::String &&value)
virtual const char * GetServiceRequestName() const override
DeriveSharedSecretRequest & WithRecipient(const RecipientInfo &value)
AWS_KMS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
const KeyAgreementAlgorithmSpec & GetKeyAgreementAlgorithm() const
DeriveSharedSecretRequest & AddGrantTokens(const Aws::String &value)
DeriveSharedSecretRequest & AddGrantTokens(const char *value)
DeriveSharedSecretRequest & WithGrantTokens(Aws::Vector< Aws::String > &&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