@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()
For responses, this returns true if the service returned a value for the DeleteFiles property.
|
int |
hashCode() |
boolean |
hasPutFiles()
For responses, this returns true if the service returned a value for the PutFiles property.
|
boolean |
hasSetFileModes()
For responses, this returns true if the service returned a value for the SetFileModes property.
|
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()
isEmpty() method on the property). This is
useful because the SDK will never return a null collection or map, but you may need to differentiate between the
service returning nothing (or null) and the service returning an empty collection or map. For requests, this
returns true if a value for the property was specified in the request builder, and false if a value was not
specified.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.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasPutFiles() method.
public final boolean hasDeleteFiles()
isEmpty() method on the property).
This is useful because the SDK will never return a null collection or map, but you may need to differentiate
between the service returning nothing (or null) and the service returning an empty collection or map. For
requests, this returns true if a value for the property was specified in the request builder, and false if a
value was not specified.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.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasDeleteFiles() method.
public final boolean hasSetFileModes()
isEmpty() method on the property).
This is useful because the SDK will never return a null collection or map, but you may need to differentiate
between the service returning nothing (or null) and the service returning an empty collection or map. For
requests, this returns true if a value for the property was specified in the request builder, and false if a
value was not specified.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.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasSetFileModes() method.
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.