Interface ListServiceStatesRequest.Builder

  • Method Details

    • startTime

      The start of the time period to retrieve service state information for. When used in a raw HTTP Query API, it is formatted as epoch time in seconds. For example, 1698778057.

      Parameters:
      startTime - The start of the time period to retrieve service state information for. When used in a raw HTTP Query API, it is formatted as epoch time in seconds. For example, 1698778057.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • endTime

      The end of the time period to retrieve service state information for. When used in a raw HTTP Query API, it is formatted as epoch time in seconds. For example, 1698778057.

      Parameters:
      endTime - The end of the time period to retrieve service state information for. When used in a raw HTTP Query API, it is formatted as epoch time in seconds. For example, 1698778057.
      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 one operation. If you omit this parameter, the default of 20 is used.

      Parameters:
      maxResults - The maximum number of service states to return in one operation. If you omit this parameter, the default of 20 is used.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • nextToken

      Include this value, if it was returned by the previous operation, to get the next set of service states.

      Parameters:
      nextToken - Include this value, if it was returned by the previous operation, to get the next set of service states.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • includeLinkedAccounts

      ListServiceStatesRequest.Builder includeLinkedAccounts(Boolean includeLinkedAccounts)

      If you are using this operation in a monitoring account, specify true to include service states from source accounts in the returned data.

      Parameters:
      includeLinkedAccounts - If you are using this operation in a monitoring account, specify true to include service states from source accounts in the returned data.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • awsAccountId

      ListServiceStatesRequest.Builder awsAccountId(String awsAccountId)

      The Amazon Web Services account ID to filter service states by. Use this to limit results to services from a specific account.

      Parameters:
      awsAccountId - The Amazon Web Services account ID to filter service states by. Use this to limit results to services from a specific account.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • attributeFilters

      ListServiceStatesRequest.Builder attributeFilters(Collection<AttributeFilter> attributeFilters)

      A list of attribute filters to narrow down the services. You can filter by platform, environment, or other service attributes.

      Parameters:
      attributeFilters - A list of attribute filters to narrow down the services. You can filter by platform, environment, or other service attributes.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • attributeFilters

      ListServiceStatesRequest.Builder attributeFilters(AttributeFilter... attributeFilters)

      A list of attribute filters to narrow down the services. You can filter by platform, environment, or other service attributes.

      Parameters:
      attributeFilters - A list of attribute filters to narrow down the services. You can filter by platform, environment, or other service attributes.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • attributeFilters

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

      A list of attribute filters to narrow down the services. You can filter by platform, environment, or other service attributes.

      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.