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 Amazon Machine Image (AMI) launch index, which you can use to find this instance in the launch group.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.default Instance.Builder
cpuOptions
(Consumer<CpuOptions.Builder> cpuOptions) The CPU options for the instance.cpuOptions
(CpuOptions cpuOptions) The CPU options for the instance.When the instance was created.The ID of the AMI used to launch the instance.instanceId
(String instanceId) The ID of the instance.instanceType
(String instanceType) The instance type.privateIpAddress
(String privateIpAddress) The private IPv4 address assigned to the instance.publicIpAddress
(String publicIpAddress) The public IPv4 address assigned to the instance.rootDeviceName
(String rootDeviceName) The device name of the root device volume (for example,/dev/sda1
).securityGroups
(Collection<SecurityGroupIdentifier> securityGroups) The security groups for the instance.securityGroups
(Consumer<SecurityGroupIdentifier.Builder>... securityGroups) The security groups for the instance.securityGroups
(SecurityGroupIdentifier... securityGroups) The security groups for the instance.default Instance.Builder
state
(Consumer<InstanceState.Builder> state) Sets the value of the State property for this object.state
(InstanceState state) Sets the value of the State property for this object.When the instance was last updated.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 Amazon Machine Image (AMI) launch index, which you can use to find this instance in the launch group.
- Parameters:
amiLaunchIndex
- The Amazon Machine Image (AMI) launch index, which you can use to find this instance in the launch group.- 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
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:
-
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:
-
createdAt
When the instance was created.
- Parameters:
createdAt
- When the instance was created.- 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.
-
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.
-
publicIpAddress
The public IPv4 address assigned to the instance.
- Parameters:
publicIpAddress
- The public IPv4 address assigned to the instance.- 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.
-
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 theSecurityGroupIdentifier.Builder
avoiding the need to create one manually viaSecurityGroupIdentifier.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tosecurityGroups(List<SecurityGroupIdentifier>)
.- Parameters:
securityGroups
- a consumer that will call methods onSecurityGroupIdentifier.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
state
Sets the value of the State property for this object.- Parameters:
state
- The new value for the State property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
state
Sets the value of the State property for this object. 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:
-
updatedAt
When the instance was last updated.
- Parameters:
updatedAt
- When the instance was last updated.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-