Interface Ami.Builder
- All Superinterfaces:
- Buildable,- CopyableBuilder<Ami.Builder,,- Ami> - SdkBuilder<Ami.Builder,,- Ami> - SdkPojo
- Enclosing class:
- Ami
@Mutable
@NotThreadSafe
public static interface Ami.Builder
extends SdkPojo, CopyableBuilder<Ami.Builder,Ami> 
- 
Method SummaryModifier and TypeMethodDescriptionThe account ID of the owner of the AMI.description(String description) The description of the Amazon EC2 AMI.The AMI ID of the Amazon EC2 AMI.The name of the Amazon EC2 AMI.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.state(ImageState state) Sets the value of the State property for this object.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuildercopyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilderapplyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojoequalsBySdkFields, sdkFieldNameToField, sdkFields
- 
Method Details- 
regionThe 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.
 
- 
imageThe 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.
 
- 
nameThe 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.
 
- 
descriptionThe 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.
 
- 
stateSets 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.
 
- 
stateSets 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 on- ImageState.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
 
- 
accountIdThe 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.
 
 
-