Interface ListServiceStatesRequest.Builder

  • Method Details

    • startTime

      The start time for the service states query. Only service states from this time onward will be included. Specify the time as the number of milliseconds since January 1, 1970, 00:00:00 UTC.

      Parameters:
      startTime - The start time for the service states query. Only service states from this time onward will be included. Specify the time as the number of milliseconds since January 1, 1970, 00:00:00 UTC.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • endTime

      The end time for the service states query. Only service states before this time will be included. Specify the time as the number of milliseconds since January 1, 1970, 00:00:00 UTC.

      Parameters:
      endTime - The end time for the service states query. Only service states before this time will be included. Specify the time as the number of milliseconds since January 1, 1970, 00:00:00 UTC.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • maxResults

      ListServiceStatesRequest.Builder maxResults(Integer maxResults)

      The maximum number of service states to return in a single request. Valid range is 1 to 100. If not specified, defaults to 50.

      Parameters:
      maxResults - The maximum number of service states to return in a single request. Valid range is 1 to 100. If not specified, defaults to 50.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • nextToken

      The token for the next set of results. Use this token to retrieve additional pages of service states when the result set is large.

      Parameters:
      nextToken - The token for the next set of results. Use this token to retrieve additional pages of service states when the result set is large.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • includeLinkedAccounts

      ListServiceStatesRequest.Builder includeLinkedAccounts(Boolean includeLinkedAccounts)

      Specifies whether to include service states from linked AWS accounts in the results. Set to true to include linked accounts, or false to only include the current account. Defaults to false.

      Parameters:
      includeLinkedAccounts - Specifies whether to include service states from linked AWS accounts in the results. Set to true to include linked accounts, or false to only include the current account. Defaults to false.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • awsAccountId

      ListServiceStatesRequest.Builder awsAccountId(String awsAccountId)

      The AWS account ID to filter service states. If specified, only service states from this account will be returned. If not specified, service states from the current account (and linked accounts if enabled) are returned.

      Parameters:
      awsAccountId - The AWS account ID to filter service states. If specified, only service states from this account will be returned. If not specified, service states from the current account (and linked accounts if enabled) are returned.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • attributeFilters

      ListServiceStatesRequest.Builder attributeFilters(Collection<AttributeFilter> attributeFilters)

      An array of attribute filters to narrow down the service states returned. Each filter specifies an attribute name and the values to match against.

      Parameters:
      attributeFilters - An array of attribute filters to narrow down the service states returned. Each filter specifies an attribute name and the values to match against.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • attributeFilters

      ListServiceStatesRequest.Builder attributeFilters(AttributeFilter... attributeFilters)

      An array of attribute filters to narrow down the service states returned. Each filter specifies an attribute name and the values to match against.

      Parameters:
      attributeFilters - An array of attribute filters to narrow down the service states returned. Each filter specifies an attribute name and the values to match against.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • attributeFilters

      ListServiceStatesRequest.Builder attributeFilters(Consumer<AttributeFilter.Builder>... attributeFilters)

      An array of attribute filters to narrow down the service states returned. Each filter specifies an attribute name and the values to match against.

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

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to attributeFilters(List<AttributeFilter>).

      Parameters:
      attributeFilters - a consumer that will call methods on AttributeFilter.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • overrideConfiguration

      ListServiceStatesRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
      Description copied from interface: AwsRequest.Builder
      Add an optional request override configuration.
      Specified by:
      overrideConfiguration in interface AwsRequest.Builder
      Parameters:
      overrideConfiguration - The override configuration.
      Returns:
      This object for method chaining.
    • overrideConfiguration

      Description copied from interface: AwsRequest.Builder
      Add an optional request override configuration.
      Specified by:
      overrideConfiguration in interface AwsRequest.Builder
      Parameters:
      builderConsumer - A Consumer to which an empty AwsRequestOverrideConfiguration.Builder will be given.
      Returns:
      This object for method chaining.