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 Details

    • 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 the InstanceBlockDeviceMapping.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<InstanceBlockDeviceMapping>).

      Parameters:
      blockDeviceMappings - a consumer that will call methods on InstanceBlockDeviceMapping.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • 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 the CpuOptions.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).

      Parameters:
      cpuOptions - a consumer that will call methods on CpuOptions.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • 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 the SecurityGroupIdentifier.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<SecurityGroupIdentifier>).

      Parameters:
      securityGroups - a consumer that will call methods on SecurityGroupIdentifier.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 the 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).

      Parameters:
      state - a consumer that will call methods on InstanceState.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • 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.