Interface GetEstimatedCarbonEmissionsDimensionValuesRequest.Builder
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<GetEstimatedCarbonEmissionsDimensionValuesRequest.Builder,,GetEstimatedCarbonEmissionsDimensionValuesRequest> SdkBuilder<GetEstimatedCarbonEmissionsDimensionValuesRequest.Builder,,GetEstimatedCarbonEmissionsDimensionValuesRequest> SdkPojo,SdkRequest.Builder,SustainabilityRequest.Builder
- Enclosing class:
GetEstimatedCarbonEmissionsDimensionValuesRequest
@Mutable
@NotThreadSafe
public static interface GetEstimatedCarbonEmissionsDimensionValuesRequest.Builder
extends SustainabilityRequest.Builder, SdkPojo, CopyableBuilder<GetEstimatedCarbonEmissionsDimensionValuesRequest.Builder,GetEstimatedCarbonEmissionsDimensionValuesRequest>
-
Method Summary
Modifier and TypeMethodDescriptiondimensions(Collection<Dimension> dimensions) The dimensions available for grouping estimated carbon emissions.dimensions(Dimension... dimensions) The dimensions available for grouping estimated carbon emissions.dimensionsWithStrings(String... dimensions) The dimensions available for grouping estimated carbon emissions.dimensionsWithStrings(Collection<String> dimensions) The dimensions available for grouping estimated carbon emissions.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 the dimension values.timePeriod(TimePeriod timePeriod) The date range for fetching the dimension values.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 the dimension values.
- Parameters:
timePeriod- The date range for fetching the dimension values.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
timePeriod
default GetEstimatedCarbonEmissionsDimensionValuesRequest.Builder timePeriod(Consumer<TimePeriod.Builder> timePeriod) The date range for fetching the dimension 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:
-
dimensionsWithStrings
GetEstimatedCarbonEmissionsDimensionValuesRequest.Builder dimensionsWithStrings(Collection<String> dimensions) The dimensions available for grouping estimated carbon emissions.
- Parameters:
dimensions- The dimensions available for grouping estimated carbon emissions.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
dimensionsWithStrings
GetEstimatedCarbonEmissionsDimensionValuesRequest.Builder dimensionsWithStrings(String... dimensions) The dimensions available for grouping estimated carbon emissions.
- Parameters:
dimensions- The dimensions available for grouping estimated carbon emissions.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
dimensions
GetEstimatedCarbonEmissionsDimensionValuesRequest.Builder dimensions(Collection<Dimension> dimensions) The dimensions available for grouping estimated carbon emissions.
- Parameters:
dimensions- The dimensions available for grouping estimated carbon emissions.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
dimensions
The dimensions available for grouping estimated carbon emissions.
- Parameters:
dimensions- The dimensions available for grouping estimated carbon emissions.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
maxResults
The maximum number of results to return in a single call. Default is 40.
- Parameters:
maxResults- The maximum number of results to return in a single call. Default is 40.- 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
GetEstimatedCarbonEmissionsDimensionValuesRequest.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
GetEstimatedCarbonEmissionsDimensionValuesRequest.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.
-