@Generated(value="software.amazon.awssdk:codegen") public final class CreateBranchRequest extends CodeCommitRequest implements ToCopyableBuilder<CreateBranchRequest.Builder,CreateBranchRequest>
Represents the input of a create branch operation.
| Modifier and Type | Class and Description |
|---|---|
static interface |
CreateBranchRequest.Builder |
| Modifier and Type | Method and Description |
|---|---|
String |
branchName()
The name of the new branch to create.
|
static CreateBranchRequest.Builder |
builder() |
String |
commitId()
The ID of the commit to point the new branch to.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
String |
repositoryName()
The name of the repository in which you want to create the new branch.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends CreateBranchRequest.Builder> |
serializableBuilderClass() |
CreateBranchRequest.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 in which you want to create the new branch.
public final String branchName()
The name of the new branch to create.
public final String commitId()
The ID of the commit to point the new branch to.
public CreateBranchRequest.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<CreateBranchRequest.Builder,CreateBranchRequest>toBuilder in class CodeCommitRequestpublic static CreateBranchRequest.Builder builder()
public static Class<? extends CreateBranchRequest.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 © 2023. All rights reserved.