@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class PutFileEntry extends Object implements Serializable, Cloneable, StructuredPojo
Information about a file added or updated as part of a commit.
Constructor and Description |
---|
PutFileEntry() |
Modifier and Type | Method and Description |
---|---|
PutFileEntry |
clone() |
boolean |
equals(Object obj) |
ByteBuffer |
getFileContent()
The content of the file, if a source file is not specified.
|
String |
getFileMode()
The extrapolated file mode permissions for the file.
|
String |
getFilePath()
The full path to the file in the repository, including the name of the file.
|
SourceFileSpecifier |
getSourceFile()
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.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setFileContent(ByteBuffer fileContent)
The content of the file, if a source file is not specified.
|
void |
setFileMode(String fileMode)
The extrapolated file mode permissions for the file.
|
void |
setFilePath(String filePath)
The full path to the file in the repository, including the name of the file.
|
void |
setSourceFile(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.
|
String |
toString()
Returns a string representation of this object.
|
PutFileEntry |
withFileContent(ByteBuffer fileContent)
The content of the file, if a source file is not specified.
|
PutFileEntry |
withFileMode(FileModeTypeEnum fileMode)
The extrapolated file mode permissions for the file.
|
PutFileEntry |
withFileMode(String fileMode)
The extrapolated file mode permissions for the file.
|
PutFileEntry |
withFilePath(String filePath)
The full path to the file in the repository, including the name of the file.
|
PutFileEntry |
withSourceFile(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.
|
public void setFilePath(String filePath)
The full path to the file in the repository, including the name of the file.
filePath
- The full path to the file in the repository, including the name of the file.public String getFilePath()
The full path to the file in the repository, including the name of the file.
public PutFileEntry withFilePath(String filePath)
The full path to the file in the repository, including the name of the file.
filePath
- The full path to the file in the repository, including the name of the file.public void setFileMode(String fileMode)
The extrapolated file mode permissions for the file. Valid values include EXECUTABLE and NORMAL.
fileMode
- The extrapolated file mode permissions for the file. Valid values include EXECUTABLE and NORMAL.FileModeTypeEnum
public String getFileMode()
The extrapolated file mode permissions for the file. Valid values include EXECUTABLE and NORMAL.
FileModeTypeEnum
public PutFileEntry withFileMode(String fileMode)
The extrapolated file mode permissions for the file. Valid values include EXECUTABLE and NORMAL.
fileMode
- The extrapolated file mode permissions for the file. Valid values include EXECUTABLE and NORMAL.FileModeTypeEnum
public PutFileEntry withFileMode(FileModeTypeEnum fileMode)
The extrapolated file mode permissions for the file. Valid values include EXECUTABLE and NORMAL.
fileMode
- The extrapolated file mode permissions for the file. Valid values include EXECUTABLE and NORMAL.FileModeTypeEnum
public void setFileContent(ByteBuffer fileContent)
The content of the file, if a source file is not specified.
The AWS SDK for Java performs a Base64 encoding on this field before sending this request to the AWS service. Users of the SDK should not perform Base64 encoding on this field.
Warning: ByteBuffers returned by the SDK are mutable. Changes to the content or position of the byte buffer will be seen by all objects that have a reference to this object. It is recommended to call ByteBuffer.duplicate() or ByteBuffer.asReadOnlyBuffer() before using or reading from the buffer. This behavior will be changed in a future major version of the SDK.
fileContent
- The content of the file, if a source file is not specified.public ByteBuffer getFileContent()
The content of the file, if a source file is not specified.
ByteBuffer
s are stateful. Calling their get
methods changes their position
. We recommend
using ByteBuffer.asReadOnlyBuffer()
to create a read-only view of the buffer with an independent
position
, and calling get
methods on this rather than directly on the returned ByteBuffer
.
Doing so will ensure that anyone else using the ByteBuffer
will not be affected by changes to the
position
.
public PutFileEntry withFileContent(ByteBuffer fileContent)
The content of the file, if a source file is not specified.
The AWS SDK for Java performs a Base64 encoding on this field before sending this request to the AWS service. Users of the SDK should not perform Base64 encoding on this field.
Warning: ByteBuffers returned by the SDK are mutable. Changes to the content or position of the byte buffer will be seen by all objects that have a reference to this object. It is recommended to call ByteBuffer.duplicate() or ByteBuffer.asReadOnlyBuffer() before using or reading from the buffer. This behavior will be changed in a future major version of the SDK.
fileContent
- The content of the file, if a source file is not specified.public void setSourceFile(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.
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.public SourceFileSpecifier getSourceFile()
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.
public PutFileEntry withSourceFile(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.
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.public String toString()
toString
in class Object
Object.toString()
public PutFileEntry clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.