Class Instance
- All Implemented Interfaces:
Serializable
,Cloneable
Describes an instance.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()
boolean
The agent version.getAmiId()
A custom AMI ID to be used to create the instance.The instance architecture: "i386" or "x86_64".For load-based or time-based instances, the type.The instance Availability Zone.An array ofBlockDeviceMapping
objects that specify the instance's block device mappings.The time that the instance was created.Whether this is an Amazon EBS-optimized instance.The ID of the associated Amazon EC2 instance.For container instances, the Amazon ECS cluster's ARN.For container instances, the instance's ARN.The instance Elastic IP address .The instance host name.For registered instances, the infrastructure class:ec2
oron-premises
.Whether to install operating system and package updates when the instance boots.The instance ID.The ARN of the instance's IAM profile.The instance type, such ast2.micro
.The ID of the last service error.An array containing the instance layer IDs.getOs()
The instance's operating system.The instance's platform.The The instance's private DNS name.The instance's private IP address.The instance public DNS name.The instance public IP address.For registered instances, who performed the registration.The instance's reported AWS OpsWorks agent version.For registered instances, the reported operating system.The instance's root device type.The root device volume ID.An array containing the instance security group IDs.The SSH key's Deep Security Agent (DSA) fingerprint.The SSH key's RSA fingerprint.The instance's Amazon EC2 key-pair name.The stack ID.The instance status:The instance's subnet ID; applicable only if the stack is running in a VPC.The instance's tenancy option, such asdedicated
orhost
.The instance's virtualization type:paravirtual
orhvm
.int
hashCode()
Whether this is an Amazon EBS-optimized instance.Whether to install operating system and package updates when the instance boots.void
setAgentVersion
(String agentVersion) The agent version.void
A custom AMI ID to be used to create the instance.void
setArchitecture
(Architecture architecture) The instance architecture: "i386" or "x86_64".void
setArchitecture
(String architecture) The instance architecture: "i386" or "x86_64".void
setAutoScalingType
(AutoScalingType autoScalingType) For load-based or time-based instances, the type.void
setAutoScalingType
(String autoScalingType) For load-based or time-based instances, the type.void
setAvailabilityZone
(String availabilityZone) The instance Availability Zone.void
setBlockDeviceMappings
(Collection<BlockDeviceMapping> blockDeviceMappings) An array ofBlockDeviceMapping
objects that specify the instance's block device mappings.void
setCreatedAt
(String createdAt) The time that the instance was created.void
setEbsOptimized
(Boolean ebsOptimized) Whether this is an Amazon EBS-optimized instance.void
setEc2InstanceId
(String ec2InstanceId) The ID of the associated Amazon EC2 instance.void
setEcsClusterArn
(String ecsClusterArn) For container instances, the Amazon ECS cluster's ARN.void
setEcsContainerInstanceArn
(String ecsContainerInstanceArn) For container instances, the instance's ARN.void
setElasticIp
(String elasticIp) The instance Elastic IP address .void
setHostname
(String hostname) The instance host name.void
setInfrastructureClass
(String infrastructureClass) For registered instances, the infrastructure class:ec2
oron-premises
.void
setInstallUpdatesOnBoot
(Boolean installUpdatesOnBoot) Whether to install operating system and package updates when the instance boots.void
setInstanceId
(String instanceId) The instance ID.void
setInstanceProfileArn
(String instanceProfileArn) The ARN of the instance's IAM profile.void
setInstanceType
(String instanceType) The instance type, such ast2.micro
.void
setLastServiceErrorId
(String lastServiceErrorId) The ID of the last service error.void
setLayerIds
(Collection<String> layerIds) An array containing the instance layer IDs.void
The instance's operating system.void
setPlatform
(String platform) The instance's platform.void
setPrivateDns
(String privateDns) The The instance's private DNS name.void
setPrivateIp
(String privateIp) The instance's private IP address.void
setPublicDns
(String publicDns) The instance public DNS name.void
setPublicIp
(String publicIp) The instance public IP address.void
setRegisteredBy
(String registeredBy) For registered instances, who performed the registration.void
setReportedAgentVersion
(String reportedAgentVersion) The instance's reported AWS OpsWorks agent version.void
setReportedOs
(ReportedOs reportedOs) For registered instances, the reported operating system.void
setRootDeviceType
(RootDeviceType rootDeviceType) The instance's root device type.void
setRootDeviceType
(String rootDeviceType) The instance's root device type.void
setRootDeviceVolumeId
(String rootDeviceVolumeId) The root device volume ID.void
setSecurityGroupIds
(Collection<String> securityGroupIds) An array containing the instance security group IDs.void
setSshHostDsaKeyFingerprint
(String sshHostDsaKeyFingerprint) The SSH key's Deep Security Agent (DSA) fingerprint.void
setSshHostRsaKeyFingerprint
(String sshHostRsaKeyFingerprint) The SSH key's RSA fingerprint.void
setSshKeyName
(String sshKeyName) The instance's Amazon EC2 key-pair name.void
setStackId
(String stackId) The stack ID.void
The instance status:void
setSubnetId
(String subnetId) The instance's subnet ID; applicable only if the stack is running in a VPC.void
setTenancy
(String tenancy) The instance's tenancy option, such asdedicated
orhost
.void
setVirtualizationType
(VirtualizationType virtualizationType) The instance's virtualization type:paravirtual
orhvm
.void
setVirtualizationType
(String virtualizationType) The instance's virtualization type:paravirtual
orhvm
.toString()
Returns a string representation of this object; useful for testing and debugging.withAgentVersion
(String agentVersion) The agent version.A custom AMI ID to be used to create the instance.withArchitecture
(Architecture architecture) The instance architecture: "i386" or "x86_64".withArchitecture
(String architecture) The instance architecture: "i386" or "x86_64".withAutoScalingType
(AutoScalingType autoScalingType) For load-based or time-based instances, the type.withAutoScalingType
(String autoScalingType) For load-based or time-based instances, the type.withAvailabilityZone
(String availabilityZone) The instance Availability Zone.withBlockDeviceMappings
(BlockDeviceMapping... blockDeviceMappings) An array ofBlockDeviceMapping
objects that specify the instance's block device mappings.withBlockDeviceMappings
(Collection<BlockDeviceMapping> blockDeviceMappings) An array ofBlockDeviceMapping
objects that specify the instance's block device mappings.withCreatedAt
(String createdAt) The time that the instance was created.withEbsOptimized
(Boolean ebsOptimized) Whether this is an Amazon EBS-optimized instance.withEc2InstanceId
(String ec2InstanceId) The ID of the associated Amazon EC2 instance.withEcsClusterArn
(String ecsClusterArn) For container instances, the Amazon ECS cluster's ARN.withEcsContainerInstanceArn
(String ecsContainerInstanceArn) For container instances, the instance's ARN.withElasticIp
(String elasticIp) The instance Elastic IP address .withHostname
(String hostname) The instance host name.withInfrastructureClass
(String infrastructureClass) For registered instances, the infrastructure class:ec2
oron-premises
.withInstallUpdatesOnBoot
(Boolean installUpdatesOnBoot) Whether to install operating system and package updates when the instance boots.withInstanceId
(String instanceId) The instance ID.withInstanceProfileArn
(String instanceProfileArn) The ARN of the instance's IAM profile.withInstanceType
(String instanceType) The instance type, such ast2.micro
.withLastServiceErrorId
(String lastServiceErrorId) The ID of the last service error.withLayerIds
(String... layerIds) An array containing the instance layer IDs.withLayerIds
(Collection<String> layerIds) An array containing the instance layer IDs.The instance's operating system.withPlatform
(String platform) The instance's platform.withPrivateDns
(String privateDns) The The instance's private DNS name.withPrivateIp
(String privateIp) The instance's private IP address.withPublicDns
(String publicDns) The instance public DNS name.withPublicIp
(String publicIp) The instance public IP address.withRegisteredBy
(String registeredBy) For registered instances, who performed the registration.withReportedAgentVersion
(String reportedAgentVersion) The instance's reported AWS OpsWorks agent version.withReportedOs
(ReportedOs reportedOs) For registered instances, the reported operating system.withRootDeviceType
(RootDeviceType rootDeviceType) The instance's root device type.withRootDeviceType
(String rootDeviceType) The instance's root device type.withRootDeviceVolumeId
(String rootDeviceVolumeId) The root device volume ID.withSecurityGroupIds
(String... securityGroupIds) An array containing the instance security group IDs.withSecurityGroupIds
(Collection<String> securityGroupIds) An array containing the instance security group IDs.withSshHostDsaKeyFingerprint
(String sshHostDsaKeyFingerprint) The SSH key's Deep Security Agent (DSA) fingerprint.withSshHostRsaKeyFingerprint
(String sshHostRsaKeyFingerprint) The SSH key's RSA fingerprint.withSshKeyName
(String sshKeyName) The instance's Amazon EC2 key-pair name.withStackId
(String stackId) The stack ID.withStatus
(String status) The instance status:withSubnetId
(String subnetId) The instance's subnet ID; applicable only if the stack is running in a VPC.withTenancy
(String tenancy) The instance's tenancy option, such asdedicated
orhost
.withVirtualizationType
(VirtualizationType virtualizationType) The instance's virtualization type:paravirtual
orhvm
.withVirtualizationType
(String virtualizationType) The instance's virtualization type:paravirtual
orhvm
.
-
Constructor Details
-
Instance
public Instance()
-
-
Method Details
-
setAgentVersion
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.- Parameters:
agentVersion
- The agent version. This parameter is set toINHERIT
if the instance inherits the default stack setting or to a a version number for a fixed agent version.
-
getAgentVersion
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.- Returns:
- 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.
-
withAgentVersion
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.- Parameters:
agentVersion
- The agent version. This parameter is set toINHERIT
if 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
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
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
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
The instance architecture: "i386" or "x86_64".
- Parameters:
architecture
- The instance architecture: "i386" or "x86_64".- See Also:
-
getArchitecture
The instance architecture: "i386" or "x86_64".
- Returns:
- The instance architecture: "i386" or "x86_64".
- See Also:
-
withArchitecture
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:
-
setArchitecture
The instance architecture: "i386" or "x86_64".
- Parameters:
architecture
- The instance architecture: "i386" or "x86_64".- See Also:
-
withArchitecture
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:
-
setAutoScalingType
For load-based or time-based instances, the type.
- Parameters:
autoScalingType
- For load-based or time-based instances, the type.- See Also:
-
getAutoScalingType
For load-based or time-based instances, the type.
- Returns:
- For load-based or time-based instances, the type.
- See Also:
-
withAutoScalingType
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:
-
setAutoScalingType
For load-based or time-based instances, the type.
- Parameters:
autoScalingType
- For load-based or time-based instances, the type.- See Also:
-
withAutoScalingType
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:
-
setAvailabilityZone
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
The instance Availability Zone. For more information, see Regions and Endpoints.
- Returns:
- The instance Availability Zone. For more information, see Regions and Endpoints.
-
withAvailabilityZone
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
An array of
BlockDeviceMapping
objects that specify the instance's block device mappings.- Returns:
- An array of
BlockDeviceMapping
objects that specify the instance's block device mappings.
-
setBlockDeviceMappings
An array of
BlockDeviceMapping
objects that specify the instance's block device mappings.- Parameters:
blockDeviceMappings
- An array ofBlockDeviceMapping
objects that specify the instance's block device mappings.
-
withBlockDeviceMappings
An array of
BlockDeviceMapping
objects 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 ofBlockDeviceMapping
objects that specify the instance's block device mappings.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withBlockDeviceMappings
An array of
BlockDeviceMapping
objects that specify the instance's block device mappings.- Parameters:
blockDeviceMappings
- An array ofBlockDeviceMapping
objects that specify the instance's block device mappings.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setCreatedAt
The time that the instance was created.
- Parameters:
createdAt
- The time that the instance was created.
-
getCreatedAt
The time that the instance was created.
- Returns:
- The time that the instance was created.
-
withCreatedAt
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
Whether this is an Amazon EBS-optimized instance.
- Parameters:
ebsOptimized
- Whether this is an Amazon EBS-optimized instance.
-
getEbsOptimized
Whether this is an Amazon EBS-optimized instance.
- Returns:
- Whether this is an Amazon EBS-optimized instance.
-
withEbsOptimized
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
Whether this is an Amazon EBS-optimized instance.
- Returns:
- Whether this is an Amazon EBS-optimized instance.
-
setEc2InstanceId
The ID of the associated Amazon EC2 instance.
- Parameters:
ec2InstanceId
- The ID of the associated Amazon EC2 instance.
-
getEc2InstanceId
The ID of the associated Amazon EC2 instance.
- Returns:
- The ID of the associated Amazon EC2 instance.
-
withEc2InstanceId
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
For container instances, the Amazon ECS cluster's ARN.
- Parameters:
ecsClusterArn
- For container instances, the Amazon ECS cluster's ARN.
-
getEcsClusterArn
For container instances, the Amazon ECS cluster's ARN.
- Returns:
- For container instances, the Amazon ECS cluster's ARN.
-
withEcsClusterArn
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
For container instances, the instance's ARN.
- Parameters:
ecsContainerInstanceArn
- For container instances, the instance's ARN.
-
getEcsContainerInstanceArn
For container instances, the instance's ARN.
- Returns:
- For container instances, the instance's ARN.
-
withEcsContainerInstanceArn
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
The instance Elastic IP address .
- Parameters:
elasticIp
- The instance Elastic IP address .
-
getElasticIp
The instance Elastic IP address .
- Returns:
- The instance Elastic IP address .
-
withElasticIp
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
The instance host name.
- Parameters:
hostname
- The instance host name.
-
getHostname
The instance host name.
- Returns:
- The instance host name.
-
withHostname
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
For registered instances, the infrastructure class:
ec2
oron-premises
.- Parameters:
infrastructureClass
- For registered instances, the infrastructure class:ec2
oron-premises
.
-
getInfrastructureClass
For registered instances, the infrastructure class:
ec2
oron-premises
.- Returns:
- For registered instances, the infrastructure class:
ec2
oron-premises
.
-
withInfrastructureClass
For registered instances, the infrastructure class:
ec2
oron-premises
.- Parameters:
infrastructureClass
- For registered instances, the infrastructure class:ec2
oron-premises
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setInstallUpdatesOnBoot
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_dependencies
stack 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_dependencies
stack 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
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_dependencies
stack 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_dependencies
stack 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
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_dependencies
stack 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_dependencies
stack 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
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_dependencies
stack 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_dependencies
stack 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
The instance ID.
- Parameters:
instanceId
- The instance ID.
-
getInstanceId
The instance ID.
- Returns:
- The instance ID.
-
withInstanceId
The instance ID.
- Parameters:
instanceId
- The instance ID.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setInstanceProfileArn
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
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
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
The instance type, such as
t2.micro
.- Parameters:
instanceType
- The instance type, such ast2.micro
.
-
getInstanceType
The instance type, such as
t2.micro
.- Returns:
- The instance type, such as
t2.micro
.
-
withInstanceType
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
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
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
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
An array containing the instance layer IDs.
- Returns:
- An array containing the instance layer IDs.
-
setLayerIds
An array containing the instance layer IDs.
- Parameters:
layerIds
- An array containing the instance layer IDs.
-
withLayerIds
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
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
The instance's operating system.
- Parameters:
os
- The instance's operating system.
-
getOs
The instance's operating system.
- Returns:
- The instance's operating system.
-
withOs
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
The instance's platform.
- Parameters:
platform
- The instance's platform.
-
getPlatform
The instance's platform.
- Returns:
- The instance's platform.
-
withPlatform
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
The The instance's private DNS name.
- Parameters:
privateDns
- The The instance's private DNS name.
-
getPrivateDns
The The instance's private DNS name.
- Returns:
- The The instance's private DNS name.
-
withPrivateDns
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
The instance's private IP address.
- Parameters:
privateIp
- The instance's private IP address.
-
getPrivateIp
The instance's private IP address.
- Returns:
- The instance's private IP address.
-
withPrivateIp
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
The instance public DNS name.
- Parameters:
publicDns
- The instance public DNS name.
-
getPublicDns
The instance public DNS name.
- Returns:
- The instance public DNS name.
-
withPublicDns
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
The instance public IP address.
- Parameters:
publicIp
- The instance public IP address.
-
getPublicIp
The instance public IP address.
- Returns:
- The instance public IP address.
-
withPublicIp
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
For registered instances, who performed the registration.
- Parameters:
registeredBy
- For registered instances, who performed the registration.
-
getRegisteredBy
For registered instances, who performed the registration.
- Returns:
- For registered instances, who performed the registration.
-
withRegisteredBy
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
The instance's reported AWS OpsWorks agent version.
- Parameters:
reportedAgentVersion
- The instance's reported AWS OpsWorks agent version.
-
getReportedAgentVersion
The instance's reported AWS OpsWorks agent version.
- Returns:
- The instance's reported AWS OpsWorks agent version.
-
withReportedAgentVersion
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
For registered instances, the reported operating system.
- Parameters:
reportedOs
- For registered instances, the reported operating system.
-
getReportedOs
For registered instances, the reported operating system.
- Returns:
- For registered instances, the reported operating system.
-
withReportedOs
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
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:
-
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:
-
withRootDeviceType
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:
-
setRootDeviceType
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:
-
withRootDeviceType
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:
-
setRootDeviceVolumeId
The root device volume ID.
- Parameters:
rootDeviceVolumeId
- The root device volume ID.
-
getRootDeviceVolumeId
The root device volume ID.
- Returns:
- The root device volume ID.
-
withRootDeviceVolumeId
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
An array containing the instance security group IDs.
- Returns:
- An array containing the instance security group IDs.
-
setSecurityGroupIds
An array containing the instance security group IDs.
- Parameters:
securityGroupIds
- An array containing the instance security group IDs.
-
withSecurityGroupIds
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
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
The SSH key's Deep Security Agent (DSA) fingerprint.
- Parameters:
sshHostDsaKeyFingerprint
- The SSH key's Deep Security Agent (DSA) fingerprint.
-
getSshHostDsaKeyFingerprint
The SSH key's Deep Security Agent (DSA) fingerprint.
- Returns:
- The SSH key's Deep Security Agent (DSA) fingerprint.
-
withSshHostDsaKeyFingerprint
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
The SSH key's RSA fingerprint.
- Parameters:
sshHostRsaKeyFingerprint
- The SSH key's RSA fingerprint.
-
getSshHostRsaKeyFingerprint
The SSH key's RSA fingerprint.
- Returns:
- The SSH key's RSA fingerprint.
-
withSshHostRsaKeyFingerprint
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
The instance's Amazon EC2 key-pair name.
- Parameters:
sshKeyName
- The instance's Amazon EC2 key-pair name.
-
getSshKeyName
The instance's Amazon EC2 key-pair name.
- Returns:
- The instance's Amazon EC2 key-pair name.
-
withSshKeyName
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
The stack ID.
- Parameters:
stackId
- The stack ID.
-
getStackId
The stack ID.
- Returns:
- The stack ID.
-
withStackId
The stack ID.
- Parameters:
stackId
- The stack ID.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setStatus
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
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
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
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
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
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
The instance's tenancy option, such as
dedicated
orhost
.- Parameters:
tenancy
- The instance's tenancy option, such asdedicated
orhost
.
-
getTenancy
The instance's tenancy option, such as
dedicated
orhost
.- Returns:
- The instance's tenancy option, such as
dedicated
orhost
.
-
withTenancy
The instance's tenancy option, such as
dedicated
orhost
.- Parameters:
tenancy
- The instance's tenancy option, such asdedicated
orhost
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setVirtualizationType
The instance's virtualization type:
paravirtual
orhvm
.- Parameters:
virtualizationType
- The instance's virtualization type:paravirtual
orhvm
.- See Also:
-
getVirtualizationType
The instance's virtualization type:
paravirtual
orhvm
.- Returns:
- The instance's virtualization type:
paravirtual
orhvm
. - See Also:
-
withVirtualizationType
The instance's virtualization type:
paravirtual
orhvm
.- Parameters:
virtualizationType
- The instance's virtualization type:paravirtual
orhvm
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
setVirtualizationType
The instance's virtualization type:
paravirtual
orhvm
.- Parameters:
virtualizationType
- The instance's virtualization type:paravirtual
orhvm
.- See Also:
-
withVirtualizationType
The instance's virtualization type:
paravirtual
orhvm
.- Parameters:
virtualizationType
- The instance's virtualization type:paravirtual
orhvm
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
toString
Returns a string representation of this object; useful for testing and debugging. -
equals
-
hashCode
public int hashCode() -
clone
-