Interface InstanceDetails.Builder

    • Method Detail

      • 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.
      • 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.
      • 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.
      • tags

        InstanceDetails.Builder tags​(Collection<Tag> 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

        InstanceDetails.Builder tags​(Tag... 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

        InstanceDetails.Builder tags​(Consumer<Tag.Builder>... 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).

        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:
        #tags(java.util.Collection)