public static interface Ami.Builder extends SdkPojo, CopyableBuilder<Ami.Builder,Ami>
Modifier and Type | Method and Description |
---|---|
Ami.Builder |
accountId(String accountId)
The account ID of the owner of the AMI.
|
Ami.Builder |
description(String description)
The description of the EC2 AMI.
|
Ami.Builder |
image(String image)
The AMI ID of the EC2 AMI.
|
Ami.Builder |
name(String name)
The name of the EC2 AMI.
|
Ami.Builder |
region(String region)
The AWS Region of the EC2 AMI.
|
default Ami.Builder |
state(Consumer<ImageState.Builder> state)
Sets the value of the State property for this object.
|
Ami.Builder |
state(ImageState state)
Sets the value of the State property for this object.
|
equalsBySdkFields, sdkFields
copy
applyMutation, build
Ami.Builder region(String region)
The AWS Region of the EC2 AMI.
region
- The AWS Region of the EC2 AMI.Ami.Builder image(String image)
The AMI ID of the EC2 AMI.
image
- The AMI ID of the EC2 AMI.Ami.Builder name(String name)
The name of the EC2 AMI.
name
- The name of the EC2 AMI.Ami.Builder description(String description)
The description of the EC2 AMI. Minimum and maximum length are in characters.
description
- The description of the EC2 AMI. Minimum and maximum length are in characters.Ami.Builder state(ImageState state)
state
- The new value for the State property for this object.default Ami.Builder state(Consumer<ImageState.Builder> state)
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)
.state
- a consumer that will call methods on ImageState.Builder
state(ImageState)
Ami.Builder accountId(String accountId)
The account ID of the owner of the AMI.
accountId
- The account ID of the owner of the AMI.