AWS SDK for C++  1.9.123
AWS SDK for C++
GenerateRandomRequest.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/kms/KMS_EXPORTS.h>
8 #include <aws/kms/KMSRequest.h>
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace KMS
15 {
16 namespace Model
17 {
18 
22  {
23  public:
25 
26  // Service request name is the Operation name which will send this request out,
27  // each operation should has unique request name, so that we can get operation's name from this request.
28  // Note: this is not true for response, multiple operations may have the same response name,
29  // so we can not get operation's name from response.
30  inline virtual const char* GetServiceRequestName() const override { return "GenerateRandom"; }
31 
32  Aws::String SerializePayload() const override;
33 
35 
36 
40  inline int GetNumberOfBytes() const{ return m_numberOfBytes; }
41 
45  inline bool NumberOfBytesHasBeenSet() const { return m_numberOfBytesHasBeenSet; }
46 
50  inline void SetNumberOfBytes(int value) { m_numberOfBytesHasBeenSet = true; m_numberOfBytes = value; }
51 
55  inline GenerateRandomRequest& WithNumberOfBytes(int value) { SetNumberOfBytes(value); return *this;}
56 
57 
65  inline const Aws::String& GetCustomKeyStoreId() const{ return m_customKeyStoreId; }
66 
74  inline bool CustomKeyStoreIdHasBeenSet() const { return m_customKeyStoreIdHasBeenSet; }
75 
83  inline void SetCustomKeyStoreId(const Aws::String& value) { m_customKeyStoreIdHasBeenSet = true; m_customKeyStoreId = value; }
84 
92  inline void SetCustomKeyStoreId(Aws::String&& value) { m_customKeyStoreIdHasBeenSet = true; m_customKeyStoreId = std::move(value); }
93 
101  inline void SetCustomKeyStoreId(const char* value) { m_customKeyStoreIdHasBeenSet = true; m_customKeyStoreId.assign(value); }
102 
110  inline GenerateRandomRequest& WithCustomKeyStoreId(const Aws::String& value) { SetCustomKeyStoreId(value); return *this;}
111 
119  inline GenerateRandomRequest& WithCustomKeyStoreId(Aws::String&& value) { SetCustomKeyStoreId(std::move(value)); return *this;}
120 
128  inline GenerateRandomRequest& WithCustomKeyStoreId(const char* value) { SetCustomKeyStoreId(value); return *this;}
129 
130  private:
131 
132  int m_numberOfBytes;
133  bool m_numberOfBytesHasBeenSet;
134 
135  Aws::String m_customKeyStoreId;
136  bool m_customKeyStoreIdHasBeenSet;
137  };
138 
139 } // namespace Model
140 } // namespace KMS
141 } // namespace Aws
Aws::KMS::Model::GenerateRandomRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::KMS::Model::GenerateRandomRequest::WithCustomKeyStoreId
GenerateRandomRequest & WithCustomKeyStoreId(const char *value)
Definition: GenerateRandomRequest.h:128
Aws::KMS::Model::GenerateRandomRequest::GetCustomKeyStoreId
const Aws::String & GetCustomKeyStoreId() const
Definition: GenerateRandomRequest.h:65
Aws::KMS::Model::GenerateRandomRequest::GetNumberOfBytes
int GetNumberOfBytes() const
Definition: GenerateRandomRequest.h:40
Aws::KMS::Model::GenerateRandomRequest::SetCustomKeyStoreId
void SetCustomKeyStoreId(Aws::String &&value)
Definition: GenerateRandomRequest.h:92
Aws::KMS::Model::GenerateRandomRequest
Definition: GenerateRandomRequest.h:22
KMSRequest.h
Aws::KMS::Model::GenerateRandomRequest::CustomKeyStoreIdHasBeenSet
bool CustomKeyStoreIdHasBeenSet() const
Definition: GenerateRandomRequest.h:74
Aws::KMS::Model::GenerateRandomRequest::SetCustomKeyStoreId
void SetCustomKeyStoreId(const Aws::String &value)
Definition: GenerateRandomRequest.h:83
Aws::KMS::Model::GenerateRandomRequest::SetCustomKeyStoreId
void SetCustomKeyStoreId(const char *value)
Definition: GenerateRandomRequest.h:101
Aws::KMS::KMSRequest
Definition: KMSRequest.h:17
Aws::KMS::Model::GenerateRandomRequest::SetNumberOfBytes
void SetNumberOfBytes(int value)
Definition: GenerateRandomRequest.h:50
AWS_KMS_API
#define AWS_KMS_API
Definition: KMS_EXPORTS.h:28
Aws::KMS::Model::GenerateRandomRequest::SerializePayload
Aws::String SerializePayload() const override
AWSString.h
Aws::KMS::Model::GenerateRandomRequest::WithCustomKeyStoreId
GenerateRandomRequest & WithCustomKeyStoreId(Aws::String &&value)
Definition: GenerateRandomRequest.h:119
Aws::KMS::Model::GenerateRandomRequest::WithNumberOfBytes
GenerateRandomRequest & WithNumberOfBytes(int value)
Definition: GenerateRandomRequest.h:55
Aws::CodePipeline::Model::EncryptionKeyType::NOT_SET
@ NOT_SET
Aws::KMS::Model::GenerateRandomRequest::GenerateRandomRequest
GenerateRandomRequest()
Aws
Definition: AccessManagementClient.h:15
Aws::KMS::Model::GenerateRandomRequest::NumberOfBytesHasBeenSet
bool NumberOfBytesHasBeenSet() const
Definition: GenerateRandomRequest.h:45
KMS_EXPORTS.h
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::KMS::Model::GenerateRandomRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: GenerateRandomRequest.h:30
Aws::KMS::Model::GenerateRandomRequest::WithCustomKeyStoreId
GenerateRandomRequest & WithCustomKeyStoreId(const Aws::String &value)
Definition: GenerateRandomRequest.h:110