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 |
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 |
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 |
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.
|
Instance.Builder |
licenses(Consumer<LicenseConfiguration.Builder>... licenses)
The license configurations.
|
Instance.Builder |
licenses(LicenseConfiguration... licenses)
The license configurations.
|
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 |
privateDnsName(String privateDnsName)
(IPv4 only) The private DNS hostname name assigned to the instance.
|
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)
Specifies whether to enable an instance launched in a VPC to perform NAT.
|
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 |
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 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 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 that creates an instance of theList.Builder
avoiding the need to
create one manually via List#builder()
.
When the Consumer
completes, List.Builder#build()
is called immediately and its
result is passed to #productCodes(List)
.productCodes
- a consumer that will call methods on List.Builder
#productCodes(List)
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 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 that creates an instance of theList.Builder
avoiding the need to create one manually via List#builder()
.
When the Consumer
completes, List.Builder#build()
is called
immediately and its result is passed to #blockDeviceMappings(List)
.blockDeviceMappings
- a consumer that will call methods on List.Builder
#blockDeviceMappings(List)
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 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 that creates an instance of theList.Builder
avoiding
the need to create one manually via List#builder()
.
When the Consumer
completes, List.Builder#build()
is called
immediately and its result is passed to #elasticGpuAssociations(List)
.elasticGpuAssociations
- a consumer that will call methods on List.Builder
#elasticGpuAssociations(List)
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 that creates an instance of the.Builder
avoiding the need to create one manually via #builder()
.
When the Consumer
completes, List.Builder#build()
is
called immediately and its result is passed to #elasticInferenceAcceleratorAssociations(List)
.elasticInferenceAcceleratorAssociations
- a consumer that will call methods on List.Builder
#elasticInferenceAcceleratorAssociations(List)
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 that creates an instance of theList.Builder
avoiding
the need to create one manually via List#builder()
.
When the Consumer
completes, List.Builder#build()
is called
immediately and its result is passed to #networkInterfaces(List)
.networkInterfaces
- a consumer that will call methods on List.Builder
#networkInterfaces(List)
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 that creates an instance of theList.Builder
avoiding the need
to create one manually via List#builder()
.
When the Consumer
completes, List.Builder#build()
is called immediately and
its result is passed to #securityGroups(List)
.securityGroups
- a consumer that will call methods on List.Builder
#securityGroups(List)
Instance.Builder sourceDestCheck(Boolean sourceDestCheck)
Specifies whether to enable an instance launched in a VPC to perform NAT. This controls whether
source/destination checking is enabled on the instance. A value of true
means that checking is
enabled, and false
means that checking is disabled. The value must be false
for the
instance to perform NAT. For more information, see NAT Instances in the
Amazon Virtual Private Cloud User Guide.
sourceDestCheck
- Specifies whether to enable an instance launched in a VPC to perform NAT. This controls whether
source/destination checking is enabled on the instance. A value of true
means that
checking is enabled, and false
means that checking is disabled. The value must be
false
for the instance to perform NAT. For more information, see NAT Instances
in the Amazon Virtual Private Cloud User Guide.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 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 that creates an instance of theList.Builder
avoiding the need to create
one manually via List#builder()
.
When the Consumer
completes, List.Builder#build()
is called immediately and its result
is passed to #tags(List)
.tags
- a consumer that will call methods on List.Builder
#tags(List)
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 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 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 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.
licenses
- The license configurations.Instance.Builder licenses(LicenseConfiguration... licenses)
The license configurations.
licenses
- The license configurations.Instance.Builder licenses(Consumer<LicenseConfiguration.Builder>... licenses)
The license configurations.
This is a convenience that creates an instance of theList.Builder
avoiding the
need to create one manually via List#builder()
.
When the Consumer
completes, List.Builder#build()
is called immediately
and its result is passed to #licenses(List)
.licenses
- a consumer that will call methods on List.Builder
#licenses(List)
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 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)
Copyright © 2020. All rights reserved.