Interface DescribeScalingActivitiesRequest.Builder

    • Method Detail

      • activityIds

        DescribeScalingActivitiesRequest.Builder activityIds​(Collection<String> activityIds)

        The activity IDs of the desired scaling activities. If unknown activity IDs are requested, they are ignored with no error. Only activities started within the last six weeks can be returned regardless of the activity IDs specified. If other filters are specified with the request, only results matching all filter criteria can be returned.

        Array Members: Maximum number of 50 IDs.

        Parameters:
        activityIds - The activity IDs of the desired scaling activities. If unknown activity IDs are requested, they are ignored with no error. Only activities started within the last six weeks can be returned regardless of the activity IDs specified. If other filters are specified with the request, only results matching all filter criteria can be returned.

        Array Members: Maximum number of 50 IDs.

        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • activityIds

        DescribeScalingActivitiesRequest.Builder activityIds​(String... activityIds)

        The activity IDs of the desired scaling activities. If unknown activity IDs are requested, they are ignored with no error. Only activities started within the last six weeks can be returned regardless of the activity IDs specified. If other filters are specified with the request, only results matching all filter criteria can be returned.

        Array Members: Maximum number of 50 IDs.

        Parameters:
        activityIds - The activity IDs of the desired scaling activities. If unknown activity IDs are requested, they are ignored with no error. Only activities started within the last six weeks can be returned regardless of the activity IDs specified. If other filters are specified with the request, only results matching all filter criteria can be returned.

        Array Members: Maximum number of 50 IDs.

        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • autoScalingGroupName

        DescribeScalingActivitiesRequest.Builder autoScalingGroupName​(String autoScalingGroupName)

        The name of the Auto Scaling group.

        Omitting this property performs an account-wide operation, which can result in slower or timed-out requests.

        Parameters:
        autoScalingGroupName - The name of the Auto Scaling group.

        Omitting this property performs an account-wide operation, which can result in slower or timed-out requests.

        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • includeDeletedGroups

        DescribeScalingActivitiesRequest.Builder includeDeletedGroups​(Boolean includeDeletedGroups)

        Indicates whether to include scaling activity from deleted Auto Scaling groups.

        Parameters:
        includeDeletedGroups - Indicates whether to include scaling activity from deleted Auto Scaling groups.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • maxRecords

        DescribeScalingActivitiesRequest.Builder maxRecords​(Integer maxRecords)

        The maximum number of items to return with this call. The default value is 100 and the maximum value is 100.

        Parameters:
        maxRecords - The maximum number of items to return with this call. The default value is 100 and the maximum value is 100.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • nextToken

        DescribeScalingActivitiesRequest.Builder nextToken​(String nextToken)

        The token for the next set of items to return. (You received this token from a previous call.)

        Parameters:
        nextToken - The token for the next set of items to return. (You received this token from a previous call.)
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • filters

        DescribeScalingActivitiesRequest.Builder filters​(Collection<Filter> filters)

        One or more filters to limit the results based on specific criteria. The following filters are supported:

        • StartTimeLowerBound - The earliest scaling activities to return based on the activity start time. Scaling activities with a start time earlier than this value are not included in the results. Only activities started within the last six weeks can be returned regardless of the value specified.

        • StartTimeUpperBound - The latest scaling activities to return based on the activity start time. Scaling activities with a start time later than this value are not included in the results. Only activities started within the last six weeks can be returned regardless of the value specified.

        • Status - The StatusCode value of the scaling activity. This filter can only be used in combination with the AutoScalingGroupName parameter. For valid StatusCode values, see Activity in the Amazon EC2 Auto Scaling API Reference.

        Parameters:
        filters - One or more filters to limit the results based on specific criteria. The following filters are supported:

        • StartTimeLowerBound - The earliest scaling activities to return based on the activity start time. Scaling activities with a start time earlier than this value are not included in the results. Only activities started within the last six weeks can be returned regardless of the value specified.

        • StartTimeUpperBound - The latest scaling activities to return based on the activity start time. Scaling activities with a start time later than this value are not included in the results. Only activities started within the last six weeks can be returned regardless of the value specified.

        • Status - The StatusCode value of the scaling activity. This filter can only be used in combination with the AutoScalingGroupName parameter. For valid StatusCode values, see Activity in the Amazon EC2 Auto Scaling API Reference.

        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • filters

        DescribeScalingActivitiesRequest.Builder filters​(Filter... filters)

        One or more filters to limit the results based on specific criteria. The following filters are supported:

        • StartTimeLowerBound - The earliest scaling activities to return based on the activity start time. Scaling activities with a start time earlier than this value are not included in the results. Only activities started within the last six weeks can be returned regardless of the value specified.

        • StartTimeUpperBound - The latest scaling activities to return based on the activity start time. Scaling activities with a start time later than this value are not included in the results. Only activities started within the last six weeks can be returned regardless of the value specified.

        • Status - The StatusCode value of the scaling activity. This filter can only be used in combination with the AutoScalingGroupName parameter. For valid StatusCode values, see Activity in the Amazon EC2 Auto Scaling API Reference.

        Parameters:
        filters - One or more filters to limit the results based on specific criteria. The following filters are supported:

        • StartTimeLowerBound - The earliest scaling activities to return based on the activity start time. Scaling activities with a start time earlier than this value are not included in the results. Only activities started within the last six weeks can be returned regardless of the value specified.

        • StartTimeUpperBound - The latest scaling activities to return based on the activity start time. Scaling activities with a start time later than this value are not included in the results. Only activities started within the last six weeks can be returned regardless of the value specified.

        • Status - The StatusCode value of the scaling activity. This filter can only be used in combination with the AutoScalingGroupName parameter. For valid StatusCode values, see Activity in the Amazon EC2 Auto Scaling API Reference.

        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • filters

        DescribeScalingActivitiesRequest.Builder filters​(Consumer<Filter.Builder>... filters)

        One or more filters to limit the results based on specific criteria. The following filters are supported:

        • StartTimeLowerBound - The earliest scaling activities to return based on the activity start time. Scaling activities with a start time earlier than this value are not included in the results. Only activities started within the last six weeks can be returned regardless of the value specified.

        • StartTimeUpperBound - The latest scaling activities to return based on the activity start time. Scaling activities with a start time later than this value are not included in the results. Only activities started within the last six weeks can be returned regardless of the value specified.

        • Status - The StatusCode value of the scaling activity. This filter can only be used in combination with the AutoScalingGroupName parameter. For valid StatusCode values, see Activity in the Amazon EC2 Auto Scaling API Reference.

        This is a convenience method that creates an instance of the Filter.Builder avoiding the need to create one manually via Filter.builder().

        When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to #filters(List).

        Parameters:
        filters - a consumer that will call methods on Filter.Builder
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        #filters(java.util.Collection)