Interface PutFileEntry.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<PutFileEntry.Builder,
,PutFileEntry> SdkBuilder<PutFileEntry.Builder,
,PutFileEntry> SdkPojo
- Enclosing class:
PutFileEntry
-
Method Summary
Modifier and TypeMethodDescriptionfileContent
(SdkBytes fileContent) The content of the file, if a source file is not specified.The extrapolated file mode permissions for the file.fileMode
(FileModeTypeEnum fileMode) The extrapolated file mode permissions for the file.The full path to the file in the repository, including the name of the file.default PutFileEntry.Builder
sourceFile
(Consumer<SourceFileSpecifier.Builder> sourceFile) The name and full path of the file that contains the changes you want to make as part of the commit, if you are not providing the file content directly.sourceFile
(SourceFileSpecifier sourceFile) The name and full path of the file that contains the changes you want to make as part of the commit, if you are not providing the file content directly.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
-
filePath
The full path to the file in the repository, including the name of the file.
- Parameters:
filePath
- The full path to the file in the repository, including the name of the file.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
fileMode
The extrapolated file mode permissions for the file. Valid values include EXECUTABLE and NORMAL.
- Parameters:
fileMode
- The extrapolated file mode permissions for the file. Valid values include EXECUTABLE and NORMAL.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
fileMode
The extrapolated file mode permissions for the file. Valid values include EXECUTABLE and NORMAL.
- Parameters:
fileMode
- The extrapolated file mode permissions for the file. Valid values include EXECUTABLE and NORMAL.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
fileContent
The content of the file, if a source file is not specified.
- Parameters:
fileContent
- The content of the file, if a source file is not specified.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sourceFile
The name and full path of the file that contains the changes you want to make as part of the commit, if you are not providing the file content directly.
- Parameters:
sourceFile
- The name and full path of the file that contains the changes you want to make as part of the commit, if you are not providing the file content directly.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sourceFile
The name and full path of the file that contains the changes you want to make as part of the commit, if you are not providing the file content directly.
This is a convenience method that creates an instance of theSourceFileSpecifier.Builder
avoiding the need to create one manually viaSourceFileSpecifier.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tosourceFile(SourceFileSpecifier)
.- Parameters:
sourceFile
- a consumer that will call methods onSourceFileSpecifier.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-