Class GetBranchRequest
- java.lang.Object
-
- com.amazonaws.AmazonWebServiceRequest
-
- com.amazonaws.services.codecommit.model.GetBranchRequest
-
- All Implemented Interfaces:
ReadLimitInfo,Serializable,Cloneable
public class GetBranchRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
Represents the input of a get branch operation.
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.amazonaws.AmazonWebServiceRequest
NOOP
-
-
Constructor Summary
Constructors Constructor Description GetBranchRequest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GetBranchRequestclone()Creates a shallow clone of this request.booleanequals(Object obj)StringgetBranchName()The name of the branch for which you want to retrieve information.StringgetRepositoryName()The name of the repository that contains the branch for which you want to retrieve information.inthashCode()voidsetBranchName(String branchName)The name of the branch for which you want to retrieve information.voidsetRepositoryName(String repositoryName)The name of the repository that contains the branch for which you want to retrieve information.StringtoString()Returns a string representation of this object; useful for testing and debugging.GetBranchRequestwithBranchName(String branchName)The name of the branch for which you want to retrieve information.GetBranchRequestwithRepositoryName(String repositoryName)The name of the repository that contains the branch for which you want to retrieve information.-
Methods inherited from class com.amazonaws.AmazonWebServiceRequest
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
-
-
-
-
Method Detail
-
setRepositoryName
public void setRepositoryName(String repositoryName)
The name of the repository that contains the branch for which you want to retrieve information.
- Parameters:
repositoryName- The name of the repository that contains the branch for which you want to retrieve information.
-
getRepositoryName
public String getRepositoryName()
The name of the repository that contains the branch for which you want to retrieve information.
- Returns:
- The name of the repository that contains the branch for which you want to retrieve information.
-
withRepositoryName
public GetBranchRequest withRepositoryName(String repositoryName)
The name of the repository that contains the branch for which you want to retrieve information.
- Parameters:
repositoryName- The name of the repository that contains the branch for which you want to retrieve information.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setBranchName
public void setBranchName(String branchName)
The name of the branch for which you want to retrieve information.
- Parameters:
branchName- The name of the branch for which you want to retrieve information.
-
getBranchName
public String getBranchName()
The name of the branch for which you want to retrieve information.
- Returns:
- The name of the branch for which you want to retrieve information.
-
withBranchName
public GetBranchRequest withBranchName(String branchName)
The name of the branch for which you want to retrieve information.
- Parameters:
branchName- The name of the branch for which you want to retrieve information.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public GetBranchRequest clone()
Description copied from class:AmazonWebServiceRequestCreates a shallow clone of this request. Explicitly does not clone the deep structure of the request object.- Overrides:
clonein classAmazonWebServiceRequest- See Also:
Object.clone()
-
-