@Generated(value="software.amazon.awssdk:codegen") public final class Instance extends Object implements SdkPojo, Serializable, ToCopyableBuilder<Instance.Builder,Instance>
Describes an instance.
| Modifier and Type | Class and Description |
|---|---|
static interface |
Instance.Builder |
| Modifier and Type | Method and Description |
|---|---|
String |
agentVersion()
The agent version.
|
String |
amiId()
A custom AMI ID to be used to create the instance.
|
Architecture |
architecture()
The instance architecture: "i386" or "x86_64".
|
String |
architectureAsString()
The instance architecture: "i386" or "x86_64".
|
String |
arn()
The instance's Amazon Resource Number (ARN).
|
AutoScalingType |
autoScalingType()
For load-based or time-based instances, the type.
|
String |
autoScalingTypeAsString()
For load-based or time-based instances, the type.
|
String |
availabilityZone()
The instance Availability Zone.
|
List<BlockDeviceMapping> |
blockDeviceMappings()
An array of
BlockDeviceMapping objects that specify the instance's block device mappings. |
static Instance.Builder |
builder() |
String |
createdAt()
The time that the instance was created.
|
Boolean |
ebsOptimized()
Whether this is an Amazon EBS-optimized instance.
|
String |
ec2InstanceId()
The ID of the associated Amazon EC2 instance.
|
String |
ecsClusterArn()
For container instances, the Amazon ECS cluster's ARN.
|
String |
ecsContainerInstanceArn()
For container instances, the instance's ARN.
|
String |
elasticIp()
The instance Elastic
IP address .
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
boolean |
hasBlockDeviceMappings()
For responses, this returns true if the service returned a value for the BlockDeviceMappings property.
|
int |
hashCode() |
boolean |
hasLayerIds()
For responses, this returns true if the service returned a value for the LayerIds property.
|
boolean |
hasSecurityGroupIds()
For responses, this returns true if the service returned a value for the SecurityGroupIds property.
|
String |
hostname()
The instance host name.
|
String |
infrastructureClass()
For registered instances, the infrastructure class:
ec2 or on-premises. |
Boolean |
installUpdatesOnBoot()
Whether to install operating system and package updates when the instance boots.
|
String |
instanceId()
The instance ID.
|
String |
instanceProfileArn()
The ARN of the instance's IAM profile.
|
String |
instanceType()
The instance type, such as
t2.micro. |
String |
lastServiceErrorId()
The ID of the last service error.
|
List<String> |
layerIds()
An array containing the instance layer IDs.
|
String |
os()
The instance's operating system.
|
String |
platform()
The instance's platform.
|
String |
privateDns()
The instance's private DNS name.
|
String |
privateIp()
The instance's private IP address.
|
String |
publicDns()
The instance public DNS name.
|
String |
publicIp()
The instance public IP address.
|
String |
registeredBy()
For registered instances, who performed the registration.
|
String |
reportedAgentVersion()
The instance's reported AWS OpsWorks Stacks agent version.
|
ReportedOs |
reportedOs()
For registered instances, the reported operating system.
|
RootDeviceType |
rootDeviceType()
The instance's root device type.
|
String |
rootDeviceTypeAsString()
The instance's root device type.
|
String |
rootDeviceVolumeId()
The root device volume ID.
|
List<SdkField<?>> |
sdkFields() |
List<String> |
securityGroupIds()
An array containing the instance security group IDs.
|
static Class<? extends Instance.Builder> |
serializableBuilderClass() |
String |
sshHostDsaKeyFingerprint()
The SSH key's Deep Security Agent (DSA) fingerprint.
|
String |
sshHostRsaKeyFingerprint()
The SSH key's RSA fingerprint.
|
String |
sshKeyName()
The instance's Amazon EC2 key-pair name.
|
String |
stackId()
The stack ID.
|
String |
status()
The instance status:
|
String |
subnetId()
The instance's subnet ID; applicable only if the stack is running in a VPC.
|
String |
tenancy()
The instance's tenancy option, such as
dedicated or host. |
Instance.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
VirtualizationType |
virtualizationType()
The instance's virtualization type:
paravirtual or hvm. |
String |
virtualizationTypeAsString()
The instance's virtualization type:
paravirtual or hvm. |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String agentVersion()
The agent version. This parameter is set to INHERIT if the instance inherits the default stack
setting or to a a version number for a fixed agent version.
INHERIT if the instance inherits the default
stack setting or to a a version number for a fixed agent version.public final String amiId()
A custom AMI ID to be used to create the instance. For more information, see Instances
public final Architecture architecture()
The instance architecture: "i386" or "x86_64".
If the service returns an enum value that is not available in the current SDK version, architecture will
return Architecture.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
architectureAsString().
Architecturepublic final String architectureAsString()
The instance architecture: "i386" or "x86_64".
If the service returns an enum value that is not available in the current SDK version, architecture will
return Architecture.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
architectureAsString().
Architecturepublic final String arn()
The instance's Amazon Resource Number (ARN).
public final AutoScalingType autoScalingType()
For load-based or time-based instances, the type.
If the service returns an enum value that is not available in the current SDK version, autoScalingType
will return AutoScalingType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available
from autoScalingTypeAsString().
AutoScalingTypepublic final String autoScalingTypeAsString()
For load-based or time-based instances, the type.
If the service returns an enum value that is not available in the current SDK version, autoScalingType
will return AutoScalingType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available
from autoScalingTypeAsString().
AutoScalingTypepublic final String availabilityZone()
The instance Availability Zone. For more information, see Regions and Endpoints.
public final boolean hasBlockDeviceMappings()
isEmpty() method on the property).
This is useful because the SDK will never return a null collection or map, but you may need to differentiate
between the service returning nothing (or null) and the service returning an empty collection or map. For
requests, this returns true if a value for the property was specified in the request builder, and false if a
value was not specified.public final List<BlockDeviceMapping> blockDeviceMappings()
An array of BlockDeviceMapping objects that specify the instance's block device mappings.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasBlockDeviceMappings() method.
BlockDeviceMapping objects that specify the instance's block device mappings.public final String createdAt()
The time that the instance was created.
public final Boolean ebsOptimized()
Whether this is an Amazon EBS-optimized instance.
public final String ec2InstanceId()
The ID of the associated Amazon EC2 instance.
public final String ecsClusterArn()
For container instances, the Amazon ECS cluster's ARN.
public final String ecsContainerInstanceArn()
For container instances, the instance's ARN.
public final String elasticIp()
The instance Elastic IP address .
public final String hostname()
The instance host name.
public final String infrastructureClass()
For registered instances, the infrastructure class: ec2 or on-premises.
ec2 or on-premises.public final Boolean installUpdatesOnBoot()
Whether to install operating system and package updates when the instance boots. The default value is
true. If this value is set to false, you must then update your instances manually by
using CreateDeployment to run the update_dependencies stack command or by manually running
yum (Amazon Linux) or apt-get (Ubuntu) on the instances.
We strongly recommend using the default value of true, to ensure that your instances have the latest
security updates.
true. If this value is set to false, you must then update your instances
manually by using CreateDeployment to run the update_dependencies stack command or by
manually running yum (Amazon Linux) or apt-get (Ubuntu) on the instances.
We strongly recommend using the default value of true, to ensure that your instances have
the latest security updates.
public final String instanceId()
The instance ID.
public final String instanceProfileArn()
The ARN of the instance's IAM profile. For more information about IAM ARNs, see Using Identifiers.
public final String instanceType()
The instance type, such as t2.micro.
t2.micro.public final String lastServiceErrorId()
The ID of the last service error. For more information, call DescribeServiceErrors.
public final boolean hasLayerIds()
isEmpty() method on the property). This is
useful because the SDK will never return a null collection or map, but you may need to differentiate between the
service returning nothing (or null) and the service returning an empty collection or map. For requests, this
returns true if a value for the property was specified in the request builder, and false if a value was not
specified.public final List<String> layerIds()
An array containing the instance layer IDs.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasLayerIds() method.
public final String os()
The instance's operating system.
public final String platform()
The instance's platform.
public final String privateDns()
The instance's private DNS name.
public final String privateIp()
The instance's private IP address.
public final String publicDns()
The instance public DNS name.
public final String publicIp()
The instance public IP address.
public final String registeredBy()
For registered instances, who performed the registration.
public final String reportedAgentVersion()
The instance's reported AWS OpsWorks Stacks agent version.
public final ReportedOs reportedOs()
For registered instances, the reported operating system.
public final RootDeviceType rootDeviceType()
The instance's root device type. For more information, see Storage for the Root Device.
If the service returns an enum value that is not available in the current SDK version, rootDeviceType
will return RootDeviceType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available
from rootDeviceTypeAsString().
RootDeviceTypepublic final String rootDeviceTypeAsString()
The instance's root device type. For more information, see Storage for the Root Device.
If the service returns an enum value that is not available in the current SDK version, rootDeviceType
will return RootDeviceType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available
from rootDeviceTypeAsString().
RootDeviceTypepublic final String rootDeviceVolumeId()
The root device volume ID.
public final boolean hasSecurityGroupIds()
isEmpty() method on the property).
This is useful because the SDK will never return a null collection or map, but you may need to differentiate
between the service returning nothing (or null) and the service returning an empty collection or map. For
requests, this returns true if a value for the property was specified in the request builder, and false if a
value was not specified.public final List<String> securityGroupIds()
An array containing the instance security group IDs.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasSecurityGroupIds() method.
public final String sshHostDsaKeyFingerprint()
The SSH key's Deep Security Agent (DSA) fingerprint.
public final String sshHostRsaKeyFingerprint()
The SSH key's RSA fingerprint.
public final String sshKeyName()
The instance's Amazon EC2 key-pair name.
public final String stackId()
The stack ID.
public final String status()
The instance status:
booting
connection_lost
online
pending
rebooting
requested
running_setup
setup_failed
shutting_down
start_failed
stop_failed
stopped
stopping
terminated
terminating
booting
connection_lost
online
pending
rebooting
requested
running_setup
setup_failed
shutting_down
start_failed
stop_failed
stopped
stopping
terminated
terminating
public final String subnetId()
The instance's subnet ID; applicable only if the stack is running in a VPC.
public final String tenancy()
The instance's tenancy option, such as dedicated or host.
dedicated or host.public final VirtualizationType virtualizationType()
The instance's virtualization type: paravirtual or hvm.
If the service returns an enum value that is not available in the current SDK version,
virtualizationType will return VirtualizationType.UNKNOWN_TO_SDK_VERSION. The raw value returned
by the service is available from virtualizationTypeAsString().
paravirtual or hvm.VirtualizationTypepublic final String virtualizationTypeAsString()
The instance's virtualization type: paravirtual or hvm.
If the service returns an enum value that is not available in the current SDK version,
virtualizationType will return VirtualizationType.UNKNOWN_TO_SDK_VERSION. The raw value returned
by the service is available from virtualizationTypeAsString().
paravirtual or hvm.VirtualizationTypepublic Instance.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<Instance.Builder,Instance>public static Instance.Builder builder()
public static Class<? extends Instance.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2023. All rights reserved.