/** * 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 CloudHSM { namespace Model { /** *

Contains the inputs for the DescribeHsm operation.

See * Also:

AWS * API Reference

*/ class DescribeHsmRequest : public CloudHSMRequest { public: AWS_CLOUDHSM_API DescribeHsmRequest(); // 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 "DescribeHsm"; } AWS_CLOUDHSM_API Aws::String SerializePayload() const override; AWS_CLOUDHSM_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The ARN of the HSM. Either the HsmArn or the * SerialNumber parameter must be specified.

*/ inline const Aws::String& GetHsmArn() const{ return m_hsmArn; } /** *

The ARN of the HSM. Either the HsmArn or the * SerialNumber parameter must be specified.

*/ inline bool HsmArnHasBeenSet() const { return m_hsmArnHasBeenSet; } /** *

The ARN of the HSM. Either the HsmArn or the * SerialNumber parameter must be specified.

*/ inline void SetHsmArn(const Aws::String& value) { m_hsmArnHasBeenSet = true; m_hsmArn = value; } /** *

The ARN of the HSM. Either the HsmArn or the * SerialNumber parameter must be specified.

*/ inline void SetHsmArn(Aws::String&& value) { m_hsmArnHasBeenSet = true; m_hsmArn = std::move(value); } /** *

The ARN of the HSM. Either the HsmArn or the * SerialNumber parameter must be specified.

*/ inline void SetHsmArn(const char* value) { m_hsmArnHasBeenSet = true; m_hsmArn.assign(value); } /** *

The ARN of the HSM. Either the HsmArn or the * SerialNumber parameter must be specified.

*/ inline DescribeHsmRequest& WithHsmArn(const Aws::String& value) { SetHsmArn(value); return *this;} /** *

The ARN of the HSM. Either the HsmArn or the * SerialNumber parameter must be specified.

*/ inline DescribeHsmRequest& WithHsmArn(Aws::String&& value) { SetHsmArn(std::move(value)); return *this;} /** *

The ARN of the HSM. Either the HsmArn or the * SerialNumber parameter must be specified.

*/ inline DescribeHsmRequest& WithHsmArn(const char* value) { SetHsmArn(value); return *this;} /** *

The serial number of the HSM. Either the HsmArn or the * HsmSerialNumber parameter must be specified.

*/ inline const Aws::String& GetHsmSerialNumber() const{ return m_hsmSerialNumber; } /** *

The serial number of the HSM. Either the HsmArn or the * HsmSerialNumber parameter must be specified.

*/ inline bool HsmSerialNumberHasBeenSet() const { return m_hsmSerialNumberHasBeenSet; } /** *

The serial number of the HSM. Either the HsmArn or the * HsmSerialNumber parameter must be specified.

*/ inline void SetHsmSerialNumber(const Aws::String& value) { m_hsmSerialNumberHasBeenSet = true; m_hsmSerialNumber = value; } /** *

The serial number of the HSM. Either the HsmArn or the * HsmSerialNumber parameter must be specified.

*/ inline void SetHsmSerialNumber(Aws::String&& value) { m_hsmSerialNumberHasBeenSet = true; m_hsmSerialNumber = std::move(value); } /** *

The serial number of the HSM. Either the HsmArn or the * HsmSerialNumber parameter must be specified.

*/ inline void SetHsmSerialNumber(const char* value) { m_hsmSerialNumberHasBeenSet = true; m_hsmSerialNumber.assign(value); } /** *

The serial number of the HSM. Either the HsmArn or the * HsmSerialNumber parameter must be specified.

*/ inline DescribeHsmRequest& WithHsmSerialNumber(const Aws::String& value) { SetHsmSerialNumber(value); return *this;} /** *

The serial number of the HSM. Either the HsmArn or the * HsmSerialNumber parameter must be specified.

*/ inline DescribeHsmRequest& WithHsmSerialNumber(Aws::String&& value) { SetHsmSerialNumber(std::move(value)); return *this;} /** *

The serial number of the HSM. Either the HsmArn or the * HsmSerialNumber parameter must be specified.

*/ inline DescribeHsmRequest& WithHsmSerialNumber(const char* value) { SetHsmSerialNumber(value); return *this;} private: Aws::String m_hsmArn; bool m_hsmArnHasBeenSet = false; Aws::String m_hsmSerialNumber; bool m_hsmSerialNumberHasBeenSet = false; }; } // namespace Model } // namespace CloudHSM } // namespace Aws