Interface GetUsageStatisticsResponse.Builder
-
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<GetUsageStatisticsResponse.Builder,GetUsageStatisticsResponse>,Macie2Response.Builder,SdkBuilder<GetUsageStatisticsResponse.Builder,GetUsageStatisticsResponse>,SdkPojo,SdkResponse.Builder
- Enclosing class:
- GetUsageStatisticsResponse
public static interface GetUsageStatisticsResponse.Builder extends Macie2Response.Builder, SdkPojo, CopyableBuilder<GetUsageStatisticsResponse.Builder,GetUsageStatisticsResponse>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description GetUsageStatisticsResponse.BuildernextToken(String nextToken)The string to use in a subsequent request to get the next page of results in a paginated response.GetUsageStatisticsResponse.Builderrecords(Collection<UsageRecord> records)An array of objects that contains the results of the query.GetUsageStatisticsResponse.Builderrecords(Consumer<UsageRecord.Builder>... records)An array of objects that contains the results of the query.GetUsageStatisticsResponse.Builderrecords(UsageRecord... records)An array of objects that contains the results of the query.GetUsageStatisticsResponse.BuildertimeRange(String timeRange)The inclusive time period that the usage data applies to.GetUsageStatisticsResponse.BuildertimeRange(TimeRange timeRange)The inclusive time period that the usage data applies to.-
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, sdkFields
-
Methods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
-
-
-
Method Detail
-
nextToken
GetUsageStatisticsResponse.Builder nextToken(String nextToken)
The string to use in a subsequent request to get the next page of results in a paginated response. This value is null if there are no additional pages.
- Parameters:
nextToken- The string to use in a subsequent request to get the next page of results in a paginated response. This value is null if there are no additional pages.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
records
GetUsageStatisticsResponse.Builder records(Collection<UsageRecord> records)
An array of objects that contains the results of the query. Each object contains the data for an account that matches the filter criteria specified in the request.
- Parameters:
records- An array of objects that contains the results of the query. Each object contains the data for an account that matches the filter criteria specified in the request.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
records
GetUsageStatisticsResponse.Builder records(UsageRecord... records)
An array of objects that contains the results of the query. Each object contains the data for an account that matches the filter criteria specified in the request.
- Parameters:
records- An array of objects that contains the results of the query. Each object contains the data for an account that matches the filter criteria specified in the request.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
records
GetUsageStatisticsResponse.Builder records(Consumer<UsageRecord.Builder>... records)
An array of objects that contains the results of the query. Each object contains the data for an account that matches the filter criteria specified in the request.
This is a convenience method that creates an instance of theUsageRecord.Builderavoiding the need to create one manually viaUsageRecord.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#records(List.) - Parameters:
records- a consumer that will call methods onUsageRecord.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#records(java.util.Collection)
-
timeRange
GetUsageStatisticsResponse.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
GetUsageStatisticsResponse.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
-
-