Interface GetUsageTotalsResponse.Builder
- All Superinterfaces:
AwsResponse.Builder
,Buildable
,CopyableBuilder<GetUsageTotalsResponse.Builder,
,GetUsageTotalsResponse> Macie2Response.Builder
,SdkBuilder<GetUsageTotalsResponse.Builder,
,GetUsageTotalsResponse> SdkPojo
,SdkResponse.Builder
- Enclosing class:
GetUsageTotalsResponse
-
Method Summary
Modifier and TypeMethodDescriptionThe inclusive time period that the usage data applies to.The inclusive time period that the usage data applies to.usageTotals
(Collection<UsageTotal> usageTotals) An array of objects that contains the results of the query.usageTotals
(Consumer<UsageTotal.Builder>... usageTotals) An array of objects that contains the results of the query.usageTotals
(UsageTotal... usageTotals) An array of objects that contains the results of the query.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.services.macie2.model.Macie2Response.Builder
build, responseMetadata, responseMetadata
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
Methods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Method Details
-
timeRange
The inclusive time period that the usage data applies to. Possible values are: MONTH_TO_DATE, for the current calendar month to date; and, PAST_30_DAYS, for the preceding 30 days.
- Parameters:
timeRange
- The inclusive time period that the usage data applies to. Possible values are: MONTH_TO_DATE, for the current calendar month to date; and, PAST_30_DAYS, for the preceding 30 days.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
timeRange
The inclusive time period that the usage data applies to. Possible values are: MONTH_TO_DATE, for the current calendar month to date; and, PAST_30_DAYS, for the preceding 30 days.
- Parameters:
timeRange
- The inclusive time period that the usage data applies to. Possible values are: MONTH_TO_DATE, for the current calendar month to date; and, PAST_30_DAYS, for the preceding 30 days.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
usageTotals
An array of objects that contains the results of the query. Each object contains the data for a specific usage metric.
- Parameters:
usageTotals
- An array of objects that contains the results of the query. Each object contains the data for a specific usage metric.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
usageTotals
An array of objects that contains the results of the query. Each object contains the data for a specific usage metric.
- Parameters:
usageTotals
- An array of objects that contains the results of the query. Each object contains the data for a specific usage metric.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
usageTotals
An array of objects that contains the results of the query. Each object contains the data for a specific usage metric.
This is a convenience method that creates an instance of theUsageTotal.Builder
avoiding the need to create one manually viaUsageTotal.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tousageTotals(List<UsageTotal>)
.- Parameters:
usageTotals
- a consumer that will call methods onUsageTotal.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-