@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 final String repositoryName()
The name of the repository where you create the commit.
public final String branchName()
The name of the branch where you create the commit.
public final 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 final 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 final String email()
The email address of the person who created the commit.
public final 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 final 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 final boolean hasPutFiles()
public final 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 final boolean hasDeleteFiles()
public final 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 final boolean hasSetFileModes()
public final 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 final int hashCode()
hashCode in class AwsRequestpublic final boolean equals(Object obj)
equals in class AwsRequestpublic final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
getValueForField in class SdkRequestCopyright © 2021. All rights reserved.