@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CreateCommitRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP
Constructor and Description |
---|
CreateCommitRequest() |
Modifier and Type | Method and Description |
---|---|
CreateCommitRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
String |
getAuthorName()
The name of the author who created the commit.
|
String |
getBranchName()
The name of the branch where you create the commit.
|
String |
getCommitMessage()
The commit message you want to include in the commit.
|
List<DeleteFileEntry> |
getDeleteFiles()
The files to delete in this commit.
|
String |
getEmail()
The email address of the person who created the commit.
|
Boolean |
getKeepEmptyFolders()
If the commit contains deletions, whether to keep a folder or folder structure if the changes leave the folders
empty.
|
String |
getParentCommitId()
The ID of the commit that is the parent of the commit you create.
|
List<PutFileEntry> |
getPutFiles()
The files to add or update in this commit.
|
String |
getRepositoryName()
The name of the repository where you create the commit.
|
List<SetFileModeEntry> |
getSetFileModes()
The file modes to update for files in this commit.
|
int |
hashCode() |
Boolean |
isKeepEmptyFolders()
If the commit contains deletions, whether to keep a folder or folder structure if the changes leave the folders
empty.
|
void |
setAuthorName(String authorName)
The name of the author who created the commit.
|
void |
setBranchName(String branchName)
The name of the branch where you create the commit.
|
void |
setCommitMessage(String commitMessage)
The commit message you want to include in the commit.
|
void |
setDeleteFiles(Collection<DeleteFileEntry> deleteFiles)
The files to delete in this commit.
|
void |
setEmail(String email)
The email address of the person who created the commit.
|
void |
setKeepEmptyFolders(Boolean keepEmptyFolders)
If the commit contains deletions, whether to keep a folder or folder structure if the changes leave the folders
empty.
|
void |
setParentCommitId(String parentCommitId)
The ID of the commit that is the parent of the commit you create.
|
void |
setPutFiles(Collection<PutFileEntry> putFiles)
The files to add or update in this commit.
|
void |
setRepositoryName(String repositoryName)
The name of the repository where you create the commit.
|
void |
setSetFileModes(Collection<SetFileModeEntry> setFileModes)
The file modes to update for files in this commit.
|
String |
toString()
Returns a string representation of this object.
|
CreateCommitRequest |
withAuthorName(String authorName)
The name of the author who created the commit.
|
CreateCommitRequest |
withBranchName(String branchName)
The name of the branch where you create the commit.
|
CreateCommitRequest |
withCommitMessage(String commitMessage)
The commit message you want to include in the commit.
|
CreateCommitRequest |
withDeleteFiles(Collection<DeleteFileEntry> deleteFiles)
The files to delete in this commit.
|
CreateCommitRequest |
withDeleteFiles(DeleteFileEntry... deleteFiles)
The files to delete in this commit.
|
CreateCommitRequest |
withEmail(String email)
The email address of the person who created the commit.
|
CreateCommitRequest |
withKeepEmptyFolders(Boolean keepEmptyFolders)
If the commit contains deletions, whether to keep a folder or folder structure if the changes leave the folders
empty.
|
CreateCommitRequest |
withParentCommitId(String parentCommitId)
The ID of the commit that is the parent of the commit you create.
|
CreateCommitRequest |
withPutFiles(Collection<PutFileEntry> putFiles)
The files to add or update in this commit.
|
CreateCommitRequest |
withPutFiles(PutFileEntry... putFiles)
The files to add or update in this commit.
|
CreateCommitRequest |
withRepositoryName(String repositoryName)
The name of the repository where you create the commit.
|
CreateCommitRequest |
withSetFileModes(Collection<SetFileModeEntry> setFileModes)
The file modes to update for files in this commit.
|
CreateCommitRequest |
withSetFileModes(SetFileModeEntry... setFileModes)
The file modes to update for files in this commit.
|
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 create the commit.
repositoryName
- The name of the repository where you create the commit.public String getRepositoryName()
The name of the repository where you create the commit.
public CreateCommitRequest withRepositoryName(String repositoryName)
The name of the repository where you create the commit.
repositoryName
- The name of the repository where you create the commit.public void setBranchName(String branchName)
The name of the branch where you create the commit.
branchName
- The name of the branch where you create the commit.public String getBranchName()
The name of the branch where you create the commit.
public CreateCommitRequest withBranchName(String branchName)
The name of the branch where you create the commit.
branchName
- The name of the branch where you create the commit.public void setParentCommitId(String parentCommitId)
The ID of the commit that is the parent of the commit you create. Not required if this is an empty repository.
parentCommitId
- The ID of the commit that is the parent of the commit you create. Not required if this is an empty
repository.public String getParentCommitId()
The ID of the commit that is the parent of the commit you create. Not required if this is an empty repository.
public CreateCommitRequest withParentCommitId(String parentCommitId)
The ID of the commit that is the parent of the commit you create. Not required if this is an empty repository.
parentCommitId
- The ID of the commit that is the parent of the commit you create. Not required if this is an empty
repository.public void setAuthorName(String authorName)
The name of the author who created the commit. This information is used as both the author and committer for the commit.
authorName
- The name of the author who created the commit. This information is used as both the author and committer
for the commit.public String getAuthorName()
The name of the author who created the commit. This information is used as both the author and committer for the commit.
public CreateCommitRequest withAuthorName(String authorName)
The name of the author who created the commit. This information is used as both the author and committer for the commit.
authorName
- The name of the author who created the commit. This information is used as both the author and committer
for the commit.public void setEmail(String email)
The email address of the person who created the commit.
email
- The email address of the person who created the commit.public String getEmail()
The email address of the person who created the commit.
public CreateCommitRequest withEmail(String email)
The email address of the person who created the commit.
email
- The email address of the person who created the commit.public void setCommitMessage(String commitMessage)
The commit message you want to include in the commit. Commit messages are limited to 256 KB. If no message is specified, a default message is used.
commitMessage
- The commit message you want to include in the commit. Commit messages are limited to 256 KB. If no message
is specified, a default message is used.public String getCommitMessage()
The commit message you want to include in the commit. Commit messages are limited to 256 KB. If no message is specified, a default message is used.
public CreateCommitRequest withCommitMessage(String commitMessage)
The commit message you want to include in the commit. Commit messages are limited to 256 KB. If no message is specified, a default message is used.
commitMessage
- The commit message you want to include in the commit. Commit messages are limited to 256 KB. If no message
is specified, a default message is used.public void setKeepEmptyFolders(Boolean keepEmptyFolders)
If the commit contains deletions, whether to keep a folder or folder structure if the changes leave the folders empty. If true, a ..gitkeep file is created for empty folders. The default is false.
keepEmptyFolders
- If the commit contains deletions, whether to keep a folder or folder structure if the changes leave the
folders empty. If true, a ..gitkeep file is created for empty folders. The default is false.public Boolean getKeepEmptyFolders()
If the commit contains deletions, whether to keep a folder or folder structure if the changes leave the folders empty. If true, a ..gitkeep file is created for empty folders. The default is false.
public CreateCommitRequest withKeepEmptyFolders(Boolean keepEmptyFolders)
If the commit contains deletions, whether to keep a folder or folder structure if the changes leave the folders empty. If true, a ..gitkeep file is created for empty folders. The default is false.
keepEmptyFolders
- If the commit contains deletions, whether to keep a folder or folder structure if the changes leave the
folders empty. If true, a ..gitkeep file is created for empty folders. The default is false.public Boolean isKeepEmptyFolders()
If the commit contains deletions, whether to keep a folder or folder structure if the changes leave the folders empty. If true, a ..gitkeep file is created for empty folders. The default is false.
public List<PutFileEntry> getPutFiles()
The files to add or update in this commit.
public void setPutFiles(Collection<PutFileEntry> putFiles)
The files to add or update in this commit.
putFiles
- The files to add or update in this commit.public CreateCommitRequest withPutFiles(PutFileEntry... putFiles)
The files to add or update in this commit.
NOTE: This method appends the values to the existing list (if any). Use
setPutFiles(java.util.Collection)
or withPutFiles(java.util.Collection)
if you want to override
the existing values.
putFiles
- The files to add or update in this commit.public CreateCommitRequest withPutFiles(Collection<PutFileEntry> putFiles)
The files to add or update in this commit.
putFiles
- The files to add or update in this commit.public List<DeleteFileEntry> getDeleteFiles()
The files to delete in this commit. These files still exist in earlier commits.
public void setDeleteFiles(Collection<DeleteFileEntry> deleteFiles)
The files to delete in this commit. These files still exist in earlier commits.
deleteFiles
- The files to delete in this commit. These files still exist in earlier commits.public CreateCommitRequest withDeleteFiles(DeleteFileEntry... deleteFiles)
The files to delete in this commit. These files still exist in earlier commits.
NOTE: This method appends the values to the existing list (if any). Use
setDeleteFiles(java.util.Collection)
or withDeleteFiles(java.util.Collection)
if you want to
override the existing values.
deleteFiles
- The files to delete in this commit. These files still exist in earlier commits.public CreateCommitRequest withDeleteFiles(Collection<DeleteFileEntry> deleteFiles)
The files to delete in this commit. These files still exist in earlier commits.
deleteFiles
- The files to delete in this commit. These files still exist in earlier commits.public List<SetFileModeEntry> getSetFileModes()
The file modes to update for files in this commit.
public void setSetFileModes(Collection<SetFileModeEntry> setFileModes)
The file modes to update for files in this commit.
setFileModes
- The file modes to update for files in this commit.public CreateCommitRequest withSetFileModes(SetFileModeEntry... setFileModes)
The file modes to update for files in this commit.
NOTE: This method appends the values to the existing list (if any). Use
setSetFileModes(java.util.Collection)
or withSetFileModes(java.util.Collection)
if you want to
override the existing values.
setFileModes
- The file modes to update for files in this commit.public CreateCommitRequest withSetFileModes(Collection<SetFileModeEntry> setFileModes)
The file modes to update for files in this commit.
setFileModes
- The file modes to update for files in this commit.public String toString()
toString
in class Object
Object.toString()
public CreateCommitRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.