AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
GenerateRandomRequest.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/RecipientInfo.h>
11#include <utility>
12
13namespace Aws
14{
15namespace KMS
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_KMS_API GenerateRandomRequest();
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "GenerateRandom"; }
32
33 AWS_KMS_API Aws::String SerializePayload() const override;
34
36
37
39
42 inline int GetNumberOfBytes() const{ return m_numberOfBytes; }
43 inline bool NumberOfBytesHasBeenSet() const { return m_numberOfBytesHasBeenSet; }
44 inline void SetNumberOfBytes(int value) { m_numberOfBytesHasBeenSet = true; m_numberOfBytes = value; }
45 inline GenerateRandomRequest& WithNumberOfBytes(int value) { SetNumberOfBytes(value); return *this;}
47
49
57 inline const Aws::String& GetCustomKeyStoreId() const{ return m_customKeyStoreId; }
58 inline bool CustomKeyStoreIdHasBeenSet() const { return m_customKeyStoreIdHasBeenSet; }
59 inline void SetCustomKeyStoreId(const Aws::String& value) { m_customKeyStoreIdHasBeenSet = true; m_customKeyStoreId = value; }
60 inline void SetCustomKeyStoreId(Aws::String&& value) { m_customKeyStoreIdHasBeenSet = true; m_customKeyStoreId = std::move(value); }
61 inline void SetCustomKeyStoreId(const char* value) { m_customKeyStoreIdHasBeenSet = true; m_customKeyStoreId.assign(value); }
62 inline GenerateRandomRequest& WithCustomKeyStoreId(const Aws::String& value) { SetCustomKeyStoreId(value); return *this;}
63 inline GenerateRandomRequest& WithCustomKeyStoreId(Aws::String&& value) { SetCustomKeyStoreId(std::move(value)); return *this;}
64 inline GenerateRandomRequest& WithCustomKeyStoreId(const char* value) { SetCustomKeyStoreId(value); return *this;}
66
68
89 inline const RecipientInfo& GetRecipient() const{ return m_recipient; }
90 inline bool RecipientHasBeenSet() const { return m_recipientHasBeenSet; }
91 inline void SetRecipient(const RecipientInfo& value) { m_recipientHasBeenSet = true; m_recipient = value; }
92 inline void SetRecipient(RecipientInfo&& value) { m_recipientHasBeenSet = true; m_recipient = std::move(value); }
93 inline GenerateRandomRequest& WithRecipient(const RecipientInfo& value) { SetRecipient(value); return *this;}
94 inline GenerateRandomRequest& WithRecipient(RecipientInfo&& value) { SetRecipient(std::move(value)); return *this;}
96 private:
97
98 int m_numberOfBytes;
99 bool m_numberOfBytesHasBeenSet = false;
100
101 Aws::String m_customKeyStoreId;
102 bool m_customKeyStoreIdHasBeenSet = false;
103
104 RecipientInfo m_recipient;
105 bool m_recipientHasBeenSet = false;
106 };
107
108} // namespace Model
109} // namespace KMS
110} // namespace Aws
GenerateRandomRequest & WithCustomKeyStoreId(Aws::String &&value)
AWS_KMS_API Aws::String SerializePayload() const override
GenerateRandomRequest & WithRecipient(const RecipientInfo &value)
const Aws::String & GetCustomKeyStoreId() const
virtual const char * GetServiceRequestName() const override
GenerateRandomRequest & WithNumberOfBytes(int value)
void SetCustomKeyStoreId(const Aws::String &value)
GenerateRandomRequest & WithCustomKeyStoreId(const Aws::String &value)
void SetRecipient(const RecipientInfo &value)
GenerateRandomRequest & WithRecipient(RecipientInfo &&value)
const RecipientInfo & GetRecipient() const
AWS_KMS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
GenerateRandomRequest & WithCustomKeyStoreId(const char *value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String