Interface EstimatedWaterAllocation.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<EstimatedWaterAllocation.Builder,,EstimatedWaterAllocation> SdkBuilder<EstimatedWaterAllocation.Builder,,EstimatedWaterAllocation> SdkPojo
- Enclosing class:
EstimatedWaterAllocation
-
Method Summary
Modifier and TypeMethodDescriptionallocationValues(Map<WaterAllocationType, WaterAllocation> allocationValues) The allocation values for the requested water allocation types.allocationValuesWithStrings(Map<String, WaterAllocation> allocationValues) The allocation values for the requested water allocation types.dimensionsValues(Map<Dimension, String> dimensionsValues) The dimensions used to group water allocation values.dimensionsValuesWithStrings(Map<String, String> dimensionsValues) The dimensions used to group water allocation values.modelVersion(String modelVersion) The semantic version-formatted string that indicates the methodology version used to calculate the water allocation values.default EstimatedWaterAllocation.BuildertimePeriod(Consumer<TimePeriod.Builder> timePeriod) The reporting period for water allocation values.timePeriod(TimePeriod timePeriod) The reporting period for water allocation values.Methods 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, sdkFields
-
Method Details
-
timePeriod
The reporting period for water allocation values.
- Parameters:
timePeriod- The reporting period for water allocation values.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
timePeriod
The reporting period for water allocation values.
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:
-
dimensionsValuesWithStrings
The dimensions used to group water allocation values.
- Parameters:
dimensionsValues- The dimensions used to group water allocation values.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
dimensionsValues
The dimensions used to group water allocation values.
- Parameters:
dimensionsValues- The dimensions used to group water allocation values.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
modelVersion
The semantic version-formatted string that indicates the methodology version used to calculate the water allocation values.
The AWS Sustainability service reflects the most recent model version for every month. You will not see two entries for the same month with different
ModelVersionvalues.- Parameters:
modelVersion- The semantic version-formatted string that indicates the methodology version used to calculate the water allocation values.The AWS Sustainability service reflects the most recent model version for every month. You will not see two entries for the same month with different
ModelVersionvalues.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
allocationValuesWithStrings
EstimatedWaterAllocation.Builder allocationValuesWithStrings(Map<String, WaterAllocation> allocationValues) The allocation values for the requested water allocation types.
- Parameters:
allocationValues- The allocation values for the requested water allocation types.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
allocationValues
EstimatedWaterAllocation.Builder allocationValues(Map<WaterAllocationType, WaterAllocation> allocationValues) The allocation values for the requested water allocation types.
- Parameters:
allocationValues- The allocation values for the requested water allocation types.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-