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

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

    • region

      Ami.Builder region(String region)

      The Amazon Web Services Region of the Amazon EC2 AMI.

      Parameters:
      region - The Amazon Web Services Region of the Amazon EC2 AMI.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • image

      Ami.Builder image(String image)

      The AMI ID of the Amazon EC2 AMI.

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

      Ami.Builder name(String name)

      The name of the Amazon EC2 AMI.

      Parameters:
      name - The name of the Amazon EC2 AMI.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • description

      Ami.Builder description(String description)

      The description of the Amazon EC2 AMI. Minimum and maximum length are in characters.

      Parameters:
      description - The description of the Amazon EC2 AMI. Minimum and maximum length are in characters.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • state

      Ami.Builder state(ImageState 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

      default Ami.Builder state(Consumer<ImageState.Builder> state)
      Sets the value of the State property for this object. This is a convenience method that creates an instance of the ImageState.Builder avoiding the need to create one manually via ImageState.builder().

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

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

      Ami.Builder accountId(String accountId)

      The account ID of the owner of the AMI.

      Parameters:
      accountId - The account ID of the owner of the AMI.
      Returns:
      Returns a reference to this object so that method calls can be chained together.