Interface GetUsageStatisticsRequest.Builder

All Superinterfaces:
AwsRequest.Builder, Buildable, CopyableBuilder<GetUsageStatisticsRequest.Builder,GetUsageStatisticsRequest>, GuardDutyRequest.Builder, SdkBuilder<GetUsageStatisticsRequest.Builder,GetUsageStatisticsRequest>, SdkPojo, SdkRequest.Builder
Enclosing class:
GetUsageStatisticsRequest

public static interface GetUsageStatisticsRequest.Builder extends GuardDutyRequest.Builder, SdkPojo, CopyableBuilder<GetUsageStatisticsRequest.Builder,GetUsageStatisticsRequest>
  • Method Details

    • detectorId

      GetUsageStatisticsRequest.Builder detectorId(String detectorId)

      The ID of the detector that specifies the GuardDuty service whose usage statistics you want to retrieve.

      Parameters:
      detectorId - The ID of the detector that specifies the GuardDuty service whose usage statistics you want to retrieve.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • usageStatisticType

      GetUsageStatisticsRequest.Builder usageStatisticType(String usageStatisticType)

      The type of usage statistics to retrieve.

      Parameters:
      usageStatisticType - The type of usage statistics to retrieve.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • usageStatisticType

      GetUsageStatisticsRequest.Builder usageStatisticType(UsageStatisticType usageStatisticType)

      The type of usage statistics to retrieve.

      Parameters:
      usageStatisticType - The type of usage statistics to retrieve.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • usageCriteria

      GetUsageStatisticsRequest.Builder usageCriteria(UsageCriteria usageCriteria)

      Represents the criteria used for querying usage.

      Parameters:
      usageCriteria - Represents the criteria used for querying usage.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • usageCriteria

      default GetUsageStatisticsRequest.Builder usageCriteria(Consumer<UsageCriteria.Builder> usageCriteria)

      Represents the criteria used for querying usage.

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

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to usageCriteria(UsageCriteria).

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

      The currency unit you would like to view your usage statistics in. Current valid values are USD.

      Parameters:
      unit - The currency unit you would like to view your usage statistics in. Current valid values are USD.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • maxResults

      The maximum number of results to return in the response.

      Parameters:
      maxResults - The maximum number of results to return in the response.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • nextToken

      A token to use for paginating results that are returned in the response. Set the value of this parameter to null for the first request to a list action. For subsequent calls, use the NextToken value returned from the previous request to continue listing results after the first page.

      Parameters:
      nextToken - A token to use for paginating results that are returned in the response. Set the value of this parameter to null for the first request to a list action. For subsequent calls, use the NextToken value returned from the previous request to continue listing results after the first page.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • overrideConfiguration

      GetUsageStatisticsRequest.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.