@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class PutFileRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP
Constructor and Description |
---|
PutFileRequest() |
Modifier and Type | Method and Description |
---|---|
PutFileRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
String |
getBranchName()
The name of the branch where you want to add or update the file.
|
String |
getCommitMessage()
A message about why this file was added or updated.
|
String |
getEmail()
An email address for the person adding or updating the file.
|
ByteBuffer |
getFileContent()
The content of the file, in binary object format.
|
String |
getFileMode()
The file mode permissions of the blob.
|
String |
getFilePath()
The name of the file you want to add or update, including the relative path to the file in the repository.
|
String |
getName()
The name of the person adding or updating the file.
|
String |
getParentCommitId()
The full commit ID of the head commit in the branch where you want to add or update the file.
|
String |
getRepositoryName()
The name of the repository where you want to add or update the file.
|
int |
hashCode() |
void |
setBranchName(String branchName)
The name of the branch where you want to add or update the file.
|
void |
setCommitMessage(String commitMessage)
A message about why this file was added or updated.
|
void |
setEmail(String email)
An email address for the person adding or updating the file.
|
void |
setFileContent(ByteBuffer fileContent)
The content of the file, in binary object format.
|
void |
setFileMode(String fileMode)
The file mode permissions of the blob.
|
void |
setFilePath(String filePath)
The name of the file you want to add or update, including the relative path to the file in the repository.
|
void |
setName(String name)
The name of the person adding or updating the file.
|
void |
setParentCommitId(String parentCommitId)
The full commit ID of the head commit in the branch where you want to add or update the file.
|
void |
setRepositoryName(String repositoryName)
The name of the repository where you want to add or update the file.
|
String |
toString()
Returns a string representation of this object.
|
PutFileRequest |
withBranchName(String branchName)
The name of the branch where you want to add or update the file.
|
PutFileRequest |
withCommitMessage(String commitMessage)
A message about why this file was added or updated.
|
PutFileRequest |
withEmail(String email)
An email address for the person adding or updating the file.
|
PutFileRequest |
withFileContent(ByteBuffer fileContent)
The content of the file, in binary object format.
|
PutFileRequest |
withFileMode(FileModeTypeEnum fileMode)
The file mode permissions of the blob.
|
PutFileRequest |
withFileMode(String fileMode)
The file mode permissions of the blob.
|
PutFileRequest |
withFilePath(String filePath)
The name of the file you want to add or update, including the relative path to the file in the repository.
|
PutFileRequest |
withName(String name)
The name of the person adding or updating the file.
|
PutFileRequest |
withParentCommitId(String parentCommitId)
The full commit ID of the head commit in the branch where you want to add or update the file.
|
PutFileRequest |
withRepositoryName(String repositoryName)
The name of the repository where you want to add or update the file.
|
addHandlerContext, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getHandlerContext, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestCredentialsProvider, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
public void setRepositoryName(String repositoryName)
The name of the repository where you want to add or update the file.
repositoryName
- The name of the repository where you want to add or update the file.public String getRepositoryName()
The name of the repository where you want to add or update the file.
public PutFileRequest withRepositoryName(String repositoryName)
The name of the repository where you want to add or update the file.
repositoryName
- The name of the repository where you want to add or update the file.public void setBranchName(String branchName)
The name of the branch where you want to add or update the file. If this is an empty repository, this branch is created.
branchName
- The name of the branch where you want to add or update the file. If this is an empty repository, this
branch is created.public String getBranchName()
The name of the branch where you want to add or update the file. If this is an empty repository, this branch is created.
public PutFileRequest withBranchName(String branchName)
The name of the branch where you want to add or update the file. If this is an empty repository, this branch is created.
branchName
- The name of the branch where you want to add or update the file. If this is an empty repository, this
branch is created.public void setFileContent(ByteBuffer fileContent)
The content of the file, in binary object format.
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, in binary object format.public ByteBuffer getFileContent()
The content of the file, in binary object format.
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 PutFileRequest withFileContent(ByteBuffer fileContent)
The content of the file, in binary object format.
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, in binary object format.public void setFilePath(String filePath)
The name of the file you want to add or update, including the relative path to the file in the repository.
If the path does not currently exist in the repository, the path is created as part of adding the file.
filePath
- The name of the file you want to add or update, including the relative path to the file in the
repository. If the path does not currently exist in the repository, the path is created as part of adding the file.
public String getFilePath()
The name of the file you want to add or update, including the relative path to the file in the repository.
If the path does not currently exist in the repository, the path is created as part of adding the file.
If the path does not currently exist in the repository, the path is created as part of adding the file.
public PutFileRequest withFilePath(String filePath)
The name of the file you want to add or update, including the relative path to the file in the repository.
If the path does not currently exist in the repository, the path is created as part of adding the file.
filePath
- The name of the file you want to add or update, including the relative path to the file in the
repository. If the path does not currently exist in the repository, the path is created as part of adding the file.
public void setFileMode(String fileMode)
The file mode permissions of the blob. Valid file mode permissions are listed here.
fileMode
- The file mode permissions of the blob. Valid file mode permissions are listed here.FileModeTypeEnum
public String getFileMode()
The file mode permissions of the blob. Valid file mode permissions are listed here.
FileModeTypeEnum
public PutFileRequest withFileMode(String fileMode)
The file mode permissions of the blob. Valid file mode permissions are listed here.
fileMode
- The file mode permissions of the blob. Valid file mode permissions are listed here.FileModeTypeEnum
public PutFileRequest withFileMode(FileModeTypeEnum fileMode)
The file mode permissions of the blob. Valid file mode permissions are listed here.
fileMode
- The file mode permissions of the blob. Valid file mode permissions are listed here.FileModeTypeEnum
public void setParentCommitId(String parentCommitId)
The full commit ID of the head commit in the branch where you want to add or update the file. If this is an empty repository, no commit ID is required. If this is not an empty repository, a commit ID is required.
The commit ID must match the ID of the head commit at the time of the operation. Otherwise, an error occurs, and the file is not added or updated.
parentCommitId
- The full commit ID of the head commit in the branch where you want to add or update the file. If this is
an empty repository, no commit ID is required. If this is not an empty repository, a commit ID is
required.
The commit ID must match the ID of the head commit at the time of the operation. Otherwise, an error occurs, and the file is not added or updated.
public String getParentCommitId()
The full commit ID of the head commit in the branch where you want to add or update the file. If this is an empty repository, no commit ID is required. If this is not an empty repository, a commit ID is required.
The commit ID must match the ID of the head commit at the time of the operation. Otherwise, an error occurs, and the file is not added or updated.
The commit ID must match the ID of the head commit at the time of the operation. Otherwise, an error occurs, and the file is not added or updated.
public PutFileRequest withParentCommitId(String parentCommitId)
The full commit ID of the head commit in the branch where you want to add or update the file. If this is an empty repository, no commit ID is required. If this is not an empty repository, a commit ID is required.
The commit ID must match the ID of the head commit at the time of the operation. Otherwise, an error occurs, and the file is not added or updated.
parentCommitId
- The full commit ID of the head commit in the branch where you want to add or update the file. If this is
an empty repository, no commit ID is required. If this is not an empty repository, a commit ID is
required.
The commit ID must match the ID of the head commit at the time of the operation. Otherwise, an error occurs, and the file is not added or updated.
public void setCommitMessage(String commitMessage)
A message about why this file was added or updated. Although it is optional, a message makes the commit history for your repository more useful.
commitMessage
- A message about why this file was added or updated. Although it is optional, a message makes the commit
history for your repository more useful.public String getCommitMessage()
A message about why this file was added or updated. Although it is optional, a message makes the commit history for your repository more useful.
public PutFileRequest withCommitMessage(String commitMessage)
A message about why this file was added or updated. Although it is optional, a message makes the commit history for your repository more useful.
commitMessage
- A message about why this file was added or updated. Although it is optional, a message makes the commit
history for your repository more useful.public void setName(String name)
The name of the person adding or updating the file. Although it is optional, a name makes the commit history for your repository more useful.
name
- The name of the person adding or updating the file. Although it is optional, a name makes the commit
history for your repository more useful.public String getName()
The name of the person adding or updating the file. Although it is optional, a name makes the commit history for your repository more useful.
public PutFileRequest withName(String name)
The name of the person adding or updating the file. Although it is optional, a name makes the commit history for your repository more useful.
name
- The name of the person adding or updating the file. Although it is optional, a name makes the commit
history for your repository more useful.public void setEmail(String email)
An email address for the person adding or updating the file.
email
- An email address for the person adding or updating the file.public String getEmail()
An email address for the person adding or updating the file.
public PutFileRequest withEmail(String email)
An email address for the person adding or updating the file.
email
- An email address for the person adding or updating the file.public String toString()
toString
in class Object
Object.toString()
public PutFileRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.