Interface Instance.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<Instance.Builder,Instance>,SdkBuilder<Instance.Builder,Instance>,SdkPojo
- Enclosing class:
- Instance
public static interface Instance.Builder extends SdkPojo, CopyableBuilder<Instance.Builder,Instance>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description Instance.BuilderamiLaunchIndex(Integer amiLaunchIndex)The Amazon Machine Image (AMI) launch index, which you can use to find this instance in the launch group.Instance.BuilderblockDeviceMappings(Collection<InstanceBlockDeviceMapping> blockDeviceMappings)Any block device mapping entries for the instance.Instance.BuilderblockDeviceMappings(Consumer<InstanceBlockDeviceMapping.Builder>... blockDeviceMappings)Any block device mapping entries for the instance.Instance.BuilderblockDeviceMappings(InstanceBlockDeviceMapping... blockDeviceMappings)Any block device mapping entries for the instance.default Instance.BuildercpuOptions(Consumer<CpuOptions.Builder> cpuOptions)The CPU options for the instance.Instance.BuildercpuOptions(CpuOptions cpuOptions)The CPU options for the instance.Instance.BuildercreatedAt(Instant createdAt)When the instance was created.Instance.BuilderimageId(String imageId)The ID of the AMI used to launch the instance.Instance.BuilderinstanceId(String instanceId)The ID of the instance.Instance.BuilderinstanceType(String instanceType)The instance type.Instance.BuilderprivateIpAddress(String privateIpAddress)The private IPv4 address assigned to the instance.Instance.BuilderpublicIpAddress(String publicIpAddress)The public IPv4 address assigned to the instance.Instance.BuilderrootDeviceName(String rootDeviceName)The device name of the root device volume (for example,/dev/sda1).Instance.BuildersecurityGroups(Collection<SecurityGroupIdentifier> securityGroups)The security groups for the instance.Instance.BuildersecurityGroups(Consumer<SecurityGroupIdentifier.Builder>... securityGroups)The security groups for the instance.Instance.BuildersecurityGroups(SecurityGroupIdentifier... securityGroups)The security groups for the instance.default Instance.Builderstate(Consumer<InstanceState.Builder> state)Sets the value of the State property for this object.Instance.Builderstate(InstanceState state)Sets the value of the State property for this object.Instance.BuilderupdatedAt(Instant updatedAt)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 Detail
-
amiLaunchIndex
Instance.Builder amiLaunchIndex(Integer 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
Instance.Builder blockDeviceMappings(Collection<InstanceBlockDeviceMapping> 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(InstanceBlockDeviceMapping... 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.Builderavoiding the need to create one manually viaInstanceBlockDeviceMapping.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#blockDeviceMappings(List.) - 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:
#blockDeviceMappings(java.util.Collection)
-
cpuOptions
Instance.Builder cpuOptions(CpuOptions 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
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.Builderavoiding the need to create one manually viaCpuOptions.builder().When the
Consumercompletes,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:
cpuOptions(CpuOptions)
-
createdAt
Instance.Builder createdAt(Instant 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
Instance.Builder imageId(String 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
Instance.Builder instanceId(String 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
Instance.Builder instanceType(String 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
Instance.Builder privateIpAddress(String 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
Instance.Builder publicIpAddress(String 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
Instance.Builder rootDeviceName(String 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
Instance.Builder securityGroups(Collection<SecurityGroupIdentifier> 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
Instance.Builder securityGroups(SecurityGroupIdentifier... 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
Instance.Builder securityGroups(Consumer<SecurityGroupIdentifier.Builder>... securityGroups)
The security groups for the instance.
This is a convenience method that creates an instance of theSecurityGroupIdentifier.Builderavoiding the need to create one manually viaSecurityGroupIdentifier.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#securityGroups(List.) - 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:
#securityGroups(java.util.Collection)
-
state
Instance.Builder state(InstanceState 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
default Instance.Builder state(Consumer<InstanceState.Builder> state)
Sets the value of the State property for this object. This is a convenience method that creates an instance of theInstanceState.Builderavoiding the need to create one manually viaInstanceState.builder().When the
Consumercompletes,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:
state(InstanceState)
-
updatedAt
Instance.Builder updatedAt(Instant 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.
-
-