public static interface Instance.Builder extends SdkPojo, CopyableBuilder<Instance.Builder,Instance>
Modifier and Type | Method and Description |
---|---|
Instance.Builder |
amiLaunchIndex(Integer amiLaunchIndex)
The AMI launch index, which can be used to find this instance in the launch group.
|
Instance.Builder |
architecture(ArchitectureValues architecture)
The architecture of the image.
|
Instance.Builder |
architecture(String architecture)
The architecture of the image.
|
Instance.Builder |
blockDeviceMappings(Collection<InstanceBlockDeviceMapping> blockDeviceMappings)
Any block device mapping entries for the instance.
|
Instance.Builder |
blockDeviceMappings(Consumer<InstanceBlockDeviceMapping.Builder>... blockDeviceMappings)
Any block device mapping entries for the instance.
|
Instance.Builder |
blockDeviceMappings(InstanceBlockDeviceMapping... blockDeviceMappings)
Any block device mapping entries for the instance.
|
Instance.Builder |
bootMode(BootModeValues bootMode)
The boot mode of the instance.
|
Instance.Builder |
bootMode(String bootMode)
The boot mode of the instance.
|
Instance.Builder |
capacityReservationId(String capacityReservationId)
The ID of the Capacity Reservation.
|
Instance.Builder |
capacityReservationSpecification(CapacityReservationSpecificationResponse capacityReservationSpecification)
Information about the Capacity Reservation targeting option.
|
default Instance.Builder |
capacityReservationSpecification(Consumer<CapacityReservationSpecificationResponse.Builder> capacityReservationSpecification)
Information about the Capacity Reservation targeting option.
|
Instance.Builder |
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.
|
Instance.Builder |
cpuOptions(CpuOptions cpuOptions)
The CPU options for the instance.
|
Instance.Builder |
ebsOptimized(Boolean ebsOptimized)
Indicates whether the instance is optimized for Amazon EBS I/O.
|
Instance.Builder |
elasticGpuAssociations(Collection<ElasticGpuAssociation> elasticGpuAssociations)
The Elastic GPU associated with the instance.
|
Instance.Builder |
elasticGpuAssociations(Consumer<ElasticGpuAssociation.Builder>... elasticGpuAssociations)
The Elastic GPU associated with the instance.
|
Instance.Builder |
elasticGpuAssociations(ElasticGpuAssociation... elasticGpuAssociations)
The Elastic GPU associated with the instance.
|
Instance.Builder |
elasticInferenceAcceleratorAssociations(Collection<ElasticInferenceAcceleratorAssociation> elasticInferenceAcceleratorAssociations)
The elastic inference accelerator associated with the instance.
|
Instance.Builder |
elasticInferenceAcceleratorAssociations(Consumer<ElasticInferenceAcceleratorAssociation.Builder>... elasticInferenceAcceleratorAssociations)
The elastic inference accelerator associated with the instance.
|
Instance.Builder |
elasticInferenceAcceleratorAssociations(ElasticInferenceAcceleratorAssociation... elasticInferenceAcceleratorAssociations)
The elastic inference accelerator associated with the instance.
|
Instance.Builder |
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.
|
Instance.Builder |
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.
|
Instance.Builder |
hibernationOptions(HibernationOptions hibernationOptions)
Indicates whether the instance is enabled for hibernation.
|
Instance.Builder |
hypervisor(HypervisorType hypervisor)
The hypervisor type of the instance.
|
Instance.Builder |
hypervisor(String 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.
|
Instance.Builder |
iamInstanceProfile(IamInstanceProfile iamInstanceProfile)
The IAM instance profile associated with the instance, if applicable.
|
Instance.Builder |
imageId(String imageId)
The ID of the AMI used to launch the instance.
|
Instance.Builder |
instanceId(String instanceId)
The ID of the instance.
|
Instance.Builder |
instanceLifecycle(InstanceLifecycleType instanceLifecycle)
Indicates whether this is a Spot Instance or a Scheduled Instance.
|
Instance.Builder |
instanceLifecycle(String instanceLifecycle)
Indicates whether this is a Spot Instance or a Scheduled Instance.
|
Instance.Builder |
instanceType(InstanceType instanceType)
The instance type.
|
Instance.Builder |
instanceType(String instanceType)
The instance type.
|
Instance.Builder |
ipv6Address(String ipv6Address)
The IPv6 address assigned to the instance.
|
Instance.Builder |
kernelId(String kernelId)
The kernel associated with this instance, if applicable.
|
Instance.Builder |
keyName(String keyName)
The name of the key pair, if this instance was launched with an associated key pair.
|
Instance.Builder |
launchTime(Instant launchTime)
The time the instance was launched.
|
Instance.Builder |
licenses(Collection<LicenseConfiguration> licenses)
The license configurations for the instance.
|
Instance.Builder |
licenses(Consumer<LicenseConfiguration.Builder>... licenses)
The license configurations for the instance.
|
Instance.Builder |
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.
|
Instance.Builder |
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.
|
Instance.Builder |
metadataOptions(InstanceMetadataOptionsResponse metadataOptions)
The metadata options for the instance.
|
default Instance.Builder |
monitoring(Consumer<Monitoring.Builder> monitoring)
The monitoring for the instance.
|
Instance.Builder |
monitoring(Monitoring monitoring)
The monitoring for the instance.
|
Instance.Builder |
networkInterfaces(Collection<InstanceNetworkInterface> networkInterfaces)
[EC2-VPC] The network interfaces for the instance.
|
Instance.Builder |
networkInterfaces(Consumer<InstanceNetworkInterface.Builder>... networkInterfaces)
[EC2-VPC] The network interfaces for the instance.
|
Instance.Builder |
networkInterfaces(InstanceNetworkInterface... networkInterfaces)
[EC2-VPC] The network interfaces for the instance.
|
Instance.Builder |
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.
|
Instance.Builder |
placement(Placement placement)
The location where the instance launched, if applicable.
|
Instance.Builder |
platform(PlatformValues platform)
The value is
Windows for Windows instances; otherwise blank. |
Instance.Builder |
platform(String platform)
The value is
Windows for Windows instances; otherwise blank. |
Instance.Builder |
platformDetails(String platformDetails)
The platform details value for the instance.
|
Instance.Builder |
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.
|
Instance.Builder |
privateDnsNameOptions(PrivateDnsNameOptionsResponse privateDnsNameOptions)
The options for the instance hostname.
|
Instance.Builder |
privateIpAddress(String privateIpAddress)
The private IPv4 address assigned to the instance.
|
Instance.Builder |
productCodes(Collection<ProductCode> productCodes)
The product codes attached to this instance, if applicable.
|
Instance.Builder |
productCodes(Consumer<ProductCode.Builder>... productCodes)
The product codes attached to this instance, if applicable.
|
Instance.Builder |
productCodes(ProductCode... productCodes)
The product codes attached to this instance, if applicable.
|
Instance.Builder |
publicDnsName(String publicDnsName)
(IPv4 only) The public DNS name assigned to the instance.
|
Instance.Builder |
publicIpAddress(String publicIpAddress)
The public IPv4 address, or the Carrier IP address assigned to the instance, if applicable.
|
Instance.Builder |
ramdiskId(String ramdiskId)
The RAM disk associated with this instance, if applicable.
|
Instance.Builder |
rootDeviceName(String rootDeviceName)
The device name of the root device volume (for example,
/dev/sda1 ). |
Instance.Builder |
rootDeviceType(DeviceType rootDeviceType)
The root device type used by the AMI.
|
Instance.Builder |
rootDeviceType(String rootDeviceType)
The root device type used by the AMI.
|
Instance.Builder |
securityGroups(Collection<GroupIdentifier> securityGroups)
The security groups for the instance.
|
Instance.Builder |
securityGroups(Consumer<GroupIdentifier.Builder>... securityGroups)
The security groups for the instance.
|
Instance.Builder |
securityGroups(GroupIdentifier... securityGroups)
The security groups for the instance.
|
Instance.Builder |
sourceDestCheck(Boolean sourceDestCheck)
Indicates whether source/destination checking is enabled.
|
Instance.Builder |
spotInstanceRequestId(String spotInstanceRequestId)
If the request is a Spot Instance request, the ID of the request.
|
Instance.Builder |
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.
|
Instance.Builder |
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.
|
Instance.Builder |
stateReason(StateReason stateReason)
The reason for the most recent state transition.
|
Instance.Builder |
stateTransitionReason(String stateTransitionReason)
The reason for the most recent state transition.
|
Instance.Builder |
subnetId(String subnetId)
[EC2-VPC] The ID of the subnet in which the instance is running.
|
Instance.Builder |
tags(Collection<Tag> tags)
Any tags assigned to the instance.
|
Instance.Builder |
tags(Consumer<Tag.Builder>... tags)
Any tags assigned to the instance.
|
Instance.Builder |
tags(Tag... tags)
Any tags assigned to the instance.
|
Instance.Builder |
tpmSupport(String tpmSupport)
If the instance is configured for NitroTPM support, the value is
v2.0 . |
Instance.Builder |
usageOperation(String usageOperation)
The usage operation value for the instance.
|
Instance.Builder |
usageOperationUpdateTime(Instant usageOperationUpdateTime)
The time that the usage operation was last updated.
|
Instance.Builder |
virtualizationType(String virtualizationType)
The virtualization type of the instance.
|
Instance.Builder |
virtualizationType(VirtualizationType virtualizationType)
The virtualization type of the instance.
|
Instance.Builder |
vpcId(String vpcId)
[EC2-VPC] The ID of the VPC in which the instance is running.
|
equalsBySdkFields, sdkFields
copy
applyMutation, build
Instance.Builder amiLaunchIndex(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.Instance.Builder imageId(String imageId)
The ID of the AMI used to launch the instance.
imageId
- The ID of the AMI used to launch the instance.Instance.Builder instanceId(String instanceId)
The ID of the instance.
instanceId
- The ID of the instance.Instance.Builder instanceType(String instanceType)
The instance type.
instanceType
- The instance type.InstanceType
,
InstanceType
Instance.Builder instanceType(InstanceType instanceType)
The instance type.
instanceType
- The instance type.InstanceType
,
InstanceType
Instance.Builder kernelId(String kernelId)
The kernel associated with this instance, if applicable.
kernelId
- The kernel associated with this instance, if applicable.Instance.Builder keyName(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.Instance.Builder launchTime(Instant launchTime)
The time the instance was launched.
launchTime
- The time the instance was launched.Instance.Builder monitoring(Monitoring monitoring)
The monitoring for the instance.
monitoring
- The monitoring for the instance.default Instance.Builder monitoring(Consumer<Monitoring.Builder> 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 via Monitoring.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called immediately and its result
is passed to monitoring(Monitoring)
.
monitoring
- a consumer that will call methods on Monitoring.Builder
monitoring(Monitoring)
Instance.Builder placement(Placement placement)
The location where the instance launched, if applicable.
placement
- The location where the instance launched, if applicable.default Instance.Builder placement(Consumer<Placement.Builder> 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 via Placement.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called immediately and its result
is passed to placement(Placement)
.
placement
- a consumer that will call methods on Placement.Builder
placement(Placement)
Instance.Builder platform(String platform)
The value is Windows
for Windows instances; otherwise blank.
platform
- The value is Windows
for Windows instances; otherwise blank.PlatformValues
,
PlatformValues
Instance.Builder platform(PlatformValues platform)
The value is Windows
for Windows instances; otherwise blank.
platform
- The value is Windows
for Windows instances; otherwise blank.PlatformValues
,
PlatformValues
Instance.Builder privateDnsName(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.
[EC2-VPC] 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.
[EC2-VPC] 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.
Instance.Builder privateIpAddress(String privateIpAddress)
The private IPv4 address assigned to the instance.
privateIpAddress
- The private IPv4 address assigned to the instance.Instance.Builder productCodes(Collection<ProductCode> productCodes)
The product codes attached to this instance, if applicable.
productCodes
- The product codes attached to this instance, if applicable.Instance.Builder productCodes(ProductCode... productCodes)
The product codes attached to this instance, if applicable.
productCodes
- The product codes attached to this instance, if applicable.Instance.Builder productCodes(Consumer<ProductCode.Builder>... 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 via ProductCode.builder()
.
When the Consumer
completes,
SdkBuilder.build()
is called immediately and its
result is passed to #productCodes(List
.
productCodes
- a consumer that will call methods on
ProductCode.Builder
#productCodes(java.util.Collection)
Instance.Builder publicDnsName(String publicDnsName)
(IPv4 only) The public DNS name assigned to the instance. This name is not available until the instance
enters the running
state. For EC2-VPC, 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. For EC2-VPC, this name is only available if you've
enabled DNS hostnames for your VPC.Instance.Builder publicIpAddress(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.
Instance.Builder ramdiskId(String ramdiskId)
The RAM disk associated with this instance, if applicable.
ramdiskId
- The RAM disk associated with this instance, if applicable.Instance.Builder state(InstanceState state)
The current state of the instance.
state
- The current state of the instance.default Instance.Builder state(Consumer<InstanceState.Builder> 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 via InstanceState.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called immediately and its
result is passed to state(InstanceState)
.
state
- a consumer that will call methods on InstanceState.Builder
state(InstanceState)
Instance.Builder stateTransitionReason(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.Instance.Builder subnetId(String subnetId)
[EC2-VPC] The ID of the subnet in which the instance is running.
subnetId
- [EC2-VPC] The ID of the subnet in which the instance is running.Instance.Builder vpcId(String vpcId)
[EC2-VPC] The ID of the VPC in which the instance is running.
vpcId
- [EC2-VPC] The ID of the VPC in which the instance is running.Instance.Builder architecture(String architecture)
The architecture of the image.
architecture
- The architecture of the image.ArchitectureValues
,
ArchitectureValues
Instance.Builder architecture(ArchitectureValues architecture)
The architecture of the image.
architecture
- The architecture of the image.ArchitectureValues
,
ArchitectureValues
Instance.Builder blockDeviceMappings(Collection<InstanceBlockDeviceMapping> blockDeviceMappings)
Any block device mapping entries for the instance.
blockDeviceMappings
- Any block device mapping entries for the instance.Instance.Builder blockDeviceMappings(InstanceBlockDeviceMapping... blockDeviceMappings)
Any block device mapping entries for the instance.
blockDeviceMappings
- Any block device mapping entries for the instance.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 via
InstanceBlockDeviceMapping.builder()
.
When the Consumer
completes,
SdkBuilder.build()
is called
immediately and its result is passed to #blockDeviceMappings(List
.
blockDeviceMappings
- a consumer that will call methods on
InstanceBlockDeviceMapping.Builder
#blockDeviceMappings(java.util.Collection)
Instance.Builder clientToken(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.Instance.Builder ebsOptimized(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.Instance.Builder enaSupport(Boolean enaSupport)
Specifies whether enhanced networking with ENA is enabled.
enaSupport
- Specifies whether enhanced networking with ENA is enabled.Instance.Builder hypervisor(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
,
HypervisorType
Instance.Builder hypervisor(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
,
HypervisorType
Instance.Builder iamInstanceProfile(IamInstanceProfile iamInstanceProfile)
The IAM instance profile associated with the instance, if applicable.
iamInstanceProfile
- The IAM instance profile associated with the instance, if applicable.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 via IamInstanceProfile.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called immediately and its
result is passed to iamInstanceProfile(IamInstanceProfile)
.
iamInstanceProfile
- a consumer that will call methods on IamInstanceProfile.Builder
iamInstanceProfile(IamInstanceProfile)
Instance.Builder instanceLifecycle(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
,
InstanceLifecycleType
Instance.Builder instanceLifecycle(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
,
InstanceLifecycleType
Instance.Builder elasticGpuAssociations(Collection<ElasticGpuAssociation> elasticGpuAssociations)
The Elastic GPU associated with the instance.
elasticGpuAssociations
- The Elastic GPU associated with the instance.Instance.Builder elasticGpuAssociations(ElasticGpuAssociation... elasticGpuAssociations)
The Elastic GPU associated with the instance.
elasticGpuAssociations
- The Elastic GPU associated with the instance.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 via ElasticGpuAssociation.builder()
.
When the Consumer
completes,
SdkBuilder.build()
is called immediately
and its result is passed to #elasticGpuAssociations(List
.
elasticGpuAssociations
- a consumer that will call methods on
ElasticGpuAssociation.Builder
#elasticGpuAssociations(java.util.Collection)
Instance.Builder elasticInferenceAcceleratorAssociations(Collection<ElasticInferenceAcceleratorAssociation> elasticInferenceAcceleratorAssociations)
The elastic inference accelerator associated with the instance.
elasticInferenceAcceleratorAssociations
- The elastic inference accelerator associated with the instance.Instance.Builder elasticInferenceAcceleratorAssociations(ElasticInferenceAcceleratorAssociation... elasticInferenceAcceleratorAssociations)
The elastic inference accelerator associated with the instance.
elasticInferenceAcceleratorAssociations
- The elastic inference accelerator associated with the instance.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 via
ElasticInferenceAcceleratorAssociation.builder()
.
When the Consumer
completes,
SdkBuilder.build()
is
called immediately and its result is passed to #elasticInferenceAcceleratorAssociations(List
.
elasticInferenceAcceleratorAssociations
- a consumer that will call methods on
ElasticInferenceAcceleratorAssociation.Builder
#elasticInferenceAcceleratorAssociations(java.util.Collection)
Instance.Builder networkInterfaces(Collection<InstanceNetworkInterface> networkInterfaces)
[EC2-VPC] The network interfaces for the instance.
networkInterfaces
- [EC2-VPC] The network interfaces for the instance.Instance.Builder networkInterfaces(InstanceNetworkInterface... networkInterfaces)
[EC2-VPC] The network interfaces for the instance.
networkInterfaces
- [EC2-VPC] The network interfaces for the instance.Instance.Builder networkInterfaces(Consumer<InstanceNetworkInterface.Builder>... networkInterfaces)
[EC2-VPC] 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 via InstanceNetworkInterface.builder()
.
When the Consumer
completes,
SdkBuilder.build()
is called
immediately and its result is passed to #networkInterfaces(List
.
networkInterfaces
- a consumer that will call methods on
InstanceNetworkInterface.Builder
#networkInterfaces(java.util.Collection)
Instance.Builder outpostArn(String outpostArn)
The Amazon Resource Name (ARN) of the Outpost.
outpostArn
- The Amazon Resource Name (ARN) of the Outpost.Instance.Builder rootDeviceName(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
).Instance.Builder rootDeviceType(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
,
DeviceType
Instance.Builder rootDeviceType(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
,
DeviceType
Instance.Builder securityGroups(Collection<GroupIdentifier> securityGroups)
The security groups for the instance.
securityGroups
- The security groups for the instance.Instance.Builder securityGroups(GroupIdentifier... securityGroups)
The security groups for the instance.
securityGroups
- The security groups for the instance.Instance.Builder securityGroups(Consumer<GroupIdentifier.Builder>... 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 via GroupIdentifier.builder()
.
When the Consumer
completes,
SdkBuilder.build()
is called immediately and
its result is passed to #securityGroups(List
.
securityGroups
- a consumer that will call methods on
GroupIdentifier.Builder
#securityGroups(java.util.Collection)
Instance.Builder sourceDestCheck(Boolean sourceDestCheck)
Indicates whether source/destination checking is enabled.
sourceDestCheck
- Indicates whether source/destination checking is enabled.Instance.Builder spotInstanceRequestId(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.Instance.Builder sriovNetSupport(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.Instance.Builder stateReason(StateReason stateReason)
The reason for the most recent state transition.
stateReason
- The reason for the most recent state transition.default Instance.Builder stateReason(Consumer<StateReason.Builder> 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 via StateReason.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called immediately and its result
is passed to stateReason(StateReason)
.
stateReason
- a consumer that will call methods on StateReason.Builder
stateReason(StateReason)
Instance.Builder tags(Collection<Tag> tags)
Any tags assigned to the instance.
tags
- Any tags assigned to the instance.Instance.Builder tags(Tag... tags)
Any tags assigned to the instance.
tags
- Any tags assigned to the instance.Instance.Builder tags(Consumer<Tag.Builder>... 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 via
Tag.builder()
.
When the Consumer
completes, SdkBuilder.build()
is
called immediately and its result is passed to #tags(List
.
tags
- a consumer that will call methods on Tag.Builder
#tags(java.util.Collection)
Instance.Builder virtualizationType(String virtualizationType)
The virtualization type of the instance.
virtualizationType
- The virtualization type of the instance.VirtualizationType
,
VirtualizationType
Instance.Builder virtualizationType(VirtualizationType virtualizationType)
The virtualization type of the instance.
virtualizationType
- The virtualization type of the instance.VirtualizationType
,
VirtualizationType
Instance.Builder cpuOptions(CpuOptions cpuOptions)
The CPU options for the instance.
cpuOptions
- The CPU options for the instance.default Instance.Builder cpuOptions(Consumer<CpuOptions.Builder> 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 via CpuOptions.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called immediately and its result
is passed to cpuOptions(CpuOptions)
.
cpuOptions
- a consumer that will call methods on CpuOptions.Builder
cpuOptions(CpuOptions)
Instance.Builder capacityReservationId(String capacityReservationId)
The ID of the Capacity Reservation.
capacityReservationId
- The ID of the Capacity Reservation.Instance.Builder capacityReservationSpecification(CapacityReservationSpecificationResponse capacityReservationSpecification)
Information about the Capacity Reservation targeting option.
capacityReservationSpecification
- Information about the Capacity Reservation targeting option.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 via
CapacityReservationSpecificationResponse.builder()
.
When the Consumer
completes, SdkBuilder.build()
is
called immediately and its result is passed to
capacityReservationSpecification(CapacityReservationSpecificationResponse)
.
capacityReservationSpecification
- a consumer that will call methods on CapacityReservationSpecificationResponse.Builder
capacityReservationSpecification(CapacityReservationSpecificationResponse)
Instance.Builder hibernationOptions(HibernationOptions hibernationOptions)
Indicates whether the instance is enabled for hibernation.
hibernationOptions
- Indicates whether the instance is enabled for hibernation.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 via HibernationOptions.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called immediately and its
result is passed to hibernationOptions(HibernationOptions)
.
hibernationOptions
- a consumer that will call methods on HibernationOptions.Builder
hibernationOptions(HibernationOptions)
Instance.Builder licenses(Collection<LicenseConfiguration> licenses)
The license configurations for the instance.
licenses
- The license configurations for the instance.Instance.Builder licenses(LicenseConfiguration... licenses)
The license configurations for the instance.
licenses
- The license configurations for the instance.Instance.Builder licenses(Consumer<LicenseConfiguration.Builder>... 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 via LicenseConfiguration.builder()
.
When the Consumer
completes,
SdkBuilder.build()
is called immediately
and its result is passed to #licenses(List
.
licenses
- a consumer that will call methods on
LicenseConfiguration.Builder
#licenses(java.util.Collection)
Instance.Builder metadataOptions(InstanceMetadataOptionsResponse metadataOptions)
The metadata options for the instance.
metadataOptions
- The metadata options for the instance.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 via InstanceMetadataOptionsResponse.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called
immediately and its result is passed to metadataOptions(InstanceMetadataOptionsResponse)
.
metadataOptions
- a consumer that will call methods on InstanceMetadataOptionsResponse.Builder
metadataOptions(InstanceMetadataOptionsResponse)
Instance.Builder enclaveOptions(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.default Instance.Builder enclaveOptions(Consumer<EnclaveOptions.Builder> 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 via EnclaveOptions.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called immediately and its
result is passed to enclaveOptions(EnclaveOptions)
.
enclaveOptions
- a consumer that will call methods on EnclaveOptions.Builder
enclaveOptions(EnclaveOptions)
Instance.Builder bootMode(String bootMode)
The boot mode of the instance. For more information, see Boot modes in the Amazon EC2 User Guide.
bootMode
- The boot mode of the instance. For more information, see Boot modes in the
Amazon EC2 User Guide.BootModeValues
,
BootModeValues
Instance.Builder bootMode(BootModeValues bootMode)
The boot mode of the instance. For more information, see Boot modes in the Amazon EC2 User Guide.
bootMode
- The boot mode of the instance. For more information, see Boot modes in the
Amazon EC2 User Guide.BootModeValues
,
BootModeValues
Instance.Builder platformDetails(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.Instance.Builder usageOperation(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.Instance.Builder usageOperationUpdateTime(Instant usageOperationUpdateTime)
The time that the usage operation was last updated.
usageOperationUpdateTime
- The time that the usage operation was last updated.Instance.Builder privateDnsNameOptions(PrivateDnsNameOptionsResponse privateDnsNameOptions)
The options for the instance hostname.
privateDnsNameOptions
- The options for the instance hostname.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 via PrivateDnsNameOptionsResponse.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called
immediately and its result is passed to privateDnsNameOptions(PrivateDnsNameOptionsResponse)
.
privateDnsNameOptions
- a consumer that will call methods on PrivateDnsNameOptionsResponse.Builder
privateDnsNameOptions(PrivateDnsNameOptionsResponse)
Instance.Builder ipv6Address(String ipv6Address)
The IPv6 address assigned to the instance.
ipv6Address
- The IPv6 address assigned to the instance.Instance.Builder tpmSupport(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.Instance.Builder maintenanceOptions(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.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 via InstanceMaintenanceOptions.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called immediately
and its result is passed to maintenanceOptions(InstanceMaintenanceOptions)
.
maintenanceOptions
- a consumer that will call methods on InstanceMaintenanceOptions.Builder
maintenanceOptions(InstanceMaintenanceOptions)
Copyright © 2023. All rights reserved.