Interface FileVersion.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<FileVersion.Builder,FileVersion>,SdkBuilder<FileVersion.Builder,FileVersion>,SdkPojo
- Enclosing class:
- FileVersion
public static interface FileVersion.Builder extends SdkPojo, CopyableBuilder<FileVersion.Builder,FileVersion>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description FileVersion.BuilderblobId(String blobId)The blob ID of the object that represents the content of the file in this version.default FileVersion.Buildercommit(Consumer<Commit.Builder> commit)Sets the value of the Commit property for this object.FileVersion.Buildercommit(Commit commit)Sets the value of the Commit property for this object.FileVersion.Builderpath(String path)The name and path of the file at which this blob is indexed which contains the data for this version of the file.FileVersion.BuilderrevisionChildren(String... revisionChildren)An array of commit IDs that contain more recent versions of this file.FileVersion.BuilderrevisionChildren(Collection<String> revisionChildren)An array of commit IDs that contain more recent versions of this 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 Detail
-
commit
FileVersion.Builder commit(Commit commit)
Sets the value of the Commit property for this object.- Parameters:
commit- The new value for the Commit property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
commit
default FileVersion.Builder commit(Consumer<Commit.Builder> commit)
Sets the value of the Commit property for this object. This is a convenience method that creates an instance of theCommit.Builderavoiding the need to create one manually viaCommit.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tocommit(Commit).- Parameters:
commit- a consumer that will call methods onCommit.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
commit(Commit)
-
blobId
FileVersion.Builder blobId(String blobId)
The blob ID of the object that represents the content of the file in this version.
- Parameters:
blobId- The blob ID of the object that represents the content of the file in this version.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
path
FileVersion.Builder path(String path)
The name and path of the file at which this blob is indexed which contains the data for this version of the file. This value will vary between file versions if a file is renamed or if its path changes.
- Parameters:
path- The name and path of the file at which this blob is indexed which contains the data for this version of the file. This value will vary between file versions if a file is renamed or if its path changes.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
revisionChildren
FileVersion.Builder revisionChildren(Collection<String> revisionChildren)
An array of commit IDs that contain more recent versions of this file. If there are no additional versions of the file, this array will be empty.
- Parameters:
revisionChildren- An array of commit IDs that contain more recent versions of this file. If there are no additional versions of the file, this array will be empty.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
revisionChildren
FileVersion.Builder revisionChildren(String... revisionChildren)
An array of commit IDs that contain more recent versions of this file. If there are no additional versions of the file, this array will be empty.
- Parameters:
revisionChildren- An array of commit IDs that contain more recent versions of this file. If there are no additional versions of the file, this array will be empty.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-