@Generated(value="com.amazonaws:aws-java-sdk-code-generator") 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) |
Integer |
getAmiLaunchIndex()
The AMI launch index, which can be used to find this instance in the launch group.
|
String |
getArchitecture()
The architecture of the image.
|
List<InstanceBlockDeviceMapping> |
getBlockDeviceMappings()
Any block device mapping entries for the instance.
|
String |
getBootMode()
The boot mode that was specified by the AMI.
|
String |
getCapacityReservationId()
The ID of the Capacity Reservation.
|
CapacityReservationSpecificationResponse |
getCapacityReservationSpecification()
Information about the Capacity Reservation targeting option.
|
String |
getClientToken()
The idempotency token you provided when you launched the instance, if applicable.
|
CpuOptions |
getCpuOptions()
The CPU options for the instance.
|
String |
getCurrentInstanceBootMode()
The boot mode that is used to boot the instance at launch or start.
|
Boolean |
getEbsOptimized()
Indicates whether the instance is optimized for Amazon EBS I/O.
|
List<ElasticGpuAssociation> |
getElasticGpuAssociations()
Deprecated.
|
List<ElasticInferenceAcceleratorAssociation> |
getElasticInferenceAcceleratorAssociations()
The elastic inference accelerator associated with the instance.
|
Boolean |
getEnaSupport()
Specifies whether enhanced networking with ENA is enabled.
|
EnclaveOptions |
getEnclaveOptions()
Indicates whether the instance is enabled for Amazon Web Services Nitro Enclaves.
|
HibernationOptions |
getHibernationOptions()
Indicates whether the instance is enabled for hibernation.
|
String |
getHypervisor()
The hypervisor type of the instance.
|
IamInstanceProfile |
getIamInstanceProfile()
The IAM instance profile associated with the instance, if applicable.
|
String |
getImageId()
The ID of the AMI used to launch the instance.
|
String |
getInstanceId()
The ID of the instance.
|
String |
getInstanceLifecycle()
Indicates whether this is a Spot Instance or a Scheduled Instance.
|
String |
getInstanceType()
The instance type.
|
String |
getIpv6Address()
The IPv6 address assigned to the instance.
|
String |
getKernelId()
The kernel associated with this instance, if applicable.
|
String |
getKeyName()
The name of the key pair, if this instance was launched with an associated key pair.
|
Date |
getLaunchTime()
The time the instance was launched.
|
List<LicenseConfiguration> |
getLicenses()
The license configurations for the instance.
|
InstanceMaintenanceOptions |
getMaintenanceOptions()
Provides information on the recovery and maintenance options of your instance.
|
InstanceMetadataOptionsResponse |
getMetadataOptions()
The metadata options for the instance.
|
Monitoring |
getMonitoring()
The monitoring for the instance.
|
List<InstanceNetworkInterface> |
getNetworkInterfaces()
The network interfaces for the instance.
|
String |
getOutpostArn()
The Amazon Resource Name (ARN) of the Outpost.
|
Placement |
getPlacement()
The location where the instance launched, if applicable.
|
String |
getPlatform()
The platform.
|
String |
getPlatformDetails()
The platform details value for the instance.
|
String |
getPrivateDnsName()
[IPv4 only] The private DNS hostname name assigned to the instance.
|
PrivateDnsNameOptionsResponse |
getPrivateDnsNameOptions()
The options for the instance hostname.
|
String |
getPrivateIpAddress()
The private IPv4 address assigned to the instance.
|
List<ProductCode> |
getProductCodes()
The product codes attached to this instance, if applicable.
|
String |
getPublicDnsName()
[IPv4 only] The public DNS name assigned to the instance.
|
String |
getPublicIpAddress()
The public IPv4 address, or the Carrier IP address assigned to the instance, if applicable.
|
String |
getRamdiskId()
The RAM disk associated with this instance, if applicable.
|
String |
getRootDeviceName()
The device name of the root device volume (for example,
/dev/sda1 ). |
String |
getRootDeviceType()
The root device type used by the AMI.
|
List<GroupIdentifier> |
getSecurityGroups()
The security groups for the instance.
|
Boolean |
getSourceDestCheck()
Indicates whether source/destination checking is enabled.
|
String |
getSpotInstanceRequestId()
If the request is a Spot Instance request, the ID of the request.
|
String |
getSriovNetSupport()
Specifies whether enhanced networking with the Intel 82599 Virtual Function interface is enabled.
|
InstanceState |
getState()
The current state of the instance.
|
StateReason |
getStateReason()
The reason for the most recent state transition.
|
String |
getStateTransitionReason()
The reason for the most recent state transition.
|
String |
getSubnetId()
The ID of the subnet in which the instance is running.
|
List<Tag> |
getTags()
Any tags assigned to the instance.
|
String |
getTpmSupport()
If the instance is configured for NitroTPM support, the value is
v2.0 . |
String |
getUsageOperation()
The usage operation value for the instance.
|
Date |
getUsageOperationUpdateTime()
The time that the usage operation was last updated.
|
String |
getVirtualizationType()
The virtualization type of the instance.
|
String |
getVpcId()
The ID of the VPC in which the instance is running.
|
int |
hashCode() |
Boolean |
isEbsOptimized()
Indicates whether the instance is optimized for Amazon EBS I/O.
|
Boolean |
isEnaSupport()
Specifies whether enhanced networking with ENA is enabled.
|
Boolean |
isSourceDestCheck()
Indicates whether source/destination checking is enabled.
|
void |
setAmiLaunchIndex(Integer amiLaunchIndex)
The AMI launch index, which can be used to find this instance in the launch group.
|
void |
setArchitecture(ArchitectureValues architecture)
The architecture of the image.
|
void |
setArchitecture(String architecture)
The architecture of the image.
|
void |
setBlockDeviceMappings(Collection<InstanceBlockDeviceMapping> blockDeviceMappings)
Any block device mapping entries for the instance.
|
void |
setBootMode(BootModeValues bootMode)
The boot mode that was specified by the AMI.
|
void |
setBootMode(String bootMode)
The boot mode that was specified by the AMI.
|
void |
setCapacityReservationId(String capacityReservationId)
The ID of the Capacity Reservation.
|
void |
setCapacityReservationSpecification(CapacityReservationSpecificationResponse capacityReservationSpecification)
Information about the Capacity Reservation targeting option.
|
void |
setClientToken(String clientToken)
The idempotency token you provided when you launched the instance, if applicable.
|
void |
setCpuOptions(CpuOptions cpuOptions)
The CPU options for the instance.
|
void |
setCurrentInstanceBootMode(InstanceBootModeValues currentInstanceBootMode)
The boot mode that is used to boot the instance at launch or start.
|
void |
setCurrentInstanceBootMode(String currentInstanceBootMode)
The boot mode that is used to boot the instance at launch or start.
|
void |
setEbsOptimized(Boolean ebsOptimized)
Indicates whether the instance is optimized for Amazon EBS I/O.
|
void |
setElasticGpuAssociations(Collection<ElasticGpuAssociation> elasticGpuAssociations)
Deprecated.
|
void |
setElasticInferenceAcceleratorAssociations(Collection<ElasticInferenceAcceleratorAssociation> elasticInferenceAcceleratorAssociations)
The elastic inference accelerator associated with the instance.
|
void |
setEnaSupport(Boolean enaSupport)
Specifies whether enhanced networking with ENA is enabled.
|
void |
setEnclaveOptions(EnclaveOptions enclaveOptions)
Indicates whether the instance is enabled for Amazon Web Services Nitro Enclaves.
|
void |
setHibernationOptions(HibernationOptions hibernationOptions)
Indicates whether the instance is enabled for hibernation.
|
void |
setHypervisor(HypervisorType hypervisor)
The hypervisor type of the instance.
|
void |
setHypervisor(String hypervisor)
The hypervisor type of the instance.
|
void |
setIamInstanceProfile(IamInstanceProfile iamInstanceProfile)
The IAM instance profile associated with the instance, if applicable.
|
void |
setImageId(String imageId)
The ID of the AMI used to launch the instance.
|
void |
setInstanceId(String instanceId)
The ID of the instance.
|
void |
setInstanceLifecycle(InstanceLifecycleType instanceLifecycle)
Indicates whether this is a Spot Instance or a Scheduled Instance.
|
void |
setInstanceLifecycle(String instanceLifecycle)
Indicates whether this is a Spot Instance or a Scheduled Instance.
|
void |
setInstanceType(InstanceType instanceType)
The instance type.
|
void |
setInstanceType(String instanceType)
The instance type.
|
void |
setIpv6Address(String ipv6Address)
The IPv6 address assigned to the instance.
|
void |
setKernelId(String kernelId)
The kernel associated with this instance, if applicable.
|
void |
setKeyName(String keyName)
The name of the key pair, if this instance was launched with an associated key pair.
|
void |
setLaunchTime(Date launchTime)
The time the instance was launched.
|
void |
setLicenses(Collection<LicenseConfiguration> licenses)
The license configurations for the instance.
|
void |
setMaintenanceOptions(InstanceMaintenanceOptions maintenanceOptions)
Provides information on the recovery and maintenance options of your instance.
|
void |
setMetadataOptions(InstanceMetadataOptionsResponse metadataOptions)
The metadata options for the instance.
|
void |
setMonitoring(Monitoring monitoring)
The monitoring for the instance.
|
void |
setNetworkInterfaces(Collection<InstanceNetworkInterface> networkInterfaces)
The network interfaces for the instance.
|
void |
setOutpostArn(String outpostArn)
The Amazon Resource Name (ARN) of the Outpost.
|
void |
setPlacement(Placement placement)
The location where the instance launched, if applicable.
|
void |
setPlatform(PlatformValues platform)
The platform.
|
void |
setPlatform(String platform)
The platform.
|
void |
setPlatformDetails(String platformDetails)
The platform details value for the instance.
|
void |
setPrivateDnsName(String privateDnsName)
[IPv4 only] The private DNS hostname name assigned to the instance.
|
void |
setPrivateDnsNameOptions(PrivateDnsNameOptionsResponse privateDnsNameOptions)
The options for the instance hostname.
|
void |
setPrivateIpAddress(String privateIpAddress)
The private IPv4 address assigned to the instance.
|
void |
setProductCodes(Collection<ProductCode> productCodes)
The product codes attached to this instance, if applicable.
|
void |
setPublicDnsName(String publicDnsName)
[IPv4 only] The public DNS name assigned to the instance.
|
void |
setPublicIpAddress(String publicIpAddress)
The public IPv4 address, or the Carrier IP address assigned to the instance, if applicable.
|
void |
setRamdiskId(String ramdiskId)
The RAM disk associated with this instance, if applicable.
|
void |
setRootDeviceName(String rootDeviceName)
The device name of the root device volume (for example,
/dev/sda1 ). |
void |
setRootDeviceType(DeviceType rootDeviceType)
The root device type used by the AMI.
|
void |
setRootDeviceType(String rootDeviceType)
The root device type used by the AMI.
|
void |
setSecurityGroups(Collection<GroupIdentifier> securityGroups)
The security groups for the instance.
|
void |
setSourceDestCheck(Boolean sourceDestCheck)
Indicates whether source/destination checking is enabled.
|
void |
setSpotInstanceRequestId(String spotInstanceRequestId)
If the request is a Spot Instance request, the ID of the request.
|
void |
setSriovNetSupport(String sriovNetSupport)
Specifies whether enhanced networking with the Intel 82599 Virtual Function interface is enabled.
|
void |
setState(InstanceState state)
The current state of the instance.
|
void |
setStateReason(StateReason stateReason)
The reason for the most recent state transition.
|
void |
setStateTransitionReason(String stateTransitionReason)
The reason for the most recent state transition.
|
void |
setSubnetId(String subnetId)
The ID of the subnet in which the instance is running.
|
void |
setTags(Collection<Tag> tags)
Any tags assigned to the instance.
|
void |
setTpmSupport(String tpmSupport)
If the instance is configured for NitroTPM support, the value is
v2.0 . |
void |
setUsageOperation(String usageOperation)
The usage operation value for the instance.
|
void |
setUsageOperationUpdateTime(Date usageOperationUpdateTime)
The time that the usage operation was last updated.
|
void |
setVirtualizationType(String virtualizationType)
The virtualization type of the instance.
|
void |
setVirtualizationType(VirtualizationType virtualizationType)
The virtualization type of the instance.
|
void |
setVpcId(String vpcId)
The ID of the VPC in which the instance is running.
|
String |
toString()
Returns a string representation of this object.
|
Instance |
withAmiLaunchIndex(Integer amiLaunchIndex)
The AMI launch index, which can be used to find this instance in the launch group.
|
Instance |
withArchitecture(ArchitectureValues architecture)
The architecture of the image.
|
Instance |
withArchitecture(String architecture)
The architecture of the image.
|
Instance |
withBlockDeviceMappings(Collection<InstanceBlockDeviceMapping> blockDeviceMappings)
Any block device mapping entries for the instance.
|
Instance |
withBlockDeviceMappings(InstanceBlockDeviceMapping... blockDeviceMappings)
Any block device mapping entries for the instance.
|
Instance |
withBootMode(BootModeValues bootMode)
The boot mode that was specified by the AMI.
|
Instance |
withBootMode(String bootMode)
The boot mode that was specified by the AMI.
|
Instance |
withCapacityReservationId(String capacityReservationId)
The ID of the Capacity Reservation.
|
Instance |
withCapacityReservationSpecification(CapacityReservationSpecificationResponse capacityReservationSpecification)
Information about the Capacity Reservation targeting option.
|
Instance |
withClientToken(String clientToken)
The idempotency token you provided when you launched the instance, if applicable.
|
Instance |
withCpuOptions(CpuOptions cpuOptions)
The CPU options for the instance.
|
Instance |
withCurrentInstanceBootMode(InstanceBootModeValues currentInstanceBootMode)
The boot mode that is used to boot the instance at launch or start.
|
Instance |
withCurrentInstanceBootMode(String currentInstanceBootMode)
The boot mode that is used to boot the instance at launch or start.
|
Instance |
withEbsOptimized(Boolean ebsOptimized)
Indicates whether the instance is optimized for Amazon EBS I/O.
|
Instance |
withElasticGpuAssociations(Collection<ElasticGpuAssociation> elasticGpuAssociations)
Deprecated.
|
Instance |
withElasticGpuAssociations(ElasticGpuAssociation... elasticGpuAssociations)
Deprecated.
|
Instance |
withElasticInferenceAcceleratorAssociations(Collection<ElasticInferenceAcceleratorAssociation> elasticInferenceAcceleratorAssociations)
The elastic inference accelerator associated with the instance.
|
Instance |
withElasticInferenceAcceleratorAssociations(ElasticInferenceAcceleratorAssociation... elasticInferenceAcceleratorAssociations)
The elastic inference accelerator associated with the instance.
|
Instance |
withEnaSupport(Boolean enaSupport)
Specifies whether enhanced networking with ENA is enabled.
|
Instance |
withEnclaveOptions(EnclaveOptions enclaveOptions)
Indicates whether the instance is enabled for Amazon Web Services Nitro Enclaves.
|
Instance |
withHibernationOptions(HibernationOptions hibernationOptions)
Indicates whether the instance is enabled for hibernation.
|
Instance |
withHypervisor(HypervisorType hypervisor)
The hypervisor type of the instance.
|
Instance |
withHypervisor(String hypervisor)
The hypervisor type of the instance.
|
Instance |
withIamInstanceProfile(IamInstanceProfile iamInstanceProfile)
The IAM instance profile associated with the instance, if applicable.
|
Instance |
withImageId(String imageId)
The ID of the AMI used to launch the instance.
|
Instance |
withInstanceId(String instanceId)
The ID of the instance.
|
Instance |
withInstanceLifecycle(InstanceLifecycleType instanceLifecycle)
Indicates whether this is a Spot Instance or a Scheduled Instance.
|
Instance |
withInstanceLifecycle(String instanceLifecycle)
Indicates whether this is a Spot Instance or a Scheduled Instance.
|
Instance |
withInstanceType(InstanceType instanceType)
The instance type.
|
Instance |
withInstanceType(String instanceType)
The instance type.
|
Instance |
withIpv6Address(String ipv6Address)
The IPv6 address assigned to the instance.
|
Instance |
withKernelId(String kernelId)
The kernel associated with this instance, if applicable.
|
Instance |
withKeyName(String keyName)
The name of the key pair, if this instance was launched with an associated key pair.
|
Instance |
withLaunchTime(Date launchTime)
The time the instance was launched.
|
Instance |
withLicenses(Collection<LicenseConfiguration> licenses)
The license configurations for the instance.
|
Instance |
withLicenses(LicenseConfiguration... licenses)
The license configurations for the instance.
|
Instance |
withMaintenanceOptions(InstanceMaintenanceOptions maintenanceOptions)
Provides information on the recovery and maintenance options of your instance.
|
Instance |
withMetadataOptions(InstanceMetadataOptionsResponse metadataOptions)
The metadata options for the instance.
|
Instance |
withMonitoring(Monitoring monitoring)
The monitoring for the instance.
|
Instance |
withNetworkInterfaces(Collection<InstanceNetworkInterface> networkInterfaces)
The network interfaces for the instance.
|
Instance |
withNetworkInterfaces(InstanceNetworkInterface... networkInterfaces)
The network interfaces for the instance.
|
Instance |
withOutpostArn(String outpostArn)
The Amazon Resource Name (ARN) of the Outpost.
|
Instance |
withPlacement(Placement placement)
The location where the instance launched, if applicable.
|
Instance |
withPlatform(PlatformValues platform)
The platform.
|
Instance |
withPlatform(String platform)
The platform.
|
Instance |
withPlatformDetails(String platformDetails)
The platform details value for the instance.
|
Instance |
withPrivateDnsName(String privateDnsName)
[IPv4 only] The private DNS hostname name assigned to the instance.
|
Instance |
withPrivateDnsNameOptions(PrivateDnsNameOptionsResponse privateDnsNameOptions)
The options for the instance hostname.
|
Instance |
withPrivateIpAddress(String privateIpAddress)
The private IPv4 address assigned to the instance.
|
Instance |
withProductCodes(Collection<ProductCode> productCodes)
The product codes attached to this instance, if applicable.
|
Instance |
withProductCodes(ProductCode... productCodes)
The product codes attached to this instance, if applicable.
|
Instance |
withPublicDnsName(String publicDnsName)
[IPv4 only] The public DNS name assigned to the instance.
|
Instance |
withPublicIpAddress(String publicIpAddress)
The public IPv4 address, or the Carrier IP address assigned to the instance, if applicable.
|
Instance |
withRamdiskId(String ramdiskId)
The RAM disk associated with this instance, if applicable.
|
Instance |
withRootDeviceName(String rootDeviceName)
The device name of the root device volume (for example,
/dev/sda1 ). |
Instance |
withRootDeviceType(DeviceType rootDeviceType)
The root device type used by the AMI.
|
Instance |
withRootDeviceType(String rootDeviceType)
The root device type used by the AMI.
|
Instance |
withSecurityGroups(Collection<GroupIdentifier> securityGroups)
The security groups for the instance.
|
Instance |
withSecurityGroups(GroupIdentifier... securityGroups)
The security groups for the instance.
|
Instance |
withSourceDestCheck(Boolean sourceDestCheck)
Indicates whether source/destination checking is enabled.
|
Instance |
withSpotInstanceRequestId(String spotInstanceRequestId)
If the request is a Spot Instance request, the ID of the request.
|
Instance |
withSriovNetSupport(String sriovNetSupport)
Specifies whether enhanced networking with the Intel 82599 Virtual Function interface is enabled.
|
Instance |
withState(InstanceState state)
The current state of the instance.
|
Instance |
withStateReason(StateReason stateReason)
The reason for the most recent state transition.
|
Instance |
withStateTransitionReason(String stateTransitionReason)
The reason for the most recent state transition.
|
Instance |
withSubnetId(String subnetId)
The ID of the subnet in which the instance is running.
|
Instance |
withTags(Collection<Tag> tags)
Any tags assigned to the instance.
|
Instance |
withTags(Tag... tags)
Any tags assigned to the instance.
|
Instance |
withTpmSupport(String tpmSupport)
If the instance is configured for NitroTPM support, the value is
v2.0 . |
Instance |
withUsageOperation(String usageOperation)
The usage operation value for the instance.
|
Instance |
withUsageOperationUpdateTime(Date usageOperationUpdateTime)
The time that the usage operation was last updated.
|
Instance |
withVirtualizationType(String virtualizationType)
The virtualization type of the instance.
|
Instance |
withVirtualizationType(VirtualizationType virtualizationType)
The virtualization type of the instance.
|
Instance |
withVpcId(String vpcId)
The ID of the VPC in which the instance is running.
|
public void setAmiLaunchIndex(Integer amiLaunchIndex)
The AMI launch index, which can be used to find this instance in the launch group.
amiLaunchIndex
- The AMI launch index, which can be used to find this instance in the launch group.public Integer getAmiLaunchIndex()
The AMI launch index, which can be used to find this instance in the launch group.
public Instance withAmiLaunchIndex(Integer amiLaunchIndex)
The AMI launch index, which can be used to find this instance in the launch group.
amiLaunchIndex
- The AMI launch index, which can be used to find this instance in the launch group.public void setImageId(String imageId)
The ID of the AMI used to launch the instance.
imageId
- The ID of the AMI used to launch the instance.public String getImageId()
The ID of the AMI used to launch the instance.
public Instance withImageId(String imageId)
The ID of the AMI used to launch the instance.
imageId
- The ID of the AMI used to launch the instance.public void setInstanceId(String instanceId)
The ID of the instance.
instanceId
- The ID of the instance.public String getInstanceId()
The ID of the instance.
public Instance withInstanceId(String instanceId)
The ID of the instance.
instanceId
- The ID of the instance.public void setInstanceType(String instanceType)
The instance type.
instanceType
- The instance type.InstanceType
public String getInstanceType()
The instance type.
InstanceType
public Instance withInstanceType(String instanceType)
The instance type.
instanceType
- The instance type.InstanceType
public void setInstanceType(InstanceType instanceType)
The instance type.
instanceType
- The instance type.InstanceType
public Instance withInstanceType(InstanceType instanceType)
The instance type.
instanceType
- The instance type.InstanceType
public void setKernelId(String kernelId)
The kernel associated with this instance, if applicable.
kernelId
- The kernel associated with this instance, if applicable.public String getKernelId()
The kernel associated with this instance, if applicable.
public Instance withKernelId(String kernelId)
The kernel associated with this instance, if applicable.
kernelId
- The kernel associated with this instance, if applicable.public void setKeyName(String keyName)
The name of the key pair, if this instance was launched with an associated key pair.
keyName
- The name of the key pair, if this instance was launched with an associated key pair.public String getKeyName()
The name of the key pair, if this instance was launched with an associated key pair.
public Instance withKeyName(String keyName)
The name of the key pair, if this instance was launched with an associated key pair.
keyName
- The name of the key pair, if this instance was launched with an associated key pair.public void setLaunchTime(Date launchTime)
The time the instance was launched.
launchTime
- The time the instance was launched.public Date getLaunchTime()
The time the instance was launched.
public Instance withLaunchTime(Date launchTime)
The time the instance was launched.
launchTime
- The time the instance was launched.public void setMonitoring(Monitoring monitoring)
The monitoring for the instance.
monitoring
- The monitoring for the instance.public Monitoring getMonitoring()
The monitoring for the instance.
public Instance withMonitoring(Monitoring monitoring)
The monitoring for the instance.
monitoring
- The monitoring for the instance.public void setPlacement(Placement placement)
The location where the instance launched, if applicable.
placement
- The location where the instance launched, if applicable.public Placement getPlacement()
The location where the instance launched, if applicable.
public Instance withPlacement(Placement placement)
The location where the instance launched, if applicable.
placement
- The location where the instance launched, if applicable.public void setPlatform(String platform)
The platform. This value is windows
for Windows instances; otherwise, it is empty.
platform
- The platform. This value is windows
for Windows instances; otherwise, it is empty.PlatformValues
public String getPlatform()
The platform. This value is windows
for Windows instances; otherwise, it is empty.
windows
for Windows instances; otherwise, it is empty.PlatformValues
public Instance withPlatform(String platform)
The platform. This value is windows
for Windows instances; otherwise, it is empty.
platform
- The platform. This value is windows
for Windows instances; otherwise, it is empty.PlatformValues
public void setPlatform(PlatformValues platform)
The platform. This value is windows
for Windows instances; otherwise, it is empty.
platform
- The platform. This value is windows
for Windows instances; otherwise, it is empty.PlatformValues
public Instance withPlatform(PlatformValues platform)
The platform. This value is windows
for Windows instances; otherwise, it is empty.
platform
- The platform. This value is windows
for Windows instances; otherwise, it is empty.PlatformValues
public void setPrivateDnsName(String privateDnsName)
[IPv4 only] The private DNS hostname name assigned to the instance. This DNS hostname can only be used inside the
Amazon EC2 network. This name is not available until the instance enters the running
state.
The Amazon-provided DNS server resolves Amazon-provided private DNS hostnames if you've enabled DNS resolution and DNS hostnames in your VPC. If you are not using the Amazon-provided DNS server in your VPC, your custom domain name servers must resolve the hostname as appropriate.
privateDnsName
- [IPv4 only] The private DNS hostname name assigned to the instance. This DNS hostname can only be used
inside the Amazon EC2 network. This name is not available until the instance enters the
running
state.
The Amazon-provided DNS server resolves Amazon-provided private DNS hostnames if you've enabled DNS resolution and DNS hostnames in your VPC. If you are not using the Amazon-provided DNS server in your VPC, your custom domain name servers must resolve the hostname as appropriate.
public String getPrivateDnsName()
[IPv4 only] The private DNS hostname name assigned to the instance. This DNS hostname can only be used inside the
Amazon EC2 network. This name is not available until the instance enters the running
state.
The Amazon-provided DNS server resolves Amazon-provided private DNS hostnames if you've enabled DNS resolution and DNS hostnames in your VPC. If you are not using the Amazon-provided DNS server in your VPC, your custom domain name servers must resolve the hostname as appropriate.
running
state.
The Amazon-provided DNS server resolves Amazon-provided private DNS hostnames if you've enabled DNS resolution and DNS hostnames in your VPC. If you are not using the Amazon-provided DNS server in your VPC, your custom domain name servers must resolve the hostname as appropriate.
public Instance withPrivateDnsName(String privateDnsName)
[IPv4 only] The private DNS hostname name assigned to the instance. This DNS hostname can only be used inside the
Amazon EC2 network. This name is not available until the instance enters the running
state.
The Amazon-provided DNS server resolves Amazon-provided private DNS hostnames if you've enabled DNS resolution and DNS hostnames in your VPC. If you are not using the Amazon-provided DNS server in your VPC, your custom domain name servers must resolve the hostname as appropriate.
privateDnsName
- [IPv4 only] The private DNS hostname name assigned to the instance. This DNS hostname can only be used
inside the Amazon EC2 network. This name is not available until the instance enters the
running
state.
The Amazon-provided DNS server resolves Amazon-provided private DNS hostnames if you've enabled DNS resolution and DNS hostnames in your VPC. If you are not using the Amazon-provided DNS server in your VPC, your custom domain name servers must resolve the hostname as appropriate.
public void setPrivateIpAddress(String privateIpAddress)
The private IPv4 address assigned to the instance.
privateIpAddress
- The private IPv4 address assigned to the instance.public String getPrivateIpAddress()
The private IPv4 address assigned to the instance.
public Instance withPrivateIpAddress(String privateIpAddress)
The private IPv4 address assigned to the instance.
privateIpAddress
- The private IPv4 address assigned to the instance.public List<ProductCode> getProductCodes()
The product codes attached to this instance, if applicable.
public void setProductCodes(Collection<ProductCode> productCodes)
The product codes attached to this instance, if applicable.
productCodes
- The product codes attached to this instance, if applicable.public Instance withProductCodes(ProductCode... productCodes)
The product codes attached to this instance, if applicable.
NOTE: This method appends the values to the existing list (if any). Use
setProductCodes(java.util.Collection)
or withProductCodes(java.util.Collection)
if you want to
override the existing values.
productCodes
- The product codes attached to this instance, if applicable.public Instance withProductCodes(Collection<ProductCode> productCodes)
The product codes attached to this instance, if applicable.
productCodes
- The product codes attached to this instance, if applicable.public void setPublicDnsName(String publicDnsName)
[IPv4 only] The public DNS name assigned to the instance. This name is not available until the instance enters
the running
state. This name is only available if you've enabled DNS hostnames for your VPC.
publicDnsName
- [IPv4 only] The public DNS name assigned to the instance. This name is not available until the instance
enters the running
state. This name is only available if you've enabled DNS hostnames for
your VPC.public String getPublicDnsName()
[IPv4 only] The public DNS name assigned to the instance. This name is not available until the instance enters
the running
state. This name is only available if you've enabled DNS hostnames for your VPC.
running
state. This name is only available if you've enabled DNS hostnames for
your VPC.public Instance withPublicDnsName(String publicDnsName)
[IPv4 only] The public DNS name assigned to the instance. This name is not available until the instance enters
the running
state. This name is only available if you've enabled DNS hostnames for your VPC.
publicDnsName
- [IPv4 only] The public DNS name assigned to the instance. This name is not available until the instance
enters the running
state. This name is only available if you've enabled DNS hostnames for
your VPC.public void setPublicIpAddress(String publicIpAddress)
The public IPv4 address, or the Carrier IP address assigned to the instance, if applicable.
A Carrier IP address only applies to an instance launched in a subnet associated with a Wavelength Zone.
publicIpAddress
- The public IPv4 address, or the Carrier IP address assigned to the instance, if applicable.
A Carrier IP address only applies to an instance launched in a subnet associated with a Wavelength Zone.
public String getPublicIpAddress()
The public IPv4 address, or the Carrier IP address assigned to the instance, if applicable.
A Carrier IP address only applies to an instance launched in a subnet associated with a Wavelength Zone.
A Carrier IP address only applies to an instance launched in a subnet associated with a Wavelength Zone.
public Instance withPublicIpAddress(String publicIpAddress)
The public IPv4 address, or the Carrier IP address assigned to the instance, if applicable.
A Carrier IP address only applies to an instance launched in a subnet associated with a Wavelength Zone.
publicIpAddress
- The public IPv4 address, or the Carrier IP address assigned to the instance, if applicable.
A Carrier IP address only applies to an instance launched in a subnet associated with a Wavelength Zone.
public void setRamdiskId(String ramdiskId)
The RAM disk associated with this instance, if applicable.
ramdiskId
- The RAM disk associated with this instance, if applicable.public String getRamdiskId()
The RAM disk associated with this instance, if applicable.
public Instance withRamdiskId(String ramdiskId)
The RAM disk associated with this instance, if applicable.
ramdiskId
- The RAM disk associated with this instance, if applicable.public void setState(InstanceState state)
The current state of the instance.
state
- The current state of the instance.public InstanceState getState()
The current state of the instance.
public Instance withState(InstanceState state)
The current state of the instance.
state
- The current state of the instance.public void setStateTransitionReason(String stateTransitionReason)
The reason for the most recent state transition. This might be an empty string.
stateTransitionReason
- The reason for the most recent state transition. This might be an empty string.public String getStateTransitionReason()
The reason for the most recent state transition. This might be an empty string.
public Instance withStateTransitionReason(String stateTransitionReason)
The reason for the most recent state transition. This might be an empty string.
stateTransitionReason
- The reason for the most recent state transition. This might be an empty string.public void setSubnetId(String subnetId)
The ID of the subnet in which the instance is running.
subnetId
- The ID of the subnet in which the instance is running.public String getSubnetId()
The ID of the subnet in which the instance is running.
public Instance withSubnetId(String subnetId)
The ID of the subnet in which the instance is running.
subnetId
- The ID of the subnet in which the instance is running.public void setVpcId(String vpcId)
The ID of the VPC in which the instance is running.
vpcId
- The ID of the VPC in which the instance is running.public String getVpcId()
The ID of the VPC in which the instance is running.
public Instance withVpcId(String vpcId)
The ID of the VPC in which the instance is running.
vpcId
- The ID of the VPC in which the instance is running.public void setArchitecture(String architecture)
The architecture of the image.
architecture
- The architecture of the image.ArchitectureValues
public String getArchitecture()
The architecture of the image.
ArchitectureValues
public Instance withArchitecture(String architecture)
The architecture of the image.
architecture
- The architecture of the image.ArchitectureValues
public void setArchitecture(ArchitectureValues architecture)
The architecture of the image.
architecture
- The architecture of the image.ArchitectureValues
public Instance withArchitecture(ArchitectureValues architecture)
The architecture of the image.
architecture
- The architecture of the image.ArchitectureValues
public List<InstanceBlockDeviceMapping> getBlockDeviceMappings()
Any block device mapping entries for the instance.
public void setBlockDeviceMappings(Collection<InstanceBlockDeviceMapping> blockDeviceMappings)
Any block device mapping entries for the instance.
blockDeviceMappings
- Any block device mapping entries for the instance.public Instance withBlockDeviceMappings(InstanceBlockDeviceMapping... blockDeviceMappings)
Any block device mapping entries for the instance.
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.
blockDeviceMappings
- Any block device mapping entries for the instance.public Instance withBlockDeviceMappings(Collection<InstanceBlockDeviceMapping> blockDeviceMappings)
Any block device mapping entries for the instance.
blockDeviceMappings
- Any block device mapping entries for the instance.public void setClientToken(String clientToken)
The idempotency token you provided when you launched the instance, if applicable.
clientToken
- The idempotency token you provided when you launched the instance, if applicable.public String getClientToken()
The idempotency token you provided when you launched the instance, if applicable.
public Instance withClientToken(String clientToken)
The idempotency token you provided when you launched the instance, if applicable.
clientToken
- The idempotency token you provided when you launched the instance, if applicable.public void setEbsOptimized(Boolean ebsOptimized)
Indicates whether the instance is optimized for Amazon EBS I/O. This optimization provides dedicated throughput to Amazon EBS and an optimized configuration stack to provide optimal I/O performance. This optimization isn't available with all instance types. Additional usage charges apply when using an EBS Optimized instance.
ebsOptimized
- Indicates whether the instance is optimized for Amazon EBS I/O. This optimization provides dedicated
throughput to Amazon EBS and an optimized configuration stack to provide optimal I/O performance. This
optimization isn't available with all instance types. Additional usage charges apply when using an EBS
Optimized instance.public Boolean getEbsOptimized()
Indicates whether the instance is optimized for Amazon EBS I/O. This optimization provides dedicated throughput to Amazon EBS and an optimized configuration stack to provide optimal I/O performance. This optimization isn't available with all instance types. Additional usage charges apply when using an EBS Optimized instance.
public Instance withEbsOptimized(Boolean ebsOptimized)
Indicates whether the instance is optimized for Amazon EBS I/O. This optimization provides dedicated throughput to Amazon EBS and an optimized configuration stack to provide optimal I/O performance. This optimization isn't available with all instance types. Additional usage charges apply when using an EBS Optimized instance.
ebsOptimized
- Indicates whether the instance is optimized for Amazon EBS I/O. This optimization provides dedicated
throughput to Amazon EBS and an optimized configuration stack to provide optimal I/O performance. This
optimization isn't available with all instance types. Additional usage charges apply when using an EBS
Optimized instance.public Boolean isEbsOptimized()
Indicates whether the instance is optimized for Amazon EBS I/O. This optimization provides dedicated throughput to Amazon EBS and an optimized configuration stack to provide optimal I/O performance. This optimization isn't available with all instance types. Additional usage charges apply when using an EBS Optimized instance.
public void setEnaSupport(Boolean enaSupport)
Specifies whether enhanced networking with ENA is enabled.
enaSupport
- Specifies whether enhanced networking with ENA is enabled.public Boolean getEnaSupport()
Specifies whether enhanced networking with ENA is enabled.
public Instance withEnaSupport(Boolean enaSupport)
Specifies whether enhanced networking with ENA is enabled.
enaSupport
- Specifies whether enhanced networking with ENA is enabled.public Boolean isEnaSupport()
Specifies whether enhanced networking with ENA is enabled.
public void setHypervisor(String hypervisor)
The hypervisor type of the instance. The value xen
is used for both Xen and Nitro hypervisors.
hypervisor
- The hypervisor type of the instance. The value xen
is used for both Xen and Nitro
hypervisors.HypervisorType
public String getHypervisor()
The hypervisor type of the instance. The value xen
is used for both Xen and Nitro hypervisors.
xen
is used for both Xen and Nitro
hypervisors.HypervisorType
public Instance withHypervisor(String hypervisor)
The hypervisor type of the instance. The value xen
is used for both Xen and Nitro hypervisors.
hypervisor
- The hypervisor type of the instance. The value xen
is used for both Xen and Nitro
hypervisors.HypervisorType
public void setHypervisor(HypervisorType hypervisor)
The hypervisor type of the instance. The value xen
is used for both Xen and Nitro hypervisors.
hypervisor
- The hypervisor type of the instance. The value xen
is used for both Xen and Nitro
hypervisors.HypervisorType
public Instance withHypervisor(HypervisorType hypervisor)
The hypervisor type of the instance. The value xen
is used for both Xen and Nitro hypervisors.
hypervisor
- The hypervisor type of the instance. The value xen
is used for both Xen and Nitro
hypervisors.HypervisorType
public void setIamInstanceProfile(IamInstanceProfile iamInstanceProfile)
The IAM instance profile associated with the instance, if applicable.
iamInstanceProfile
- The IAM instance profile associated with the instance, if applicable.public IamInstanceProfile getIamInstanceProfile()
The IAM instance profile associated with the instance, if applicable.
public Instance withIamInstanceProfile(IamInstanceProfile iamInstanceProfile)
The IAM instance profile associated with the instance, if applicable.
iamInstanceProfile
- The IAM instance profile associated with the instance, if applicable.public void setInstanceLifecycle(String instanceLifecycle)
Indicates whether this is a Spot Instance or a Scheduled Instance.
instanceLifecycle
- Indicates whether this is a Spot Instance or a Scheduled Instance.InstanceLifecycleType
public String getInstanceLifecycle()
Indicates whether this is a Spot Instance or a Scheduled Instance.
InstanceLifecycleType
public Instance withInstanceLifecycle(String instanceLifecycle)
Indicates whether this is a Spot Instance or a Scheduled Instance.
instanceLifecycle
- Indicates whether this is a Spot Instance or a Scheduled Instance.InstanceLifecycleType
public void setInstanceLifecycle(InstanceLifecycleType instanceLifecycle)
Indicates whether this is a Spot Instance or a Scheduled Instance.
instanceLifecycle
- Indicates whether this is a Spot Instance or a Scheduled Instance.InstanceLifecycleType
public Instance withInstanceLifecycle(InstanceLifecycleType instanceLifecycle)
Indicates whether this is a Spot Instance or a Scheduled Instance.
instanceLifecycle
- Indicates whether this is a Spot Instance or a Scheduled Instance.InstanceLifecycleType
public List<ElasticGpuAssociation> getElasticGpuAssociations()
Deprecated.
Amazon Elastic Graphics reached end of life on January 8, 2024. For workloads that require graphics acceleration, we recommend that you use Amazon EC2 G4ad, G4dn, or G5 instances.
Amazon Elastic Graphics reached end of life on January 8, 2024. For workloads that require graphics acceleration, we recommend that you use Amazon EC2 G4ad, G4dn, or G5 instances.
public void setElasticGpuAssociations(Collection<ElasticGpuAssociation> elasticGpuAssociations)
Deprecated.
Amazon Elastic Graphics reached end of life on January 8, 2024. For workloads that require graphics acceleration, we recommend that you use Amazon EC2 G4ad, G4dn, or G5 instances.
elasticGpuAssociations
- Deprecated. Amazon Elastic Graphics reached end of life on January 8, 2024. For workloads that require graphics acceleration, we recommend that you use Amazon EC2 G4ad, G4dn, or G5 instances.
public Instance withElasticGpuAssociations(ElasticGpuAssociation... elasticGpuAssociations)
Deprecated.
Amazon Elastic Graphics reached end of life on January 8, 2024. For workloads that require graphics acceleration, we recommend that you use Amazon EC2 G4ad, G4dn, or G5 instances.
NOTE: This method appends the values to the existing list (if any). Use
setElasticGpuAssociations(java.util.Collection)
or
withElasticGpuAssociations(java.util.Collection)
if you want to override the existing values.
elasticGpuAssociations
- Deprecated. Amazon Elastic Graphics reached end of life on January 8, 2024. For workloads that require graphics acceleration, we recommend that you use Amazon EC2 G4ad, G4dn, or G5 instances.
public Instance withElasticGpuAssociations(Collection<ElasticGpuAssociation> elasticGpuAssociations)
Deprecated.
Amazon Elastic Graphics reached end of life on January 8, 2024. For workloads that require graphics acceleration, we recommend that you use Amazon EC2 G4ad, G4dn, or G5 instances.
elasticGpuAssociations
- Deprecated. Amazon Elastic Graphics reached end of life on January 8, 2024. For workloads that require graphics acceleration, we recommend that you use Amazon EC2 G4ad, G4dn, or G5 instances.
public List<ElasticInferenceAcceleratorAssociation> getElasticInferenceAcceleratorAssociations()
The elastic inference accelerator associated with the instance.
public void setElasticInferenceAcceleratorAssociations(Collection<ElasticInferenceAcceleratorAssociation> elasticInferenceAcceleratorAssociations)
The elastic inference accelerator associated with the instance.
elasticInferenceAcceleratorAssociations
- The elastic inference accelerator associated with the instance.public Instance withElasticInferenceAcceleratorAssociations(ElasticInferenceAcceleratorAssociation... elasticInferenceAcceleratorAssociations)
The elastic inference accelerator associated with the instance.
NOTE: This method appends the values to the existing list (if any). Use
setElasticInferenceAcceleratorAssociations(java.util.Collection)
or
withElasticInferenceAcceleratorAssociations(java.util.Collection)
if you want to override the existing
values.
elasticInferenceAcceleratorAssociations
- The elastic inference accelerator associated with the instance.public Instance withElasticInferenceAcceleratorAssociations(Collection<ElasticInferenceAcceleratorAssociation> elasticInferenceAcceleratorAssociations)
The elastic inference accelerator associated with the instance.
elasticInferenceAcceleratorAssociations
- The elastic inference accelerator associated with the instance.public List<InstanceNetworkInterface> getNetworkInterfaces()
The network interfaces for the instance.
public void setNetworkInterfaces(Collection<InstanceNetworkInterface> networkInterfaces)
The network interfaces for the instance.
networkInterfaces
- The network interfaces for the instance.public Instance withNetworkInterfaces(InstanceNetworkInterface... networkInterfaces)
The network interfaces for the instance.
NOTE: This method appends the values to the existing list (if any). Use
setNetworkInterfaces(java.util.Collection)
or withNetworkInterfaces(java.util.Collection)
if
you want to override the existing values.
networkInterfaces
- The network interfaces for the instance.public Instance withNetworkInterfaces(Collection<InstanceNetworkInterface> networkInterfaces)
The network interfaces for the instance.
networkInterfaces
- The network interfaces for the instance.public void setOutpostArn(String outpostArn)
The Amazon Resource Name (ARN) of the Outpost.
outpostArn
- The Amazon Resource Name (ARN) of the Outpost.public String getOutpostArn()
The Amazon Resource Name (ARN) of the Outpost.
public Instance withOutpostArn(String outpostArn)
The Amazon Resource Name (ARN) of the Outpost.
outpostArn
- The Amazon Resource Name (ARN) of the Outpost.public void setRootDeviceName(String rootDeviceName)
The device name of the root device volume (for example, /dev/sda1
).
rootDeviceName
- The device name of the root device volume (for example, /dev/sda1
).public String getRootDeviceName()
The device name of the root device volume (for example, /dev/sda1
).
/dev/sda1
).public Instance withRootDeviceName(String rootDeviceName)
The device name of the root device volume (for example, /dev/sda1
).
rootDeviceName
- The device name of the root device volume (for example, /dev/sda1
).public void setRootDeviceType(String rootDeviceType)
The root device type used by the AMI. The AMI can use an EBS volume or an instance store volume.
rootDeviceType
- The root device type used by the AMI. The AMI can use an EBS volume or an instance store volume.DeviceType
public String getRootDeviceType()
The root device type used by the AMI. The AMI can use an EBS volume or an instance store volume.
DeviceType
public Instance withRootDeviceType(String rootDeviceType)
The root device type used by the AMI. The AMI can use an EBS volume or an instance store volume.
rootDeviceType
- The root device type used by the AMI. The AMI can use an EBS volume or an instance store volume.DeviceType
public void setRootDeviceType(DeviceType rootDeviceType)
The root device type used by the AMI. The AMI can use an EBS volume or an instance store volume.
rootDeviceType
- The root device type used by the AMI. The AMI can use an EBS volume or an instance store volume.DeviceType
public Instance withRootDeviceType(DeviceType rootDeviceType)
The root device type used by the AMI. The AMI can use an EBS volume or an instance store volume.
rootDeviceType
- The root device type used by the AMI. The AMI can use an EBS volume or an instance store volume.DeviceType
public List<GroupIdentifier> getSecurityGroups()
The security groups for the instance.
public void setSecurityGroups(Collection<GroupIdentifier> securityGroups)
The security groups for the instance.
securityGroups
- The security groups for the instance.public Instance withSecurityGroups(GroupIdentifier... securityGroups)
The security groups for the instance.
NOTE: This method appends the values to the existing list (if any). Use
setSecurityGroups(java.util.Collection)
or withSecurityGroups(java.util.Collection)
if you want
to override the existing values.
securityGroups
- The security groups for the instance.public Instance withSecurityGroups(Collection<GroupIdentifier> securityGroups)
The security groups for the instance.
securityGroups
- The security groups for the instance.public void setSourceDestCheck(Boolean sourceDestCheck)
Indicates whether source/destination checking is enabled.
sourceDestCheck
- Indicates whether source/destination checking is enabled.public Boolean getSourceDestCheck()
Indicates whether source/destination checking is enabled.
public Instance withSourceDestCheck(Boolean sourceDestCheck)
Indicates whether source/destination checking is enabled.
sourceDestCheck
- Indicates whether source/destination checking is enabled.public Boolean isSourceDestCheck()
Indicates whether source/destination checking is enabled.
public void setSpotInstanceRequestId(String spotInstanceRequestId)
If the request is a Spot Instance request, the ID of the request.
spotInstanceRequestId
- If the request is a Spot Instance request, the ID of the request.public String getSpotInstanceRequestId()
If the request is a Spot Instance request, the ID of the request.
public Instance withSpotInstanceRequestId(String spotInstanceRequestId)
If the request is a Spot Instance request, the ID of the request.
spotInstanceRequestId
- If the request is a Spot Instance request, the ID of the request.public void setSriovNetSupport(String sriovNetSupport)
Specifies whether enhanced networking with the Intel 82599 Virtual Function interface is enabled.
sriovNetSupport
- Specifies whether enhanced networking with the Intel 82599 Virtual Function interface is enabled.public String getSriovNetSupport()
Specifies whether enhanced networking with the Intel 82599 Virtual Function interface is enabled.
public Instance withSriovNetSupport(String sriovNetSupport)
Specifies whether enhanced networking with the Intel 82599 Virtual Function interface is enabled.
sriovNetSupport
- Specifies whether enhanced networking with the Intel 82599 Virtual Function interface is enabled.public void setStateReason(StateReason stateReason)
The reason for the most recent state transition.
stateReason
- The reason for the most recent state transition.public StateReason getStateReason()
The reason for the most recent state transition.
public Instance withStateReason(StateReason stateReason)
The reason for the most recent state transition.
stateReason
- The reason for the most recent state transition.public List<Tag> getTags()
Any tags assigned to the instance.
public void setTags(Collection<Tag> tags)
Any tags assigned to the instance.
tags
- Any tags assigned to the instance.public Instance withTags(Tag... tags)
Any tags assigned to the instance.
NOTE: This method appends the values to the existing list (if any). Use
setTags(java.util.Collection)
or withTags(java.util.Collection)
if you want to override the
existing values.
tags
- Any tags assigned to the instance.public Instance withTags(Collection<Tag> tags)
Any tags assigned to the instance.
tags
- Any tags assigned to the instance.public void setVirtualizationType(String virtualizationType)
The virtualization type of the instance.
virtualizationType
- The virtualization type of the instance.VirtualizationType
public String getVirtualizationType()
The virtualization type of the instance.
VirtualizationType
public Instance withVirtualizationType(String virtualizationType)
The virtualization type of the instance.
virtualizationType
- The virtualization type of the instance.VirtualizationType
public void setVirtualizationType(VirtualizationType virtualizationType)
The virtualization type of the instance.
virtualizationType
- The virtualization type of the instance.VirtualizationType
public Instance withVirtualizationType(VirtualizationType virtualizationType)
The virtualization type of the instance.
virtualizationType
- The virtualization type of the instance.VirtualizationType
public void setCpuOptions(CpuOptions cpuOptions)
The CPU options for the instance.
cpuOptions
- The CPU options for the instance.public CpuOptions getCpuOptions()
The CPU options for the instance.
public Instance withCpuOptions(CpuOptions cpuOptions)
The CPU options for the instance.
cpuOptions
- The CPU options for the instance.public void setCapacityReservationId(String capacityReservationId)
The ID of the Capacity Reservation.
capacityReservationId
- The ID of the Capacity Reservation.public String getCapacityReservationId()
The ID of the Capacity Reservation.
public Instance withCapacityReservationId(String capacityReservationId)
The ID of the Capacity Reservation.
capacityReservationId
- The ID of the Capacity Reservation.public void setCapacityReservationSpecification(CapacityReservationSpecificationResponse capacityReservationSpecification)
Information about the Capacity Reservation targeting option.
capacityReservationSpecification
- Information about the Capacity Reservation targeting option.public CapacityReservationSpecificationResponse getCapacityReservationSpecification()
Information about the Capacity Reservation targeting option.
public Instance withCapacityReservationSpecification(CapacityReservationSpecificationResponse capacityReservationSpecification)
Information about the Capacity Reservation targeting option.
capacityReservationSpecification
- Information about the Capacity Reservation targeting option.public void setHibernationOptions(HibernationOptions hibernationOptions)
Indicates whether the instance is enabled for hibernation.
hibernationOptions
- Indicates whether the instance is enabled for hibernation.public HibernationOptions getHibernationOptions()
Indicates whether the instance is enabled for hibernation.
public Instance withHibernationOptions(HibernationOptions hibernationOptions)
Indicates whether the instance is enabled for hibernation.
hibernationOptions
- Indicates whether the instance is enabled for hibernation.public List<LicenseConfiguration> getLicenses()
The license configurations for the instance.
public void setLicenses(Collection<LicenseConfiguration> licenses)
The license configurations for the instance.
licenses
- The license configurations for the instance.public Instance withLicenses(LicenseConfiguration... licenses)
The license configurations for the instance.
NOTE: This method appends the values to the existing list (if any). Use
setLicenses(java.util.Collection)
or withLicenses(java.util.Collection)
if you want to override
the existing values.
licenses
- The license configurations for the instance.public Instance withLicenses(Collection<LicenseConfiguration> licenses)
The license configurations for the instance.
licenses
- The license configurations for the instance.public void setMetadataOptions(InstanceMetadataOptionsResponse metadataOptions)
The metadata options for the instance.
metadataOptions
- The metadata options for the instance.public InstanceMetadataOptionsResponse getMetadataOptions()
The metadata options for the instance.
public Instance withMetadataOptions(InstanceMetadataOptionsResponse metadataOptions)
The metadata options for the instance.
metadataOptions
- The metadata options for the instance.public void setEnclaveOptions(EnclaveOptions enclaveOptions)
Indicates whether the instance is enabled for Amazon Web Services Nitro Enclaves.
enclaveOptions
- Indicates whether the instance is enabled for Amazon Web Services Nitro Enclaves.public EnclaveOptions getEnclaveOptions()
Indicates whether the instance is enabled for Amazon Web Services Nitro Enclaves.
public Instance withEnclaveOptions(EnclaveOptions enclaveOptions)
Indicates whether the instance is enabled for Amazon Web Services Nitro Enclaves.
enclaveOptions
- Indicates whether the instance is enabled for Amazon Web Services Nitro Enclaves.public void setBootMode(String bootMode)
The boot mode that was specified by the AMI. If the value is uefi-preferred
, the AMI supports both
UEFI and Legacy BIOS. The currentInstanceBootMode
parameter is the boot mode that is used to boot
the instance at launch or start.
The operating system contained in the AMI must be configured to support the specified boot mode.
For more information, see Boot modes in the Amazon EC2 User Guide.
bootMode
- The boot mode that was specified by the AMI. If the value is uefi-preferred
, the AMI supports
both UEFI and Legacy BIOS. The currentInstanceBootMode
parameter is the boot mode that is
used to boot the instance at launch or start. The operating system contained in the AMI must be configured to support the specified boot mode.
For more information, see Boot modes in the Amazon EC2 User Guide.
BootModeValues
public String getBootMode()
The boot mode that was specified by the AMI. If the value is uefi-preferred
, the AMI supports both
UEFI and Legacy BIOS. The currentInstanceBootMode
parameter is the boot mode that is used to boot
the instance at launch or start.
The operating system contained in the AMI must be configured to support the specified boot mode.
For more information, see Boot modes in the Amazon EC2 User Guide.
uefi-preferred
, the AMI
supports both UEFI and Legacy BIOS. The currentInstanceBootMode
parameter is the boot mode
that is used to boot the instance at launch or start. The operating system contained in the AMI must be configured to support the specified boot mode.
For more information, see Boot modes in the Amazon EC2 User Guide.
BootModeValues
public Instance withBootMode(String bootMode)
The boot mode that was specified by the AMI. If the value is uefi-preferred
, the AMI supports both
UEFI and Legacy BIOS. The currentInstanceBootMode
parameter is the boot mode that is used to boot
the instance at launch or start.
The operating system contained in the AMI must be configured to support the specified boot mode.
For more information, see Boot modes in the Amazon EC2 User Guide.
bootMode
- The boot mode that was specified by the AMI. If the value is uefi-preferred
, the AMI supports
both UEFI and Legacy BIOS. The currentInstanceBootMode
parameter is the boot mode that is
used to boot the instance at launch or start. The operating system contained in the AMI must be configured to support the specified boot mode.
For more information, see Boot modes in the Amazon EC2 User Guide.
BootModeValues
public void setBootMode(BootModeValues bootMode)
The boot mode that was specified by the AMI. If the value is uefi-preferred
, the AMI supports both
UEFI and Legacy BIOS. The currentInstanceBootMode
parameter is the boot mode that is used to boot
the instance at launch or start.
The operating system contained in the AMI must be configured to support the specified boot mode.
For more information, see Boot modes in the Amazon EC2 User Guide.
bootMode
- The boot mode that was specified by the AMI. If the value is uefi-preferred
, the AMI supports
both UEFI and Legacy BIOS. The currentInstanceBootMode
parameter is the boot mode that is
used to boot the instance at launch or start. The operating system contained in the AMI must be configured to support the specified boot mode.
For more information, see Boot modes in the Amazon EC2 User Guide.
BootModeValues
public Instance withBootMode(BootModeValues bootMode)
The boot mode that was specified by the AMI. If the value is uefi-preferred
, the AMI supports both
UEFI and Legacy BIOS. The currentInstanceBootMode
parameter is the boot mode that is used to boot
the instance at launch or start.
The operating system contained in the AMI must be configured to support the specified boot mode.
For more information, see Boot modes in the Amazon EC2 User Guide.
bootMode
- The boot mode that was specified by the AMI. If the value is uefi-preferred
, the AMI supports
both UEFI and Legacy BIOS. The currentInstanceBootMode
parameter is the boot mode that is
used to boot the instance at launch or start. The operating system contained in the AMI must be configured to support the specified boot mode.
For more information, see Boot modes in the Amazon EC2 User Guide.
BootModeValues
public void setPlatformDetails(String platformDetails)
The platform details value for the instance. For more information, see AMI billing information fields in the Amazon EC2 User Guide.
platformDetails
- The platform details value for the instance. For more information, see AMI billing
information fields in the Amazon EC2 User Guide.public String getPlatformDetails()
The platform details value for the instance. For more information, see AMI billing information fields in the Amazon EC2 User Guide.
public Instance withPlatformDetails(String platformDetails)
The platform details value for the instance. For more information, see AMI billing information fields in the Amazon EC2 User Guide.
platformDetails
- The platform details value for the instance. For more information, see AMI billing
information fields in the Amazon EC2 User Guide.public void setUsageOperation(String usageOperation)
The usage operation value for the instance. For more information, see AMI billing information fields in the Amazon EC2 User Guide.
usageOperation
- The usage operation value for the instance. For more information, see AMI billing
information fields in the Amazon EC2 User Guide.public String getUsageOperation()
The usage operation value for the instance. For more information, see AMI billing information fields in the Amazon EC2 User Guide.
public Instance withUsageOperation(String usageOperation)
The usage operation value for the instance. For more information, see AMI billing information fields in the Amazon EC2 User Guide.
usageOperation
- The usage operation value for the instance. For more information, see AMI billing
information fields in the Amazon EC2 User Guide.public void setUsageOperationUpdateTime(Date usageOperationUpdateTime)
The time that the usage operation was last updated.
usageOperationUpdateTime
- The time that the usage operation was last updated.public Date getUsageOperationUpdateTime()
The time that the usage operation was last updated.
public Instance withUsageOperationUpdateTime(Date usageOperationUpdateTime)
The time that the usage operation was last updated.
usageOperationUpdateTime
- The time that the usage operation was last updated.public void setPrivateDnsNameOptions(PrivateDnsNameOptionsResponse privateDnsNameOptions)
The options for the instance hostname.
privateDnsNameOptions
- The options for the instance hostname.public PrivateDnsNameOptionsResponse getPrivateDnsNameOptions()
The options for the instance hostname.
public Instance withPrivateDnsNameOptions(PrivateDnsNameOptionsResponse privateDnsNameOptions)
The options for the instance hostname.
privateDnsNameOptions
- The options for the instance hostname.public void setIpv6Address(String ipv6Address)
The IPv6 address assigned to the instance.
ipv6Address
- The IPv6 address assigned to the instance.public String getIpv6Address()
The IPv6 address assigned to the instance.
public Instance withIpv6Address(String ipv6Address)
The IPv6 address assigned to the instance.
ipv6Address
- The IPv6 address assigned to the instance.public void setTpmSupport(String tpmSupport)
If the instance is configured for NitroTPM support, the value is v2.0
. For more information, see NitroTPM in the Amazon EC2 User
Guide.
tpmSupport
- If the instance is configured for NitroTPM support, the value is v2.0
. For more information,
see NitroTPM in the
Amazon EC2 User Guide.public String getTpmSupport()
If the instance is configured for NitroTPM support, the value is v2.0
. For more information, see NitroTPM in the Amazon EC2 User
Guide.
v2.0
. For more information,
see NitroTPM in the
Amazon EC2 User Guide.public Instance withTpmSupport(String tpmSupport)
If the instance is configured for NitroTPM support, the value is v2.0
. For more information, see NitroTPM in the Amazon EC2 User
Guide.
tpmSupport
- If the instance is configured for NitroTPM support, the value is v2.0
. For more information,
see NitroTPM in the
Amazon EC2 User Guide.public void setMaintenanceOptions(InstanceMaintenanceOptions maintenanceOptions)
Provides information on the recovery and maintenance options of your instance.
maintenanceOptions
- Provides information on the recovery and maintenance options of your instance.public InstanceMaintenanceOptions getMaintenanceOptions()
Provides information on the recovery and maintenance options of your instance.
public Instance withMaintenanceOptions(InstanceMaintenanceOptions maintenanceOptions)
Provides information on the recovery and maintenance options of your instance.
maintenanceOptions
- Provides information on the recovery and maintenance options of your instance.public void setCurrentInstanceBootMode(String currentInstanceBootMode)
The boot mode that is used to boot the instance at launch or start. For more information, see Boot modes in the Amazon EC2 User Guide.
currentInstanceBootMode
- The boot mode that is used to boot the instance at launch or start. For more information, see Boot modes in the Amazon
EC2 User Guide.InstanceBootModeValues
public String getCurrentInstanceBootMode()
The boot mode that is used to boot the instance at launch or start. For more information, see Boot modes in the Amazon EC2 User Guide.
InstanceBootModeValues
public Instance withCurrentInstanceBootMode(String currentInstanceBootMode)
The boot mode that is used to boot the instance at launch or start. For more information, see Boot modes in the Amazon EC2 User Guide.
currentInstanceBootMode
- The boot mode that is used to boot the instance at launch or start. For more information, see Boot modes in the Amazon
EC2 User Guide.InstanceBootModeValues
public void setCurrentInstanceBootMode(InstanceBootModeValues currentInstanceBootMode)
The boot mode that is used to boot the instance at launch or start. For more information, see Boot modes in the Amazon EC2 User Guide.
currentInstanceBootMode
- The boot mode that is used to boot the instance at launch or start. For more information, see Boot modes in the Amazon
EC2 User Guide.InstanceBootModeValues
public Instance withCurrentInstanceBootMode(InstanceBootModeValues currentInstanceBootMode)
The boot mode that is used to boot the instance at launch or start. For more information, see Boot modes in the Amazon EC2 User Guide.
currentInstanceBootMode
- The boot mode that is used to boot the instance at launch or start. For more information, see Boot modes in the Amazon
EC2 User Guide.InstanceBootModeValues
public String toString()
toString
in class Object
Object.toString()