Interface GetEstimatedWaterAllocationRequest.Builder
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<GetEstimatedWaterAllocationRequest.Builder,,GetEstimatedWaterAllocationRequest> SdkBuilder<GetEstimatedWaterAllocationRequest.Builder,,GetEstimatedWaterAllocationRequest> SdkPojo,SdkRequest.Builder,SustainabilityRequest.Builder
- Enclosing class:
GetEstimatedWaterAllocationRequest
-
Method Summary
Modifier and TypeMethodDescriptionallocationTypes(Collection<WaterAllocationType> allocationTypes) The allocation types to include in the results.allocationTypes(WaterAllocationType... allocationTypes) The allocation types to include in the results.allocationTypesWithStrings(String... allocationTypes) The allocation types to include in the results.allocationTypesWithStrings(Collection<String> allocationTypes) The allocation types to include in the results.filterBy(Consumer<FilterExpression.Builder> filterBy) The criteria for filtering estimated water allocation.filterBy(FilterExpression filterBy) The criteria for filtering estimated water allocation.granularity(String granularity) The time granularity for the results.granularity(TimeGranularity granularity) The time granularity for the results.groupBy(Collection<Dimension> groupBy) The dimensions available for grouping estimated water allocation.The dimensions available for grouping estimated water allocation.groupByWithStrings(String... groupBy) The dimensions available for grouping estimated water allocation.groupByWithStrings(Collection<String> groupBy) The dimensions available for grouping estimated water allocation.maxResults(Integer maxResults) The maximum number of results to return in a single call.The pagination token specifying which page of results to return in the response.overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.timePeriod(Consumer<TimePeriod.Builder> timePeriod) The date range for fetching estimated water allocation.timePeriod(TimePeriod timePeriod) The date range for fetching estimated water allocation.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfigurationMethods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFieldsMethods inherited from interface software.amazon.awssdk.services.sustainability.model.SustainabilityRequest.Builder
build
-
Method Details
-
timePeriod
The date range for fetching estimated water allocation. The range must include the start date of a year for that year's data to be included in the response.
- Parameters:
timePeriod- The date range for fetching estimated water allocation. The range must include the start date of a year for that year's data to be included in the response.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
timePeriod
default GetEstimatedWaterAllocationRequest.Builder timePeriod(Consumer<TimePeriod.Builder> timePeriod) The date range for fetching estimated water allocation. The range must include the start date of a year for that year's data to be included in the response.
This is a convenience method that creates an instance of theTimePeriod.Builderavoiding the need to create one manually viaTimePeriod.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed totimePeriod(TimePeriod).- Parameters:
timePeriod- a consumer that will call methods onTimePeriod.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
groupByWithStrings
The dimensions available for grouping estimated water allocation.
- Parameters:
groupBy- The dimensions available for grouping estimated water allocation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
groupByWithStrings
The dimensions available for grouping estimated water allocation.
- Parameters:
groupBy- The dimensions available for grouping estimated water allocation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
groupBy
The dimensions available for grouping estimated water allocation.
- Parameters:
groupBy- The dimensions available for grouping estimated water allocation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
groupBy
The dimensions available for grouping estimated water allocation.
- Parameters:
groupBy- The dimensions available for grouping estimated water allocation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
filterBy
The criteria for filtering estimated water allocation. To determine which dimensions are available to be filtered by, you can first call GetEstimatedWaterAllocationDimensionValues
- Parameters:
filterBy- The criteria for filtering estimated water allocation. To determine which dimensions are available to be filtered by, you can first call GetEstimatedWaterAllocationDimensionValues- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
filterBy
default GetEstimatedWaterAllocationRequest.Builder filterBy(Consumer<FilterExpression.Builder> filterBy) The criteria for filtering estimated water allocation. To determine which dimensions are available to be filtered by, you can first call GetEstimatedWaterAllocationDimensionValues
This is a convenience method that creates an instance of theFilterExpression.Builderavoiding the need to create one manually viaFilterExpression.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tofilterBy(FilterExpression).- Parameters:
filterBy- a consumer that will call methods onFilterExpression.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
allocationTypesWithStrings
GetEstimatedWaterAllocationRequest.Builder allocationTypesWithStrings(Collection<String> allocationTypes) The allocation types to include in the results. If absent, returns
TOTAL_WATER_WITHDRAWALSallocation types.- Parameters:
allocationTypes- The allocation types to include in the results. If absent, returnsTOTAL_WATER_WITHDRAWALSallocation types.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
allocationTypesWithStrings
The allocation types to include in the results. If absent, returns
TOTAL_WATER_WITHDRAWALSallocation types.- Parameters:
allocationTypes- The allocation types to include in the results. If absent, returnsTOTAL_WATER_WITHDRAWALSallocation types.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
allocationTypes
GetEstimatedWaterAllocationRequest.Builder allocationTypes(Collection<WaterAllocationType> allocationTypes) The allocation types to include in the results. If absent, returns
TOTAL_WATER_WITHDRAWALSallocation types.- Parameters:
allocationTypes- The allocation types to include in the results. If absent, returnsTOTAL_WATER_WITHDRAWALSallocation types.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
allocationTypes
The allocation types to include in the results. If absent, returns
TOTAL_WATER_WITHDRAWALSallocation types.- Parameters:
allocationTypes- The allocation types to include in the results. If absent, returnsTOTAL_WATER_WITHDRAWALSallocation types.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
granularity
The time granularity for the results. Only
YEARLY_CALENDARtime granularity is currently supported for water allocation. Defaults toYEARLY_CALENDARif absent.If requesting partial time periods, data will be returned based on the smallest supported granularity. For example, requesting
2025-04-01T00:00:00Zto2026-04-01T00:00:00ZwithYEARLY_CALENDARwill return all the data for 2026 only.- Parameters:
granularity- The time granularity for the results. OnlyYEARLY_CALENDARtime granularity is currently supported for water allocation. Defaults toYEARLY_CALENDARif absent.If requesting partial time periods, data will be returned based on the smallest supported granularity. For example, requesting
2025-04-01T00:00:00Zto2026-04-01T00:00:00ZwithYEARLY_CALENDARwill return all the data for 2026 only.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
granularity
The time granularity for the results. Only
YEARLY_CALENDARtime granularity is currently supported for water allocation. Defaults toYEARLY_CALENDARif absent.If requesting partial time periods, data will be returned based on the smallest supported granularity. For example, requesting
2025-04-01T00:00:00Zto2026-04-01T00:00:00ZwithYEARLY_CALENDARwill return all the data for 2026 only.- Parameters:
granularity- The time granularity for the results. OnlyYEARLY_CALENDARtime granularity is currently supported for water allocation. Defaults toYEARLY_CALENDARif absent.If requesting partial time periods, data will be returned based on the smallest supported granularity. For example, requesting
2025-04-01T00:00:00Zto2026-04-01T00:00:00ZwithYEARLY_CALENDARwill return all the data for 2026 only.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
maxResults
The maximum number of results to return in a single call. Default is 1000.
- Parameters:
maxResults- The maximum number of results to return in a single call. Default is 1000.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
nextToken
The pagination token specifying which page of results to return in the response. If no token is provided, the default page is the first page.
- Parameters:
nextToken- The pagination token specifying which page of results to return in the response. If no token is provided, the default page is the first page.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
overrideConfiguration
GetEstimatedWaterAllocationRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
overrideConfiguration- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
GetEstimatedWaterAllocationRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
builderConsumer- AConsumerto which an emptyAwsRequestOverrideConfiguration.Builderwill be given.- Returns:
- This object for method chaining.
-