Interface GetEstimatedCarbonEmissionsRequest.Builder

  • Method Details

    • timePeriod

      The date range for fetching estimated carbon emissions. The range must include the start date of a month for that month's data to be included in the response.

      Parameters:
      timePeriod - The date range for fetching estimated carbon emissions. The range must include the start date of a month for that month's data to be included in the response.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • timePeriod

      The date range for fetching estimated carbon emissions. The range must include the start date of a month for that month's data to be included in the response.

      This is a convenience method that creates an instance of the TimePeriod.Builder avoiding the need to create one manually via TimePeriod.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to timePeriod(TimePeriod).

      Parameters:
      timePeriod - a consumer that will call methods on TimePeriod.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 carbon emissions.

      Parameters:
      groupBy - The dimensions available for grouping estimated carbon emissions.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • groupByWithStrings

      GetEstimatedCarbonEmissionsRequest.Builder groupByWithStrings(String... groupBy)

      The dimensions available for grouping estimated carbon emissions.

      Parameters:
      groupBy - The dimensions available for grouping estimated carbon emissions.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • groupBy

      The dimensions available for grouping estimated carbon emissions.

      Parameters:
      groupBy - The dimensions available for grouping estimated carbon emissions.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • groupBy

      The dimensions available for grouping estimated carbon emissions.

      Parameters:
      groupBy - The dimensions available for grouping estimated carbon emissions.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • filterBy

      The criteria for filtering estimated carbon emissions. To determine which dimensions are available to be filtered by, you can first call GetEstimatedCarbonEmissionsDimensionValues

      Parameters:
      filterBy - The criteria for filtering estimated carbon emissions. To determine which dimensions are available to be filtered by, you can first call GetEstimatedCarbonEmissionsDimensionValues
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • filterBy

      The criteria for filtering estimated carbon emissions. To determine which dimensions are available to be filtered by, you can first call GetEstimatedCarbonEmissionsDimensionValues

      This is a convenience method that creates an instance of the FilterExpression.Builder avoiding the need to create one manually via FilterExpression.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to filterBy(FilterExpression).

      Parameters:
      filterBy - a consumer that will call methods on FilterExpression.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • emissionsTypesWithStrings

      GetEstimatedCarbonEmissionsRequest.Builder emissionsTypesWithStrings(Collection<String> emissionsTypes)

      The emission types to include in the results. If absent, returns TOTAL_LBM_CARBON_EMISSIONS and TOTAL_MBM_CARBON_EMISSIONS emissions types.

      Parameters:
      emissionsTypes - The emission types to include in the results. If absent, returns TOTAL_LBM_CARBON_EMISSIONS and TOTAL_MBM_CARBON_EMISSIONS emissions types.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • emissionsTypesWithStrings

      GetEstimatedCarbonEmissionsRequest.Builder emissionsTypesWithStrings(String... emissionsTypes)

      The emission types to include in the results. If absent, returns TOTAL_LBM_CARBON_EMISSIONS and TOTAL_MBM_CARBON_EMISSIONS emissions types.

      Parameters:
      emissionsTypes - The emission types to include in the results. If absent, returns TOTAL_LBM_CARBON_EMISSIONS and TOTAL_MBM_CARBON_EMISSIONS emissions types.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • emissionsTypes

      The emission types to include in the results. If absent, returns TOTAL_LBM_CARBON_EMISSIONS and TOTAL_MBM_CARBON_EMISSIONS emissions types.

      Parameters:
      emissionsTypes - The emission types to include in the results. If absent, returns TOTAL_LBM_CARBON_EMISSIONS and TOTAL_MBM_CARBON_EMISSIONS emissions types.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • emissionsTypes

      GetEstimatedCarbonEmissionsRequest.Builder emissionsTypes(EmissionsType... emissionsTypes)

      The emission types to include in the results. If absent, returns TOTAL_LBM_CARBON_EMISSIONS and TOTAL_MBM_CARBON_EMISSIONS emissions types.

      Parameters:
      emissionsTypes - The emission types to include in the results. If absent, returns TOTAL_LBM_CARBON_EMISSIONS and TOTAL_MBM_CARBON_EMISSIONS emissions types.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • granularity

      The time granularity for the results. If absent, uses MONTHLY time granularity. The smallest supported granularity for carbon emissions is MONTHLY.

      If requesting partial time periods, data will be returned based on the smallest supported granularity. For example, requesting 2025-04-01T00:00:00Z to 2026-04-01T00:00:00Z with YEARLY_CALENDAR granularity will return the last 9 months for 2025 and the first 3 months of 2026.

      Parameters:
      granularity - The time granularity for the results. If absent, uses MONTHLY time granularity. The smallest supported granularity for carbon emissions is MONTHLY.

      If requesting partial time periods, data will be returned based on the smallest supported granularity. For example, requesting 2025-04-01T00:00:00Z to 2026-04-01T00:00:00Z with YEARLY_CALENDAR granularity will return the last 9 months for 2025 and the first 3 months of 2026.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • granularity

      The time granularity for the results. If absent, uses MONTHLY time granularity. The smallest supported granularity for carbon emissions is MONTHLY.

      If requesting partial time periods, data will be returned based on the smallest supported granularity. For example, requesting 2025-04-01T00:00:00Z to 2026-04-01T00:00:00Z with YEARLY_CALENDAR granularity will return the last 9 months for 2025 and the first 3 months of 2026.

      Parameters:
      granularity - The time granularity for the results. If absent, uses MONTHLY time granularity. The smallest supported granularity for carbon emissions is MONTHLY.

      If requesting partial time periods, data will be returned based on the smallest supported granularity. For example, requesting 2025-04-01T00:00:00Z to 2026-04-01T00:00:00Z with YEARLY_CALENDAR granularity will return the last 9 months for 2025 and the first 3 months of 2026.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • granularityConfiguration

      GetEstimatedCarbonEmissionsRequest.Builder granularityConfiguration(GranularityConfiguration granularityConfiguration)

      Configuration for fiscal year calculations when using YEARLY_FISCAL or QUARTERLY_FISCAL granularity.

      Parameters:
      granularityConfiguration - Configuration for fiscal year calculations when using YEARLY_FISCAL or QUARTERLY_FISCAL granularity.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • granularityConfiguration

      default GetEstimatedCarbonEmissionsRequest.Builder granularityConfiguration(Consumer<GranularityConfiguration.Builder> granularityConfiguration)

      Configuration for fiscal year calculations when using YEARLY_FISCAL or QUARTERLY_FISCAL granularity.

      This is a convenience method that creates an instance of the GranularityConfiguration.Builder avoiding the need to create one manually via GranularityConfiguration.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to granularityConfiguration(GranularityConfiguration).

      Parameters:
      granularityConfiguration - a consumer that will call methods on GranularityConfiguration.Builder
      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

      Description copied from interface: AwsRequest.Builder
      Add an optional request override configuration.
      Specified by:
      overrideConfiguration in interface AwsRequest.Builder
      Parameters:
      overrideConfiguration - The override configuration.
      Returns:
      This object for method chaining.
    • overrideConfiguration

      Description copied from interface: AwsRequest.Builder
      Add an optional request override configuration.
      Specified by:
      overrideConfiguration in interface AwsRequest.Builder
      Parameters:
      builderConsumer - A Consumer to which an empty AwsRequestOverrideConfiguration.Builder will be given.
      Returns:
      This object for method chaining.