public class DescribeScalingActivitiesRequest extends AmazonWebServiceRequest implements Serializable
DescribeScalingActivities operation
.
Returns the scaling activities for the specified Auto Scaling group.
If the specified ActivityIds
list is empty, all the
activities from the past six weeks are returned. Activities are sorted
by the start time. Activities still in progress appear first on the
list.
This action supports pagination. If the response includes a token,
there are more records available. To get the additional records,
repeat the request with the response token as the
NextToken
parameter.
Constructor and Description |
---|
DescribeScalingActivitiesRequest() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
List<String> |
getActivityIds()
A list containing the activity IDs of the desired scaling activities.
|
String |
getAutoScalingGroupName()
The name of the AutoScalingGroup.
|
Integer |
getMaxRecords()
The maximum number of scaling activities to return.
|
String |
getNextToken()
A string that marks the start of the next batch of returned results
for pagination.
|
int |
hashCode() |
void |
setActivityIds(Collection<String> activityIds)
A list containing the activity IDs of the desired scaling activities.
|
void |
setAutoScalingGroupName(String autoScalingGroupName)
The name of the AutoScalingGroup.
|
void |
setMaxRecords(Integer maxRecords)
The maximum number of scaling activities to return.
|
void |
setNextToken(String nextToken)
A string that marks the start of the next batch of returned results
for pagination.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
DescribeScalingActivitiesRequest |
withActivityIds(Collection<String> activityIds)
A list containing the activity IDs of the desired scaling activities.
|
DescribeScalingActivitiesRequest |
withActivityIds(String... activityIds)
A list containing the activity IDs of the desired scaling activities.
|
DescribeScalingActivitiesRequest |
withAutoScalingGroupName(String autoScalingGroupName)
The name of the AutoScalingGroup.
|
DescribeScalingActivitiesRequest |
withMaxRecords(Integer maxRecords)
The maximum number of scaling activities to return.
|
DescribeScalingActivitiesRequest |
withNextToken(String nextToken)
A string that marks the start of the next batch of returned results
for pagination.
|
copyPrivateRequestParameters, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setRequestCredentials, setRequestMetricCollector, withRequestMetricCollector
public List<String> getActivityIds()
AutoScalingGroupName
is provided, the results are limited
to that group. The list of requested activities cannot contain more
than 50 items. If unknown activities are requested, they are ignored
with no error.AutoScalingGroupName
is provided, the results are limited
to that group. The list of requested activities cannot contain more
than 50 items. If unknown activities are requested, they are ignored
with no error.public void setActivityIds(Collection<String> activityIds)
AutoScalingGroupName
is provided, the results are limited
to that group. The list of requested activities cannot contain more
than 50 items. If unknown activities are requested, they are ignored
with no error.activityIds
- A list containing the activity IDs of the desired scaling activities.
If this list is omitted, all activities are described. If an
AutoScalingGroupName
is provided, the results are limited
to that group. The list of requested activities cannot contain more
than 50 items. If unknown activities are requested, they are ignored
with no error.public DescribeScalingActivitiesRequest withActivityIds(String... activityIds)
AutoScalingGroupName
is provided, the results are limited
to that group. The list of requested activities cannot contain more
than 50 items. If unknown activities are requested, they are ignored
with no error.
Returns a reference to this object so that method calls can be chained together.
activityIds
- A list containing the activity IDs of the desired scaling activities.
If this list is omitted, all activities are described. If an
AutoScalingGroupName
is provided, the results are limited
to that group. The list of requested activities cannot contain more
than 50 items. If unknown activities are requested, they are ignored
with no error.public DescribeScalingActivitiesRequest withActivityIds(Collection<String> activityIds)
AutoScalingGroupName
is provided, the results are limited
to that group. The list of requested activities cannot contain more
than 50 items. If unknown activities are requested, they are ignored
with no error.
Returns a reference to this object so that method calls can be chained together.
activityIds
- A list containing the activity IDs of the desired scaling activities.
If this list is omitted, all activities are described. If an
AutoScalingGroupName
is provided, the results are limited
to that group. The list of requested activities cannot contain more
than 50 items. If unknown activities are requested, they are ignored
with no error.public String getAutoScalingGroupName()
Constraints:
Length: 1 - 1600
Pattern: [ --�𐀀-\r\n\t]*
public void setAutoScalingGroupName(String autoScalingGroupName)
Constraints:
Length: 1 - 1600
Pattern: [ --�𐀀-\r\n\t]*
autoScalingGroupName
- The name of the AutoScalingGroup.public DescribeScalingActivitiesRequest withAutoScalingGroupName(String autoScalingGroupName)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 1600
Pattern: [ --�𐀀-\r\n\t]*
autoScalingGroupName
- The name of the AutoScalingGroup.public Integer getMaxRecords()
Constraints:
Range: 1 - 50
public void setMaxRecords(Integer maxRecords)
Constraints:
Range: 1 - 50
maxRecords
- The maximum number of scaling activities to return.public DescribeScalingActivitiesRequest withMaxRecords(Integer maxRecords)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Range: 1 - 50
maxRecords
- The maximum number of scaling activities to return.public String getNextToken()
Constraints:
Pattern: [ --�𐀀-\r\n\t]*
public void setNextToken(String nextToken)
Constraints:
Pattern: [ --�𐀀-\r\n\t]*
nextToken
- A string that marks the start of the next batch of returned results
for pagination.public DescribeScalingActivitiesRequest withNextToken(String nextToken)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Pattern: [ --�𐀀-\r\n\t]*
nextToken
- A string that marks the start of the next batch of returned results
for pagination.public String toString()
toString
in class Object
Object.toString()
Copyright © 2016. All rights reserved.