public class Instance extends Object implements Serializable, Cloneable
Describes an instance.
| Constructor and Description |
|---|
Instance() |
| Modifier and Type | Method and Description |
|---|---|
Instance |
clone() |
boolean |
equals(Object obj) |
String |
getAmiId()
A custom AMI ID to be used to create the instance.
|
String |
getArchitecture()
The instance architecture, "i386" or "x86_64".
|
String |
getAutoScalingType()
For load-based or time-based instances, the type.
|
String |
getAvailabilityZone()
The instance Availability Zone.
|
List<BlockDeviceMapping> |
getBlockDeviceMappings()
An array of
BlockDeviceMapping objects that specify the
instance's block device mappings. |
String |
getCreatedAt()
The time that the instance was created.
|
Boolean |
getEbsOptimized()
Whether this is an Amazon EBS-optimized instance.
|
String |
getEc2InstanceId()
The ID of the associated Amazon EC2 instance.
|
String |
getElasticIp()
The instance Elastic
IP address .
|
String |
getHostname()
The instance host name.
|
String |
getInfrastructureClass()
For registered instances, the infrastructure class:
ec2
or on-premises |
Boolean |
getInstallUpdatesOnBoot()
Whether to install operating system and package updates when the
instance boots.
|
String |
getInstanceId()
The instance ID.
|
String |
getInstanceProfileArn()
The ARN of the instance's IAM profile.
|
String |
getInstanceType()
The instance type.
|
String |
getLastServiceErrorId()
The ID of the last service error.
|
List<String> |
getLayerIds()
An array containing the instance layer IDs.
|
String |
getOs()
The instance's operating system.
|
String |
getPrivateDns()
The instance private DNS name.
|
String |
getPrivateIp()
The instance private IP address.
|
String |
getPublicDns()
The instance public DNS name.
|
String |
getPublicIp()
The instance public IP address.
|
String |
getRegisteredBy()
For registered instances, who performed the registration.
|
String |
getReportedAgentVersion()
The instance's reported AWS OpsWorks agent version.
|
ReportedOs |
getReportedOs()
For registered instances, the reported operating system.
|
String |
getRootDeviceType()
The instance's root device type.
|
String |
getRootDeviceVolumeId()
The root device volume ID.
|
List<String> |
getSecurityGroupIds()
An array containing the instance security group IDs.
|
String |
getSshHostDsaKeyFingerprint()
The SSH key's DSA fingerprint.
|
String |
getSshHostRsaKeyFingerprint()
The SSH key's RSA fingerprint.
|
String |
getSshKeyName()
The instance's Amazon EC2 key pair name.
|
String |
getStackId()
The stack ID.
|
String |
getStatus()
The instance status:
booting
connection_lost online
pending rebooting
requested running_setup
setup_failed shutting_down
start_failed stopped
stopping terminated
terminating |
String |
getSubnetId()
The instance's subnet ID, if the stack is running in a VPC.
|
String |
getVirtualizationType()
The instance's virtualization type,
paravirtual or
hvm. |
int |
hashCode() |
Boolean |
isEbsOptimized()
Whether this is an Amazon EBS-optimized instance.
|
Boolean |
isInstallUpdatesOnBoot()
Whether to install operating system and package updates when the
instance boots.
|
void |
setAmiId(String amiId)
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 of
BlockDeviceMapping 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 |
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
or on-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.
|
void |
setLastServiceErrorId(String lastServiceErrorId)
The ID of the last service error.
|
void |
setLayerIds(Collection<String> layerIds)
An array containing the instance layer IDs.
|
void |
setOs(String os)
The instance's operating system.
|
void |
setPrivateDns(String privateDns)
The instance private DNS name.
|
void |
setPrivateIp(String privateIp)
The instance 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 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 |
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 |
void |
setSubnetId(String subnetId)
The instance's subnet ID, if the stack is running in a VPC.
|
void |
setVirtualizationType(String virtualizationType)
The instance's virtualization type,
paravirtual or
hvm. |
void |
setVirtualizationType(VirtualizationType virtualizationType)
The instance's virtualization type,
paravirtual or
hvm. |
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
Instance |
withAmiId(String amiId)
A custom AMI ID to be used to create the instance.
|
Instance |
withArchitecture(Architecture architecture)
The instance architecture, "i386" or "x86_64".
|
Instance |
withArchitecture(String architecture)
The instance architecture, "i386" or "x86_64".
|
Instance |
withAutoScalingType(AutoScalingType autoScalingType)
For load-based or time-based instances, the type.
|
Instance |
withAutoScalingType(String autoScalingType)
For load-based or time-based instances, the type.
|
Instance |
withAvailabilityZone(String availabilityZone)
The instance Availability Zone.
|
Instance |
withBlockDeviceMappings(BlockDeviceMapping... blockDeviceMappings)
An array of
BlockDeviceMapping objects that specify the
instance's block device mappings. |
Instance |
withBlockDeviceMappings(Collection<BlockDeviceMapping> blockDeviceMappings)
An array of
BlockDeviceMapping objects that specify the
instance's block device mappings. |
Instance |
withCreatedAt(String createdAt)
The time that the instance was created.
|
Instance |
withEbsOptimized(Boolean ebsOptimized)
Whether this is an Amazon EBS-optimized instance.
|
Instance |
withEc2InstanceId(String ec2InstanceId)
The ID of the associated Amazon EC2 instance.
|
Instance |
withElasticIp(String elasticIp)
The instance Elastic
IP address .
|
Instance |
withHostname(String hostname)
The instance host name.
|
Instance |
withInfrastructureClass(String infrastructureClass)
For registered instances, the infrastructure class:
ec2
or on-premises |
Instance |
withInstallUpdatesOnBoot(Boolean installUpdatesOnBoot)
Whether to install operating system and package updates when the
instance boots.
|
Instance |
withInstanceId(String instanceId)
The instance ID.
|
Instance |
withInstanceProfileArn(String instanceProfileArn)
The ARN of the instance's IAM profile.
|
Instance |
withInstanceType(String instanceType)
The instance type.
|
Instance |
withLastServiceErrorId(String lastServiceErrorId)
The ID of the last service error.
|
Instance |
withLayerIds(Collection<String> layerIds)
An array containing the instance layer IDs.
|
Instance |
withLayerIds(String... layerIds)
An array containing the instance layer IDs.
|
Instance |
withOs(String os)
The instance's operating system.
|
Instance |
withPrivateDns(String privateDns)
The instance private DNS name.
|
Instance |
withPrivateIp(String privateIp)
The instance private IP address.
|
Instance |
withPublicDns(String publicDns)
The instance public DNS name.
|
Instance |
withPublicIp(String publicIp)
The instance public IP address.
|
Instance |
withRegisteredBy(String registeredBy)
For registered instances, who performed the registration.
|
Instance |
withReportedAgentVersion(String reportedAgentVersion)
The instance's reported AWS OpsWorks agent version.
|
Instance |
withReportedOs(ReportedOs reportedOs)
For registered instances, the reported operating system.
|
Instance |
withRootDeviceType(RootDeviceType rootDeviceType)
The instance's root device type.
|
Instance |
withRootDeviceType(String rootDeviceType)
The instance's root device type.
|
Instance |
withRootDeviceVolumeId(String rootDeviceVolumeId)
The root device volume ID.
|
Instance |
withSecurityGroupIds(Collection<String> securityGroupIds)
An array containing the instance security group IDs.
|
Instance |
withSecurityGroupIds(String... securityGroupIds)
An array containing the instance security group IDs.
|
Instance |
withSshHostDsaKeyFingerprint(String sshHostDsaKeyFingerprint)
The SSH key's DSA fingerprint.
|
Instance |
withSshHostRsaKeyFingerprint(String sshHostRsaKeyFingerprint)
The SSH key's RSA fingerprint.
|
Instance |
withSshKeyName(String sshKeyName)
The instance's Amazon EC2 key pair name.
|
Instance |
withStackId(String stackId)
The stack ID.
|
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 |
Instance |
withSubnetId(String subnetId)
The instance's subnet ID, if the stack is running in a VPC.
|
Instance |
withVirtualizationType(String virtualizationType)
The instance's virtualization type,
paravirtual or
hvm. |
Instance |
withVirtualizationType(VirtualizationType virtualizationType)
The instance's virtualization type,
paravirtual or
hvm. |
public String getInstanceId()
public void setInstanceId(String instanceId)
instanceId - The instance ID.public Instance withInstanceId(String instanceId)
Returns a reference to this object so that method calls can be chained together.
instanceId - The instance ID.public String getEc2InstanceId()
public void setEc2InstanceId(String ec2InstanceId)
ec2InstanceId - The ID of the associated Amazon EC2 instance.public Instance withEc2InstanceId(String ec2InstanceId)
Returns a reference to this object so that method calls can be chained together.
ec2InstanceId - The ID of the associated Amazon EC2 instance.public String getVirtualizationType()
paravirtual or
hvm.
Constraints:
Allowed Values: paravirtual, hvm
paravirtual or
hvm.VirtualizationTypepublic void setVirtualizationType(String virtualizationType)
paravirtual or
hvm.
Constraints:
Allowed Values: paravirtual, hvm
virtualizationType - The instance's virtualization type, paravirtual or
hvm.VirtualizationTypepublic Instance withVirtualizationType(String virtualizationType)
paravirtual or
hvm.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: paravirtual, hvm
virtualizationType - The instance's virtualization type, paravirtual or
hvm.VirtualizationTypepublic void setVirtualizationType(VirtualizationType virtualizationType)
paravirtual or
hvm.
Constraints:
Allowed Values: paravirtual, hvm
virtualizationType - The instance's virtualization type, paravirtual or
hvm.VirtualizationTypepublic Instance withVirtualizationType(VirtualizationType virtualizationType)
paravirtual or
hvm.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: paravirtual, hvm
virtualizationType - The instance's virtualization type, paravirtual or
hvm.VirtualizationTypepublic String getHostname()
public void setHostname(String hostname)
hostname - The instance host name.public Instance withHostname(String hostname)
Returns a reference to this object so that method calls can be chained together.
hostname - The instance host name.public String getStackId()
public void setStackId(String stackId)
stackId - The stack ID.public Instance withStackId(String stackId)
Returns a reference to this object so that method calls can be chained together.
stackId - The stack ID.public List<String> getLayerIds()
public void setLayerIds(Collection<String> layerIds)
layerIds - An array containing the instance layer IDs.public Instance withLayerIds(String... layerIds)
NOTE: This method appends the values to the existing list (if
any). Use setLayerIds(java.util.Collection) or withLayerIds(java.util.Collection) if you want to override the
existing values.
Returns a reference to this object so that method calls can be chained together.
layerIds - An array containing the instance layer IDs.public Instance withLayerIds(Collection<String> layerIds)
Returns a reference to this object so that method calls can be chained together.
layerIds - An array containing the instance layer IDs.public List<String> getSecurityGroupIds()
public void setSecurityGroupIds(Collection<String> securityGroupIds)
securityGroupIds - An array containing the instance security group IDs.public Instance withSecurityGroupIds(String... securityGroupIds)
NOTE: This method appends the values to the existing list (if
any). Use setSecurityGroupIds(java.util.Collection) or withSecurityGroupIds(java.util.Collection) if you want to override
the existing values.
Returns a reference to this object so that method calls can be chained together.
securityGroupIds - An array containing the instance security group IDs.public Instance withSecurityGroupIds(Collection<String> securityGroupIds)
Returns a reference to this object so that method calls can be chained together.
securityGroupIds - An array containing the instance security group IDs.public String getInstanceType()
public void setInstanceType(String instanceType)
instanceType - The instance type. AWS OpsWorks supports all instance types except
Cluster Compute, Cluster GPU, and High Memory Cluster. For more
information, see Instance
Families and Types. The parameter values that specify the various
types are in the API Name column of the Available Instance Types
table.public Instance withInstanceType(String instanceType)
Returns a reference to this object so that method calls can be chained together.
instanceType - The instance type. AWS OpsWorks supports all instance types except
Cluster Compute, Cluster GPU, and High Memory Cluster. For more
information, see Instance
Families and Types. The parameter values that specify the various
types are in the API Name column of the Available Instance Types
table.public String getInstanceProfileArn()
public void setInstanceProfileArn(String instanceProfileArn)
instanceProfileArn - The ARN of the instance's IAM profile. For more information about IAM
ARNs, see Using
Identifiers.public Instance withInstanceProfileArn(String instanceProfileArn)
Returns a reference to this object so that method calls can be chained together.
instanceProfileArn - The ARN of the instance's IAM profile. For more information about IAM
ARNs, see Using
Identifiers.public String getStatus()
bootingconnection_lostonlinependingrebootingrequestedrunning_setupsetup_failedshutting_downstart_failedstoppedstoppingterminatedterminatingbootingconnection_lostonlinependingrebootingrequestedrunning_setupsetup_failedshutting_downstart_failedstoppedstoppingterminatedterminatingpublic void setStatus(String status)
bootingconnection_lostonlinependingrebootingrequestedrunning_setupsetup_failedshutting_downstart_failedstoppedstoppingterminatedterminatingstatus - The instance status: bootingconnection_lostonlinependingrebootingrequestedrunning_setupsetup_failedshutting_downstart_failedstoppedstoppingterminatedterminatingpublic Instance withStatus(String status)
bootingconnection_lostonlinependingrebootingrequestedrunning_setupsetup_failedshutting_downstart_failedstoppedstoppingterminatedterminatingReturns a reference to this object so that method calls can be chained together.
status - The instance status: bootingconnection_lostonlinependingrebootingrequestedrunning_setupsetup_failedshutting_downstart_failedstoppedstoppingterminatedterminatingpublic String getOs()
public void setOs(String os)
os - The instance's operating system.public Instance withOs(String os)
Returns a reference to this object so that method calls can be chained together.
os - The instance's operating system.public String getAmiId()
public void setAmiId(String amiId)
amiId - A custom AMI ID to be used to create the instance. The AMI should be
based on one of the standard AWS OpsWorks APIs: Amazon Linux, Ubuntu
12.04 LTS, or Ubuntu 14.04 LTS. For more information, see Instancespublic Instance withAmiId(String amiId)
Returns a reference to this object so that method calls can be chained together.
amiId - A custom AMI ID to be used to create the instance. The AMI should be
based on one of the standard AWS OpsWorks APIs: Amazon Linux, Ubuntu
12.04 LTS, or Ubuntu 14.04 LTS. For more information, see Instancespublic String getAvailabilityZone()
public void setAvailabilityZone(String availabilityZone)
availabilityZone - The instance Availability Zone. For more information, see Regions
and Endpoints.public Instance withAvailabilityZone(String availabilityZone)
Returns a reference to this object so that method calls can be chained together.
availabilityZone - The instance Availability Zone. For more information, see Regions
and Endpoints.public String getSubnetId()
public void setSubnetId(String subnetId)
subnetId - The instance's subnet ID, if the stack is running in a VPC.public Instance withSubnetId(String subnetId)
Returns a reference to this object so that method calls can be chained together.
subnetId - The instance's subnet ID, if the stack is running in a VPC.public String getPublicDns()
public void setPublicDns(String publicDns)
publicDns - The instance public DNS name.public Instance withPublicDns(String publicDns)
Returns a reference to this object so that method calls can be chained together.
publicDns - The instance public DNS name.public String getPrivateDns()
public void setPrivateDns(String privateDns)
privateDns - The instance private DNS name.public Instance withPrivateDns(String privateDns)
Returns a reference to this object so that method calls can be chained together.
privateDns - The instance private DNS name.public String getPublicIp()
public void setPublicIp(String publicIp)
publicIp - The instance public IP address.public Instance withPublicIp(String publicIp)
Returns a reference to this object so that method calls can be chained together.
publicIp - The instance public IP address.public String getPrivateIp()
public void setPrivateIp(String privateIp)
privateIp - The instance private IP address.public Instance withPrivateIp(String privateIp)
Returns a reference to this object so that method calls can be chained together.
privateIp - The instance private IP address.public String getElasticIp()
public void setElasticIp(String elasticIp)
elasticIp - The instance Elastic
IP address .public Instance withElasticIp(String elasticIp)
Returns a reference to this object so that method calls can be chained together.
elasticIp - The instance Elastic
IP address .public String getAutoScalingType()
Constraints:
Allowed Values: load, timer
AutoScalingTypepublic void setAutoScalingType(String autoScalingType)
Constraints:
Allowed Values: load, timer
autoScalingType - For load-based or time-based instances, the type.AutoScalingTypepublic Instance withAutoScalingType(String autoScalingType)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: load, timer
autoScalingType - For load-based or time-based instances, the type.AutoScalingTypepublic void setAutoScalingType(AutoScalingType autoScalingType)
Constraints:
Allowed Values: load, timer
autoScalingType - For load-based or time-based instances, the type.AutoScalingTypepublic Instance withAutoScalingType(AutoScalingType autoScalingType)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: load, timer
autoScalingType - For load-based or time-based instances, the type.AutoScalingTypepublic String getSshKeyName()
public void setSshKeyName(String sshKeyName)
sshKeyName - The instance's Amazon EC2 key pair name.public Instance withSshKeyName(String sshKeyName)
Returns a reference to this object so that method calls can be chained together.
sshKeyName - The instance's Amazon EC2 key pair name.public String getSshHostRsaKeyFingerprint()
public void setSshHostRsaKeyFingerprint(String sshHostRsaKeyFingerprint)
sshHostRsaKeyFingerprint - The SSH key's RSA fingerprint.public Instance withSshHostRsaKeyFingerprint(String sshHostRsaKeyFingerprint)
Returns a reference to this object so that method calls can be chained together.
sshHostRsaKeyFingerprint - The SSH key's RSA fingerprint.public String getSshHostDsaKeyFingerprint()
public void setSshHostDsaKeyFingerprint(String sshHostDsaKeyFingerprint)
sshHostDsaKeyFingerprint - The SSH key's DSA fingerprint.public Instance withSshHostDsaKeyFingerprint(String sshHostDsaKeyFingerprint)
Returns a reference to this object so that method calls can be chained together.
sshHostDsaKeyFingerprint - The SSH key's DSA fingerprint.public String getCreatedAt()
public void setCreatedAt(String createdAt)
createdAt - The time that the instance was created.public Instance withCreatedAt(String createdAt)
Returns a reference to this object so that method calls can be chained together.
createdAt - The time that the instance was created.public String getLastServiceErrorId()
public void setLastServiceErrorId(String lastServiceErrorId)
lastServiceErrorId - The ID of the last service error. For more information, call
DescribeServiceErrors.public Instance withLastServiceErrorId(String lastServiceErrorId)
Returns a reference to this object so that method calls can be chained together.
lastServiceErrorId - The ID of the last service error. For more information, call
DescribeServiceErrors.public String getArchitecture()
Constraints:
Allowed Values: x86_64, i386
Architecturepublic void setArchitecture(String architecture)
Constraints:
Allowed Values: x86_64, i386
architecture - The instance architecture, "i386" or "x86_64".Architecturepublic Instance withArchitecture(String architecture)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: x86_64, i386
architecture - The instance architecture, "i386" or "x86_64".Architecturepublic void setArchitecture(Architecture architecture)
Constraints:
Allowed Values: x86_64, i386
architecture - The instance architecture, "i386" or "x86_64".Architecturepublic Instance withArchitecture(Architecture architecture)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: x86_64, i386
architecture - The instance architecture, "i386" or "x86_64".Architecturepublic String getRootDeviceType()
Constraints:
Allowed Values: ebs, instance-store
RootDeviceTypepublic void setRootDeviceType(String rootDeviceType)
Constraints:
Allowed Values: ebs, instance-store
rootDeviceType - The instance's root device type. For more information, see Storage
for the Root Device.RootDeviceTypepublic Instance withRootDeviceType(String rootDeviceType)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: ebs, instance-store
rootDeviceType - The instance's root device type. For more information, see Storage
for the Root Device.RootDeviceTypepublic void setRootDeviceType(RootDeviceType rootDeviceType)
Constraints:
Allowed Values: ebs, instance-store
rootDeviceType - The instance's root device type. For more information, see Storage
for the Root Device.RootDeviceTypepublic Instance withRootDeviceType(RootDeviceType rootDeviceType)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: ebs, instance-store
rootDeviceType - The instance's root device type. For more information, see Storage
for the Root Device.RootDeviceTypepublic String getRootDeviceVolumeId()
public void setRootDeviceVolumeId(String rootDeviceVolumeId)
rootDeviceVolumeId - The root device volume ID.public Instance withRootDeviceVolumeId(String rootDeviceVolumeId)
Returns a reference to this object so that method calls can be chained together.
rootDeviceVolumeId - The root device volume ID.public List<BlockDeviceMapping> getBlockDeviceMappings()
BlockDeviceMapping objects that specify the
instance's block device mappings.BlockDeviceMapping objects that specify the
instance's block device mappings.public void setBlockDeviceMappings(Collection<BlockDeviceMapping> blockDeviceMappings)
BlockDeviceMapping objects that specify the
instance's block device mappings.blockDeviceMappings - An array of BlockDeviceMapping objects that specify the
instance's block device mappings.public Instance withBlockDeviceMappings(BlockDeviceMapping... blockDeviceMappings)
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) or
withBlockDeviceMappings(java.util.Collection) if you want to
override the existing values.
Returns a reference to this object so that method calls can be chained together.
blockDeviceMappings - An array of BlockDeviceMapping objects that specify the
instance's block device mappings.public Instance withBlockDeviceMappings(Collection<BlockDeviceMapping> blockDeviceMappings)
BlockDeviceMapping objects that specify the
instance's block device mappings.
Returns a reference to this object so that method calls can be chained together.
blockDeviceMappings - An array of BlockDeviceMapping objects that specify the
instance's block device mappings.public Boolean isInstallUpdatesOnBoot()
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 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.
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 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.
public void setInstallUpdatesOnBoot(Boolean installUpdatesOnBoot)
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 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.
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 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.
public Instance withInstallUpdatesOnBoot(Boolean installUpdatesOnBoot)
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 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.
Returns a reference to this object so that method calls can be chained together.
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 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.
public Boolean getInstallUpdatesOnBoot()
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 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.
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 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.
public Boolean isEbsOptimized()
public void setEbsOptimized(Boolean ebsOptimized)
ebsOptimized - Whether this is an Amazon EBS-optimized instance.public Instance withEbsOptimized(Boolean ebsOptimized)
Returns a reference to this object so that method calls can be chained together.
ebsOptimized - Whether this is an Amazon EBS-optimized instance.public Boolean getEbsOptimized()
public String getReportedAgentVersion()
public void setReportedAgentVersion(String reportedAgentVersion)
reportedAgentVersion - The instance's reported AWS OpsWorks agent version.public Instance withReportedAgentVersion(String reportedAgentVersion)
Returns a reference to this object so that method calls can be chained together.
reportedAgentVersion - The instance's reported AWS OpsWorks agent version.public ReportedOs getReportedOs()
public void setReportedOs(ReportedOs reportedOs)
reportedOs - For registered instances, the reported operating system.public Instance withReportedOs(ReportedOs reportedOs)
Returns a reference to this object so that method calls can be chained together.
reportedOs - For registered instances, the reported operating system.public String getInfrastructureClass()
ec2
or on-premisesec2
or on-premisespublic void setInfrastructureClass(String infrastructureClass)
ec2
or on-premisesinfrastructureClass - For registered instances, the infrastructure class: ec2
or on-premisespublic Instance withInfrastructureClass(String infrastructureClass)
ec2
or on-premises
Returns a reference to this object so that method calls can be chained together.
infrastructureClass - For registered instances, the infrastructure class: ec2
or on-premisespublic String getRegisteredBy()
public void setRegisteredBy(String registeredBy)
registeredBy - For registered instances, who performed the registration.public Instance withRegisteredBy(String registeredBy)
Returns a reference to this object so that method calls can be chained together.
registeredBy - For registered instances, who performed the registration.public String toString()
toString in class ObjectObject.toString()Copyright © 2015. All rights reserved.