public class DescribeScalingPoliciesResult
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
nextToken
The
NextToken value to include in a future
DescribeScalingPolicies request. |
private java.util.List<ScalingPolicy> |
scalingPolicies
A list of scaling policy objects.
|
Constructor and Description |
---|
DescribeScalingPoliciesResult() |
Modifier and Type | Method and Description |
---|---|
DescribeScalingPoliciesResult |
clone() |
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getNextToken()
The
NextToken value to include in a future
DescribeScalingPolicies request. |
java.util.List<ScalingPolicy> |
getScalingPolicies()
A list of scaling policy objects.
|
int |
hashCode() |
void |
setNextToken(java.lang.String nextToken)
The
NextToken value to include in a future
DescribeScalingPolicies request. |
void |
setScalingPolicies(java.util.Collection<ScalingPolicy> scalingPolicies)
A list of scaling policy objects.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
DescribeScalingPoliciesResult |
withNextToken(java.lang.String nextToken)
The
NextToken value to include in a future
DescribeScalingPolicies request. |
DescribeScalingPoliciesResult |
withScalingPolicies(java.util.Collection<ScalingPolicy> scalingPolicies)
A list of scaling policy objects.
|
DescribeScalingPoliciesResult |
withScalingPolicies(ScalingPolicy... scalingPolicies)
A list of scaling policy objects.
|
private java.util.List<ScalingPolicy> scalingPolicies
A list of scaling policy objects.
private java.lang.String nextToken
The NextToken
value to include in a future
DescribeScalingPolicies
request. When the results of a
DescribeScalingPolicies
request exceed
MaxResults
, this value can be used to retrieve the next page
of results. This value is null
when there are no more
results to return.
public java.util.List<ScalingPolicy> getScalingPolicies()
A list of scaling policy objects.
public void setScalingPolicies(java.util.Collection<ScalingPolicy> scalingPolicies)
A list of scaling policy objects.
scalingPolicies
- A list of scaling policy objects.public DescribeScalingPoliciesResult withScalingPolicies(ScalingPolicy... scalingPolicies)
A list of scaling policy objects.
NOTE: This method appends the values to the existing list (if
any). Use setScalingPolicies(java.util.Collection)
or
withScalingPolicies(java.util.Collection)
if you want to
override the existing values.
scalingPolicies
- A list of scaling policy objects.public DescribeScalingPoliciesResult withScalingPolicies(java.util.Collection<ScalingPolicy> scalingPolicies)
A list of scaling policy objects.
scalingPolicies
- A list of scaling policy objects.public void setNextToken(java.lang.String nextToken)
The NextToken
value to include in a future
DescribeScalingPolicies
request. When the results of a
DescribeScalingPolicies
request exceed
MaxResults
, this value can be used to retrieve the next page
of results. This value is null
when there are no more
results to return.
nextToken
- The NextToken
value to include in a future
DescribeScalingPolicies
request. When the results of
a DescribeScalingPolicies
request exceed
MaxResults
, this value can be used to retrieve the
next page of results. This value is null
when there
are no more results to return.public java.lang.String getNextToken()
The NextToken
value to include in a future
DescribeScalingPolicies
request. When the results of a
DescribeScalingPolicies
request exceed
MaxResults
, this value can be used to retrieve the next page
of results. This value is null
when there are no more
results to return.
NextToken
value to include in a future
DescribeScalingPolicies
request. When the results of
a DescribeScalingPolicies
request exceed
MaxResults
, this value can be used to retrieve the
next page of results. This value is null
when there
are no more results to return.public DescribeScalingPoliciesResult withNextToken(java.lang.String nextToken)
The NextToken
value to include in a future
DescribeScalingPolicies
request. When the results of a
DescribeScalingPolicies
request exceed
MaxResults
, this value can be used to retrieve the next page
of results. This value is null
when there are no more
results to return.
nextToken
- The NextToken
value to include in a future
DescribeScalingPolicies
request. When the results of
a DescribeScalingPolicies
request exceed
MaxResults
, this value can be used to retrieve the
next page of results. This value is null
when there
are no more results to return.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 DescribeScalingPoliciesResult clone()
clone
in class java.lang.Object