Interface Ami.Builder
-
- 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 Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description Ami.BuilderaccountId(String accountId)The account ID of the owner of the AMI.Ami.Builderdescription(String description)The description of the Amazon EC2 AMI.Ami.Builderimage(String image)The AMI ID of the Amazon EC2 AMI.Ami.Buildername(String name)The name of the Amazon EC2 AMI.Ami.Builderregion(String region)The Amazon Web Services Region of the Amazon EC2 AMI.default Ami.Builderstate(Consumer<ImageState.Builder> state)Sets the value of the State property for this object.Ami.Builderstate(ImageState state)Sets the value of the State property for this object.-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
-
-
-
Method Detail
-
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 theImageState.Builderavoiding the need to create one manually viaImageState.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tostate(ImageState).- Parameters:
state- a consumer that will call methods onImageState.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
state(ImageState)
-
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.
-
-