AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
SignRequest.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/core/utils/Array.h>
11#include <aws/kms/model/MessageType.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13#include <aws/kms/model/SigningAlgorithmSpec.h>
14#include <utility>
15
16namespace Aws
17{
18namespace KMS
19{
20namespace Model
21{
22
25 class SignRequest : public KMSRequest
26 {
27 public:
28 AWS_KMS_API SignRequest();
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 "Sign"; }
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 SignRequest& WithKeyId(const Aws::String& value) { SetKeyId(value); return *this;}
65 inline SignRequest& WithKeyId(Aws::String&& value) { SetKeyId(std::move(value)); return *this;}
66 inline SignRequest& WithKeyId(const char* value) { SetKeyId(value); return *this;}
68
70
76 inline const Aws::Utils::CryptoBuffer& GetMessage() const{ return m_message; }
77 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
78 inline void SetMessage(const Aws::Utils::CryptoBuffer& value) { m_messageHasBeenSet = true; m_message = value; }
79 inline void SetMessage(Aws::Utils::CryptoBuffer&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
80 inline SignRequest& WithMessage(const Aws::Utils::CryptoBuffer& value) { SetMessage(value); return *this;}
81 inline SignRequest& WithMessage(Aws::Utils::CryptoBuffer&& value) { SetMessage(std::move(value)); return *this;}
83
85
111 inline const MessageType& GetMessageType() const{ return m_messageType; }
112 inline bool MessageTypeHasBeenSet() const { return m_messageTypeHasBeenSet; }
113 inline void SetMessageType(const MessageType& value) { m_messageTypeHasBeenSet = true; m_messageType = value; }
114 inline void SetMessageType(MessageType&& value) { m_messageTypeHasBeenSet = true; m_messageType = std::move(value); }
115 inline SignRequest& WithMessageType(const MessageType& value) { SetMessageType(value); return *this;}
116 inline SignRequest& WithMessageType(MessageType&& value) { SetMessageType(std::move(value)); return *this;}
118
120
129 inline const Aws::Vector<Aws::String>& GetGrantTokens() const{ return m_grantTokens; }
130 inline bool GrantTokensHasBeenSet() const { return m_grantTokensHasBeenSet; }
131 inline void SetGrantTokens(const Aws::Vector<Aws::String>& value) { m_grantTokensHasBeenSet = true; m_grantTokens = value; }
132 inline void SetGrantTokens(Aws::Vector<Aws::String>&& value) { m_grantTokensHasBeenSet = true; m_grantTokens = std::move(value); }
133 inline SignRequest& WithGrantTokens(const Aws::Vector<Aws::String>& value) { SetGrantTokens(value); return *this;}
134 inline SignRequest& WithGrantTokens(Aws::Vector<Aws::String>&& value) { SetGrantTokens(std::move(value)); return *this;}
135 inline SignRequest& AddGrantTokens(const Aws::String& value) { m_grantTokensHasBeenSet = true; m_grantTokens.push_back(value); return *this; }
136 inline SignRequest& AddGrantTokens(Aws::String&& value) { m_grantTokensHasBeenSet = true; m_grantTokens.push_back(std::move(value)); return *this; }
137 inline SignRequest& AddGrantTokens(const char* value) { m_grantTokensHasBeenSet = true; m_grantTokens.push_back(value); return *this; }
139
141
148 inline const SigningAlgorithmSpec& GetSigningAlgorithm() const{ return m_signingAlgorithm; }
149 inline bool SigningAlgorithmHasBeenSet() const { return m_signingAlgorithmHasBeenSet; }
150 inline void SetSigningAlgorithm(const SigningAlgorithmSpec& value) { m_signingAlgorithmHasBeenSet = true; m_signingAlgorithm = value; }
151 inline void SetSigningAlgorithm(SigningAlgorithmSpec&& value) { m_signingAlgorithmHasBeenSet = true; m_signingAlgorithm = std::move(value); }
152 inline SignRequest& WithSigningAlgorithm(const SigningAlgorithmSpec& value) { SetSigningAlgorithm(value); return *this;}
153 inline SignRequest& WithSigningAlgorithm(SigningAlgorithmSpec&& value) { SetSigningAlgorithm(std::move(value)); return *this;}
155
157
163 inline bool GetDryRun() const{ return m_dryRun; }
164 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
165 inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
166 inline SignRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
168 private:
169
170 Aws::String m_keyId;
171 bool m_keyIdHasBeenSet = false;
172
173 Aws::Utils::CryptoBuffer m_message;
174 bool m_messageHasBeenSet = false;
175
176 MessageType m_messageType;
177 bool m_messageTypeHasBeenSet = false;
178
179 Aws::Vector<Aws::String> m_grantTokens;
180 bool m_grantTokensHasBeenSet = false;
181
182 SigningAlgorithmSpec m_signingAlgorithm;
183 bool m_signingAlgorithmHasBeenSet = false;
184
185 bool m_dryRun;
186 bool m_dryRunHasBeenSet = false;
187 };
188
189} // namespace Model
190} // namespace KMS
191} // namespace Aws
SignRequest & WithKeyId(const char *value)
Definition SignRequest.h:66
bool SigningAlgorithmHasBeenSet() const
void SetMessage(const Aws::Utils::CryptoBuffer &value)
Definition SignRequest.h:78
SignRequest & WithSigningAlgorithm(const SigningAlgorithmSpec &value)
const Aws::Vector< Aws::String > & GetGrantTokens() const
AWS_KMS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
const Aws::String & GetKeyId() const
Definition SignRequest.h:59
void SetMessage(Aws::Utils::CryptoBuffer &&value)
Definition SignRequest.h:79
SignRequest & WithMessage(Aws::Utils::CryptoBuffer &&value)
Definition SignRequest.h:81
SignRequest & AddGrantTokens(const char *value)
void SetSigningAlgorithm(const SigningAlgorithmSpec &value)
void SetKeyId(const char *value)
Definition SignRequest.h:63
const Aws::Utils::CryptoBuffer & GetMessage() const
Definition SignRequest.h:76
SignRequest & AddGrantTokens(Aws::String &&value)
SignRequest & WithKeyId(const Aws::String &value)
Definition SignRequest.h:64
const SigningAlgorithmSpec & GetSigningAlgorithm() const
AWS_KMS_API Aws::String SerializePayload() const override
SignRequest & WithKeyId(Aws::String &&value)
Definition SignRequest.h:65
SignRequest & WithGrantTokens(Aws::Vector< Aws::String > &&value)
void SetKeyId(const Aws::String &value)
Definition SignRequest.h:61
void SetMessageType(const MessageType &value)
void SetMessageType(MessageType &&value)
SignRequest & WithDryRun(bool value)
void SetGrantTokens(const Aws::Vector< Aws::String > &value)
SignRequest & WithMessageType(const MessageType &value)
void SetSigningAlgorithm(SigningAlgorithmSpec &&value)
SignRequest & WithGrantTokens(const Aws::Vector< Aws::String > &value)
void SetKeyId(Aws::String &&value)
Definition SignRequest.h:62
const MessageType & GetMessageType() const
SignRequest & WithSigningAlgorithm(SigningAlgorithmSpec &&value)
void SetGrantTokens(Aws::Vector< Aws::String > &&value)
SignRequest & WithMessageType(MessageType &&value)
virtual const char * GetServiceRequestName() const override
Definition SignRequest.h:34
SignRequest & AddGrantTokens(const Aws::String &value)
SignRequest & WithMessage(const Aws::Utils::CryptoBuffer &value)
Definition SignRequest.h:80
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