AWS SDK for C++

AWS SDK for C++ Version 1.11.718

Loading...
Searching...
No Matches
GenerateRandomRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/kms/KMSRequest.h>
9#include <aws/kms/KMS_EXPORTS.h>
10#include <aws/kms/model/RecipientInfo.h>
11
12#include <utility>
13
14namespace Aws {
15namespace KMS {
16namespace Model {
17
21 public:
22 AWS_KMS_API GenerateRandomRequest() = default;
23
24 // Service request name is the Operation name which will send this request out,
25 // each operation should has unique request name, so that we can get operation's name from this request.
26 // Note: this is not true for response, multiple operations may have the same response name,
27 // so we can not get operation's name from response.
28 inline virtual const char* GetServiceRequestName() const override { return "GenerateRandom"; }
29
30 AWS_KMS_API Aws::String SerializePayload() const override;
31
33
35
38 inline int GetNumberOfBytes() const { return m_numberOfBytes; }
39 inline bool NumberOfBytesHasBeenSet() const { return m_numberOfBytesHasBeenSet; }
40 inline void SetNumberOfBytes(int value) {
41 m_numberOfBytesHasBeenSet = true;
42 m_numberOfBytes = value;
43 }
45 SetNumberOfBytes(value);
46 return *this;
47 }
49
51
59 inline const Aws::String& GetCustomKeyStoreId() const { return m_customKeyStoreId; }
60 inline bool CustomKeyStoreIdHasBeenSet() const { return m_customKeyStoreIdHasBeenSet; }
61 template <typename CustomKeyStoreIdT = Aws::String>
62 void SetCustomKeyStoreId(CustomKeyStoreIdT&& value) {
63 m_customKeyStoreIdHasBeenSet = true;
64 m_customKeyStoreId = std::forward<CustomKeyStoreIdT>(value);
65 }
66 template <typename CustomKeyStoreIdT = Aws::String>
67 GenerateRandomRequest& WithCustomKeyStoreId(CustomKeyStoreIdT&& value) {
68 SetCustomKeyStoreId(std::forward<CustomKeyStoreIdT>(value));
69 return *this;
70 }
72
74
96 inline const RecipientInfo& GetRecipient() const { return m_recipient; }
97 inline bool RecipientHasBeenSet() const { return m_recipientHasBeenSet; }
98 template <typename RecipientT = RecipientInfo>
99 void SetRecipient(RecipientT&& value) {
100 m_recipientHasBeenSet = true;
101 m_recipient = std::forward<RecipientT>(value);
102 }
103 template <typename RecipientT = RecipientInfo>
105 SetRecipient(std::forward<RecipientT>(value));
106 return *this;
107 }
109 private:
110 int m_numberOfBytes{0};
111
112 Aws::String m_customKeyStoreId;
113
114 RecipientInfo m_recipient;
115 bool m_numberOfBytesHasBeenSet = false;
116 bool m_customKeyStoreIdHasBeenSet = false;
117 bool m_recipientHasBeenSet = false;
118};
119
120} // namespace Model
121} // namespace KMS
122} // namespace Aws
AWS_KMS_API Aws::String SerializePayload() const override
AWS_KMS_API GenerateRandomRequest()=default
GenerateRandomRequest & WithCustomKeyStoreId(CustomKeyStoreIdT &&value)
const Aws::String & GetCustomKeyStoreId() const
GenerateRandomRequest & WithRecipient(RecipientT &&value)
virtual const char * GetServiceRequestName() const override
GenerateRandomRequest & WithNumberOfBytes(int value)
const RecipientInfo & GetRecipient() const
void SetCustomKeyStoreId(CustomKeyStoreIdT &&value)
AWS_KMS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String