@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class FileVersion extends Object implements Serializable, Cloneable, StructuredPojo
Information about a version of a file.
Constructor and Description |
---|
FileVersion() |
Modifier and Type | Method and Description |
---|---|
FileVersion |
clone() |
boolean |
equals(Object obj) |
String |
getBlobId()
The blob ID of the object that represents the content of the file in this version.
|
Commit |
getCommit() |
String |
getPath()
The name and path of the file at which this blob is indexed which contains the data for this version of the file.
|
List<String> |
getRevisionChildren()
An array of commit IDs that contain more recent versions of this file.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setBlobId(String blobId)
The blob ID of the object that represents the content of the file in this version.
|
void |
setCommit(Commit commit) |
void |
setPath(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.
|
void |
setRevisionChildren(Collection<String> revisionChildren)
An array of commit IDs that contain more recent versions of this file.
|
String |
toString()
Returns a string representation of this object.
|
FileVersion |
withBlobId(String blobId)
The blob ID of the object that represents the content of the file in this version.
|
FileVersion |
withCommit(Commit commit) |
FileVersion |
withPath(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 |
withRevisionChildren(Collection<String> revisionChildren)
An array of commit IDs that contain more recent versions of this file.
|
FileVersion |
withRevisionChildren(String... revisionChildren)
An array of commit IDs that contain more recent versions of this file.
|
public void setCommit(Commit commit)
commit
- public Commit getCommit()
public FileVersion withCommit(Commit commit)
commit
- public void setBlobId(String blobId)
The blob ID of the object that represents the content of the file in this version.
blobId
- The blob ID of the object that represents the content of the file in this version.public String getBlobId()
The blob ID of the object that represents the content of the file in this version.
public FileVersion withBlobId(String blobId)
The blob ID of the object that represents the content of the file in this version.
blobId
- The blob ID of the object that represents the content of the file in this version.public void setPath(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.
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.public String getPath()
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.
public FileVersion withPath(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.
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.public List<String> getRevisionChildren()
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.
public void setRevisionChildren(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.
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.public FileVersion withRevisionChildren(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.
NOTE: This method appends the values to the existing list (if any). Use
setRevisionChildren(java.util.Collection)
or withRevisionChildren(java.util.Collection)
if you
want to override the existing values.
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.public FileVersion withRevisionChildren(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.
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.public String toString()
toString
in class Object
Object.toString()
public FileVersion clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.