Interface Image.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<Image.Builder,Image>,SdkBuilder<Image.Builder,Image>,SdkPojo
- Enclosing class:
- Image
public static interface Image.Builder extends SdkPojo, CopyableBuilder<Image.Builder,Image>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default Image.Builderfile(Consumer<ImageFile.Builder> file)Sets the value of the File property for this object.Image.Builderfile(ImageFile file)Sets the value of the File property for this object.Image.Builderid(String id)The ID of an existing image.-
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
-
id
Image.Builder id(String 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
Image.Builder file(ImageFile 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
default Image.Builder file(Consumer<ImageFile.Builder> 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:
file(ImageFile)
-
-