Interface Image.Builder
- All Superinterfaces:
 Buildable,CopyableBuilder<Image.Builder,,Image> SdkBuilder<Image.Builder,,Image> SdkPojo
- Enclosing class:
 Image
@Mutable
@NotThreadSafe
public static interface Image.Builder
extends SdkPojo, CopyableBuilder<Image.Builder,Image> 
- 
Method Summary
Modifier and TypeMethodDescriptiondefault Image.Builderfile(Consumer<ImageFile.Builder> file) Sets the value of the File property for this object.Sets the value of the File property for this object.The ID of an existing image.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields 
- 
Method Details
- 
id
The ID of an existing image. Specify this parameter to keep an existing image.
- Parameters:
 id- The ID of an existing image. Specify this parameter to keep an existing image.- Returns:
 - Returns a reference to this object so that method calls can be chained together.
 
 - 
file
Sets the value of the File property for this object.- Parameters:
 file- The new value for the File property for this object.- Returns:
 - Returns a reference to this object so that method calls can be chained together.
 
 - 
file
Sets the value of the File property for this object. This is a convenience method that creates an instance of theImageFile.Builderavoiding the need to create one manually viaImageFile.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tofile(ImageFile).- Parameters:
 file- a consumer that will call methods onImageFile.Builder- Returns:
 - Returns a reference to this object so that method calls can be chained together.
 - See Also:
 
 
 -