Interface EstimatedCarbonEmissions.Builder

  • Method Details

    • timePeriod

      The reporting period for emission values.

      Parameters:
      timePeriod - The reporting period for emission values.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • timePeriod

      The reporting period for emission values.

      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:
    • dimensionsValuesWithStrings

      EstimatedCarbonEmissions.Builder dimensionsValuesWithStrings(Map<String,String> dimensionsValues)

      The dimensions used to group emissions values.

      Parameters:
      dimensionsValues - The dimensions used to group emissions values.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • dimensionsValues

      EstimatedCarbonEmissions.Builder dimensionsValues(Map<Dimension,String> dimensionsValues)

      The dimensions used to group emissions values.

      Parameters:
      dimensionsValues - The dimensions used to group emissions values.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • modelVersion

      EstimatedCarbonEmissions.Builder modelVersion(String modelVersion)

      The semantic version-formatted string that indicates the methodology version used to calculate the emission 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 ModelVersion values. To track the evolution of the methodology and compare emission values from previous versions, we recommend creating a Data Export.

      Parameters:
      modelVersion - The semantic version-formatted string that indicates the methodology version used to calculate the emission 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 ModelVersion values. To track the evolution of the methodology and compare emission values from previous versions, we recommend creating a Data Export.

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

      EstimatedCarbonEmissions.Builder emissionsValuesWithStrings(Map<String,Emissions> emissionsValues)

      The emissions values for the requested emissions types.

      Parameters:
      emissionsValues - The emissions values for the requested emissions types.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • emissionsValues

      EstimatedCarbonEmissions.Builder emissionsValues(Map<EmissionsType,Emissions> emissionsValues)

      The emissions values for the requested emissions types.

      Parameters:
      emissionsValues - The emissions values for the requested emissions types.
      Returns:
      Returns a reference to this object so that method calls can be chained together.