Interface GetUsageTotalsResponse.Builder
-
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<GetUsageTotalsResponse.Builder,GetUsageTotalsResponse>,Macie2Response.Builder,SdkBuilder<GetUsageTotalsResponse.Builder,GetUsageTotalsResponse>,SdkPojo,SdkResponse.Builder
- Enclosing class:
- GetUsageTotalsResponse
public static interface GetUsageTotalsResponse.Builder extends Macie2Response.Builder, SdkPojo, CopyableBuilder<GetUsageTotalsResponse.Builder,GetUsageTotalsResponse>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description GetUsageTotalsResponse.BuildertimeRange(String timeRange)The inclusive time period that the usage data applies to.GetUsageTotalsResponse.BuildertimeRange(TimeRange timeRange)The inclusive time period that the usage data applies to.GetUsageTotalsResponse.BuilderusageTotals(Collection<UsageTotal> usageTotals)An array of objects that contains the results of the query.GetUsageTotalsResponse.BuilderusageTotals(Consumer<UsageTotal.Builder>... usageTotals)An array of objects that contains the results of the query.GetUsageTotalsResponse.BuilderusageTotals(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 Detail
-
timeRange
GetUsageTotalsResponse.Builder timeRange(String 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,TimeRange
-
timeRange
GetUsageTotalsResponse.Builder timeRange(TimeRange 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,TimeRange
-
usageTotals
GetUsageTotalsResponse.Builder usageTotals(Collection<UsageTotal> 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
GetUsageTotalsResponse.Builder usageTotals(UsageTotal... 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
GetUsageTotalsResponse.Builder usageTotals(Consumer<UsageTotal.Builder>... 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.Builderavoiding the need to create one manually viaUsageTotal.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#usageTotals(List.) - 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:
#usageTotals(java.util.Collection)
-
-