Interface File.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<File.Builder,
,File> SdkBuilder<File.Builder,
,File> SdkPojo
- Enclosing class:
File
@Mutable
@NotThreadSafe
public static interface File.Builder
extends SdkPojo, CopyableBuilder<File.Builder,File>
-
Method Summary
Modifier and TypeMethodDescriptiondefault File.Builder
fileType
(Consumer<CompareFileType.Builder> fileType) The file type of the file.fileType
(CompareFileType fileType) The file type of the file.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, sdkFieldNameToField, sdkFields
-
Method Details
-
fileType
The file type of the file.
- Parameters:
fileType
- The file type of the file.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
fileType
The file type of the file.
This is a convenience method that creates an instance of theCompareFileType.Builder
avoiding the need to create one manually viaCompareFileType.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tofileType(CompareFileType)
.- Parameters:
fileType
- a consumer that will call methods onCompareFileType.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-