Interface ListAlertsResponse.Builder

    • Method Detail

      • items

        ListAlertsResponse.Builder items​(Collection<Alert> items)

        A list of alerts that are associated with this resource.

        Parameters:
        items - A list of alerts that are associated with this resource.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • items

        ListAlertsResponse.Builder items​(Alert... items)

        A list of alerts that are associated with this resource.

        Parameters:
        items - A list of alerts that are associated with this resource.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • items

        ListAlertsResponse.Builder items​(Consumer<Alert.Builder>... items)

        A list of alerts that are associated with this resource.

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

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

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

        ListAlertsResponse.Builder nextToken​(String nextToken)

        Pagination token returned by the list request when results exceed the maximum allowed. Use the token to fetch the next page of results.

        Parameters:
        nextToken - Pagination token returned by the list request when results exceed the maximum allowed. Use the token to fetch the next page of results.
        Returns:
        Returns a reference to this object so that method calls can be chained together.