Interface GetUsageStatisticsRequest.Builder

    • Method Detail

      • detectorId

        GetUsageStatisticsRequest.Builder detectorId​(String detectorId)

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

        To find the detectorId in the current Region, see the Settings page in the GuardDuty console, or run the ListDetectors API.

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

        To find the detectorId in the current Region, see the Settings page in the GuardDuty console, or run the ListDetectors API.

        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • 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.
      • unit

        GetUsageStatisticsRequest.Builder unit​(String 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

        GetUsageStatisticsRequest.Builder maxResults​(Integer 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

        GetUsageStatisticsRequest.Builder nextToken​(String 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.