Class Instance
- java.lang.Object
-
- com.amazonaws.services.opsworks.model.Instance
-
- All Implemented Interfaces:
Serializable,Cloneable
public class Instance extends Object implements Serializable, Cloneable
Describes an instance.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Instance()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Instanceclone()booleanequals(Object obj)StringgetAgentVersion()The agent version.StringgetAmiId()A custom AMI ID to be used to create the instance.StringgetArchitecture()The instance architecture: "i386" or "x86_64".StringgetAutoScalingType()For load-based or time-based instances, the type.StringgetAvailabilityZone()The instance Availability Zone.List<BlockDeviceMapping>getBlockDeviceMappings()An array ofBlockDeviceMappingobjects that specify the instance's block device mappings.StringgetCreatedAt()The time that the instance was created.BooleangetEbsOptimized()Whether this is an Amazon EBS-optimized instance.StringgetEc2InstanceId()The ID of the associated Amazon EC2 instance.StringgetEcsClusterArn()For container instances, the Amazon ECS cluster's ARN.StringgetEcsContainerInstanceArn()For container instances, the instance's ARN.StringgetElasticIp()The instance Elastic IP address .StringgetHostname()The instance host name.StringgetInfrastructureClass()For registered instances, the infrastructure class:ec2oron-premises.BooleangetInstallUpdatesOnBoot()Whether to install operating system and package updates when the instance boots.StringgetInstanceId()The instance ID.StringgetInstanceProfileArn()The ARN of the instance's IAM profile.StringgetInstanceType()The instance type, such ast2.micro.StringgetLastServiceErrorId()The ID of the last service error.List<String>getLayerIds()An array containing the instance layer IDs.StringgetOs()The instance's operating system.StringgetPlatform()The instance's platform.StringgetPrivateDns()The The instance's private DNS name.StringgetPrivateIp()The instance's private IP address.StringgetPublicDns()The instance public DNS name.StringgetPublicIp()The instance public IP address.StringgetRegisteredBy()For registered instances, who performed the registration.StringgetReportedAgentVersion()The instance's reported AWS OpsWorks agent version.ReportedOsgetReportedOs()For registered instances, the reported operating system.StringgetRootDeviceType()The instance's root device type.StringgetRootDeviceVolumeId()The root device volume ID.List<String>getSecurityGroupIds()An array containing the instance security group IDs.StringgetSshHostDsaKeyFingerprint()The SSH key's Deep Security Agent (DSA) fingerprint.StringgetSshHostRsaKeyFingerprint()The SSH key's RSA fingerprint.StringgetSshKeyName()The instance's Amazon EC2 key-pair name.StringgetStackId()The stack ID.StringgetStatus()The instance status:StringgetSubnetId()The instance's subnet ID; applicable only if the stack is running in a VPC.StringgetTenancy()The instance's tenancy option, such asdedicatedorhost.StringgetVirtualizationType()The instance's virtualization type:paravirtualorhvm.inthashCode()BooleanisEbsOptimized()Whether this is an Amazon EBS-optimized instance.BooleanisInstallUpdatesOnBoot()Whether to install operating system and package updates when the instance boots.voidsetAgentVersion(String agentVersion)The agent version.voidsetAmiId(String amiId)A custom AMI ID to be used to create the instance.voidsetArchitecture(Architecture architecture)The instance architecture: "i386" or "x86_64".voidsetArchitecture(String architecture)The instance architecture: "i386" or "x86_64".voidsetAutoScalingType(AutoScalingType autoScalingType)For load-based or time-based instances, the type.voidsetAutoScalingType(String autoScalingType)For load-based or time-based instances, the type.voidsetAvailabilityZone(String availabilityZone)The instance Availability Zone.voidsetBlockDeviceMappings(Collection<BlockDeviceMapping> blockDeviceMappings)An array ofBlockDeviceMappingobjects that specify the instance's block device mappings.voidsetCreatedAt(String createdAt)The time that the instance was created.voidsetEbsOptimized(Boolean ebsOptimized)Whether this is an Amazon EBS-optimized instance.voidsetEc2InstanceId(String ec2InstanceId)The ID of the associated Amazon EC2 instance.voidsetEcsClusterArn(String ecsClusterArn)For container instances, the Amazon ECS cluster's ARN.voidsetEcsContainerInstanceArn(String ecsContainerInstanceArn)For container instances, the instance's ARN.voidsetElasticIp(String elasticIp)The instance Elastic IP address .voidsetHostname(String hostname)The instance host name.voidsetInfrastructureClass(String infrastructureClass)For registered instances, the infrastructure class:ec2oron-premises.voidsetInstallUpdatesOnBoot(Boolean installUpdatesOnBoot)Whether to install operating system and package updates when the instance boots.voidsetInstanceId(String instanceId)The instance ID.voidsetInstanceProfileArn(String instanceProfileArn)The ARN of the instance's IAM profile.voidsetInstanceType(String instanceType)The instance type, such ast2.micro.voidsetLastServiceErrorId(String lastServiceErrorId)The ID of the last service error.voidsetLayerIds(Collection<String> layerIds)An array containing the instance layer IDs.voidsetOs(String os)The instance's operating system.voidsetPlatform(String platform)The instance's platform.voidsetPrivateDns(String privateDns)The The instance's private DNS name.voidsetPrivateIp(String privateIp)The instance's private IP address.voidsetPublicDns(String publicDns)The instance public DNS name.voidsetPublicIp(String publicIp)The instance public IP address.voidsetRegisteredBy(String registeredBy)For registered instances, who performed the registration.voidsetReportedAgentVersion(String reportedAgentVersion)The instance's reported AWS OpsWorks agent version.voidsetReportedOs(ReportedOs reportedOs)For registered instances, the reported operating system.voidsetRootDeviceType(RootDeviceType rootDeviceType)The instance's root device type.voidsetRootDeviceType(String rootDeviceType)The instance's root device type.voidsetRootDeviceVolumeId(String rootDeviceVolumeId)The root device volume ID.voidsetSecurityGroupIds(Collection<String> securityGroupIds)An array containing the instance security group IDs.voidsetSshHostDsaKeyFingerprint(String sshHostDsaKeyFingerprint)The SSH key's Deep Security Agent (DSA) fingerprint.voidsetSshHostRsaKeyFingerprint(String sshHostRsaKeyFingerprint)The SSH key's RSA fingerprint.voidsetSshKeyName(String sshKeyName)The instance's Amazon EC2 key-pair name.voidsetStackId(String stackId)The stack ID.voidsetStatus(String status)The instance status:voidsetSubnetId(String subnetId)The instance's subnet ID; applicable only if the stack is running in a VPC.voidsetTenancy(String tenancy)The instance's tenancy option, such asdedicatedorhost.voidsetVirtualizationType(VirtualizationType virtualizationType)The instance's virtualization type:paravirtualorhvm.voidsetVirtualizationType(String virtualizationType)The instance's virtualization type:paravirtualorhvm.StringtoString()Returns a string representation of this object; useful for testing and debugging.InstancewithAgentVersion(String agentVersion)The agent version.InstancewithAmiId(String amiId)A custom AMI ID to be used to create the instance.InstancewithArchitecture(Architecture architecture)The instance architecture: "i386" or "x86_64".InstancewithArchitecture(String architecture)The instance architecture: "i386" or "x86_64".InstancewithAutoScalingType(AutoScalingType autoScalingType)For load-based or time-based instances, the type.InstancewithAutoScalingType(String autoScalingType)For load-based or time-based instances, the type.InstancewithAvailabilityZone(String availabilityZone)The instance Availability Zone.InstancewithBlockDeviceMappings(BlockDeviceMapping... blockDeviceMappings)An array ofBlockDeviceMappingobjects that specify the instance's block device mappings.InstancewithBlockDeviceMappings(Collection<BlockDeviceMapping> blockDeviceMappings)An array ofBlockDeviceMappingobjects that specify the instance's block device mappings.InstancewithCreatedAt(String createdAt)The time that the instance was created.InstancewithEbsOptimized(Boolean ebsOptimized)Whether this is an Amazon EBS-optimized instance.InstancewithEc2InstanceId(String ec2InstanceId)The ID of the associated Amazon EC2 instance.InstancewithEcsClusterArn(String ecsClusterArn)For container instances, the Amazon ECS cluster's ARN.InstancewithEcsContainerInstanceArn(String ecsContainerInstanceArn)For container instances, the instance's ARN.InstancewithElasticIp(String elasticIp)The instance Elastic IP address .InstancewithHostname(String hostname)The instance host name.InstancewithInfrastructureClass(String infrastructureClass)For registered instances, the infrastructure class:ec2oron-premises.InstancewithInstallUpdatesOnBoot(Boolean installUpdatesOnBoot)Whether to install operating system and package updates when the instance boots.InstancewithInstanceId(String instanceId)The instance ID.InstancewithInstanceProfileArn(String instanceProfileArn)The ARN of the instance's IAM profile.InstancewithInstanceType(String instanceType)The instance type, such ast2.micro.InstancewithLastServiceErrorId(String lastServiceErrorId)The ID of the last service error.InstancewithLayerIds(String... layerIds)An array containing the instance layer IDs.InstancewithLayerIds(Collection<String> layerIds)An array containing the instance layer IDs.InstancewithOs(String os)The instance's operating system.InstancewithPlatform(String platform)The instance's platform.InstancewithPrivateDns(String privateDns)The The instance's private DNS name.InstancewithPrivateIp(String privateIp)The instance's private IP address.InstancewithPublicDns(String publicDns)The instance public DNS name.InstancewithPublicIp(String publicIp)The instance public IP address.InstancewithRegisteredBy(String registeredBy)For registered instances, who performed the registration.InstancewithReportedAgentVersion(String reportedAgentVersion)The instance's reported AWS OpsWorks agent version.InstancewithReportedOs(ReportedOs reportedOs)For registered instances, the reported operating system.InstancewithRootDeviceType(RootDeviceType rootDeviceType)The instance's root device type.InstancewithRootDeviceType(String rootDeviceType)The instance's root device type.InstancewithRootDeviceVolumeId(String rootDeviceVolumeId)The root device volume ID.InstancewithSecurityGroupIds(String... securityGroupIds)An array containing the instance security group IDs.InstancewithSecurityGroupIds(Collection<String> securityGroupIds)An array containing the instance security group IDs.InstancewithSshHostDsaKeyFingerprint(String sshHostDsaKeyFingerprint)The SSH key's Deep Security Agent (DSA) fingerprint.InstancewithSshHostRsaKeyFingerprint(String sshHostRsaKeyFingerprint)The SSH key's RSA fingerprint.InstancewithSshKeyName(String sshKeyName)The instance's Amazon EC2 key-pair name.InstancewithStackId(String stackId)The stack ID.InstancewithStatus(String status)The instance status:InstancewithSubnetId(String subnetId)The instance's subnet ID; applicable only if the stack is running in a VPC.InstancewithTenancy(String tenancy)The instance's tenancy option, such asdedicatedorhost.InstancewithVirtualizationType(VirtualizationType virtualizationType)The instance's virtualization type:paravirtualorhvm.InstancewithVirtualizationType(String virtualizationType)The instance's virtualization type:paravirtualorhvm.
-
-
-
Method Detail
-
setAgentVersion
public void setAgentVersion(String agentVersion)
The agent version. This parameter is set to
INHERITif the instance inherits the default stack setting or to a a version number for a fixed agent version.- Parameters:
agentVersion- The agent version. This parameter is set toINHERITif the instance inherits the default stack setting or to a a version number for a fixed agent version.
-
getAgentVersion
public String getAgentVersion()
The agent version. This parameter is set to
INHERITif the instance inherits the default stack setting or to a a version number for a fixed agent version.- Returns:
- The agent version. This parameter is set to
INHERITif the instance inherits the default stack setting or to a a version number for a fixed agent version.
-
withAgentVersion
public Instance withAgentVersion(String agentVersion)
The agent version. This parameter is set to
INHERITif the instance inherits the default stack setting or to a a version number for a fixed agent version.- Parameters:
agentVersion- The agent version. This parameter is set toINHERITif the instance inherits the default stack setting or to a a version number for a fixed agent version.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setAmiId
public void setAmiId(String amiId)
A custom AMI ID to be used to create the instance. For more information, see Instances
- Parameters:
amiId- A custom AMI ID to be used to create the instance. For more information, see Instances
-
getAmiId
public String getAmiId()
A custom AMI ID to be used to create the instance. For more information, see Instances
- Returns:
- A custom AMI ID to be used to create the instance. For more information, see Instances
-
withAmiId
public Instance withAmiId(String amiId)
A custom AMI ID to be used to create the instance. For more information, see Instances
- Parameters:
amiId- A custom AMI ID to be used to create the instance. For more information, see Instances- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setArchitecture
public void setArchitecture(String architecture)
The instance architecture: "i386" or "x86_64".
- Parameters:
architecture- The instance architecture: "i386" or "x86_64".- See Also:
Architecture
-
getArchitecture
public String getArchitecture()
The instance architecture: "i386" or "x86_64".
- Returns:
- The instance architecture: "i386" or "x86_64".
- See Also:
Architecture
-
withArchitecture
public Instance withArchitecture(String architecture)
The instance architecture: "i386" or "x86_64".
- Parameters:
architecture- The instance architecture: "i386" or "x86_64".- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
Architecture
-
setArchitecture
public void setArchitecture(Architecture architecture)
The instance architecture: "i386" or "x86_64".
- Parameters:
architecture- The instance architecture: "i386" or "x86_64".- See Also:
Architecture
-
withArchitecture
public Instance withArchitecture(Architecture architecture)
The instance architecture: "i386" or "x86_64".
- Parameters:
architecture- The instance architecture: "i386" or "x86_64".- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
Architecture
-
setAutoScalingType
public void setAutoScalingType(String autoScalingType)
For load-based or time-based instances, the type.
- Parameters:
autoScalingType- For load-based or time-based instances, the type.- See Also:
AutoScalingType
-
getAutoScalingType
public String getAutoScalingType()
For load-based or time-based instances, the type.
- Returns:
- For load-based or time-based instances, the type.
- See Also:
AutoScalingType
-
withAutoScalingType
public Instance withAutoScalingType(String autoScalingType)
For load-based or time-based instances, the type.
- Parameters:
autoScalingType- For load-based or time-based instances, the type.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
AutoScalingType
-
setAutoScalingType
public void setAutoScalingType(AutoScalingType autoScalingType)
For load-based or time-based instances, the type.
- Parameters:
autoScalingType- For load-based or time-based instances, the type.- See Also:
AutoScalingType
-
withAutoScalingType
public Instance withAutoScalingType(AutoScalingType autoScalingType)
For load-based or time-based instances, the type.
- Parameters:
autoScalingType- For load-based or time-based instances, the type.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
AutoScalingType
-
setAvailabilityZone
public void setAvailabilityZone(String availabilityZone)
The instance Availability Zone. For more information, see Regions and Endpoints.
- Parameters:
availabilityZone- The instance Availability Zone. For more information, see Regions and Endpoints.
-
getAvailabilityZone
public String getAvailabilityZone()
The instance Availability Zone. For more information, see Regions and Endpoints.
- Returns:
- The instance Availability Zone. For more information, see Regions and Endpoints.
-
withAvailabilityZone
public Instance withAvailabilityZone(String availabilityZone)
The instance Availability Zone. For more information, see Regions and Endpoints.
- Parameters:
availabilityZone- The instance Availability Zone. For more information, see Regions and Endpoints.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getBlockDeviceMappings
public List<BlockDeviceMapping> getBlockDeviceMappings()
An array of
BlockDeviceMappingobjects that specify the instance's block device mappings.- Returns:
- An array of
BlockDeviceMappingobjects that specify the instance's block device mappings.
-
setBlockDeviceMappings
public void setBlockDeviceMappings(Collection<BlockDeviceMapping> blockDeviceMappings)
An array of
BlockDeviceMappingobjects that specify the instance's block device mappings.- Parameters:
blockDeviceMappings- An array ofBlockDeviceMappingobjects that specify the instance's block device mappings.
-
withBlockDeviceMappings
public Instance withBlockDeviceMappings(BlockDeviceMapping... blockDeviceMappings)
An array of
BlockDeviceMappingobjects that specify the instance's block device mappings.NOTE: This method appends the values to the existing list (if any). Use
setBlockDeviceMappings(java.util.Collection)orwithBlockDeviceMappings(java.util.Collection)if you want to override the existing values.- Parameters:
blockDeviceMappings- An array ofBlockDeviceMappingobjects that specify the instance's block device mappings.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withBlockDeviceMappings
public Instance withBlockDeviceMappings(Collection<BlockDeviceMapping> blockDeviceMappings)
An array of
BlockDeviceMappingobjects that specify the instance's block device mappings.- Parameters:
blockDeviceMappings- An array ofBlockDeviceMappingobjects that specify the instance's block device mappings.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setCreatedAt
public void setCreatedAt(String createdAt)
The time that the instance was created.
- Parameters:
createdAt- The time that the instance was created.
-
getCreatedAt
public String getCreatedAt()
The time that the instance was created.
- Returns:
- The time that the instance was created.
-
withCreatedAt
public Instance withCreatedAt(String createdAt)
The time that the instance was created.
- Parameters:
createdAt- The time that the instance was created.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setEbsOptimized
public void setEbsOptimized(Boolean ebsOptimized)
Whether this is an Amazon EBS-optimized instance.
- Parameters:
ebsOptimized- Whether this is an Amazon EBS-optimized instance.
-
getEbsOptimized
public Boolean getEbsOptimized()
Whether this is an Amazon EBS-optimized instance.
- Returns:
- Whether this is an Amazon EBS-optimized instance.
-
withEbsOptimized
public Instance withEbsOptimized(Boolean ebsOptimized)
Whether this is an Amazon EBS-optimized instance.
- Parameters:
ebsOptimized- Whether this is an Amazon EBS-optimized instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
isEbsOptimized
public Boolean isEbsOptimized()
Whether this is an Amazon EBS-optimized instance.
- Returns:
- Whether this is an Amazon EBS-optimized instance.
-
setEc2InstanceId
public void setEc2InstanceId(String ec2InstanceId)
The ID of the associated Amazon EC2 instance.
- Parameters:
ec2InstanceId- The ID of the associated Amazon EC2 instance.
-
getEc2InstanceId
public String getEc2InstanceId()
The ID of the associated Amazon EC2 instance.
- Returns:
- The ID of the associated Amazon EC2 instance.
-
withEc2InstanceId
public Instance withEc2InstanceId(String ec2InstanceId)
The ID of the associated Amazon EC2 instance.
- Parameters:
ec2InstanceId- The ID of the associated Amazon EC2 instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setEcsClusterArn
public void setEcsClusterArn(String ecsClusterArn)
For container instances, the Amazon ECS cluster's ARN.
- Parameters:
ecsClusterArn- For container instances, the Amazon ECS cluster's ARN.
-
getEcsClusterArn
public String getEcsClusterArn()
For container instances, the Amazon ECS cluster's ARN.
- Returns:
- For container instances, the Amazon ECS cluster's ARN.
-
withEcsClusterArn
public Instance withEcsClusterArn(String ecsClusterArn)
For container instances, the Amazon ECS cluster's ARN.
- Parameters:
ecsClusterArn- For container instances, the Amazon ECS cluster's ARN.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setEcsContainerInstanceArn
public void setEcsContainerInstanceArn(String ecsContainerInstanceArn)
For container instances, the instance's ARN.
- Parameters:
ecsContainerInstanceArn- For container instances, the instance's ARN.
-
getEcsContainerInstanceArn
public String getEcsContainerInstanceArn()
For container instances, the instance's ARN.
- Returns:
- For container instances, the instance's ARN.
-
withEcsContainerInstanceArn
public Instance withEcsContainerInstanceArn(String ecsContainerInstanceArn)
For container instances, the instance's ARN.
- Parameters:
ecsContainerInstanceArn- For container instances, the instance's ARN.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setElasticIp
public void setElasticIp(String elasticIp)
The instance Elastic IP address .
- Parameters:
elasticIp- The instance Elastic IP address .
-
getElasticIp
public String getElasticIp()
The instance Elastic IP address .
- Returns:
- The instance Elastic IP address .
-
withElasticIp
public Instance withElasticIp(String elasticIp)
The instance Elastic IP address .
- Parameters:
elasticIp- The instance Elastic IP address .- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setHostname
public void setHostname(String hostname)
The instance host name.
- Parameters:
hostname- The instance host name.
-
getHostname
public String getHostname()
The instance host name.
- Returns:
- The instance host name.
-
withHostname
public Instance withHostname(String hostname)
The instance host name.
- Parameters:
hostname- The instance host name.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setInfrastructureClass
public void setInfrastructureClass(String infrastructureClass)
For registered instances, the infrastructure class:
ec2oron-premises.- Parameters:
infrastructureClass- For registered instances, the infrastructure class:ec2oron-premises.
-
getInfrastructureClass
public String getInfrastructureClass()
For registered instances, the infrastructure class:
ec2oron-premises.- Returns:
- For registered instances, the infrastructure class:
ec2oron-premises.
-
withInfrastructureClass
public Instance withInfrastructureClass(String infrastructureClass)
For registered instances, the infrastructure class:
ec2oron-premises.- Parameters:
infrastructureClass- For registered instances, the infrastructure class:ec2oron-premises.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setInstallUpdatesOnBoot
public void setInstallUpdatesOnBoot(Boolean installUpdatesOnBoot)
Whether to install operating system and package updates when the instance boots. The default value is
true. If this value is set tofalse, you must then update your instances manually by using CreateDeployment to run theupdate_dependenciesstack command or by manually runningyum(Amazon Linux) orapt-get(Ubuntu) on the instances.We strongly recommend using the default value of
true, to ensure that your instances have the latest security updates.- Parameters:
installUpdatesOnBoot- Whether to install operating system and package updates when the instance boots. The default value istrue. If this value is set tofalse, you must then update your instances manually by using CreateDeployment to run theupdate_dependenciesstack command or by manually runningyum(Amazon Linux) orapt-get(Ubuntu) on the instances.We strongly recommend using the default value of
true, to ensure that your instances have the latest security updates.
-
getInstallUpdatesOnBoot
public Boolean getInstallUpdatesOnBoot()
Whether to install operating system and package updates when the instance boots. The default value is
true. If this value is set tofalse, you must then update your instances manually by using CreateDeployment to run theupdate_dependenciesstack command or by manually runningyum(Amazon Linux) orapt-get(Ubuntu) on the instances.We strongly recommend using the default value of
true, to ensure that your instances have the latest security updates.- Returns:
- Whether to install operating system and package updates when the
instance boots. The default value is
true. If this value is set tofalse, you must then update your instances manually by using CreateDeployment to run theupdate_dependenciesstack command or by manually runningyum(Amazon Linux) orapt-get(Ubuntu) on the instances.We strongly recommend using the default value of
true, to ensure that your instances have the latest security updates.
-
withInstallUpdatesOnBoot
public Instance withInstallUpdatesOnBoot(Boolean installUpdatesOnBoot)
Whether to install operating system and package updates when the instance boots. The default value is
true. If this value is set tofalse, you must then update your instances manually by using CreateDeployment to run theupdate_dependenciesstack command or by manually runningyum(Amazon Linux) orapt-get(Ubuntu) on the instances.We strongly recommend using the default value of
true, to ensure that your instances have the latest security updates.- Parameters:
installUpdatesOnBoot- Whether to install operating system and package updates when the instance boots. The default value istrue. If this value is set tofalse, you must then update your instances manually by using CreateDeployment to run theupdate_dependenciesstack command or by manually runningyum(Amazon Linux) orapt-get(Ubuntu) on the instances.We strongly recommend using the default value of
true, to ensure that your instances have the latest security updates.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
isInstallUpdatesOnBoot
public Boolean isInstallUpdatesOnBoot()
Whether to install operating system and package updates when the instance boots. The default value is
true. If this value is set tofalse, you must then update your instances manually by using CreateDeployment to run theupdate_dependenciesstack command or by manually runningyum(Amazon Linux) orapt-get(Ubuntu) on the instances.We strongly recommend using the default value of
true, to ensure that your instances have the latest security updates.- Returns:
- Whether to install operating system and package updates when the
instance boots. The default value is
true. If this value is set tofalse, you must then update your instances manually by using CreateDeployment to run theupdate_dependenciesstack command or by manually runningyum(Amazon Linux) orapt-get(Ubuntu) on the instances.We strongly recommend using the default value of
true, to ensure that your instances have the latest security updates.
-
setInstanceId
public void setInstanceId(String instanceId)
The instance ID.
- Parameters:
instanceId- The instance ID.
-
getInstanceId
public String getInstanceId()
The instance ID.
- Returns:
- The instance ID.
-
withInstanceId
public Instance withInstanceId(String instanceId)
The instance ID.
- Parameters:
instanceId- The instance ID.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setInstanceProfileArn
public void setInstanceProfileArn(String instanceProfileArn)
The ARN of the instance's IAM profile. For more information about IAM ARNs, see Using Identifiers.
- Parameters:
instanceProfileArn- The ARN of the instance's IAM profile. For more information about IAM ARNs, see Using Identifiers.
-
getInstanceProfileArn
public String getInstanceProfileArn()
The ARN of the instance's IAM profile. For more information about IAM ARNs, see Using Identifiers.
- Returns:
- The ARN of the instance's IAM profile. For more information about IAM ARNs, see Using Identifiers.
-
withInstanceProfileArn
public Instance withInstanceProfileArn(String instanceProfileArn)
The ARN of the instance's IAM profile. For more information about IAM ARNs, see Using Identifiers.
- Parameters:
instanceProfileArn- The ARN of the instance's IAM profile. For more information about IAM ARNs, see Using Identifiers.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setInstanceType
public void setInstanceType(String instanceType)
The instance type, such as
t2.micro.- Parameters:
instanceType- The instance type, such ast2.micro.
-
getInstanceType
public String getInstanceType()
The instance type, such as
t2.micro.- Returns:
- The instance type, such as
t2.micro.
-
withInstanceType
public Instance withInstanceType(String instanceType)
The instance type, such as
t2.micro.- Parameters:
instanceType- The instance type, such ast2.micro.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setLastServiceErrorId
public void setLastServiceErrorId(String lastServiceErrorId)
The ID of the last service error. For more information, call DescribeServiceErrors.
- Parameters:
lastServiceErrorId- The ID of the last service error. For more information, call DescribeServiceErrors.
-
getLastServiceErrorId
public String getLastServiceErrorId()
The ID of the last service error. For more information, call DescribeServiceErrors.
- Returns:
- The ID of the last service error. For more information, call DescribeServiceErrors.
-
withLastServiceErrorId
public Instance withLastServiceErrorId(String lastServiceErrorId)
The ID of the last service error. For more information, call DescribeServiceErrors.
- Parameters:
lastServiceErrorId- The ID of the last service error. For more information, call DescribeServiceErrors.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getLayerIds
public List<String> getLayerIds()
An array containing the instance layer IDs.
- Returns:
- An array containing the instance layer IDs.
-
setLayerIds
public void setLayerIds(Collection<String> layerIds)
An array containing the instance layer IDs.
- Parameters:
layerIds- An array containing the instance layer IDs.
-
withLayerIds
public Instance withLayerIds(String... layerIds)
An array containing the instance layer IDs.
NOTE: This method appends the values to the existing list (if any). Use
setLayerIds(java.util.Collection)orwithLayerIds(java.util.Collection)if you want to override the existing values.- Parameters:
layerIds- An array containing the instance layer IDs.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withLayerIds
public Instance withLayerIds(Collection<String> layerIds)
An array containing the instance layer IDs.
- Parameters:
layerIds- An array containing the instance layer IDs.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setOs
public void setOs(String os)
The instance's operating system.
- Parameters:
os- The instance's operating system.
-
getOs
public String getOs()
The instance's operating system.
- Returns:
- The instance's operating system.
-
withOs
public Instance withOs(String os)
The instance's operating system.
- Parameters:
os- The instance's operating system.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setPlatform
public void setPlatform(String platform)
The instance's platform.
- Parameters:
platform- The instance's platform.
-
getPlatform
public String getPlatform()
The instance's platform.
- Returns:
- The instance's platform.
-
withPlatform
public Instance withPlatform(String platform)
The instance's platform.
- Parameters:
platform- The instance's platform.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setPrivateDns
public void setPrivateDns(String privateDns)
The The instance's private DNS name.
- Parameters:
privateDns- The The instance's private DNS name.
-
getPrivateDns
public String getPrivateDns()
The The instance's private DNS name.
- Returns:
- The The instance's private DNS name.
-
withPrivateDns
public Instance withPrivateDns(String privateDns)
The The instance's private DNS name.
- Parameters:
privateDns- The The instance's private DNS name.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setPrivateIp
public void setPrivateIp(String privateIp)
The instance's private IP address.
- Parameters:
privateIp- The instance's private IP address.
-
getPrivateIp
public String getPrivateIp()
The instance's private IP address.
- Returns:
- The instance's private IP address.
-
withPrivateIp
public Instance withPrivateIp(String privateIp)
The instance's private IP address.
- Parameters:
privateIp- The instance's private IP address.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setPublicDns
public void setPublicDns(String publicDns)
The instance public DNS name.
- Parameters:
publicDns- The instance public DNS name.
-
getPublicDns
public String getPublicDns()
The instance public DNS name.
- Returns:
- The instance public DNS name.
-
withPublicDns
public Instance withPublicDns(String publicDns)
The instance public DNS name.
- Parameters:
publicDns- The instance public DNS name.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setPublicIp
public void setPublicIp(String publicIp)
The instance public IP address.
- Parameters:
publicIp- The instance public IP address.
-
getPublicIp
public String getPublicIp()
The instance public IP address.
- Returns:
- The instance public IP address.
-
withPublicIp
public Instance withPublicIp(String publicIp)
The instance public IP address.
- Parameters:
publicIp- The instance public IP address.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setRegisteredBy
public void setRegisteredBy(String registeredBy)
For registered instances, who performed the registration.
- Parameters:
registeredBy- For registered instances, who performed the registration.
-
getRegisteredBy
public String getRegisteredBy()
For registered instances, who performed the registration.
- Returns:
- For registered instances, who performed the registration.
-
withRegisteredBy
public Instance withRegisteredBy(String registeredBy)
For registered instances, who performed the registration.
- Parameters:
registeredBy- For registered instances, who performed the registration.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setReportedAgentVersion
public void setReportedAgentVersion(String reportedAgentVersion)
The instance's reported AWS OpsWorks agent version.
- Parameters:
reportedAgentVersion- The instance's reported AWS OpsWorks agent version.
-
getReportedAgentVersion
public String getReportedAgentVersion()
The instance's reported AWS OpsWorks agent version.
- Returns:
- The instance's reported AWS OpsWorks agent version.
-
withReportedAgentVersion
public Instance withReportedAgentVersion(String reportedAgentVersion)
The instance's reported AWS OpsWorks agent version.
- Parameters:
reportedAgentVersion- The instance's reported AWS OpsWorks agent version.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setReportedOs
public void setReportedOs(ReportedOs reportedOs)
For registered instances, the reported operating system.
- Parameters:
reportedOs- For registered instances, the reported operating system.
-
getReportedOs
public ReportedOs getReportedOs()
For registered instances, the reported operating system.
- Returns:
- For registered instances, the reported operating system.
-
withReportedOs
public Instance withReportedOs(ReportedOs reportedOs)
For registered instances, the reported operating system.
- Parameters:
reportedOs- For registered instances, the reported operating system.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setRootDeviceType
public void setRootDeviceType(String rootDeviceType)
The instance's root device type. For more information, see Storage for the Root Device.
- Parameters:
rootDeviceType- The instance's root device type. For more information, see Storage for the Root Device.- See Also:
RootDeviceType
-
getRootDeviceType
public String getRootDeviceType()
The instance's root device type. For more information, see Storage for the Root Device.
- Returns:
- The instance's root device type. For more information, see Storage for the Root Device.
- See Also:
RootDeviceType
-
withRootDeviceType
public Instance withRootDeviceType(String rootDeviceType)
The instance's root device type. For more information, see Storage for the Root Device.
- Parameters:
rootDeviceType- The instance's root device type. For more information, see Storage for the Root Device.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
RootDeviceType
-
setRootDeviceType
public void setRootDeviceType(RootDeviceType rootDeviceType)
The instance's root device type. For more information, see Storage for the Root Device.
- Parameters:
rootDeviceType- The instance's root device type. For more information, see Storage for the Root Device.- See Also:
RootDeviceType
-
withRootDeviceType
public Instance withRootDeviceType(RootDeviceType rootDeviceType)
The instance's root device type. For more information, see Storage for the Root Device.
- Parameters:
rootDeviceType- The instance's root device type. For more information, see Storage for the Root Device.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
RootDeviceType
-
setRootDeviceVolumeId
public void setRootDeviceVolumeId(String rootDeviceVolumeId)
The root device volume ID.
- Parameters:
rootDeviceVolumeId- The root device volume ID.
-
getRootDeviceVolumeId
public String getRootDeviceVolumeId()
The root device volume ID.
- Returns:
- The root device volume ID.
-
withRootDeviceVolumeId
public Instance withRootDeviceVolumeId(String rootDeviceVolumeId)
The root device volume ID.
- Parameters:
rootDeviceVolumeId- The root device volume ID.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getSecurityGroupIds
public List<String> getSecurityGroupIds()
An array containing the instance security group IDs.
- Returns:
- An array containing the instance security group IDs.
-
setSecurityGroupIds
public void setSecurityGroupIds(Collection<String> securityGroupIds)
An array containing the instance security group IDs.
- Parameters:
securityGroupIds- An array containing the instance security group IDs.
-
withSecurityGroupIds
public Instance withSecurityGroupIds(String... securityGroupIds)
An array containing the instance security group IDs.
NOTE: This method appends the values to the existing list (if any). Use
setSecurityGroupIds(java.util.Collection)orwithSecurityGroupIds(java.util.Collection)if you want to override the existing values.- Parameters:
securityGroupIds- An array containing the instance security group IDs.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withSecurityGroupIds
public Instance withSecurityGroupIds(Collection<String> securityGroupIds)
An array containing the instance security group IDs.
- Parameters:
securityGroupIds- An array containing the instance security group IDs.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setSshHostDsaKeyFingerprint
public void setSshHostDsaKeyFingerprint(String sshHostDsaKeyFingerprint)
The SSH key's Deep Security Agent (DSA) fingerprint.
- Parameters:
sshHostDsaKeyFingerprint- The SSH key's Deep Security Agent (DSA) fingerprint.
-
getSshHostDsaKeyFingerprint
public String getSshHostDsaKeyFingerprint()
The SSH key's Deep Security Agent (DSA) fingerprint.
- Returns:
- The SSH key's Deep Security Agent (DSA) fingerprint.
-
withSshHostDsaKeyFingerprint
public Instance withSshHostDsaKeyFingerprint(String sshHostDsaKeyFingerprint)
The SSH key's Deep Security Agent (DSA) fingerprint.
- Parameters:
sshHostDsaKeyFingerprint- The SSH key's Deep Security Agent (DSA) fingerprint.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setSshHostRsaKeyFingerprint
public void setSshHostRsaKeyFingerprint(String sshHostRsaKeyFingerprint)
The SSH key's RSA fingerprint.
- Parameters:
sshHostRsaKeyFingerprint- The SSH key's RSA fingerprint.
-
getSshHostRsaKeyFingerprint
public String getSshHostRsaKeyFingerprint()
The SSH key's RSA fingerprint.
- Returns:
- The SSH key's RSA fingerprint.
-
withSshHostRsaKeyFingerprint
public Instance withSshHostRsaKeyFingerprint(String sshHostRsaKeyFingerprint)
The SSH key's RSA fingerprint.
- Parameters:
sshHostRsaKeyFingerprint- The SSH key's RSA fingerprint.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setSshKeyName
public void setSshKeyName(String sshKeyName)
The instance's Amazon EC2 key-pair name.
- Parameters:
sshKeyName- The instance's Amazon EC2 key-pair name.
-
getSshKeyName
public String getSshKeyName()
The instance's Amazon EC2 key-pair name.
- Returns:
- The instance's Amazon EC2 key-pair name.
-
withSshKeyName
public Instance withSshKeyName(String sshKeyName)
The instance's Amazon EC2 key-pair name.
- Parameters:
sshKeyName- The instance's Amazon EC2 key-pair name.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setStackId
public void setStackId(String stackId)
The stack ID.
- Parameters:
stackId- The stack ID.
-
getStackId
public String getStackId()
The stack ID.
- Returns:
- The stack ID.
-
withStackId
public Instance withStackId(String stackId)
The stack ID.
- Parameters:
stackId- The stack ID.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setStatus
public void setStatus(String status)
The instance status:
-
booting -
connection_lost -
online -
pending -
rebooting -
requested -
running_setup -
setup_failed -
shutting_down -
start_failed -
stopped -
stopping -
terminated -
terminating
- Parameters:
status- The instance status:-
booting -
connection_lost -
online -
pending -
rebooting -
requested -
running_setup -
setup_failed -
shutting_down -
start_failed -
stopped -
stopping -
terminated -
terminating
-
-
-
getStatus
public String getStatus()
The instance status:
-
booting -
connection_lost -
online -
pending -
rebooting -
requested -
running_setup -
setup_failed -
shutting_down -
start_failed -
stopped -
stopping -
terminated -
terminating
- Returns:
- The instance status:
-
booting -
connection_lost -
online -
pending -
rebooting -
requested -
running_setup -
setup_failed -
shutting_down -
start_failed -
stopped -
stopping -
terminated -
terminating
-
-
-
withStatus
public Instance withStatus(String status)
The instance status:
-
booting -
connection_lost -
online -
pending -
rebooting -
requested -
running_setup -
setup_failed -
shutting_down -
start_failed -
stopped -
stopping -
terminated -
terminating
- Parameters:
status- The instance status:-
booting -
connection_lost -
online -
pending -
rebooting -
requested -
running_setup -
setup_failed -
shutting_down -
start_failed -
stopped -
stopping -
terminated -
terminating
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-
setSubnetId
public void setSubnetId(String subnetId)
The instance's subnet ID; applicable only if the stack is running in a VPC.
- Parameters:
subnetId- The instance's subnet ID; applicable only if the stack is running in a VPC.
-
getSubnetId
public String getSubnetId()
The instance's subnet ID; applicable only if the stack is running in a VPC.
- Returns:
- The instance's subnet ID; applicable only if the stack is running in a VPC.
-
withSubnetId
public Instance withSubnetId(String subnetId)
The instance's subnet ID; applicable only if the stack is running in a VPC.
- Parameters:
subnetId- The instance's subnet ID; applicable only if the stack is running in a VPC.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setTenancy
public void setTenancy(String tenancy)
The instance's tenancy option, such as
dedicatedorhost.- Parameters:
tenancy- The instance's tenancy option, such asdedicatedorhost.
-
getTenancy
public String getTenancy()
The instance's tenancy option, such as
dedicatedorhost.- Returns:
- The instance's tenancy option, such as
dedicatedorhost.
-
withTenancy
public Instance withTenancy(String tenancy)
The instance's tenancy option, such as
dedicatedorhost.- Parameters:
tenancy- The instance's tenancy option, such asdedicatedorhost.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setVirtualizationType
public void setVirtualizationType(String virtualizationType)
The instance's virtualization type:
paravirtualorhvm.- Parameters:
virtualizationType- The instance's virtualization type:paravirtualorhvm.- See Also:
VirtualizationType
-
getVirtualizationType
public String getVirtualizationType()
The instance's virtualization type:
paravirtualorhvm.- Returns:
- The instance's virtualization type:
paravirtualorhvm. - See Also:
VirtualizationType
-
withVirtualizationType
public Instance withVirtualizationType(String virtualizationType)
The instance's virtualization type:
paravirtualorhvm.- Parameters:
virtualizationType- The instance's virtualization type:paravirtualorhvm.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
VirtualizationType
-
setVirtualizationType
public void setVirtualizationType(VirtualizationType virtualizationType)
The instance's virtualization type:
paravirtualorhvm.- Parameters:
virtualizationType- The instance's virtualization type:paravirtualorhvm.- See Also:
VirtualizationType
-
withVirtualizationType
public Instance withVirtualizationType(VirtualizationType virtualizationType)
The instance's virtualization type:
paravirtualorhvm.- Parameters:
virtualizationType- The instance's virtualization type:paravirtualorhvm.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
VirtualizationType
-
toString
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
-