@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 String repositoryName()
The name of the repository in which you want to create the new branch.
public String branchName()
The name of the new branch to create.
public 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 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.