/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace OpsWorks { namespace Model { /** *

Describes an instance.

See Also:

AWS * API Reference

*/ class Instance { public: AWS_OPSWORKS_API Instance(); AWS_OPSWORKS_API Instance(Aws::Utils::Json::JsonView jsonValue); AWS_OPSWORKS_API Instance& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_OPSWORKS_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The agent version. This parameter is set to INHERIT if the * instance inherits the default stack setting or to a a version number for a fixed * agent version.

*/ inline const Aws::String& GetAgentVersion() const{ return m_agentVersion; } /** *

The agent version. This parameter is set to INHERIT if the * instance inherits the default stack setting or to a a version number for a fixed * agent version.

*/ inline bool AgentVersionHasBeenSet() const { return m_agentVersionHasBeenSet; } /** *

The agent version. This parameter is set to INHERIT if the * instance inherits the default stack setting or to a a version number for a fixed * agent version.

*/ inline void SetAgentVersion(const Aws::String& value) { m_agentVersionHasBeenSet = true; m_agentVersion = value; } /** *

The agent version. This parameter is set to INHERIT if the * instance inherits the default stack setting or to a a version number for a fixed * agent version.

*/ inline void SetAgentVersion(Aws::String&& value) { m_agentVersionHasBeenSet = true; m_agentVersion = std::move(value); } /** *

The agent version. This parameter is set to INHERIT if the * instance inherits the default stack setting or to a a version number for a fixed * agent version.

*/ inline void SetAgentVersion(const char* value) { m_agentVersionHasBeenSet = true; m_agentVersion.assign(value); } /** *

The agent version. This parameter is set to INHERIT if the * instance inherits the default stack setting or to a a version number for a fixed * agent version.

*/ inline Instance& WithAgentVersion(const Aws::String& value) { SetAgentVersion(value); return *this;} /** *

The agent version. This parameter is set to INHERIT if the * instance inherits the default stack setting or to a a version number for a fixed * agent version.

*/ inline Instance& WithAgentVersion(Aws::String&& value) { SetAgentVersion(std::move(value)); return *this;} /** *

The agent version. This parameter is set to INHERIT if the * instance inherits the default stack setting or to a a version number for a fixed * agent version.

*/ inline Instance& WithAgentVersion(const char* value) { SetAgentVersion(value); return *this;} /** *

A custom AMI ID to be used to create the instance. For more information, see * Instances *

*/ inline const Aws::String& GetAmiId() const{ return m_amiId; } /** *

A custom AMI ID to be used to create the instance. For more information, see * Instances *

*/ inline bool AmiIdHasBeenSet() const { return m_amiIdHasBeenSet; } /** *

A custom AMI ID to be used to create the instance. For more information, see * Instances *

*/ inline void SetAmiId(const Aws::String& value) { m_amiIdHasBeenSet = true; m_amiId = value; } /** *

A custom AMI ID to be used to create the instance. For more information, see * Instances *

*/ inline void SetAmiId(Aws::String&& value) { m_amiIdHasBeenSet = true; m_amiId = std::move(value); } /** *

A custom AMI ID to be used to create the instance. For more information, see * Instances *

*/ inline void SetAmiId(const char* value) { m_amiIdHasBeenSet = true; m_amiId.assign(value); } /** *

A custom AMI ID to be used to create the instance. For more information, see * Instances *

*/ inline Instance& WithAmiId(const Aws::String& value) { SetAmiId(value); return *this;} /** *

A custom AMI ID to be used to create the instance. For more information, see * Instances *

*/ inline Instance& WithAmiId(Aws::String&& value) { SetAmiId(std::move(value)); return *this;} /** *

A custom AMI ID to be used to create the instance. For more information, see * Instances *

*/ inline Instance& WithAmiId(const char* value) { SetAmiId(value); return *this;} /** *

The instance architecture: "i386" or "x86_64".

*/ inline const Architecture& GetArchitecture() const{ return m_architecture; } /** *

The instance architecture: "i386" or "x86_64".

*/ inline bool ArchitectureHasBeenSet() const { return m_architectureHasBeenSet; } /** *

The instance architecture: "i386" or "x86_64".

*/ inline void SetArchitecture(const Architecture& value) { m_architectureHasBeenSet = true; m_architecture = value; } /** *

The instance architecture: "i386" or "x86_64".

*/ inline void SetArchitecture(Architecture&& value) { m_architectureHasBeenSet = true; m_architecture = std::move(value); } /** *

The instance architecture: "i386" or "x86_64".

*/ inline Instance& WithArchitecture(const Architecture& value) { SetArchitecture(value); return *this;} /** *

The instance architecture: "i386" or "x86_64".

*/ inline Instance& WithArchitecture(Architecture&& value) { SetArchitecture(std::move(value)); return *this;} /** *

The instance's Amazon Resource Number (ARN).

*/ inline const Aws::String& GetArn() const{ return m_arn; } /** *

The instance's Amazon Resource Number (ARN).

*/ inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; } /** *

The instance's Amazon Resource Number (ARN).

*/ inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; } /** *

The instance's Amazon Resource Number (ARN).

*/ inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); } /** *

The instance's Amazon Resource Number (ARN).

*/ inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); } /** *

The instance's Amazon Resource Number (ARN).

*/ inline Instance& WithArn(const Aws::String& value) { SetArn(value); return *this;} /** *

The instance's Amazon Resource Number (ARN).

*/ inline Instance& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;} /** *

The instance's Amazon Resource Number (ARN).

*/ inline Instance& WithArn(const char* value) { SetArn(value); return *this;} /** *

For load-based or time-based instances, the type.

*/ inline const AutoScalingType& GetAutoScalingType() const{ return m_autoScalingType; } /** *

For load-based or time-based instances, the type.

*/ inline bool AutoScalingTypeHasBeenSet() const { return m_autoScalingTypeHasBeenSet; } /** *

For load-based or time-based instances, the type.

*/ inline void SetAutoScalingType(const AutoScalingType& value) { m_autoScalingTypeHasBeenSet = true; m_autoScalingType = value; } /** *

For load-based or time-based instances, the type.

*/ inline void SetAutoScalingType(AutoScalingType&& value) { m_autoScalingTypeHasBeenSet = true; m_autoScalingType = std::move(value); } /** *

For load-based or time-based instances, the type.

*/ inline Instance& WithAutoScalingType(const AutoScalingType& value) { SetAutoScalingType(value); return *this;} /** *

For load-based or time-based instances, the type.

*/ inline Instance& WithAutoScalingType(AutoScalingType&& value) { SetAutoScalingType(std::move(value)); return *this;} /** *

The instance Availability Zone. For more information, see Regions and * Endpoints.

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

The instance Availability Zone. For more information, see Regions and * Endpoints.

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

The instance Availability Zone. For more information, see Regions and * Endpoints.

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

The instance Availability Zone. For more information, see Regions and * Endpoints.

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

The instance Availability Zone. For more information, see Regions and * Endpoints.

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

The instance Availability Zone. For more information, see Regions and * Endpoints.

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

The instance Availability Zone. For more information, see Regions and * Endpoints.

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

The instance Availability Zone. For more information, see Regions and * Endpoints.

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

An array of BlockDeviceMapping objects that specify the * instance's block device mappings.

*/ inline const Aws::Vector& GetBlockDeviceMappings() const{ return m_blockDeviceMappings; } /** *

An array of BlockDeviceMapping objects that specify the * instance's block device mappings.

*/ inline bool BlockDeviceMappingsHasBeenSet() const { return m_blockDeviceMappingsHasBeenSet; } /** *

An array of BlockDeviceMapping objects that specify the * instance's block device mappings.

*/ inline void SetBlockDeviceMappings(const Aws::Vector& value) { m_blockDeviceMappingsHasBeenSet = true; m_blockDeviceMappings = value; } /** *

An array of BlockDeviceMapping objects that specify the * instance's block device mappings.

*/ inline void SetBlockDeviceMappings(Aws::Vector&& value) { m_blockDeviceMappingsHasBeenSet = true; m_blockDeviceMappings = std::move(value); } /** *

An array of BlockDeviceMapping objects that specify the * instance's block device mappings.

*/ inline Instance& WithBlockDeviceMappings(const Aws::Vector& value) { SetBlockDeviceMappings(value); return *this;} /** *

An array of BlockDeviceMapping objects that specify the * instance's block device mappings.

*/ inline Instance& WithBlockDeviceMappings(Aws::Vector&& value) { SetBlockDeviceMappings(std::move(value)); return *this;} /** *

An array of BlockDeviceMapping objects that specify the * instance's block device mappings.

*/ inline Instance& AddBlockDeviceMappings(const BlockDeviceMapping& value) { m_blockDeviceMappingsHasBeenSet = true; m_blockDeviceMappings.push_back(value); return *this; } /** *

An array of BlockDeviceMapping objects that specify the * instance's block device mappings.

*/ inline Instance& AddBlockDeviceMappings(BlockDeviceMapping&& value) { m_blockDeviceMappingsHasBeenSet = true; m_blockDeviceMappings.push_back(std::move(value)); return *this; } /** *

The time that the instance was created.

*/ inline const Aws::String& GetCreatedAt() const{ return m_createdAt; } /** *

The time that the instance was created.

*/ inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; } /** *

The time that the instance was created.

*/ inline void SetCreatedAt(const Aws::String& value) { m_createdAtHasBeenSet = true; m_createdAt = value; } /** *

The time that the instance was created.

*/ inline void SetCreatedAt(Aws::String&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::move(value); } /** *

The time that the instance was created.

*/ inline void SetCreatedAt(const char* value) { m_createdAtHasBeenSet = true; m_createdAt.assign(value); } /** *

The time that the instance was created.

*/ inline Instance& WithCreatedAt(const Aws::String& value) { SetCreatedAt(value); return *this;} /** *

The time that the instance was created.

*/ inline Instance& WithCreatedAt(Aws::String&& value) { SetCreatedAt(std::move(value)); return *this;} /** *

The time that the instance was created.

*/ inline Instance& WithCreatedAt(const char* value) { SetCreatedAt(value); return *this;} /** *

Whether this is an Amazon EBS-optimized instance.

*/ inline bool GetEbsOptimized() const{ return m_ebsOptimized; } /** *

Whether this is an Amazon EBS-optimized instance.

*/ inline bool EbsOptimizedHasBeenSet() const { return m_ebsOptimizedHasBeenSet; } /** *

Whether this is an Amazon EBS-optimized instance.

*/ inline void SetEbsOptimized(bool value) { m_ebsOptimizedHasBeenSet = true; m_ebsOptimized = value; } /** *

Whether this is an Amazon EBS-optimized instance.

*/ inline Instance& WithEbsOptimized(bool value) { SetEbsOptimized(value); return *this;} /** *

The ID of the associated Amazon EC2 instance.

*/ inline const Aws::String& GetEc2InstanceId() const{ return m_ec2InstanceId; } /** *

The ID of the associated Amazon EC2 instance.

*/ inline bool Ec2InstanceIdHasBeenSet() const { return m_ec2InstanceIdHasBeenSet; } /** *

The ID of the associated Amazon EC2 instance.

*/ inline void SetEc2InstanceId(const Aws::String& value) { m_ec2InstanceIdHasBeenSet = true; m_ec2InstanceId = value; } /** *

The ID of the associated Amazon EC2 instance.

*/ inline void SetEc2InstanceId(Aws::String&& value) { m_ec2InstanceIdHasBeenSet = true; m_ec2InstanceId = std::move(value); } /** *

The ID of the associated Amazon EC2 instance.

*/ inline void SetEc2InstanceId(const char* value) { m_ec2InstanceIdHasBeenSet = true; m_ec2InstanceId.assign(value); } /** *

The ID of the associated Amazon EC2 instance.

*/ inline Instance& WithEc2InstanceId(const Aws::String& value) { SetEc2InstanceId(value); return *this;} /** *

The ID of the associated Amazon EC2 instance.

*/ inline Instance& WithEc2InstanceId(Aws::String&& value) { SetEc2InstanceId(std::move(value)); return *this;} /** *

The ID of the associated Amazon EC2 instance.

*/ inline Instance& WithEc2InstanceId(const char* value) { SetEc2InstanceId(value); return *this;} /** *

For container instances, the Amazon ECS cluster's ARN.

*/ inline const Aws::String& GetEcsClusterArn() const{ return m_ecsClusterArn; } /** *

For container instances, the Amazon ECS cluster's ARN.

*/ inline bool EcsClusterArnHasBeenSet() const { return m_ecsClusterArnHasBeenSet; } /** *

For container instances, the Amazon ECS cluster's ARN.

*/ inline void SetEcsClusterArn(const Aws::String& value) { m_ecsClusterArnHasBeenSet = true; m_ecsClusterArn = value; } /** *

For container instances, the Amazon ECS cluster's ARN.

*/ inline void SetEcsClusterArn(Aws::String&& value) { m_ecsClusterArnHasBeenSet = true; m_ecsClusterArn = std::move(value); } /** *

For container instances, the Amazon ECS cluster's ARN.

*/ inline void SetEcsClusterArn(const char* value) { m_ecsClusterArnHasBeenSet = true; m_ecsClusterArn.assign(value); } /** *

For container instances, the Amazon ECS cluster's ARN.

*/ inline Instance& WithEcsClusterArn(const Aws::String& value) { SetEcsClusterArn(value); return *this;} /** *

For container instances, the Amazon ECS cluster's ARN.

*/ inline Instance& WithEcsClusterArn(Aws::String&& value) { SetEcsClusterArn(std::move(value)); return *this;} /** *

For container instances, the Amazon ECS cluster's ARN.

*/ inline Instance& WithEcsClusterArn(const char* value) { SetEcsClusterArn(value); return *this;} /** *

For container instances, the instance's ARN.

*/ inline const Aws::String& GetEcsContainerInstanceArn() const{ return m_ecsContainerInstanceArn; } /** *

For container instances, the instance's ARN.

*/ inline bool EcsContainerInstanceArnHasBeenSet() const { return m_ecsContainerInstanceArnHasBeenSet; } /** *

For container instances, the instance's ARN.

*/ inline void SetEcsContainerInstanceArn(const Aws::String& value) { m_ecsContainerInstanceArnHasBeenSet = true; m_ecsContainerInstanceArn = value; } /** *

For container instances, the instance's ARN.

*/ inline void SetEcsContainerInstanceArn(Aws::String&& value) { m_ecsContainerInstanceArnHasBeenSet = true; m_ecsContainerInstanceArn = std::move(value); } /** *

For container instances, the instance's ARN.

*/ inline void SetEcsContainerInstanceArn(const char* value) { m_ecsContainerInstanceArnHasBeenSet = true; m_ecsContainerInstanceArn.assign(value); } /** *

For container instances, the instance's ARN.

*/ inline Instance& WithEcsContainerInstanceArn(const Aws::String& value) { SetEcsContainerInstanceArn(value); return *this;} /** *

For container instances, the instance's ARN.

*/ inline Instance& WithEcsContainerInstanceArn(Aws::String&& value) { SetEcsContainerInstanceArn(std::move(value)); return *this;} /** *

For container instances, the instance's ARN.

*/ inline Instance& WithEcsContainerInstanceArn(const char* value) { SetEcsContainerInstanceArn(value); return *this;} /** *

The instance Elastic * IP address .

*/ inline const Aws::String& GetElasticIp() const{ return m_elasticIp; } /** *

The instance Elastic * IP address .

*/ inline bool ElasticIpHasBeenSet() const { return m_elasticIpHasBeenSet; } /** *

The instance Elastic * IP address .

*/ inline void SetElasticIp(const Aws::String& value) { m_elasticIpHasBeenSet = true; m_elasticIp = value; } /** *

The instance Elastic * IP address .

*/ inline void SetElasticIp(Aws::String&& value) { m_elasticIpHasBeenSet = true; m_elasticIp = std::move(value); } /** *

The instance Elastic * IP address .

*/ inline void SetElasticIp(const char* value) { m_elasticIpHasBeenSet = true; m_elasticIp.assign(value); } /** *

The instance Elastic * IP address .

*/ inline Instance& WithElasticIp(const Aws::String& value) { SetElasticIp(value); return *this;} /** *

The instance Elastic * IP address .

*/ inline Instance& WithElasticIp(Aws::String&& value) { SetElasticIp(std::move(value)); return *this;} /** *

The instance Elastic * IP address .

*/ inline Instance& WithElasticIp(const char* value) { SetElasticIp(value); return *this;} /** *

The instance host name.

*/ inline const Aws::String& GetHostname() const{ return m_hostname; } /** *

The instance host name.

*/ inline bool HostnameHasBeenSet() const { return m_hostnameHasBeenSet; } /** *

The instance host name.

*/ inline void SetHostname(const Aws::String& value) { m_hostnameHasBeenSet = true; m_hostname = value; } /** *

The instance host name.

*/ inline void SetHostname(Aws::String&& value) { m_hostnameHasBeenSet = true; m_hostname = std::move(value); } /** *

The instance host name.

*/ inline void SetHostname(const char* value) { m_hostnameHasBeenSet = true; m_hostname.assign(value); } /** *

The instance host name.

*/ inline Instance& WithHostname(const Aws::String& value) { SetHostname(value); return *this;} /** *

The instance host name.

*/ inline Instance& WithHostname(Aws::String&& value) { SetHostname(std::move(value)); return *this;} /** *

The instance host name.

*/ inline Instance& WithHostname(const char* value) { SetHostname(value); return *this;} /** *

For registered instances, the infrastructure class: ec2 or * on-premises.

*/ inline const Aws::String& GetInfrastructureClass() const{ return m_infrastructureClass; } /** *

For registered instances, the infrastructure class: ec2 or * on-premises.

*/ inline bool InfrastructureClassHasBeenSet() const { return m_infrastructureClassHasBeenSet; } /** *

For registered instances, the infrastructure class: ec2 or * on-premises.

*/ inline void SetInfrastructureClass(const Aws::String& value) { m_infrastructureClassHasBeenSet = true; m_infrastructureClass = value; } /** *

For registered instances, the infrastructure class: ec2 or * on-premises.

*/ inline void SetInfrastructureClass(Aws::String&& value) { m_infrastructureClassHasBeenSet = true; m_infrastructureClass = std::move(value); } /** *

For registered instances, the infrastructure class: ec2 or * on-premises.

*/ inline void SetInfrastructureClass(const char* value) { m_infrastructureClassHasBeenSet = true; m_infrastructureClass.assign(value); } /** *

For registered instances, the infrastructure class: ec2 or * on-premises.

*/ inline Instance& WithInfrastructureClass(const Aws::String& value) { SetInfrastructureClass(value); return *this;} /** *

For registered instances, the infrastructure class: ec2 or * on-premises.

*/ inline Instance& WithInfrastructureClass(Aws::String&& value) { SetInfrastructureClass(std::move(value)); return *this;} /** *

For registered instances, the infrastructure class: ec2 or * on-premises.

*/ inline Instance& WithInfrastructureClass(const char* value) { SetInfrastructureClass(value); return *this;} /** *

Whether to install operating system and package updates when the instance * boots. The default value is true. If this value is set to * false, you must then update your instances manually by using * CreateDeployment to run the update_dependencies stack * command or by manually running yum (Amazon Linux) or * apt-get (Ubuntu) on the instances.

We strongly * recommend using the default value of true, to ensure that your * instances have the latest security updates.

*/ inline bool GetInstallUpdatesOnBoot() const{ return m_installUpdatesOnBoot; } /** *

Whether to install operating system and package updates when the instance * boots. The default value is true. If this value is set to * false, you must then update your instances manually by using * CreateDeployment to run the update_dependencies stack * command or by manually running yum (Amazon Linux) or * apt-get (Ubuntu) on the instances.

We strongly * recommend using the default value of true, to ensure that your * instances have the latest security updates.

*/ inline bool InstallUpdatesOnBootHasBeenSet() const { return m_installUpdatesOnBootHasBeenSet; } /** *

Whether to install operating system and package updates when the instance * boots. The default value is true. If this value is set to * false, you must then update your instances manually by using * CreateDeployment to run the update_dependencies stack * command or by manually running yum (Amazon Linux) or * apt-get (Ubuntu) on the instances.

We strongly * recommend using the default value of true, to ensure that your * instances have the latest security updates.

*/ inline void SetInstallUpdatesOnBoot(bool value) { m_installUpdatesOnBootHasBeenSet = true; m_installUpdatesOnBoot = value; } /** *

Whether to install operating system and package updates when the instance * boots. The default value is true. If this value is set to * false, you must then update your instances manually by using * CreateDeployment to run the update_dependencies stack * command or by manually running yum (Amazon Linux) or * apt-get (Ubuntu) on the instances.

We strongly * recommend using the default value of true, to ensure that your * instances have the latest security updates.

*/ inline Instance& WithInstallUpdatesOnBoot(bool value) { SetInstallUpdatesOnBoot(value); return *this;} /** *

The instance ID.

*/ inline const Aws::String& GetInstanceId() const{ return m_instanceId; } /** *

The instance ID.

*/ inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; } /** *

The instance ID.

*/ inline void SetInstanceId(const Aws::String& value) { m_instanceIdHasBeenSet = true; m_instanceId = value; } /** *

The instance ID.

*/ inline void SetInstanceId(Aws::String&& value) { m_instanceIdHasBeenSet = true; m_instanceId = std::move(value); } /** *

The instance ID.

*/ inline void SetInstanceId(const char* value) { m_instanceIdHasBeenSet = true; m_instanceId.assign(value); } /** *

The instance ID.

*/ inline Instance& WithInstanceId(const Aws::String& value) { SetInstanceId(value); return *this;} /** *

The instance ID.

*/ inline Instance& WithInstanceId(Aws::String&& value) { SetInstanceId(std::move(value)); return *this;} /** *

The instance ID.

*/ inline Instance& WithInstanceId(const char* value) { SetInstanceId(value); return *this;} /** *

The ARN of the instance's IAM profile. For more information about IAM ARNs, * see Using * Identifiers.

*/ inline const Aws::String& GetInstanceProfileArn() const{ return m_instanceProfileArn; } /** *

The ARN of the instance's IAM profile. For more information about IAM ARNs, * see Using * Identifiers.

*/ inline bool InstanceProfileArnHasBeenSet() const { return m_instanceProfileArnHasBeenSet; } /** *

The ARN of the instance's IAM profile. For more information about IAM ARNs, * see Using * Identifiers.

*/ inline void SetInstanceProfileArn(const Aws::String& value) { m_instanceProfileArnHasBeenSet = true; m_instanceProfileArn = value; } /** *

The ARN of the instance's IAM profile. For more information about IAM ARNs, * see Using * Identifiers.

*/ inline void SetInstanceProfileArn(Aws::String&& value) { m_instanceProfileArnHasBeenSet = true; m_instanceProfileArn = std::move(value); } /** *

The ARN of the instance's IAM profile. For more information about IAM ARNs, * see Using * Identifiers.

*/ inline void SetInstanceProfileArn(const char* value) { m_instanceProfileArnHasBeenSet = true; m_instanceProfileArn.assign(value); } /** *

The ARN of the instance's IAM profile. For more information about IAM ARNs, * see Using * Identifiers.

*/ inline Instance& WithInstanceProfileArn(const Aws::String& value) { SetInstanceProfileArn(value); return *this;} /** *

The ARN of the instance's IAM profile. For more information about IAM ARNs, * see Using * Identifiers.

*/ inline Instance& WithInstanceProfileArn(Aws::String&& value) { SetInstanceProfileArn(std::move(value)); return *this;} /** *

The ARN of the instance's IAM profile. For more information about IAM ARNs, * see Using * Identifiers.

*/ inline Instance& WithInstanceProfileArn(const char* value) { SetInstanceProfileArn(value); return *this;} /** *

The instance type, such as t2.micro.

*/ inline const Aws::String& GetInstanceType() const{ return m_instanceType; } /** *

The instance type, such as t2.micro.

*/ inline bool InstanceTypeHasBeenSet() const { return m_instanceTypeHasBeenSet; } /** *

The instance type, such as t2.micro.

*/ inline void SetInstanceType(const Aws::String& value) { m_instanceTypeHasBeenSet = true; m_instanceType = value; } /** *

The instance type, such as t2.micro.

*/ inline void SetInstanceType(Aws::String&& value) { m_instanceTypeHasBeenSet = true; m_instanceType = std::move(value); } /** *

The instance type, such as t2.micro.

*/ inline void SetInstanceType(const char* value) { m_instanceTypeHasBeenSet = true; m_instanceType.assign(value); } /** *

The instance type, such as t2.micro.

*/ inline Instance& WithInstanceType(const Aws::String& value) { SetInstanceType(value); return *this;} /** *

The instance type, such as t2.micro.

*/ inline Instance& WithInstanceType(Aws::String&& value) { SetInstanceType(std::move(value)); return *this;} /** *

The instance type, such as t2.micro.

*/ inline Instance& WithInstanceType(const char* value) { SetInstanceType(value); return *this;} /** *

The ID of the last service error. For more information, call * DescribeServiceErrors.

*/ inline const Aws::String& GetLastServiceErrorId() const{ return m_lastServiceErrorId; } /** *

The ID of the last service error. For more information, call * DescribeServiceErrors.

*/ inline bool LastServiceErrorIdHasBeenSet() const { return m_lastServiceErrorIdHasBeenSet; } /** *

The ID of the last service error. For more information, call * DescribeServiceErrors.

*/ inline void SetLastServiceErrorId(const Aws::String& value) { m_lastServiceErrorIdHasBeenSet = true; m_lastServiceErrorId = value; } /** *

The ID of the last service error. For more information, call * DescribeServiceErrors.

*/ inline void SetLastServiceErrorId(Aws::String&& value) { m_lastServiceErrorIdHasBeenSet = true; m_lastServiceErrorId = std::move(value); } /** *

The ID of the last service error. For more information, call * DescribeServiceErrors.

*/ inline void SetLastServiceErrorId(const char* value) { m_lastServiceErrorIdHasBeenSet = true; m_lastServiceErrorId.assign(value); } /** *

The ID of the last service error. For more information, call * DescribeServiceErrors.

*/ inline Instance& WithLastServiceErrorId(const Aws::String& value) { SetLastServiceErrorId(value); return *this;} /** *

The ID of the last service error. For more information, call * DescribeServiceErrors.

*/ inline Instance& WithLastServiceErrorId(Aws::String&& value) { SetLastServiceErrorId(std::move(value)); return *this;} /** *

The ID of the last service error. For more information, call * DescribeServiceErrors.

*/ inline Instance& WithLastServiceErrorId(const char* value) { SetLastServiceErrorId(value); return *this;} /** *

An array containing the instance layer IDs.

*/ inline const Aws::Vector& GetLayerIds() const{ return m_layerIds; } /** *

An array containing the instance layer IDs.

*/ inline bool LayerIdsHasBeenSet() const { return m_layerIdsHasBeenSet; } /** *

An array containing the instance layer IDs.

*/ inline void SetLayerIds(const Aws::Vector& value) { m_layerIdsHasBeenSet = true; m_layerIds = value; } /** *

An array containing the instance layer IDs.

*/ inline void SetLayerIds(Aws::Vector&& value) { m_layerIdsHasBeenSet = true; m_layerIds = std::move(value); } /** *

An array containing the instance layer IDs.

*/ inline Instance& WithLayerIds(const Aws::Vector& value) { SetLayerIds(value); return *this;} /** *

An array containing the instance layer IDs.

*/ inline Instance& WithLayerIds(Aws::Vector&& value) { SetLayerIds(std::move(value)); return *this;} /** *

An array containing the instance layer IDs.

*/ inline Instance& AddLayerIds(const Aws::String& value) { m_layerIdsHasBeenSet = true; m_layerIds.push_back(value); return *this; } /** *

An array containing the instance layer IDs.

*/ inline Instance& AddLayerIds(Aws::String&& value) { m_layerIdsHasBeenSet = true; m_layerIds.push_back(std::move(value)); return *this; } /** *

An array containing the instance layer IDs.

*/ inline Instance& AddLayerIds(const char* value) { m_layerIdsHasBeenSet = true; m_layerIds.push_back(value); return *this; } /** *

The instance's operating system.

*/ inline const Aws::String& GetOs() const{ return m_os; } /** *

The instance's operating system.

*/ inline bool OsHasBeenSet() const { return m_osHasBeenSet; } /** *

The instance's operating system.

*/ inline void SetOs(const Aws::String& value) { m_osHasBeenSet = true; m_os = value; } /** *

The instance's operating system.

*/ inline void SetOs(Aws::String&& value) { m_osHasBeenSet = true; m_os = std::move(value); } /** *

The instance's operating system.

*/ inline void SetOs(const char* value) { m_osHasBeenSet = true; m_os.assign(value); } /** *

The instance's operating system.

*/ inline Instance& WithOs(const Aws::String& value) { SetOs(value); return *this;} /** *

The instance's operating system.

*/ inline Instance& WithOs(Aws::String&& value) { SetOs(std::move(value)); return *this;} /** *

The instance's operating system.

*/ inline Instance& WithOs(const char* value) { SetOs(value); return *this;} /** *

The instance's platform.

*/ inline const Aws::String& GetPlatform() const{ return m_platform; } /** *

The instance's platform.

*/ inline bool PlatformHasBeenSet() const { return m_platformHasBeenSet; } /** *

The instance's platform.

*/ inline void SetPlatform(const Aws::String& value) { m_platformHasBeenSet = true; m_platform = value; } /** *

The instance's platform.

*/ inline void SetPlatform(Aws::String&& value) { m_platformHasBeenSet = true; m_platform = std::move(value); } /** *

The instance's platform.

*/ inline void SetPlatform(const char* value) { m_platformHasBeenSet = true; m_platform.assign(value); } /** *

The instance's platform.

*/ inline Instance& WithPlatform(const Aws::String& value) { SetPlatform(value); return *this;} /** *

The instance's platform.

*/ inline Instance& WithPlatform(Aws::String&& value) { SetPlatform(std::move(value)); return *this;} /** *

The instance's platform.

*/ inline Instance& WithPlatform(const char* value) { SetPlatform(value); return *this;} /** *

The instance's private DNS name.

*/ inline const Aws::String& GetPrivateDns() const{ return m_privateDns; } /** *

The instance's private DNS name.

*/ inline bool PrivateDnsHasBeenSet() const { return m_privateDnsHasBeenSet; } /** *

The instance's private DNS name.

*/ inline void SetPrivateDns(const Aws::String& value) { m_privateDnsHasBeenSet = true; m_privateDns = value; } /** *

The instance's private DNS name.

*/ inline void SetPrivateDns(Aws::String&& value) { m_privateDnsHasBeenSet = true; m_privateDns = std::move(value); } /** *

The instance's private DNS name.

*/ inline void SetPrivateDns(const char* value) { m_privateDnsHasBeenSet = true; m_privateDns.assign(value); } /** *

The instance's private DNS name.

*/ inline Instance& WithPrivateDns(const Aws::String& value) { SetPrivateDns(value); return *this;} /** *

The instance's private DNS name.

*/ inline Instance& WithPrivateDns(Aws::String&& value) { SetPrivateDns(std::move(value)); return *this;} /** *

The instance's private DNS name.

*/ inline Instance& WithPrivateDns(const char* value) { SetPrivateDns(value); return *this;} /** *

The instance's private IP address.

*/ inline const Aws::String& GetPrivateIp() const{ return m_privateIp; } /** *

The instance's private IP address.

*/ inline bool PrivateIpHasBeenSet() const { return m_privateIpHasBeenSet; } /** *

The instance's private IP address.

*/ inline void SetPrivateIp(const Aws::String& value) { m_privateIpHasBeenSet = true; m_privateIp = value; } /** *

The instance's private IP address.

*/ inline void SetPrivateIp(Aws::String&& value) { m_privateIpHasBeenSet = true; m_privateIp = std::move(value); } /** *

The instance's private IP address.

*/ inline void SetPrivateIp(const char* value) { m_privateIpHasBeenSet = true; m_privateIp.assign(value); } /** *

The instance's private IP address.

*/ inline Instance& WithPrivateIp(const Aws::String& value) { SetPrivateIp(value); return *this;} /** *

The instance's private IP address.

*/ inline Instance& WithPrivateIp(Aws::String&& value) { SetPrivateIp(std::move(value)); return *this;} /** *

The instance's private IP address.

*/ inline Instance& WithPrivateIp(const char* value) { SetPrivateIp(value); return *this;} /** *

The instance public DNS name.

*/ inline const Aws::String& GetPublicDns() const{ return m_publicDns; } /** *

The instance public DNS name.

*/ inline bool PublicDnsHasBeenSet() const { return m_publicDnsHasBeenSet; } /** *

The instance public DNS name.

*/ inline void SetPublicDns(const Aws::String& value) { m_publicDnsHasBeenSet = true; m_publicDns = value; } /** *

The instance public DNS name.

*/ inline void SetPublicDns(Aws::String&& value) { m_publicDnsHasBeenSet = true; m_publicDns = std::move(value); } /** *

The instance public DNS name.

*/ inline void SetPublicDns(const char* value) { m_publicDnsHasBeenSet = true; m_publicDns.assign(value); } /** *

The instance public DNS name.

*/ inline Instance& WithPublicDns(const Aws::String& value) { SetPublicDns(value); return *this;} /** *

The instance public DNS name.

*/ inline Instance& WithPublicDns(Aws::String&& value) { SetPublicDns(std::move(value)); return *this;} /** *

The instance public DNS name.

*/ inline Instance& WithPublicDns(const char* value) { SetPublicDns(value); return *this;} /** *

The instance public IP address.

*/ inline const Aws::String& GetPublicIp() const{ return m_publicIp; } /** *

The instance public IP address.

*/ inline bool PublicIpHasBeenSet() const { return m_publicIpHasBeenSet; } /** *

The instance public IP address.

*/ inline void SetPublicIp(const Aws::String& value) { m_publicIpHasBeenSet = true; m_publicIp = value; } /** *

The instance public IP address.

*/ inline void SetPublicIp(Aws::String&& value) { m_publicIpHasBeenSet = true; m_publicIp = std::move(value); } /** *

The instance public IP address.

*/ inline void SetPublicIp(const char* value) { m_publicIpHasBeenSet = true; m_publicIp.assign(value); } /** *

The instance public IP address.

*/ inline Instance& WithPublicIp(const Aws::String& value) { SetPublicIp(value); return *this;} /** *

The instance public IP address.

*/ inline Instance& WithPublicIp(Aws::String&& value) { SetPublicIp(std::move(value)); return *this;} /** *

The instance public IP address.

*/ inline Instance& WithPublicIp(const char* value) { SetPublicIp(value); return *this;} /** *

For registered instances, who performed the registration.

*/ inline const Aws::String& GetRegisteredBy() const{ return m_registeredBy; } /** *

For registered instances, who performed the registration.

*/ inline bool RegisteredByHasBeenSet() const { return m_registeredByHasBeenSet; } /** *

For registered instances, who performed the registration.

*/ inline void SetRegisteredBy(const Aws::String& value) { m_registeredByHasBeenSet = true; m_registeredBy = value; } /** *

For registered instances, who performed the registration.

*/ inline void SetRegisteredBy(Aws::String&& value) { m_registeredByHasBeenSet = true; m_registeredBy = std::move(value); } /** *

For registered instances, who performed the registration.

*/ inline void SetRegisteredBy(const char* value) { m_registeredByHasBeenSet = true; m_registeredBy.assign(value); } /** *

For registered instances, who performed the registration.

*/ inline Instance& WithRegisteredBy(const Aws::String& value) { SetRegisteredBy(value); return *this;} /** *

For registered instances, who performed the registration.

*/ inline Instance& WithRegisteredBy(Aws::String&& value) { SetRegisteredBy(std::move(value)); return *this;} /** *

For registered instances, who performed the registration.

*/ inline Instance& WithRegisteredBy(const char* value) { SetRegisteredBy(value); return *this;} /** *

The instance's reported AWS OpsWorks Stacks agent version.

*/ inline const Aws::String& GetReportedAgentVersion() const{ return m_reportedAgentVersion; } /** *

The instance's reported AWS OpsWorks Stacks agent version.

*/ inline bool ReportedAgentVersionHasBeenSet() const { return m_reportedAgentVersionHasBeenSet; } /** *

The instance's reported AWS OpsWorks Stacks agent version.

*/ inline void SetReportedAgentVersion(const Aws::String& value) { m_reportedAgentVersionHasBeenSet = true; m_reportedAgentVersion = value; } /** *

The instance's reported AWS OpsWorks Stacks agent version.

*/ inline void SetReportedAgentVersion(Aws::String&& value) { m_reportedAgentVersionHasBeenSet = true; m_reportedAgentVersion = std::move(value); } /** *

The instance's reported AWS OpsWorks Stacks agent version.

*/ inline void SetReportedAgentVersion(const char* value) { m_reportedAgentVersionHasBeenSet = true; m_reportedAgentVersion.assign(value); } /** *

The instance's reported AWS OpsWorks Stacks agent version.

*/ inline Instance& WithReportedAgentVersion(const Aws::String& value) { SetReportedAgentVersion(value); return *this;} /** *

The instance's reported AWS OpsWorks Stacks agent version.

*/ inline Instance& WithReportedAgentVersion(Aws::String&& value) { SetReportedAgentVersion(std::move(value)); return *this;} /** *

The instance's reported AWS OpsWorks Stacks agent version.

*/ inline Instance& WithReportedAgentVersion(const char* value) { SetReportedAgentVersion(value); return *this;} /** *

For registered instances, the reported operating system.

*/ inline const ReportedOs& GetReportedOs() const{ return m_reportedOs; } /** *

For registered instances, the reported operating system.

*/ inline bool ReportedOsHasBeenSet() const { return m_reportedOsHasBeenSet; } /** *

For registered instances, the reported operating system.

*/ inline void SetReportedOs(const ReportedOs& value) { m_reportedOsHasBeenSet = true; m_reportedOs = value; } /** *

For registered instances, the reported operating system.

*/ inline void SetReportedOs(ReportedOs&& value) { m_reportedOsHasBeenSet = true; m_reportedOs = std::move(value); } /** *

For registered instances, the reported operating system.

*/ inline Instance& WithReportedOs(const ReportedOs& value) { SetReportedOs(value); return *this;} /** *

For registered instances, the reported operating system.

*/ inline Instance& WithReportedOs(ReportedOs&& value) { SetReportedOs(std::move(value)); return *this;} /** *

The instance's root device type. For more information, see Storage * for the Root Device.

*/ inline const RootDeviceType& GetRootDeviceType() const{ return m_rootDeviceType; } /** *

The instance's root device type. For more information, see Storage * for the Root Device.

*/ inline bool RootDeviceTypeHasBeenSet() const { return m_rootDeviceTypeHasBeenSet; } /** *

The instance's root device type. For more information, see Storage * for the Root Device.

*/ inline void SetRootDeviceType(const RootDeviceType& value) { m_rootDeviceTypeHasBeenSet = true; m_rootDeviceType = value; } /** *

The instance's root device type. For more information, see Storage * for the Root Device.

*/ inline void SetRootDeviceType(RootDeviceType&& value) { m_rootDeviceTypeHasBeenSet = true; m_rootDeviceType = std::move(value); } /** *

The instance's root device type. For more information, see Storage * for the Root Device.

*/ inline Instance& WithRootDeviceType(const RootDeviceType& value) { SetRootDeviceType(value); return *this;} /** *

The instance's root device type. For more information, see Storage * for the Root Device.

*/ inline Instance& WithRootDeviceType(RootDeviceType&& value) { SetRootDeviceType(std::move(value)); return *this;} /** *

The root device volume ID.

*/ inline const Aws::String& GetRootDeviceVolumeId() const{ return m_rootDeviceVolumeId; } /** *

The root device volume ID.

*/ inline bool RootDeviceVolumeIdHasBeenSet() const { return m_rootDeviceVolumeIdHasBeenSet; } /** *

The root device volume ID.

*/ inline void SetRootDeviceVolumeId(const Aws::String& value) { m_rootDeviceVolumeIdHasBeenSet = true; m_rootDeviceVolumeId = value; } /** *

The root device volume ID.

*/ inline void SetRootDeviceVolumeId(Aws::String&& value) { m_rootDeviceVolumeIdHasBeenSet = true; m_rootDeviceVolumeId = std::move(value); } /** *

The root device volume ID.

*/ inline void SetRootDeviceVolumeId(const char* value) { m_rootDeviceVolumeIdHasBeenSet = true; m_rootDeviceVolumeId.assign(value); } /** *

The root device volume ID.

*/ inline Instance& WithRootDeviceVolumeId(const Aws::String& value) { SetRootDeviceVolumeId(value); return *this;} /** *

The root device volume ID.

*/ inline Instance& WithRootDeviceVolumeId(Aws::String&& value) { SetRootDeviceVolumeId(std::move(value)); return *this;} /** *

The root device volume ID.

*/ inline Instance& WithRootDeviceVolumeId(const char* value) { SetRootDeviceVolumeId(value); return *this;} /** *

An array containing the instance security group IDs.

*/ inline const Aws::Vector& GetSecurityGroupIds() const{ return m_securityGroupIds; } /** *

An array containing the instance security group IDs.

*/ inline bool SecurityGroupIdsHasBeenSet() const { return m_securityGroupIdsHasBeenSet; } /** *

An array containing the instance security group IDs.

*/ inline void SetSecurityGroupIds(const Aws::Vector& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds = value; } /** *

An array containing the instance security group IDs.

*/ inline void SetSecurityGroupIds(Aws::Vector&& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds = std::move(value); } /** *

An array containing the instance security group IDs.

*/ inline Instance& WithSecurityGroupIds(const Aws::Vector& value) { SetSecurityGroupIds(value); return *this;} /** *

An array containing the instance security group IDs.

*/ inline Instance& WithSecurityGroupIds(Aws::Vector&& value) { SetSecurityGroupIds(std::move(value)); return *this;} /** *

An array containing the instance security group IDs.

*/ inline Instance& AddSecurityGroupIds(const Aws::String& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds.push_back(value); return *this; } /** *

An array containing the instance security group IDs.

*/ inline Instance& AddSecurityGroupIds(Aws::String&& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds.push_back(std::move(value)); return *this; } /** *

An array containing the instance security group IDs.

*/ inline Instance& AddSecurityGroupIds(const char* value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds.push_back(value); return *this; } /** *

The SSH key's Deep Security Agent (DSA) fingerprint.

*/ inline const Aws::String& GetSshHostDsaKeyFingerprint() const{ return m_sshHostDsaKeyFingerprint; } /** *

The SSH key's Deep Security Agent (DSA) fingerprint.

*/ inline bool SshHostDsaKeyFingerprintHasBeenSet() const { return m_sshHostDsaKeyFingerprintHasBeenSet; } /** *

The SSH key's Deep Security Agent (DSA) fingerprint.

*/ inline void SetSshHostDsaKeyFingerprint(const Aws::String& value) { m_sshHostDsaKeyFingerprintHasBeenSet = true; m_sshHostDsaKeyFingerprint = value; } /** *

The SSH key's Deep Security Agent (DSA) fingerprint.

*/ inline void SetSshHostDsaKeyFingerprint(Aws::String&& value) { m_sshHostDsaKeyFingerprintHasBeenSet = true; m_sshHostDsaKeyFingerprint = std::move(value); } /** *

The SSH key's Deep Security Agent (DSA) fingerprint.

*/ inline void SetSshHostDsaKeyFingerprint(const char* value) { m_sshHostDsaKeyFingerprintHasBeenSet = true; m_sshHostDsaKeyFingerprint.assign(value); } /** *

The SSH key's Deep Security Agent (DSA) fingerprint.

*/ inline Instance& WithSshHostDsaKeyFingerprint(const Aws::String& value) { SetSshHostDsaKeyFingerprint(value); return *this;} /** *

The SSH key's Deep Security Agent (DSA) fingerprint.

*/ inline Instance& WithSshHostDsaKeyFingerprint(Aws::String&& value) { SetSshHostDsaKeyFingerprint(std::move(value)); return *this;} /** *

The SSH key's Deep Security Agent (DSA) fingerprint.

*/ inline Instance& WithSshHostDsaKeyFingerprint(const char* value) { SetSshHostDsaKeyFingerprint(value); return *this;} /** *

The SSH key's RSA fingerprint.

*/ inline const Aws::String& GetSshHostRsaKeyFingerprint() const{ return m_sshHostRsaKeyFingerprint; } /** *

The SSH key's RSA fingerprint.

*/ inline bool SshHostRsaKeyFingerprintHasBeenSet() const { return m_sshHostRsaKeyFingerprintHasBeenSet; } /** *

The SSH key's RSA fingerprint.

*/ inline void SetSshHostRsaKeyFingerprint(const Aws::String& value) { m_sshHostRsaKeyFingerprintHasBeenSet = true; m_sshHostRsaKeyFingerprint = value; } /** *

The SSH key's RSA fingerprint.

*/ inline void SetSshHostRsaKeyFingerprint(Aws::String&& value) { m_sshHostRsaKeyFingerprintHasBeenSet = true; m_sshHostRsaKeyFingerprint = std::move(value); } /** *

The SSH key's RSA fingerprint.

*/ inline void SetSshHostRsaKeyFingerprint(const char* value) { m_sshHostRsaKeyFingerprintHasBeenSet = true; m_sshHostRsaKeyFingerprint.assign(value); } /** *

The SSH key's RSA fingerprint.

*/ inline Instance& WithSshHostRsaKeyFingerprint(const Aws::String& value) { SetSshHostRsaKeyFingerprint(value); return *this;} /** *

The SSH key's RSA fingerprint.

*/ inline Instance& WithSshHostRsaKeyFingerprint(Aws::String&& value) { SetSshHostRsaKeyFingerprint(std::move(value)); return *this;} /** *

The SSH key's RSA fingerprint.

*/ inline Instance& WithSshHostRsaKeyFingerprint(const char* value) { SetSshHostRsaKeyFingerprint(value); return *this;} /** *

The instance's Amazon EC2 key-pair name.

*/ inline const Aws::String& GetSshKeyName() const{ return m_sshKeyName; } /** *

The instance's Amazon EC2 key-pair name.

*/ inline bool SshKeyNameHasBeenSet() const { return m_sshKeyNameHasBeenSet; } /** *

The instance's Amazon EC2 key-pair name.

*/ inline void SetSshKeyName(const Aws::String& value) { m_sshKeyNameHasBeenSet = true; m_sshKeyName = value; } /** *

The instance's Amazon EC2 key-pair name.

*/ inline void SetSshKeyName(Aws::String&& value) { m_sshKeyNameHasBeenSet = true; m_sshKeyName = std::move(value); } /** *

The instance's Amazon EC2 key-pair name.

*/ inline void SetSshKeyName(const char* value) { m_sshKeyNameHasBeenSet = true; m_sshKeyName.assign(value); } /** *

The instance's Amazon EC2 key-pair name.

*/ inline Instance& WithSshKeyName(const Aws::String& value) { SetSshKeyName(value); return *this;} /** *

The instance's Amazon EC2 key-pair name.

*/ inline Instance& WithSshKeyName(Aws::String&& value) { SetSshKeyName(std::move(value)); return *this;} /** *

The instance's Amazon EC2 key-pair name.

*/ inline Instance& WithSshKeyName(const char* value) { SetSshKeyName(value); return *this;} /** *

The stack ID.

*/ inline const Aws::String& GetStackId() const{ return m_stackId; } /** *

The stack ID.

*/ inline bool StackIdHasBeenSet() const { return m_stackIdHasBeenSet; } /** *

The stack ID.

*/ inline void SetStackId(const Aws::String& value) { m_stackIdHasBeenSet = true; m_stackId = value; } /** *

The stack ID.

*/ inline void SetStackId(Aws::String&& value) { m_stackIdHasBeenSet = true; m_stackId = std::move(value); } /** *

The stack ID.

*/ inline void SetStackId(const char* value) { m_stackIdHasBeenSet = true; m_stackId.assign(value); } /** *

The stack ID.

*/ inline Instance& WithStackId(const Aws::String& value) { SetStackId(value); return *this;} /** *

The stack ID.

*/ inline Instance& WithStackId(Aws::String&& value) { SetStackId(std::move(value)); return *this;} /** *

The stack ID.

*/ inline Instance& WithStackId(const char* value) { SetStackId(value); return *this;} /** *

The instance status:

  • booting

  • *

    connection_lost

  • online

    *
  • pending

  • rebooting *

  • requested

  • * running_setup

  • setup_failed

    *
  • shutting_down

  • * start_failed

  • stop_failed

    *
  • stopped

  • stopping *

  • terminated

  • * terminating

*/ inline const Aws::String& GetStatus() const{ return m_status; } /** *

The instance status:

  • booting

  • *

    connection_lost

  • online

    *
  • pending

  • rebooting *

  • requested

  • * running_setup

  • setup_failed

    *
  • shutting_down

  • * start_failed

  • stop_failed

    *
  • stopped

  • stopping *

  • terminated

  • * terminating

*/ inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; } /** *

The instance status:

  • booting

  • *

    connection_lost

  • online

    *
  • pending

  • rebooting *

  • requested

  • * running_setup

  • setup_failed

    *
  • shutting_down

  • * start_failed

  • stop_failed

    *
  • stopped

  • stopping *

  • terminated

  • * terminating

*/ inline void SetStatus(const Aws::String& value) { m_statusHasBeenSet = true; m_status = value; } /** *

The instance status:

  • booting

  • *

    connection_lost

  • online

    *
  • pending

  • rebooting *

  • requested

  • * running_setup

  • setup_failed

    *
  • shutting_down

  • * start_failed

  • stop_failed

    *
  • stopped

  • stopping *

  • terminated

  • * terminating

*/ inline void SetStatus(Aws::String&& value) { m_statusHasBeenSet = true; m_status = std::move(value); } /** *

The instance status:

  • booting

  • *

    connection_lost

  • online

    *
  • pending

  • rebooting *

  • requested

  • * running_setup

  • setup_failed

    *
  • shutting_down

  • * start_failed

  • stop_failed

    *
  • stopped

  • stopping *

  • terminated

  • * terminating

*/ inline void SetStatus(const char* value) { m_statusHasBeenSet = true; m_status.assign(value); } /** *

The instance status:

  • booting

  • *

    connection_lost

  • online

    *
  • pending

  • rebooting *

  • requested

  • * running_setup

  • setup_failed

    *
  • shutting_down

  • * start_failed

  • stop_failed

    *
  • stopped

  • stopping *

  • terminated

  • * terminating

*/ inline Instance& WithStatus(const Aws::String& value) { SetStatus(value); return *this;} /** *

The instance status:

  • booting

  • *

    connection_lost

  • online

    *
  • pending

  • rebooting *

  • requested

  • * running_setup

  • setup_failed

    *
  • shutting_down

  • * start_failed

  • stop_failed

    *
  • stopped

  • stopping *

  • terminated

  • * terminating

*/ inline Instance& WithStatus(Aws::String&& value) { SetStatus(std::move(value)); return *this;} /** *

The instance status:

  • booting

  • *

    connection_lost

  • online

    *
  • pending

  • rebooting *

  • requested

  • * running_setup

  • setup_failed

    *
  • shutting_down

  • * start_failed

  • stop_failed

    *
  • stopped

  • stopping *

  • terminated

  • * terminating

*/ inline Instance& WithStatus(const char* value) { SetStatus(value); return *this;} /** *

The instance's subnet ID; applicable only if the stack is running in a * VPC.

*/ inline const Aws::String& GetSubnetId() const{ return m_subnetId; } /** *

The instance's subnet ID; applicable only if the stack is running in a * VPC.

*/ inline bool SubnetIdHasBeenSet() const { return m_subnetIdHasBeenSet; } /** *

The instance's subnet ID; applicable only if the stack is running in a * VPC.

*/ inline void SetSubnetId(const Aws::String& value) { m_subnetIdHasBeenSet = true; m_subnetId = value; } /** *

The instance's subnet ID; applicable only if the stack is running in a * VPC.

*/ inline void SetSubnetId(Aws::String&& value) { m_subnetIdHasBeenSet = true; m_subnetId = std::move(value); } /** *

The instance's subnet ID; applicable only if the stack is running in a * VPC.

*/ inline void SetSubnetId(const char* value) { m_subnetIdHasBeenSet = true; m_subnetId.assign(value); } /** *

The instance's subnet ID; applicable only if the stack is running in a * VPC.

*/ inline Instance& WithSubnetId(const Aws::String& value) { SetSubnetId(value); return *this;} /** *

The instance's subnet ID; applicable only if the stack is running in a * VPC.

*/ inline Instance& WithSubnetId(Aws::String&& value) { SetSubnetId(std::move(value)); return *this;} /** *

The instance's subnet ID; applicable only if the stack is running in a * VPC.

*/ inline Instance& WithSubnetId(const char* value) { SetSubnetId(value); return *this;} /** *

The instance's tenancy option, such as dedicated or * host.

*/ inline const Aws::String& GetTenancy() const{ return m_tenancy; } /** *

The instance's tenancy option, such as dedicated or * host.

*/ inline bool TenancyHasBeenSet() const { return m_tenancyHasBeenSet; } /** *

The instance's tenancy option, such as dedicated or * host.

*/ inline void SetTenancy(const Aws::String& value) { m_tenancyHasBeenSet = true; m_tenancy = value; } /** *

The instance's tenancy option, such as dedicated or * host.

*/ inline void SetTenancy(Aws::String&& value) { m_tenancyHasBeenSet = true; m_tenancy = std::move(value); } /** *

The instance's tenancy option, such as dedicated or * host.

*/ inline void SetTenancy(const char* value) { m_tenancyHasBeenSet = true; m_tenancy.assign(value); } /** *

The instance's tenancy option, such as dedicated or * host.

*/ inline Instance& WithTenancy(const Aws::String& value) { SetTenancy(value); return *this;} /** *

The instance's tenancy option, such as dedicated or * host.

*/ inline Instance& WithTenancy(Aws::String&& value) { SetTenancy(std::move(value)); return *this;} /** *

The instance's tenancy option, such as dedicated or * host.

*/ inline Instance& WithTenancy(const char* value) { SetTenancy(value); return *this;} /** *

The instance's virtualization type: paravirtual or * hvm.

*/ inline const VirtualizationType& GetVirtualizationType() const{ return m_virtualizationType; } /** *

The instance's virtualization type: paravirtual or * hvm.

*/ inline bool VirtualizationTypeHasBeenSet() const { return m_virtualizationTypeHasBeenSet; } /** *

The instance's virtualization type: paravirtual or * hvm.

*/ inline void SetVirtualizationType(const VirtualizationType& value) { m_virtualizationTypeHasBeenSet = true; m_virtualizationType = value; } /** *

The instance's virtualization type: paravirtual or * hvm.

*/ inline void SetVirtualizationType(VirtualizationType&& value) { m_virtualizationTypeHasBeenSet = true; m_virtualizationType = std::move(value); } /** *

The instance's virtualization type: paravirtual or * hvm.

*/ inline Instance& WithVirtualizationType(const VirtualizationType& value) { SetVirtualizationType(value); return *this;} /** *

The instance's virtualization type: paravirtual or * hvm.

*/ inline Instance& WithVirtualizationType(VirtualizationType&& value) { SetVirtualizationType(std::move(value)); return *this;} private: Aws::String m_agentVersion; bool m_agentVersionHasBeenSet = false; Aws::String m_amiId; bool m_amiIdHasBeenSet = false; Architecture m_architecture; bool m_architectureHasBeenSet = false; Aws::String m_arn; bool m_arnHasBeenSet = false; AutoScalingType m_autoScalingType; bool m_autoScalingTypeHasBeenSet = false; Aws::String m_availabilityZone; bool m_availabilityZoneHasBeenSet = false; Aws::Vector m_blockDeviceMappings; bool m_blockDeviceMappingsHasBeenSet = false; Aws::String m_createdAt; bool m_createdAtHasBeenSet = false; bool m_ebsOptimized; bool m_ebsOptimizedHasBeenSet = false; Aws::String m_ec2InstanceId; bool m_ec2InstanceIdHasBeenSet = false; Aws::String m_ecsClusterArn; bool m_ecsClusterArnHasBeenSet = false; Aws::String m_ecsContainerInstanceArn; bool m_ecsContainerInstanceArnHasBeenSet = false; Aws::String m_elasticIp; bool m_elasticIpHasBeenSet = false; Aws::String m_hostname; bool m_hostnameHasBeenSet = false; Aws::String m_infrastructureClass; bool m_infrastructureClassHasBeenSet = false; bool m_installUpdatesOnBoot; bool m_installUpdatesOnBootHasBeenSet = false; Aws::String m_instanceId; bool m_instanceIdHasBeenSet = false; Aws::String m_instanceProfileArn; bool m_instanceProfileArnHasBeenSet = false; Aws::String m_instanceType; bool m_instanceTypeHasBeenSet = false; Aws::String m_lastServiceErrorId; bool m_lastServiceErrorIdHasBeenSet = false; Aws::Vector m_layerIds; bool m_layerIdsHasBeenSet = false; Aws::String m_os; bool m_osHasBeenSet = false; Aws::String m_platform; bool m_platformHasBeenSet = false; Aws::String m_privateDns; bool m_privateDnsHasBeenSet = false; Aws::String m_privateIp; bool m_privateIpHasBeenSet = false; Aws::String m_publicDns; bool m_publicDnsHasBeenSet = false; Aws::String m_publicIp; bool m_publicIpHasBeenSet = false; Aws::String m_registeredBy; bool m_registeredByHasBeenSet = false; Aws::String m_reportedAgentVersion; bool m_reportedAgentVersionHasBeenSet = false; ReportedOs m_reportedOs; bool m_reportedOsHasBeenSet = false; RootDeviceType m_rootDeviceType; bool m_rootDeviceTypeHasBeenSet = false; Aws::String m_rootDeviceVolumeId; bool m_rootDeviceVolumeIdHasBeenSet = false; Aws::Vector m_securityGroupIds; bool m_securityGroupIdsHasBeenSet = false; Aws::String m_sshHostDsaKeyFingerprint; bool m_sshHostDsaKeyFingerprintHasBeenSet = false; Aws::String m_sshHostRsaKeyFingerprint; bool m_sshHostRsaKeyFingerprintHasBeenSet = false; Aws::String m_sshKeyName; bool m_sshKeyNameHasBeenSet = false; Aws::String m_stackId; bool m_stackIdHasBeenSet = false; Aws::String m_status; bool m_statusHasBeenSet = false; Aws::String m_subnetId; bool m_subnetIdHasBeenSet = false; Aws::String m_tenancy; bool m_tenancyHasBeenSet = false; VirtualizationType m_virtualizationType; bool m_virtualizationTypeHasBeenSet = false; }; } // namespace Model } // namespace OpsWorks } // namespace Aws