Class ListDeploymentsResult
- java.lang.Object
-
- com.amazonaws.services.codedeploy.model.ListDeploymentsResult
-
- All Implemented Interfaces:
Serializable,Cloneable
public class ListDeploymentsResult extends Object implements Serializable, Cloneable
Represents the output of a list deployments operation.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ListDeploymentsResult()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ListDeploymentsResultclone()booleanequals(Object obj)List<String>getDeployments()A list of deployment IDs.StringgetNextToken()If a large amount of information is returned, an identifier is also returned.inthashCode()voidsetDeployments(Collection<String> deployments)A list of deployment IDs.voidsetNextToken(String nextToken)If a large amount of information is returned, an identifier is also returned.StringtoString()Returns a string representation of this object; useful for testing and debugging.ListDeploymentsResultwithDeployments(String... deployments)A list of deployment IDs.ListDeploymentsResultwithDeployments(Collection<String> deployments)A list of deployment IDs.ListDeploymentsResultwithNextToken(String nextToken)If a large amount of information is returned, an identifier is also returned.
-
-
-
Method Detail
-
getDeployments
public List<String> getDeployments()
A list of deployment IDs.
- Returns:
- A list of deployment IDs.
-
setDeployments
public void setDeployments(Collection<String> deployments)
A list of deployment IDs.
- Parameters:
deployments- A list of deployment IDs.
-
withDeployments
public ListDeploymentsResult withDeployments(String... deployments)
A list of deployment IDs.
NOTE: This method appends the values to the existing list (if any). Use
setDeployments(java.util.Collection)orwithDeployments(java.util.Collection)if you want to override the existing values.- Parameters:
deployments- A list of deployment IDs.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withDeployments
public ListDeploymentsResult withDeployments(Collection<String> deployments)
A list of deployment IDs.
- Parameters:
deployments- A list of deployment IDs.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setNextToken
public void setNextToken(String nextToken)
If a large amount of information is returned, an identifier is also returned. It can be used in a subsequent list deployments call to return the next set of deployments in the list.
- Parameters:
nextToken- If a large amount of information is returned, an identifier is also returned. It can be used in a subsequent list deployments call to return the next set of deployments in the list.
-
getNextToken
public String getNextToken()
If a large amount of information is returned, an identifier is also returned. It can be used in a subsequent list deployments call to return the next set of deployments in the list.
- Returns:
- If a large amount of information is returned, an identifier is also returned. It can be used in a subsequent list deployments call to return the next set of deployments in the list.
-
withNextToken
public ListDeploymentsResult withNextToken(String nextToken)
If a large amount of information is returned, an identifier is also returned. It can be used in a subsequent list deployments call to return the next set of deployments in the list.
- Parameters:
nextToken- If a large amount of information is returned, an identifier is also returned. It can be used in a subsequent list deployments call to return the next set of deployments in the list.- 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 ListDeploymentsResult clone()
-
-