/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Contains the inputs for the ModifyHsm operation.See
* Also:
AWS
* API Reference
The ARN of the HSM to modify.
*/ inline const Aws::String& GetHsmArn() const{ return m_hsmArn; } /** *The ARN of the HSM to modify.
*/ inline bool HsmArnHasBeenSet() const { return m_hsmArnHasBeenSet; } /** *The ARN of the HSM to modify.
*/ inline void SetHsmArn(const Aws::String& value) { m_hsmArnHasBeenSet = true; m_hsmArn = value; } /** *The ARN of the HSM to modify.
*/ inline void SetHsmArn(Aws::String&& value) { m_hsmArnHasBeenSet = true; m_hsmArn = std::move(value); } /** *The ARN of the HSM to modify.
*/ inline void SetHsmArn(const char* value) { m_hsmArnHasBeenSet = true; m_hsmArn.assign(value); } /** *The ARN of the HSM to modify.
*/ inline ModifyHsmRequest& WithHsmArn(const Aws::String& value) { SetHsmArn(value); return *this;} /** *The ARN of the HSM to modify.
*/ inline ModifyHsmRequest& WithHsmArn(Aws::String&& value) { SetHsmArn(std::move(value)); return *this;} /** *The ARN of the HSM to modify.
*/ inline ModifyHsmRequest& WithHsmArn(const char* value) { SetHsmArn(value); return *this;} /** *The new identifier of the subnet that the HSM is in. The new subnet must be * in the same Availability Zone as the current subnet.
*/ inline const Aws::String& GetSubnetId() const{ return m_subnetId; } /** *The new identifier of the subnet that the HSM is in. The new subnet must be * in the same Availability Zone as the current subnet.
*/ inline bool SubnetIdHasBeenSet() const { return m_subnetIdHasBeenSet; } /** *The new identifier of the subnet that the HSM is in. The new subnet must be * in the same Availability Zone as the current subnet.
*/ inline void SetSubnetId(const Aws::String& value) { m_subnetIdHasBeenSet = true; m_subnetId = value; } /** *The new identifier of the subnet that the HSM is in. The new subnet must be * in the same Availability Zone as the current subnet.
*/ inline void SetSubnetId(Aws::String&& value) { m_subnetIdHasBeenSet = true; m_subnetId = std::move(value); } /** *The new identifier of the subnet that the HSM is in. The new subnet must be * in the same Availability Zone as the current subnet.
*/ inline void SetSubnetId(const char* value) { m_subnetIdHasBeenSet = true; m_subnetId.assign(value); } /** *The new identifier of the subnet that the HSM is in. The new subnet must be * in the same Availability Zone as the current subnet.
*/ inline ModifyHsmRequest& WithSubnetId(const Aws::String& value) { SetSubnetId(value); return *this;} /** *The new identifier of the subnet that the HSM is in. The new subnet must be * in the same Availability Zone as the current subnet.
*/ inline ModifyHsmRequest& WithSubnetId(Aws::String&& value) { SetSubnetId(std::move(value)); return *this;} /** *The new identifier of the subnet that the HSM is in. The new subnet must be * in the same Availability Zone as the current subnet.
*/ inline ModifyHsmRequest& WithSubnetId(const char* value) { SetSubnetId(value); return *this;} /** *The new IP address for the elastic network interface (ENI) attached to the * HSM.
If the HSM is moved to a different subnet, and an IP address is not * specified, an IP address will be randomly chosen from the CIDR range of the new * subnet.
*/ inline const Aws::String& GetEniIp() const{ return m_eniIp; } /** *The new IP address for the elastic network interface (ENI) attached to the * HSM.
If the HSM is moved to a different subnet, and an IP address is not * specified, an IP address will be randomly chosen from the CIDR range of the new * subnet.
*/ inline bool EniIpHasBeenSet() const { return m_eniIpHasBeenSet; } /** *The new IP address for the elastic network interface (ENI) attached to the * HSM.
If the HSM is moved to a different subnet, and an IP address is not * specified, an IP address will be randomly chosen from the CIDR range of the new * subnet.
*/ inline void SetEniIp(const Aws::String& value) { m_eniIpHasBeenSet = true; m_eniIp = value; } /** *The new IP address for the elastic network interface (ENI) attached to the * HSM.
If the HSM is moved to a different subnet, and an IP address is not * specified, an IP address will be randomly chosen from the CIDR range of the new * subnet.
*/ inline void SetEniIp(Aws::String&& value) { m_eniIpHasBeenSet = true; m_eniIp = std::move(value); } /** *The new IP address for the elastic network interface (ENI) attached to the * HSM.
If the HSM is moved to a different subnet, and an IP address is not * specified, an IP address will be randomly chosen from the CIDR range of the new * subnet.
*/ inline void SetEniIp(const char* value) { m_eniIpHasBeenSet = true; m_eniIp.assign(value); } /** *The new IP address for the elastic network interface (ENI) attached to the * HSM.
If the HSM is moved to a different subnet, and an IP address is not * specified, an IP address will be randomly chosen from the CIDR range of the new * subnet.
*/ inline ModifyHsmRequest& WithEniIp(const Aws::String& value) { SetEniIp(value); return *this;} /** *The new IP address for the elastic network interface (ENI) attached to the * HSM.
If the HSM is moved to a different subnet, and an IP address is not * specified, an IP address will be randomly chosen from the CIDR range of the new * subnet.
*/ inline ModifyHsmRequest& WithEniIp(Aws::String&& value) { SetEniIp(std::move(value)); return *this;} /** *The new IP address for the elastic network interface (ENI) attached to the * HSM.
If the HSM is moved to a different subnet, and an IP address is not * specified, an IP address will be randomly chosen from the CIDR range of the new * subnet.
*/ inline ModifyHsmRequest& WithEniIp(const char* value) { SetEniIp(value); return *this;} /** *The new IAM role ARN.
*/ inline const Aws::String& GetIamRoleArn() const{ return m_iamRoleArn; } /** *The new IAM role ARN.
*/ inline bool IamRoleArnHasBeenSet() const { return m_iamRoleArnHasBeenSet; } /** *The new IAM role ARN.
*/ inline void SetIamRoleArn(const Aws::String& value) { m_iamRoleArnHasBeenSet = true; m_iamRoleArn = value; } /** *The new IAM role ARN.
*/ inline void SetIamRoleArn(Aws::String&& value) { m_iamRoleArnHasBeenSet = true; m_iamRoleArn = std::move(value); } /** *The new IAM role ARN.
*/ inline void SetIamRoleArn(const char* value) { m_iamRoleArnHasBeenSet = true; m_iamRoleArn.assign(value); } /** *The new IAM role ARN.
*/ inline ModifyHsmRequest& WithIamRoleArn(const Aws::String& value) { SetIamRoleArn(value); return *this;} /** *The new IAM role ARN.
*/ inline ModifyHsmRequest& WithIamRoleArn(Aws::String&& value) { SetIamRoleArn(std::move(value)); return *this;} /** *The new IAM role ARN.
*/ inline ModifyHsmRequest& WithIamRoleArn(const char* value) { SetIamRoleArn(value); return *this;} /** *The new external ID.
*/ inline const Aws::String& GetExternalId() const{ return m_externalId; } /** *The new external ID.
*/ inline bool ExternalIdHasBeenSet() const { return m_externalIdHasBeenSet; } /** *The new external ID.
*/ inline void SetExternalId(const Aws::String& value) { m_externalIdHasBeenSet = true; m_externalId = value; } /** *The new external ID.
*/ inline void SetExternalId(Aws::String&& value) { m_externalIdHasBeenSet = true; m_externalId = std::move(value); } /** *The new external ID.
*/ inline void SetExternalId(const char* value) { m_externalIdHasBeenSet = true; m_externalId.assign(value); } /** *The new external ID.
*/ inline ModifyHsmRequest& WithExternalId(const Aws::String& value) { SetExternalId(value); return *this;} /** *The new external ID.
*/ inline ModifyHsmRequest& WithExternalId(Aws::String&& value) { SetExternalId(std::move(value)); return *this;} /** *The new external ID.
*/ inline ModifyHsmRequest& WithExternalId(const char* value) { SetExternalId(value); return *this;} /** *The new IP address for the syslog monitoring server. The AWS CloudHSM service * only supports one syslog monitoring server.
*/ inline const Aws::String& GetSyslogIp() const{ return m_syslogIp; } /** *The new IP address for the syslog monitoring server. The AWS CloudHSM service * only supports one syslog monitoring server.
*/ inline bool SyslogIpHasBeenSet() const { return m_syslogIpHasBeenSet; } /** *The new IP address for the syslog monitoring server. The AWS CloudHSM service * only supports one syslog monitoring server.
*/ inline void SetSyslogIp(const Aws::String& value) { m_syslogIpHasBeenSet = true; m_syslogIp = value; } /** *The new IP address for the syslog monitoring server. The AWS CloudHSM service * only supports one syslog monitoring server.
*/ inline void SetSyslogIp(Aws::String&& value) { m_syslogIpHasBeenSet = true; m_syslogIp = std::move(value); } /** *The new IP address for the syslog monitoring server. The AWS CloudHSM service * only supports one syslog monitoring server.
*/ inline void SetSyslogIp(const char* value) { m_syslogIpHasBeenSet = true; m_syslogIp.assign(value); } /** *The new IP address for the syslog monitoring server. The AWS CloudHSM service * only supports one syslog monitoring server.
*/ inline ModifyHsmRequest& WithSyslogIp(const Aws::String& value) { SetSyslogIp(value); return *this;} /** *The new IP address for the syslog monitoring server. The AWS CloudHSM service * only supports one syslog monitoring server.
*/ inline ModifyHsmRequest& WithSyslogIp(Aws::String&& value) { SetSyslogIp(std::move(value)); return *this;} /** *The new IP address for the syslog monitoring server. The AWS CloudHSM service * only supports one syslog monitoring server.
*/ inline ModifyHsmRequest& WithSyslogIp(const char* value) { SetSyslogIp(value); return *this;} private: Aws::String m_hsmArn; bool m_hsmArnHasBeenSet = false; Aws::String m_subnetId; bool m_subnetIdHasBeenSet = false; Aws::String m_eniIp; bool m_eniIpHasBeenSet = false; Aws::String m_iamRoleArn; bool m_iamRoleArnHasBeenSet = false; Aws::String m_externalId; bool m_externalIdHasBeenSet = false; Aws::String m_syslogIp; bool m_syslogIpHasBeenSet = false; }; } // namespace Model } // namespace CloudHSM } // namespace Aws