Interface Instance.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<Instance.Builder,
,Instance> SdkBuilder<Instance.Builder,
,Instance> SdkPojo
- Enclosing class:
Instance
-
Method Summary
Modifier and TypeMethodDescriptionamiLaunchIndex
(Integer amiLaunchIndex) The AMI launch index, which can be used to find this instance in the launch group.architecture
(String architecture) The architecture of the image.architecture
(ArchitectureValues architecture) The architecture of the image.blockDeviceMappings
(Collection<InstanceBlockDeviceMapping> blockDeviceMappings) Any block device mapping entries for the instance.blockDeviceMappings
(Consumer<InstanceBlockDeviceMapping.Builder>... blockDeviceMappings) Any block device mapping entries for the instance.blockDeviceMappings
(InstanceBlockDeviceMapping... blockDeviceMappings) Any block device mapping entries for the instance.The boot mode that was specified by the AMI.bootMode
(BootModeValues bootMode) The boot mode that was specified by the AMI.capacityReservationId
(String capacityReservationId) The ID of the Capacity Reservation.default Instance.Builder
capacityReservationSpecification
(Consumer<CapacityReservationSpecificationResponse.Builder> capacityReservationSpecification) Information about the Capacity Reservation targeting option.capacityReservationSpecification
(CapacityReservationSpecificationResponse capacityReservationSpecification) Information about the Capacity Reservation targeting option.clientToken
(String clientToken) The idempotency token you provided when you launched the instance, if applicable.default Instance.Builder
cpuOptions
(Consumer<CpuOptions.Builder> cpuOptions) The CPU options for the instance.cpuOptions
(CpuOptions cpuOptions) The CPU options for the instance.currentInstanceBootMode
(String currentInstanceBootMode) The boot mode that is used to boot the instance at launch or start.currentInstanceBootMode
(InstanceBootModeValues currentInstanceBootMode) The boot mode that is used to boot the instance at launch or start.ebsOptimized
(Boolean ebsOptimized) Indicates whether the instance is optimized for Amazon EBS I/O.elasticGpuAssociations
(Collection<ElasticGpuAssociation> elasticGpuAssociations) The Elastic GPU associated with the instance.elasticGpuAssociations
(Consumer<ElasticGpuAssociation.Builder>... elasticGpuAssociations) The Elastic GPU associated with the instance.elasticGpuAssociations
(ElasticGpuAssociation... elasticGpuAssociations) The Elastic GPU associated with the instance.elasticInferenceAcceleratorAssociations
(Collection<ElasticInferenceAcceleratorAssociation> elasticInferenceAcceleratorAssociations) The elastic inference accelerator associated with the instance.elasticInferenceAcceleratorAssociations
(Consumer<ElasticInferenceAcceleratorAssociation.Builder>... elasticInferenceAcceleratorAssociations) The elastic inference accelerator associated with the instance.elasticInferenceAcceleratorAssociations
(ElasticInferenceAcceleratorAssociation... elasticInferenceAcceleratorAssociations) The elastic inference accelerator associated with the instance.enaSupport
(Boolean enaSupport) Specifies whether enhanced networking with ENA is enabled.default Instance.Builder
enclaveOptions
(Consumer<EnclaveOptions.Builder> enclaveOptions) Indicates whether the instance is enabled for Amazon Web Services Nitro Enclaves.enclaveOptions
(EnclaveOptions enclaveOptions) Indicates whether the instance is enabled for Amazon Web Services Nitro Enclaves.default Instance.Builder
hibernationOptions
(Consumer<HibernationOptions.Builder> hibernationOptions) Indicates whether the instance is enabled for hibernation.hibernationOptions
(HibernationOptions hibernationOptions) Indicates whether the instance is enabled for hibernation.hypervisor
(String hypervisor) The hypervisor type of the instance.hypervisor
(HypervisorType hypervisor) The hypervisor type of the instance.default Instance.Builder
iamInstanceProfile
(Consumer<IamInstanceProfile.Builder> iamInstanceProfile) The IAM instance profile associated with the instance, if applicable.iamInstanceProfile
(IamInstanceProfile iamInstanceProfile) The IAM instance profile associated with the instance, if applicable.The ID of the AMI used to launch the instance.instanceId
(String instanceId) The ID of the instance.instanceLifecycle
(String instanceLifecycle) Indicates whether this is a Spot Instance or a Scheduled Instance.instanceLifecycle
(InstanceLifecycleType instanceLifecycle) Indicates whether this is a Spot Instance or a Scheduled Instance.instanceType
(String instanceType) The instance type.instanceType
(InstanceType instanceType) The instance type.ipv6Address
(String ipv6Address) The IPv6 address assigned to the instance.The kernel associated with this instance, if applicable.The name of the key pair, if this instance was launched with an associated key pair.launchTime
(Instant launchTime) The time the instance was launched.licenses
(Collection<LicenseConfiguration> licenses) The license configurations for the instance.licenses
(Consumer<LicenseConfiguration.Builder>... licenses) The license configurations for the instance.licenses
(LicenseConfiguration... licenses) The license configurations for the instance.default Instance.Builder
maintenanceOptions
(Consumer<InstanceMaintenanceOptions.Builder> maintenanceOptions) Provides information on the recovery and maintenance options of your instance.maintenanceOptions
(InstanceMaintenanceOptions maintenanceOptions) Provides information on the recovery and maintenance options of your instance.default Instance.Builder
metadataOptions
(Consumer<InstanceMetadataOptionsResponse.Builder> metadataOptions) The metadata options for the instance.metadataOptions
(InstanceMetadataOptionsResponse metadataOptions) The metadata options for the instance.default Instance.Builder
monitoring
(Consumer<Monitoring.Builder> monitoring) The monitoring for the instance.monitoring
(Monitoring monitoring) The monitoring for the instance.networkInterfaces
(Collection<InstanceNetworkInterface> networkInterfaces) The network interfaces for the instance.networkInterfaces
(Consumer<InstanceNetworkInterface.Builder>... networkInterfaces) The network interfaces for the instance.networkInterfaces
(InstanceNetworkInterface... networkInterfaces) The network interfaces for the instance.outpostArn
(String outpostArn) The Amazon Resource Name (ARN) of the Outpost.default Instance.Builder
placement
(Consumer<Placement.Builder> placement) The location where the instance launched, if applicable.The location where the instance launched, if applicable.The value isWindows
for Windows instances; otherwise blank.platform
(PlatformValues platform) The value isWindows
for Windows instances; otherwise blank.platformDetails
(String platformDetails) The platform details value for the instance.privateDnsName
(String privateDnsName) [IPv4 only] The private DNS hostname name assigned to the instance.default Instance.Builder
privateDnsNameOptions
(Consumer<PrivateDnsNameOptionsResponse.Builder> privateDnsNameOptions) The options for the instance hostname.privateDnsNameOptions
(PrivateDnsNameOptionsResponse privateDnsNameOptions) The options for the instance hostname.privateIpAddress
(String privateIpAddress) The private IPv4 address assigned to the instance.productCodes
(Collection<ProductCode> productCodes) The product codes attached to this instance, if applicable.productCodes
(Consumer<ProductCode.Builder>... productCodes) The product codes attached to this instance, if applicable.productCodes
(ProductCode... productCodes) The product codes attached to this instance, if applicable.publicDnsName
(String publicDnsName) [IPv4 only] The public DNS name assigned to the instance.publicIpAddress
(String publicIpAddress) The public IPv4 address, or the Carrier IP address assigned to the instance, if applicable.The RAM disk associated with this instance, if applicable.rootDeviceName
(String rootDeviceName) The device name of the root device volume (for example,/dev/sda1
).rootDeviceType
(String rootDeviceType) The root device type used by the AMI.rootDeviceType
(DeviceType rootDeviceType) The root device type used by the AMI.securityGroups
(Collection<GroupIdentifier> securityGroups) The security groups for the instance.securityGroups
(Consumer<GroupIdentifier.Builder>... securityGroups) The security groups for the instance.securityGroups
(GroupIdentifier... securityGroups) The security groups for the instance.sourceDestCheck
(Boolean sourceDestCheck) Indicates whether source/destination checking is enabled.spotInstanceRequestId
(String spotInstanceRequestId) If the request is a Spot Instance request, the ID of the request.sriovNetSupport
(String sriovNetSupport) Specifies whether enhanced networking with the Intel 82599 Virtual Function interface is enabled.default Instance.Builder
state
(Consumer<InstanceState.Builder> state) The current state of the instance.state
(InstanceState state) The current state of the instance.default Instance.Builder
stateReason
(Consumer<StateReason.Builder> stateReason) The reason for the most recent state transition.stateReason
(StateReason stateReason) The reason for the most recent state transition.stateTransitionReason
(String stateTransitionReason) The reason for the most recent state transition.The ID of the subnet in which the instance is running.tags
(Collection<Tag> tags) Any tags assigned to the instance.tags
(Consumer<Tag.Builder>... tags) Any tags assigned to the instance.Any tags assigned to the instance.tpmSupport
(String tpmSupport) If the instance is configured for NitroTPM support, the value isv2.0
.usageOperation
(String usageOperation) The usage operation value for the instance.usageOperationUpdateTime
(Instant usageOperationUpdateTime) The time that the usage operation was last updated.virtualizationType
(String virtualizationType) The virtualization type of the instance.virtualizationType
(VirtualizationType virtualizationType) The virtualization type of the instance.The ID of the VPC in which the instance is running.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
amiLaunchIndex
The AMI launch index, which can be used to find this instance in the launch group.
- Parameters:
amiLaunchIndex
- The AMI launch index, which can be used to find this instance in the launch group.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
imageId
The ID of the AMI used to launch the instance.
- Parameters:
imageId
- The ID of the AMI used to launch the instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
instanceId
The ID of the instance.
- Parameters:
instanceId
- The ID of the instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
instanceType
The instance type.
- Parameters:
instanceType
- The instance type.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
instanceType
The instance type.
- Parameters:
instanceType
- The instance type.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
kernelId
The kernel associated with this instance, if applicable.
- Parameters:
kernelId
- The kernel associated with this instance, if applicable.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
keyName
The name of the key pair, if this instance was launched with an associated key pair.
- Parameters:
keyName
- The name of the key pair, if this instance was launched with an associated key pair.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
launchTime
The time the instance was launched.
- Parameters:
launchTime
- The time the instance was launched.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
monitoring
The monitoring for the instance.
- Parameters:
monitoring
- The monitoring for the instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
monitoring
The monitoring for the instance.
This is a convenience method that creates an instance of theMonitoring.Builder
avoiding the need to create one manually viaMonitoring.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tomonitoring(Monitoring)
.- Parameters:
monitoring
- a consumer that will call methods onMonitoring.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
placement
The location where the instance launched, if applicable.
- Parameters:
placement
- The location where the instance launched, if applicable.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
placement
The location where the instance launched, if applicable.
This is a convenience method that creates an instance of thePlacement.Builder
avoiding the need to create one manually viaPlacement.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toplacement(Placement)
.- Parameters:
placement
- a consumer that will call methods onPlacement.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
platform
The value is
Windows
for Windows instances; otherwise blank.- Parameters:
platform
- The value isWindows
for Windows instances; otherwise blank.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
platform
The value is
Windows
for Windows instances; otherwise blank.- Parameters:
platform
- The value isWindows
for Windows instances; otherwise blank.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
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.
- Parameters:
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 therunning
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.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
privateIpAddress
The private IPv4 address assigned to the instance.
- Parameters:
privateIpAddress
- The private IPv4 address assigned to the instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
productCodes
The product codes attached to this instance, if applicable.
- Parameters:
productCodes
- The product codes attached to this instance, if applicable.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
productCodes
The product codes attached to this instance, if applicable.
- Parameters:
productCodes
- The product codes attached to this instance, if applicable.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
productCodes
The product codes attached to this instance, if applicable.
This is a convenience method that creates an instance of theProductCode.Builder
avoiding the need to create one manually viaProductCode.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toproductCodes(List<ProductCode>)
.- Parameters:
productCodes
- a consumer that will call methods onProductCode.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
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.- Parameters:
publicDnsName
- [IPv4 only] The public DNS name assigned to the instance. This name is not available until the instance enters therunning
state. This name is only available if you've enabled DNS hostnames for your VPC.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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.
- Parameters:
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.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
ramdiskId
The RAM disk associated with this instance, if applicable.
- Parameters:
ramdiskId
- The RAM disk associated with this instance, if applicable.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
state
The current state of the instance.
- Parameters:
state
- The current state of the instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
state
The current state of the instance.
This is a convenience method that creates an instance of theInstanceState.Builder
avoiding the need to create one manually viaInstanceState.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tostate(InstanceState)
.- Parameters:
state
- a consumer that will call methods onInstanceState.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
stateTransitionReason
The reason for the most recent state transition. This might be an empty string.
- Parameters:
stateTransitionReason
- The reason for the most recent state transition. This might be an empty string.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
subnetId
The ID of the subnet in which the instance is running.
- Parameters:
subnetId
- The ID of the subnet in which the instance is running.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
vpcId
The ID of the VPC in which the instance is running.
- Parameters:
vpcId
- The ID of the VPC in which the instance is running.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
architecture
The architecture of the image.
- Parameters:
architecture
- The architecture of the image.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
architecture
The architecture of the image.
- Parameters:
architecture
- The architecture of the image.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
blockDeviceMappings
Any block device mapping entries for the instance.
- Parameters:
blockDeviceMappings
- Any block device mapping entries for the instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
blockDeviceMappings
Any block device mapping entries for the instance.
- Parameters:
blockDeviceMappings
- Any block device mapping entries for the instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
blockDeviceMappings
Instance.Builder blockDeviceMappings(Consumer<InstanceBlockDeviceMapping.Builder>... blockDeviceMappings) Any block device mapping entries for the instance.
This is a convenience method that creates an instance of theInstanceBlockDeviceMapping.Builder
avoiding the need to create one manually viaInstanceBlockDeviceMapping.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toblockDeviceMappings(List<InstanceBlockDeviceMapping>)
.- Parameters:
blockDeviceMappings
- a consumer that will call methods onInstanceBlockDeviceMapping.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
clientToken
The idempotency token you provided when you launched the instance, if applicable.
- Parameters:
clientToken
- The idempotency token you provided when you launched the instance, if applicable.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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.
- Parameters:
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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
enaSupport
Specifies whether enhanced networking with ENA is enabled.
- Parameters:
enaSupport
- Specifies whether enhanced networking with ENA is enabled.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
hypervisor
The hypervisor type of the instance. The value
xen
is used for both Xen and Nitro hypervisors.- Parameters:
hypervisor
- The hypervisor type of the instance. The valuexen
is used for both Xen and Nitro hypervisors.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
hypervisor
The hypervisor type of the instance. The value
xen
is used for both Xen and Nitro hypervisors.- Parameters:
hypervisor
- The hypervisor type of the instance. The valuexen
is used for both Xen and Nitro hypervisors.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
iamInstanceProfile
The IAM instance profile associated with the instance, if applicable.
- Parameters:
iamInstanceProfile
- The IAM instance profile associated with the instance, if applicable.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
iamInstanceProfile
default Instance.Builder iamInstanceProfile(Consumer<IamInstanceProfile.Builder> iamInstanceProfile) The IAM instance profile associated with the instance, if applicable.
This is a convenience method that creates an instance of theIamInstanceProfile.Builder
avoiding the need to create one manually viaIamInstanceProfile.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toiamInstanceProfile(IamInstanceProfile)
.- Parameters:
iamInstanceProfile
- a consumer that will call methods onIamInstanceProfile.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
instanceLifecycle
Indicates whether this is a Spot Instance or a Scheduled Instance.
- Parameters:
instanceLifecycle
- Indicates whether this is a Spot Instance or a Scheduled Instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
instanceLifecycle
Indicates whether this is a Spot Instance or a Scheduled Instance.
- Parameters:
instanceLifecycle
- Indicates whether this is a Spot Instance or a Scheduled Instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
elasticGpuAssociations
The Elastic GPU associated with the instance.
- Parameters:
elasticGpuAssociations
- The Elastic GPU associated with the instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
elasticGpuAssociations
The Elastic GPU associated with the instance.
- Parameters:
elasticGpuAssociations
- The Elastic GPU associated with the instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
elasticGpuAssociations
Instance.Builder elasticGpuAssociations(Consumer<ElasticGpuAssociation.Builder>... elasticGpuAssociations) The Elastic GPU associated with the instance.
This is a convenience method that creates an instance of theElasticGpuAssociation.Builder
avoiding the need to create one manually viaElasticGpuAssociation.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toelasticGpuAssociations(List<ElasticGpuAssociation>)
.- Parameters:
elasticGpuAssociations
- a consumer that will call methods onElasticGpuAssociation.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
elasticInferenceAcceleratorAssociations
Instance.Builder elasticInferenceAcceleratorAssociations(Collection<ElasticInferenceAcceleratorAssociation> elasticInferenceAcceleratorAssociations) The elastic inference accelerator associated with the instance.
- Parameters:
elasticInferenceAcceleratorAssociations
- The elastic inference accelerator associated with the instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
elasticInferenceAcceleratorAssociations
Instance.Builder elasticInferenceAcceleratorAssociations(ElasticInferenceAcceleratorAssociation... elasticInferenceAcceleratorAssociations) The elastic inference accelerator associated with the instance.
- Parameters:
elasticInferenceAcceleratorAssociations
- The elastic inference accelerator associated with the instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
elasticInferenceAcceleratorAssociations
Instance.Builder elasticInferenceAcceleratorAssociations(Consumer<ElasticInferenceAcceleratorAssociation.Builder>... elasticInferenceAcceleratorAssociations) The elastic inference accelerator associated with the instance.
This is a convenience method that creates an instance of theElasticInferenceAcceleratorAssociation.Builder
avoiding the need to create one manually viaElasticInferenceAcceleratorAssociation.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toelasticInferenceAcceleratorAssociations(List<ElasticInferenceAcceleratorAssociation>)
.- Parameters:
elasticInferenceAcceleratorAssociations
- a consumer that will call methods onElasticInferenceAcceleratorAssociation.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
networkInterfaces
The network interfaces for the instance.
- Parameters:
networkInterfaces
- The network interfaces for the instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
networkInterfaces
The network interfaces for the instance.
- Parameters:
networkInterfaces
- The network interfaces for the instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
networkInterfaces
The network interfaces for the instance.
This is a convenience method that creates an instance of theInstanceNetworkInterface.Builder
avoiding the need to create one manually viaInstanceNetworkInterface.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tonetworkInterfaces(List<InstanceNetworkInterface>)
.- Parameters:
networkInterfaces
- a consumer that will call methods onInstanceNetworkInterface.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
outpostArn
The Amazon Resource Name (ARN) of the Outpost.
- Parameters:
outpostArn
- The Amazon Resource Name (ARN) of the Outpost.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
rootDeviceName
The device name of the root device volume (for example,
/dev/sda1
).- Parameters:
rootDeviceName
- The device name of the root device volume (for example,/dev/sda1
).- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
rootDeviceType
The root device type used by the AMI. The AMI can use an EBS volume or an instance store volume.
- Parameters:
rootDeviceType
- The root device type used by the AMI. The AMI can use an EBS volume or an instance store volume.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
rootDeviceType
The root device type used by the AMI. The AMI can use an EBS volume or an instance store volume.
- Parameters:
rootDeviceType
- The root device type used by the AMI. The AMI can use an EBS volume or an instance store volume.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
securityGroups
The security groups for the instance.
- Parameters:
securityGroups
- The security groups for the instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
securityGroups
The security groups for the instance.
- Parameters:
securityGroups
- The security groups for the instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
securityGroups
The security groups for the instance.
This is a convenience method that creates an instance of theGroupIdentifier.Builder
avoiding the need to create one manually viaGroupIdentifier.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tosecurityGroups(List<GroupIdentifier>)
.- Parameters:
securityGroups
- a consumer that will call methods onGroupIdentifier.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
sourceDestCheck
Indicates whether source/destination checking is enabled.
- Parameters:
sourceDestCheck
- Indicates whether source/destination checking is enabled.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
spotInstanceRequestId
If the request is a Spot Instance request, the ID of the request.
- Parameters:
spotInstanceRequestId
- If the request is a Spot Instance request, the ID of the request.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sriovNetSupport
Specifies whether enhanced networking with the Intel 82599 Virtual Function interface is enabled.
- Parameters:
sriovNetSupport
- Specifies whether enhanced networking with the Intel 82599 Virtual Function interface is enabled.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
stateReason
The reason for the most recent state transition.
- Parameters:
stateReason
- The reason for the most recent state transition.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
stateReason
The reason for the most recent state transition.
This is a convenience method that creates an instance of theStateReason.Builder
avoiding the need to create one manually viaStateReason.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tostateReason(StateReason)
.- Parameters:
stateReason
- a consumer that will call methods onStateReason.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
tags
Any tags assigned to the instance.
- Parameters:
tags
- Any tags assigned to the instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
Any tags assigned to the instance.
- Parameters:
tags
- Any tags assigned to the instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
Any tags assigned to the instance.
This is a convenience method that creates an instance of theTag.Builder
avoiding the need to create one manually viaTag.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed totags(List<Tag>)
.- Parameters:
tags
- a consumer that will call methods onTag.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
virtualizationType
The virtualization type of the instance.
- Parameters:
virtualizationType
- The virtualization type of the instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
virtualizationType
The virtualization type of the instance.
- Parameters:
virtualizationType
- The virtualization type of the instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
cpuOptions
The CPU options for the instance.
- Parameters:
cpuOptions
- The CPU options for the instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
cpuOptions
The CPU options for the instance.
This is a convenience method that creates an instance of theCpuOptions.Builder
avoiding the need to create one manually viaCpuOptions.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tocpuOptions(CpuOptions)
.- Parameters:
cpuOptions
- a consumer that will call methods onCpuOptions.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
capacityReservationId
The ID of the Capacity Reservation.
- Parameters:
capacityReservationId
- The ID of the Capacity Reservation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
capacityReservationSpecification
Instance.Builder capacityReservationSpecification(CapacityReservationSpecificationResponse capacityReservationSpecification) Information about the Capacity Reservation targeting option.
- Parameters:
capacityReservationSpecification
- Information about the Capacity Reservation targeting option.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
capacityReservationSpecification
default Instance.Builder capacityReservationSpecification(Consumer<CapacityReservationSpecificationResponse.Builder> capacityReservationSpecification) Information about the Capacity Reservation targeting option.
This is a convenience method that creates an instance of theCapacityReservationSpecificationResponse.Builder
avoiding the need to create one manually viaCapacityReservationSpecificationResponse.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tocapacityReservationSpecification(CapacityReservationSpecificationResponse)
.- Parameters:
capacityReservationSpecification
- a consumer that will call methods onCapacityReservationSpecificationResponse.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
hibernationOptions
Indicates whether the instance is enabled for hibernation.
- Parameters:
hibernationOptions
- Indicates whether the instance is enabled for hibernation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
hibernationOptions
default Instance.Builder hibernationOptions(Consumer<HibernationOptions.Builder> hibernationOptions) Indicates whether the instance is enabled for hibernation.
This is a convenience method that creates an instance of theHibernationOptions.Builder
avoiding the need to create one manually viaHibernationOptions.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tohibernationOptions(HibernationOptions)
.- Parameters:
hibernationOptions
- a consumer that will call methods onHibernationOptions.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
licenses
The license configurations for the instance.
- Parameters:
licenses
- The license configurations for the instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
licenses
The license configurations for the instance.
- Parameters:
licenses
- The license configurations for the instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
licenses
The license configurations for the instance.
This is a convenience method that creates an instance of theLicenseConfiguration.Builder
avoiding the need to create one manually viaLicenseConfiguration.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tolicenses(List<LicenseConfiguration>)
.- Parameters:
licenses
- a consumer that will call methods onLicenseConfiguration.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
metadataOptions
The metadata options for the instance.
- Parameters:
metadataOptions
- The metadata options for the instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
metadataOptions
default Instance.Builder metadataOptions(Consumer<InstanceMetadataOptionsResponse.Builder> metadataOptions) The metadata options for the instance.
This is a convenience method that creates an instance of theInstanceMetadataOptionsResponse.Builder
avoiding the need to create one manually viaInstanceMetadataOptionsResponse.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tometadataOptions(InstanceMetadataOptionsResponse)
.- Parameters:
metadataOptions
- a consumer that will call methods onInstanceMetadataOptionsResponse.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
enclaveOptions
Indicates whether the instance is enabled for Amazon Web Services Nitro Enclaves.
- Parameters:
enclaveOptions
- Indicates whether the instance is enabled for Amazon Web Services Nitro Enclaves.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
enclaveOptions
Indicates whether the instance is enabled for Amazon Web Services Nitro Enclaves.
This is a convenience method that creates an instance of theEnclaveOptions.Builder
avoiding the need to create one manually viaEnclaveOptions.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toenclaveOptions(EnclaveOptions)
.- Parameters:
enclaveOptions
- a consumer that will call methods onEnclaveOptions.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
bootMode
The boot mode that was specified by the AMI. If the value is
uefi-preferred
, the AMI supports both UEFI and Legacy BIOS. ThecurrentInstanceBootMode
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.
- Parameters:
bootMode
- The boot mode that was specified by the AMI. If the value isuefi-preferred
, the AMI supports both UEFI and Legacy BIOS. ThecurrentInstanceBootMode
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.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
bootMode
The boot mode that was specified by the AMI. If the value is
uefi-preferred
, the AMI supports both UEFI and Legacy BIOS. ThecurrentInstanceBootMode
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.
- Parameters:
bootMode
- The boot mode that was specified by the AMI. If the value isuefi-preferred
, the AMI supports both UEFI and Legacy BIOS. ThecurrentInstanceBootMode
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.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
platformDetails
The platform details value for the instance. For more information, see AMI billing information fields in the Amazon EC2 User Guide.
- Parameters:
platformDetails
- The platform details value for the instance. For more information, see AMI billing information fields in the Amazon EC2 User Guide.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
usageOperation
The usage operation value for the instance. For more information, see AMI billing information fields in the Amazon EC2 User Guide.
- Parameters:
usageOperation
- The usage operation value for the instance. For more information, see AMI billing information fields in the Amazon EC2 User Guide.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
usageOperationUpdateTime
The time that the usage operation was last updated.
- Parameters:
usageOperationUpdateTime
- The time that the usage operation was last updated.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
privateDnsNameOptions
The options for the instance hostname.
- Parameters:
privateDnsNameOptions
- The options for the instance hostname.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
privateDnsNameOptions
default Instance.Builder privateDnsNameOptions(Consumer<PrivateDnsNameOptionsResponse.Builder> privateDnsNameOptions) The options for the instance hostname.
This is a convenience method that creates an instance of thePrivateDnsNameOptionsResponse.Builder
avoiding the need to create one manually viaPrivateDnsNameOptionsResponse.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toprivateDnsNameOptions(PrivateDnsNameOptionsResponse)
.- Parameters:
privateDnsNameOptions
- a consumer that will call methods onPrivateDnsNameOptionsResponse.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
ipv6Address
The IPv6 address assigned to the instance.
- Parameters:
ipv6Address
- The IPv6 address assigned to the instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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.- Parameters:
tpmSupport
- If the instance is configured for NitroTPM support, the value isv2.0
. For more information, see NitroTPM in the Amazon EC2 User Guide.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
maintenanceOptions
Provides information on the recovery and maintenance options of your instance.
- Parameters:
maintenanceOptions
- Provides information on the recovery and maintenance options of your instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
maintenanceOptions
default Instance.Builder maintenanceOptions(Consumer<InstanceMaintenanceOptions.Builder> maintenanceOptions) Provides information on the recovery and maintenance options of your instance.
This is a convenience method that creates an instance of theInstanceMaintenanceOptions.Builder
avoiding the need to create one manually viaInstanceMaintenanceOptions.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tomaintenanceOptions(InstanceMaintenanceOptions)
.- Parameters:
maintenanceOptions
- a consumer that will call methods onInstanceMaintenanceOptions.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
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.
- Parameters:
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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
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.
- Parameters:
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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-