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 Details

    • id

      The unique identifier for the instance in Amazon EMR.

      Parameters:
      id - The unique identifier for the instance in Amazon EMR.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • ec2InstanceId

      Instance.Builder ec2InstanceId(String ec2InstanceId)

      The unique identifier of the instance in Amazon EC2.

      Parameters:
      ec2InstanceId - The unique identifier of the instance in Amazon EC2.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • publicDnsName

      Instance.Builder publicDnsName(String publicDnsName)

      The public DNS name of the instance.

      Parameters:
      publicDnsName - The public DNS name of 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 IP address of the instance.

      Parameters:
      publicIpAddress - The public IP address of the instance.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • privateDnsName

      Instance.Builder privateDnsName(String privateDnsName)

      The private DNS name of the instance.

      Parameters:
      privateDnsName - The private DNS name of the instance.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • privateIpAddress

      Instance.Builder privateIpAddress(String privateIpAddress)

      The private IP address of the instance.

      Parameters:
      privateIpAddress - The private IP address of the instance.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • status

      The current status of the instance.

      Parameters:
      status - The current status of the instance.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • status

      The current status of the instance.

      This is a convenience method that creates an instance of the InstanceStatus.Builder avoiding the need to create one manually via InstanceStatus.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to status(InstanceStatus).

      Parameters:
      status - a consumer that will call methods on InstanceStatus.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • instanceGroupId

      Instance.Builder instanceGroupId(String instanceGroupId)

      The identifier of the instance group to which this instance belongs.

      Parameters:
      instanceGroupId - The identifier of the instance group to which this instance belongs.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • instanceFleetId

      Instance.Builder instanceFleetId(String instanceFleetId)

      The unique identifier of the instance fleet to which an Amazon EC2 instance belongs.

      Parameters:
      instanceFleetId - The unique identifier of the instance fleet to which an Amazon EC2 instance belongs.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • market

      Instance.Builder market(String market)

      The instance purchasing option. Valid values are ON_DEMAND or SPOT.

      Parameters:
      market - The instance purchasing option. Valid values are ON_DEMAND or SPOT.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • market

      Instance.Builder market(MarketType market)

      The instance purchasing option. Valid values are ON_DEMAND or SPOT.

      Parameters:
      market - The instance purchasing option. Valid values are ON_DEMAND or SPOT.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • instanceType

      Instance.Builder instanceType(String instanceType)

      The Amazon EC2 instance type, for example m3.xlarge.

      Parameters:
      instanceType - The Amazon EC2 instance type, for example m3.xlarge.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • ebsVolumes

      Instance.Builder ebsVolumes(Collection<EbsVolume> ebsVolumes)

      The list of Amazon EBS volumes that are attached to this instance.

      Parameters:
      ebsVolumes - The list of Amazon EBS volumes that are attached to this instance.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • ebsVolumes

      Instance.Builder ebsVolumes(EbsVolume... ebsVolumes)

      The list of Amazon EBS volumes that are attached to this instance.

      Parameters:
      ebsVolumes - The list of Amazon EBS volumes that are attached to this instance.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • ebsVolumes

      Instance.Builder ebsVolumes(Consumer<EbsVolume.Builder>... ebsVolumes)

      The list of Amazon EBS volumes that are attached to this instance.

      This is a convenience method that creates an instance of the EbsVolume.Builder avoiding the need to create one manually via EbsVolume.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to ebsVolumes(List<EbsVolume>).

      Parameters:
      ebsVolumes - a consumer that will call methods on EbsVolume.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also: