Interface InstanceImageMetadata.Builder

    • Method Detail

      • instanceId

        InstanceImageMetadata.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.
      • launchTime

        InstanceImageMetadata.Builder launchTime​(Instant launchTime)

        The time the instance was launched.

        Parameters:
        launchTime - The time the instance was launched.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • availabilityZone

        InstanceImageMetadata.Builder availabilityZone​(String availabilityZone)

        The Availability Zone or Local Zone of the instance.

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

        InstanceImageMetadata.Builder zoneId​(String zoneId)

        The ID of the Availability Zone or Local Zone of the instance.

        Parameters:
        zoneId - The ID of the Availability Zone or Local Zone of the instance.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • state

        InstanceImageMetadata.Builder state​(InstanceState state)

        The current state of the instance.

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

        InstanceImageMetadata.Builder ownerId​(String ownerId)

        The ID of the Amazon Web Services account that owns the instance.

        Parameters:
        ownerId - The ID of the Amazon Web Services account that owns the instance.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • tags

        InstanceImageMetadata.Builder tags​(Collection<Tag> tags)

        Any tags assigned to the instance.

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

        InstanceImageMetadata.Builder tags​(Tag... tags)

        Any tags assigned to the instance.

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

        InstanceImageMetadata.Builder tags​(Consumer<Tag.Builder>... tags)

        Any tags assigned to the 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)
      • imageMetadata

        InstanceImageMetadata.Builder imageMetadata​(ImageMetadata imageMetadata)

        Information about the AMI used to launch the instance.

        Parameters:
        imageMetadata - Information about the AMI used to launch the instance.
        Returns:
        Returns a reference to this object so that method calls can be chained together.