Interface GetUsageStatisticsRequest.Builder
- All Superinterfaces:
AwsRequest.Builder
,Buildable
,CopyableBuilder<GetUsageStatisticsRequest.Builder,
,GetUsageStatisticsRequest> GuardDutyRequest.Builder
,SdkBuilder<GetUsageStatisticsRequest.Builder,
,GetUsageStatisticsRequest> SdkPojo
,SdkRequest.Builder
- Enclosing class:
GetUsageStatisticsRequest
-
Method Summary
Modifier and TypeMethodDescriptiondetectorId
(String detectorId) The ID of the detector that specifies the GuardDuty service whose usage statistics you want to retrieve.maxResults
(Integer maxResults) The maximum number of results to return in the response.A token to use for paginating results that are returned in the response.overrideConfiguration
(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration
(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.The currency unit you would like to view your usage statistics in.usageCriteria
(Consumer<UsageCriteria.Builder> usageCriteria) Represents the criteria used for querying usage.usageCriteria
(UsageCriteria usageCriteria) Represents the criteria used for querying usage.usageStatisticType
(String usageStatisticType) The type of usage statistics to retrieve.usageStatisticType
(UsageStatisticType usageStatisticType) The type of usage statistics to retrieve.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfiguration
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.services.guardduty.model.GuardDutyRequest.Builder
build
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
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
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
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
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 theUsageCriteria.Builder
avoiding the need to create one manually viaUsageCriteria.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tousageCriteria(UsageCriteria)
.- Parameters:
usageCriteria
- a consumer that will call methods onUsageCriteria.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 interfaceAwsRequest.Builder
- Parameters:
overrideConfiguration
- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
GetUsageStatisticsRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
builderConsumer
- AConsumer
to which an emptyAwsRequestOverrideConfiguration.Builder
will be given.- Returns:
- This object for method chaining.
-