AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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() = default;
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 template<typename CustomKeyStoreIdT = Aws::String>
60 void SetCustomKeyStoreId(CustomKeyStoreIdT&& value) { m_customKeyStoreIdHasBeenSet = true; m_customKeyStoreId = std::forward<CustomKeyStoreIdT>(value); }
61 template<typename CustomKeyStoreIdT = Aws::String>
62 GenerateRandomRequest& WithCustomKeyStoreId(CustomKeyStoreIdT&& value) { SetCustomKeyStoreId(std::forward<CustomKeyStoreIdT>(value)); return *this;}
64
66
87 inline const RecipientInfo& GetRecipient() const { return m_recipient; }
88 inline bool RecipientHasBeenSet() const { return m_recipientHasBeenSet; }
89 template<typename RecipientT = RecipientInfo>
90 void SetRecipient(RecipientT&& value) { m_recipientHasBeenSet = true; m_recipient = std::forward<RecipientT>(value); }
91 template<typename RecipientT = RecipientInfo>
92 GenerateRandomRequest& WithRecipient(RecipientT&& value) { SetRecipient(std::forward<RecipientT>(value)); return *this;}
94 private:
95
96 int m_numberOfBytes{0};
97 bool m_numberOfBytesHasBeenSet = false;
98
99 Aws::String m_customKeyStoreId;
100 bool m_customKeyStoreIdHasBeenSet = false;
101
102 RecipientInfo m_recipient;
103 bool m_recipientHasBeenSet = false;
104 };
105
106} // namespace Model
107} // namespace KMS
108} // 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