/** * 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 CloudHSMV2 { namespace Model { /** */ class CreateHsmRequest : public CloudHSMV2Request { public: AWS_CLOUDHSMV2_API CreateHsmRequest(); // 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 "CreateHsm"; } AWS_CLOUDHSMV2_API Aws::String SerializePayload() const override; AWS_CLOUDHSMV2_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The identifier (ID) of the HSM's cluster. To find the cluster ID, use * DescribeClusters.

*/ inline const Aws::String& GetClusterId() const{ return m_clusterId; } /** *

The identifier (ID) of the HSM's cluster. To find the cluster ID, use * DescribeClusters.

*/ inline bool ClusterIdHasBeenSet() const { return m_clusterIdHasBeenSet; } /** *

The identifier (ID) of the HSM's cluster. To find the cluster ID, use * DescribeClusters.

*/ inline void SetClusterId(const Aws::String& value) { m_clusterIdHasBeenSet = true; m_clusterId = value; } /** *

The identifier (ID) of the HSM's cluster. To find the cluster ID, use * DescribeClusters.

*/ inline void SetClusterId(Aws::String&& value) { m_clusterIdHasBeenSet = true; m_clusterId = std::move(value); } /** *

The identifier (ID) of the HSM's cluster. To find the cluster ID, use * DescribeClusters.

*/ inline void SetClusterId(const char* value) { m_clusterIdHasBeenSet = true; m_clusterId.assign(value); } /** *

The identifier (ID) of the HSM's cluster. To find the cluster ID, use * DescribeClusters.

*/ inline CreateHsmRequest& WithClusterId(const Aws::String& value) { SetClusterId(value); return *this;} /** *

The identifier (ID) of the HSM's cluster. To find the cluster ID, use * DescribeClusters.

*/ inline CreateHsmRequest& WithClusterId(Aws::String&& value) { SetClusterId(std::move(value)); return *this;} /** *

The identifier (ID) of the HSM's cluster. To find the cluster ID, use * DescribeClusters.

*/ inline CreateHsmRequest& WithClusterId(const char* value) { SetClusterId(value); return *this;} /** *

The Availability Zone where you are creating the HSM. To find the cluster's * Availability Zones, use DescribeClusters.

*/ inline const Aws::String& GetAvailabilityZone() const{ return m_availabilityZone; } /** *

The Availability Zone where you are creating the HSM. To find the cluster's * Availability Zones, use DescribeClusters.

*/ inline bool AvailabilityZoneHasBeenSet() const { return m_availabilityZoneHasBeenSet; } /** *

The Availability Zone where you are creating the HSM. To find the cluster's * Availability Zones, use DescribeClusters.

*/ inline void SetAvailabilityZone(const Aws::String& value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone = value; } /** *

The Availability Zone where you are creating the HSM. To find the cluster's * Availability Zones, use DescribeClusters.

*/ inline void SetAvailabilityZone(Aws::String&& value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone = std::move(value); } /** *

The Availability Zone where you are creating the HSM. To find the cluster's * Availability Zones, use DescribeClusters.

*/ inline void SetAvailabilityZone(const char* value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone.assign(value); } /** *

The Availability Zone where you are creating the HSM. To find the cluster's * Availability Zones, use DescribeClusters.

*/ inline CreateHsmRequest& WithAvailabilityZone(const Aws::String& value) { SetAvailabilityZone(value); return *this;} /** *

The Availability Zone where you are creating the HSM. To find the cluster's * Availability Zones, use DescribeClusters.

*/ inline CreateHsmRequest& WithAvailabilityZone(Aws::String&& value) { SetAvailabilityZone(std::move(value)); return *this;} /** *

The Availability Zone where you are creating the HSM. To find the cluster's * Availability Zones, use DescribeClusters.

*/ inline CreateHsmRequest& WithAvailabilityZone(const char* value) { SetAvailabilityZone(value); return *this;} /** *

The HSM's IP address. If you specify an IP address, use an available address * from the subnet that maps to the Availability Zone where you are creating the * HSM. If you don't specify an IP address, one is chosen for you from that * subnet.

*/ inline const Aws::String& GetIpAddress() const{ return m_ipAddress; } /** *

The HSM's IP address. If you specify an IP address, use an available address * from the subnet that maps to the Availability Zone where you are creating the * HSM. If you don't specify an IP address, one is chosen for you from that * subnet.

*/ inline bool IpAddressHasBeenSet() const { return m_ipAddressHasBeenSet; } /** *

The HSM's IP address. If you specify an IP address, use an available address * from the subnet that maps to the Availability Zone where you are creating the * HSM. If you don't specify an IP address, one is chosen for you from that * subnet.

*/ inline void SetIpAddress(const Aws::String& value) { m_ipAddressHasBeenSet = true; m_ipAddress = value; } /** *

The HSM's IP address. If you specify an IP address, use an available address * from the subnet that maps to the Availability Zone where you are creating the * HSM. If you don't specify an IP address, one is chosen for you from that * subnet.

*/ inline void SetIpAddress(Aws::String&& value) { m_ipAddressHasBeenSet = true; m_ipAddress = std::move(value); } /** *

The HSM's IP address. If you specify an IP address, use an available address * from the subnet that maps to the Availability Zone where you are creating the * HSM. If you don't specify an IP address, one is chosen for you from that * subnet.

*/ inline void SetIpAddress(const char* value) { m_ipAddressHasBeenSet = true; m_ipAddress.assign(value); } /** *

The HSM's IP address. If you specify an IP address, use an available address * from the subnet that maps to the Availability Zone where you are creating the * HSM. If you don't specify an IP address, one is chosen for you from that * subnet.

*/ inline CreateHsmRequest& WithIpAddress(const Aws::String& value) { SetIpAddress(value); return *this;} /** *

The HSM's IP address. If you specify an IP address, use an available address * from the subnet that maps to the Availability Zone where you are creating the * HSM. If you don't specify an IP address, one is chosen for you from that * subnet.

*/ inline CreateHsmRequest& WithIpAddress(Aws::String&& value) { SetIpAddress(std::move(value)); return *this;} /** *

The HSM's IP address. If you specify an IP address, use an available address * from the subnet that maps to the Availability Zone where you are creating the * HSM. If you don't specify an IP address, one is chosen for you from that * subnet.

*/ inline CreateHsmRequest& WithIpAddress(const char* value) { SetIpAddress(value); return *this;} private: Aws::String m_clusterId; bool m_clusterIdHasBeenSet = false; Aws::String m_availabilityZone; bool m_availabilityZoneHasBeenSet = false; Aws::String m_ipAddress; bool m_ipAddressHasBeenSet = false; }; } // namespace Model } // namespace CloudHSMV2 } // namespace Aws