Interface Image.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<Image.Builder,
,Image> SdkBuilder<Image.Builder,
,Image> SdkPojo
- Enclosing class:
Image
-
Method Summary
Modifier and TypeMethodDescriptiondefault Image.Builder
file
(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
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
-
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.Builder
avoiding the need to create one manually viaImageFile.builder()
.When the
Consumer
completes,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:
-