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 GetBranchRequest
clone()
Creates a shallow clone of this request.boolean
equals(Object obj)
String
getBranchName()
The name of the branch for which you want to retrieve information.String
getRepositoryName()
The name of the repository that contains the branch for which you want to retrieve information.int
hashCode()
void
setBranchName(String branchName)
The name of the branch for which you want to retrieve information.void
setRepositoryName(String repositoryName)
The name of the repository that contains the branch for which you want to retrieve information.String
toString()
Returns a string representation of this object; useful for testing and debugging.GetBranchRequest
withBranchName(String branchName)
The name of the branch for which you want to retrieve information.GetBranchRequest
withRepositoryName(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:
toString
in classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public GetBranchRequest clone()
Description copied from class:AmazonWebServiceRequest
Creates a shallow clone of this request. Explicitly does not clone the deep structure of the request object.- Overrides:
clone
in classAmazonWebServiceRequest
- See Also:
Object.clone()
-
-