public static interface Instance.Builder extends SdkPojo, CopyableBuilder<Instance.Builder,Instance>
| Modifier and Type | Method and Description |
|---|---|
Instance.Builder |
amiLaunchIndex(Integer amiLaunchIndex)
The Amazon Machine Image (AMI) launch index, which you can use to find this instance in the launch group.
|
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.
|
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 |
createdAt(Instant createdAt)
When the instance was created.
|
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 |
instanceType(String instanceType)
The instance type.
|
Instance.Builder |
privateIpAddress(String privateIpAddress)
The private IPv4 address assigned to the instance.
|
Instance.Builder |
publicIpAddress(String publicIpAddress)
The public IPv4 address assigned to the instance.
|
Instance.Builder |
rootDeviceName(String rootDeviceName)
The device name of the root device volume (for example,
/dev/sda1). |
Instance.Builder |
securityGroups(Collection<SecurityGroupIdentifier> securityGroups)
The security groups for the instance.
|
Instance.Builder |
securityGroups(Consumer<SecurityGroupIdentifier.Builder>... securityGroups)
The security groups for the instance.
|
Instance.Builder |
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.
|
Instance.Builder |
state(InstanceState state)
Sets the value of the State property for this object.
|
Instance.Builder |
updatedAt(Instant updatedAt)
When the instance was last updated.
|
equalsBySdkFields, sdkFieldscopyapplyMutation, buildInstance.Builder amiLaunchIndex(Integer amiLaunchIndex)
The Amazon Machine Image (AMI) launch index, which you can use to find this instance in the launch group.
amiLaunchIndex - The Amazon Machine Image (AMI) launch index, which you can use to find this instance in the launch
group.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 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.BuildercpuOptions(CpuOptions)Instance.Builder createdAt(Instant createdAt)
When the instance was created.
createdAt - When the instance was created.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.Instance.Builder privateIpAddress(String privateIpAddress)
The private IPv4 address assigned to the instance.
privateIpAddress - The private IPv4 address assigned to the instance.Instance.Builder publicIpAddress(String publicIpAddress)
The public IPv4 address assigned to the instance.
publicIpAddress - The public IPv4 address assigned to the instance.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 securityGroups(Collection<SecurityGroupIdentifier> securityGroups)
The security groups for the instance.
securityGroups - The security groups for the instance.Instance.Builder securityGroups(SecurityGroupIdentifier... securityGroups)
The security groups for the instance.
securityGroups - The security groups for the instance.Instance.Builder securityGroups(Consumer<SecurityGroupIdentifier.Builder>... 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 via
SecurityGroupIdentifier.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
SecurityGroupIdentifier.Builder#securityGroups(java.util.Collection) Instance.Builder state(InstanceState state)
state - The new value for the State property for this object.default Instance.Builder state(Consumer<InstanceState.Builder> state)
InstanceState.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.Builderstate(InstanceState)Instance.Builder updatedAt(Instant updatedAt)
When the instance was last updated.
updatedAt - When the instance was last updated.Copyright © 2023. All rights reserved.