@Generated(value="software.amazon.awssdk:codegen") public final class CreateCommitRequest extends CodeCommitRequest implements ToCopyableBuilder<CreateCommitRequest.Builder,CreateCommitRequest>
| Modifier and Type | Class and Description |
|---|---|
static interface |
CreateCommitRequest.Builder |
| Modifier and Type | Method and Description |
|---|---|
String |
authorName()
The name of the author who created the commit.
|
String |
branchName()
The name of the branch where you create the commit.
|
static CreateCommitRequest.Builder |
builder() |
String |
commitMessage()
The commit message you want to include in the commit.
|
List<DeleteFileEntry> |
deleteFiles()
The files to delete in this commit.
|
String |
email()
The email address of the person who created the commit.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
boolean |
hasDeleteFiles()
Returns true if the DeleteFiles property was specified by the sender (it may be empty), or false if the sender
did not specify the value (it will be empty).
|
int |
hashCode() |
boolean |
hasPutFiles()
Returns true if the PutFiles property was specified by the sender (it may be empty), or false if the sender did
not specify the value (it will be empty).
|
boolean |
hasSetFileModes()
Returns true if the SetFileModes property was specified by the sender (it may be empty), or false if the sender
did not specify the value (it will be empty).
|
Boolean |
keepEmptyFolders()
If the commit contains deletions, whether to keep a folder or folder structure if the changes leave the folders
empty.
|
String |
parentCommitId()
The ID of the commit that is the parent of the commit you create.
|
List<PutFileEntry> |
putFiles()
The files to add or update in this commit.
|
String |
repositoryName()
The name of the repository where you create the commit.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends CreateCommitRequest.Builder> |
serializableBuilderClass() |
List<SetFileModeEntry> |
setFileModes()
The file modes to update for files in this commit.
|
CreateCommitRequest.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
overrideConfigurationclone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic String repositoryName()
The name of the repository where you create the commit.
public String branchName()
The name of the branch where you create the commit.
public String 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 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 email()
The email address of the person who created the commit.
public 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.
public 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.
public boolean hasPutFiles()
public List<PutFileEntry> putFiles()
The files to add or update in this commit.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
You can use hasPutFiles() to see if a value was sent in this field.
public boolean hasDeleteFiles()
public List<DeleteFileEntry> deleteFiles()
The files to delete in this commit. These files still exist in earlier commits.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
You can use hasDeleteFiles() to see if a value was sent in this field.
public boolean hasSetFileModes()
public List<SetFileModeEntry> setFileModes()
The file modes to update for files in this commit.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
You can use hasSetFileModes() to see if a value was sent in this field.
public CreateCommitRequest.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<CreateCommitRequest.Builder,CreateCommitRequest>toBuilder in class CodeCommitRequestpublic static CreateCommitRequest.Builder builder()
public static Class<? extends CreateCommitRequest.Builder> serializableBuilderClass()
public int hashCode()
hashCode in class AwsRequestpublic boolean equals(Object obj)
equals in class AwsRequestpublic boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic String toString()
public <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
getValueForField in class SdkRequestCopyright © 2020. All rights reserved.