/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { namespace KMS { namespace Model { /** */ class AWS_KMS_API GenerateRandomRequest : public KMSRequest { public: GenerateRandomRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "GenerateRandom"; } Aws::String SerializePayload() const override; Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The length of the byte string.

*/ inline int GetNumberOfBytes() const{ return m_numberOfBytes; } /** *

The length of the byte string.

*/ inline bool NumberOfBytesHasBeenSet() const { return m_numberOfBytesHasBeenSet; } /** *

The length of the byte string.

*/ inline void SetNumberOfBytes(int value) { m_numberOfBytesHasBeenSet = true; m_numberOfBytes = value; } /** *

The length of the byte string.

*/ inline GenerateRandomRequest& WithNumberOfBytes(int value) { SetNumberOfBytes(value); return *this;} /** *

Generates the random byte string in the AWS CloudHSM cluster that is * associated with the specified custom * key store. To find the ID of a custom key store, use the * DescribeCustomKeyStores operation.

*/ inline const Aws::String& GetCustomKeyStoreId() const{ return m_customKeyStoreId; } /** *

Generates the random byte string in the AWS CloudHSM cluster that is * associated with the specified custom * key store. To find the ID of a custom key store, use the * DescribeCustomKeyStores operation.

*/ inline bool CustomKeyStoreIdHasBeenSet() const { return m_customKeyStoreIdHasBeenSet; } /** *

Generates the random byte string in the AWS CloudHSM cluster that is * associated with the specified custom * key store. To find the ID of a custom key store, use the * DescribeCustomKeyStores operation.

*/ inline void SetCustomKeyStoreId(const Aws::String& value) { m_customKeyStoreIdHasBeenSet = true; m_customKeyStoreId = value; } /** *

Generates the random byte string in the AWS CloudHSM cluster that is * associated with the specified custom * key store. To find the ID of a custom key store, use the * DescribeCustomKeyStores operation.

*/ inline void SetCustomKeyStoreId(Aws::String&& value) { m_customKeyStoreIdHasBeenSet = true; m_customKeyStoreId = std::move(value); } /** *

Generates the random byte string in the AWS CloudHSM cluster that is * associated with the specified custom * key store. To find the ID of a custom key store, use the * DescribeCustomKeyStores operation.

*/ inline void SetCustomKeyStoreId(const char* value) { m_customKeyStoreIdHasBeenSet = true; m_customKeyStoreId.assign(value); } /** *

Generates the random byte string in the AWS CloudHSM cluster that is * associated with the specified custom * key store. To find the ID of a custom key store, use the * DescribeCustomKeyStores operation.

*/ inline GenerateRandomRequest& WithCustomKeyStoreId(const Aws::String& value) { SetCustomKeyStoreId(value); return *this;} /** *

Generates the random byte string in the AWS CloudHSM cluster that is * associated with the specified custom * key store. To find the ID of a custom key store, use the * DescribeCustomKeyStores operation.

*/ inline GenerateRandomRequest& WithCustomKeyStoreId(Aws::String&& value) { SetCustomKeyStoreId(std::move(value)); return *this;} /** *

Generates the random byte string in the AWS CloudHSM cluster that is * associated with the specified custom * key store. To find the ID of a custom key store, use the * DescribeCustomKeyStores operation.

*/ inline GenerateRandomRequest& WithCustomKeyStoreId(const char* value) { SetCustomKeyStoreId(value); return *this;} private: int m_numberOfBytes; bool m_numberOfBytesHasBeenSet; Aws::String m_customKeyStoreId; bool m_customKeyStoreIdHasBeenSet; }; } // namespace Model } // namespace KMS } // namespace Aws