public class UpdateDefaultBranchRequest extends AmazonWebServiceRequest implements java.io.Serializable, java.lang.Cloneable
Represents the input of an update default branch operation.
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
defaultBranchName
The name of the branch to set as the default.
|
private java.lang.String |
repositoryName
The name of the repository to set or change the default branch for.
|
NOOP
Constructor and Description |
---|
UpdateDefaultBranchRequest() |
Modifier and Type | Method and Description |
---|---|
UpdateDefaultBranchRequest |
clone()
Creates a shallow clone of this request.
|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getDefaultBranchName()
The name of the branch to set as the default.
|
java.lang.String |
getRepositoryName()
The name of the repository to set or change the default branch for.
|
int |
hashCode() |
void |
setDefaultBranchName(java.lang.String defaultBranchName)
The name of the branch to set as the default.
|
void |
setRepositoryName(java.lang.String repositoryName)
The name of the repository to set or change the default branch for.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
UpdateDefaultBranchRequest |
withDefaultBranchName(java.lang.String defaultBranchName)
The name of the branch to set as the default.
|
UpdateDefaultBranchRequest |
withRepositoryName(java.lang.String repositoryName)
The name of the repository to set or change the default branch for.
|
copyBaseTo, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
private java.lang.String repositoryName
The name of the repository to set or change the default branch for.
private java.lang.String defaultBranchName
The name of the branch to set as the default.
public void setRepositoryName(java.lang.String repositoryName)
The name of the repository to set or change the default branch for.
repositoryName
- The name of the repository to set or change the default branch
for.public java.lang.String getRepositoryName()
The name of the repository to set or change the default branch for.
public UpdateDefaultBranchRequest withRepositoryName(java.lang.String repositoryName)
The name of the repository to set or change the default branch for.
repositoryName
- The name of the repository to set or change the default branch
for.public void setDefaultBranchName(java.lang.String defaultBranchName)
The name of the branch to set as the default.
defaultBranchName
- The name of the branch to set as the default.public java.lang.String getDefaultBranchName()
The name of the branch to set as the default.
public UpdateDefaultBranchRequest withDefaultBranchName(java.lang.String defaultBranchName)
The name of the branch to set as the default.
defaultBranchName
- The name of the branch to set as the default.public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public UpdateDefaultBranchRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()