Interface Ami.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<Ami.Builder,
,Ami> SdkBuilder<Ami.Builder,
,Ami> SdkPojo
- Enclosing class:
Ami
-
Method Summary
Modifier 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.Builder
state
(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.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 Details
-
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
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
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
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
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
Sets the value of the State property for this object. This is a convenience method that creates an instance of theImageState.Builder
avoiding the need to create one manually viaImageState.builder()
.When the
Consumer
completes,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:
-
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.
-