Interface PutFileEntry.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<PutFileEntry.Builder,PutFileEntry>,SdkBuilder<PutFileEntry.Builder,PutFileEntry>,SdkPojo
- Enclosing class:
- PutFileEntry
public static interface PutFileEntry.Builder extends SdkPojo, CopyableBuilder<PutFileEntry.Builder,PutFileEntry>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description PutFileEntry.BuilderfileContent(SdkBytes fileContent)The content of the file, if a source file is not specified.PutFileEntry.BuilderfileMode(String fileMode)The extrapolated file mode permissions for the file.PutFileEntry.BuilderfileMode(FileModeTypeEnum fileMode)The extrapolated file mode permissions for the file.PutFileEntry.BuilderfilePath(String filePath)The full path to the file in the repository, including the name of the file.default PutFileEntry.BuildersourceFile(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.PutFileEntry.BuildersourceFile(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 Detail
-
filePath
PutFileEntry.Builder filePath(String 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
PutFileEntry.Builder fileMode(String 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:
FileModeTypeEnum,FileModeTypeEnum
-
fileMode
PutFileEntry.Builder fileMode(FileModeTypeEnum 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:
FileModeTypeEnum,FileModeTypeEnum
-
fileContent
PutFileEntry.Builder fileContent(SdkBytes 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
PutFileEntry.Builder 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.
- 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
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.
This is a convenience method that creates an instance of theSourceFileSpecifier.Builderavoiding the need to create one manually viaSourceFileSpecifier.builder().When the
Consumercompletes,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:
sourceFile(SourceFileSpecifier)
-
-