Interface InstanceDetails.Builder

All Superinterfaces:
Buildable, CopyableBuilder<InstanceDetails.Builder,InstanceDetails>, SdkBuilder<InstanceDetails.Builder,InstanceDetails>, SdkPojo
Enclosing class:
InstanceDetails

public static interface InstanceDetails.Builder extends SdkPojo, CopyableBuilder<InstanceDetails.Builder,InstanceDetails>
  • Method Details

    • availabilityZone

      InstanceDetails.Builder availabilityZone(String availabilityZone)

      The Availability Zone of the EC2 instance.

      Parameters:
      availabilityZone - The Availability Zone of the EC2 instance.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • iamInstanceProfile

      InstanceDetails.Builder iamInstanceProfile(IamInstanceProfile iamInstanceProfile)

      The profile information of the EC2 instance.

      Parameters:
      iamInstanceProfile - The profile information of the EC2 instance.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • iamInstanceProfile

      default InstanceDetails.Builder iamInstanceProfile(Consumer<IamInstanceProfile.Builder> iamInstanceProfile)

      The profile information of the EC2 instance.

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

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

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

      InstanceDetails.Builder imageDescription(String imageDescription)

      The image description of the EC2 instance.

      Parameters:
      imageDescription - The image description of the EC2 instance.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • imageId

      InstanceDetails.Builder imageId(String imageId)

      The image ID of the EC2 instance.

      Parameters:
      imageId - The image ID of the EC2 instance.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • instanceId

      InstanceDetails.Builder instanceId(String instanceId)

      The ID of the EC2 instance.

      Parameters:
      instanceId - The ID of the EC2 instance.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • instanceState

      InstanceDetails.Builder instanceState(String instanceState)

      The state of the EC2 instance.

      Parameters:
      instanceState - The state of the EC2 instance.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • instanceType

      InstanceDetails.Builder instanceType(String instanceType)

      The type of the EC2 instance.

      Parameters:
      instanceType - The type of the EC2 instance.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • outpostArn

      InstanceDetails.Builder outpostArn(String outpostArn)

      The Amazon Resource Name (ARN) of the Amazon Web Services Outpost. Only applicable to Amazon Web Services Outposts instances.

      Parameters:
      outpostArn - The Amazon Resource Name (ARN) of the Amazon Web Services Outpost. Only applicable to Amazon Web Services Outposts instances.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • launchTime

      InstanceDetails.Builder launchTime(String launchTime)

      The launch time of the EC2 instance.

      Parameters:
      launchTime - The launch time of the EC2 instance.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • networkInterfaces

      InstanceDetails.Builder networkInterfaces(Collection<NetworkInterface> networkInterfaces)

      The elastic network interface information of the EC2 instance.

      Parameters:
      networkInterfaces - The elastic network interface information of the EC2 instance.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • networkInterfaces

      InstanceDetails.Builder networkInterfaces(NetworkInterface... networkInterfaces)

      The elastic network interface information of the EC2 instance.

      Parameters:
      networkInterfaces - The elastic network interface information of the EC2 instance.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • networkInterfaces

      InstanceDetails.Builder networkInterfaces(Consumer<NetworkInterface.Builder>... networkInterfaces)

      The elastic network interface information of the EC2 instance.

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

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

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

      InstanceDetails.Builder platform(String platform)

      The platform of the EC2 instance.

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

      InstanceDetails.Builder productCodes(Collection<ProductCode> productCodes)

      The product code of the EC2 instance.

      Parameters:
      productCodes - The product code of the EC2 instance.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • productCodes

      InstanceDetails.Builder productCodes(ProductCode... productCodes)

      The product code of the EC2 instance.

      Parameters:
      productCodes - The product code of the EC2 instance.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • productCodes

      InstanceDetails.Builder productCodes(Consumer<ProductCode.Builder>... productCodes)

      The product code of the EC2 instance.

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

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

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

      The tags of the EC2 instance.

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

      The tags of the EC2 instance.

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

      The tags of the EC2 instance.

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

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

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