@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class DescribeEnvironmentsResult extends AmazonWebServiceResult<ResponseMetadata> implements Serializable, Cloneable
Result message containing a list of environment descriptions.
Constructor and Description |
---|
DescribeEnvironmentsResult() |
Modifier and Type | Method and Description |
---|---|
DescribeEnvironmentsResult |
clone() |
boolean |
equals(Object obj) |
List<EnvironmentDescription> |
getEnvironments()
Returns an EnvironmentDescription list.
|
String |
getNextToken()
In a paginated request, the token that you can pass in a subsequent request to get the next response page.
|
int |
hashCode() |
void |
setEnvironments(Collection<EnvironmentDescription> environments)
Returns an EnvironmentDescription list.
|
void |
setNextToken(String nextToken)
In a paginated request, the token that you can pass in a subsequent request to get the next response page.
|
String |
toString()
Returns a string representation of this object.
|
DescribeEnvironmentsResult |
withEnvironments(Collection<EnvironmentDescription> environments)
Returns an EnvironmentDescription list.
|
DescribeEnvironmentsResult |
withEnvironments(EnvironmentDescription... environments)
Returns an EnvironmentDescription list.
|
DescribeEnvironmentsResult |
withNextToken(String nextToken)
In a paginated request, the token that you can pass in a subsequent request to get the next response page.
|
getSdkHttpMetadata, getSdkResponseMetadata, setSdkHttpMetadata, setSdkResponseMetadata
public List<EnvironmentDescription> getEnvironments()
Returns an EnvironmentDescription list.
public void setEnvironments(Collection<EnvironmentDescription> environments)
Returns an EnvironmentDescription list.
environments
- Returns an EnvironmentDescription list.public DescribeEnvironmentsResult withEnvironments(EnvironmentDescription... environments)
Returns an EnvironmentDescription list.
NOTE: This method appends the values to the existing list (if any). Use
setEnvironments(java.util.Collection)
or withEnvironments(java.util.Collection)
if you want to
override the existing values.
environments
- Returns an EnvironmentDescription list.public DescribeEnvironmentsResult withEnvironments(Collection<EnvironmentDescription> environments)
Returns an EnvironmentDescription list.
environments
- Returns an EnvironmentDescription list.public void setNextToken(String nextToken)
In a paginated request, the token that you can pass in a subsequent request to get the next response page.
nextToken
- In a paginated request, the token that you can pass in a subsequent request to get the next response page.public String getNextToken()
In a paginated request, the token that you can pass in a subsequent request to get the next response page.
public DescribeEnvironmentsResult withNextToken(String nextToken)
In a paginated request, the token that you can pass in a subsequent request to get the next response page.
nextToken
- In a paginated request, the token that you can pass in a subsequent request to get the next response page.public String toString()
toString
in class Object
Object.toString()
public DescribeEnvironmentsResult clone()