Interface GetEstimatedCarbonEmissionsResponse.Builder
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<GetEstimatedCarbonEmissionsResponse.Builder,,GetEstimatedCarbonEmissionsResponse> SdkBuilder<GetEstimatedCarbonEmissionsResponse.Builder,,GetEstimatedCarbonEmissionsResponse> SdkPojo,SdkResponse.Builder,SustainabilityResponse.Builder
- Enclosing class:
GetEstimatedCarbonEmissionsResponse
@Mutable
@NotThreadSafe
public static interface GetEstimatedCarbonEmissionsResponse.Builder
extends SustainabilityResponse.Builder, SdkPojo, CopyableBuilder<GetEstimatedCarbonEmissionsResponse.Builder,GetEstimatedCarbonEmissionsResponse>
-
Method Summary
Modifier and TypeMethodDescriptionThe pagination token indicating there are additional pages available.results(Collection<EstimatedCarbonEmissions> results) The result of the requested inputs.results(Consumer<EstimatedCarbonEmissions.Builder>... results) The result of the requested inputs.results(EstimatedCarbonEmissions... results) The result of the requested inputs.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, sdkFieldsMethods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponseMethods inherited from interface software.amazon.awssdk.services.sustainability.model.SustainabilityResponse.Builder
build, responseMetadata, responseMetadata
-
Method Details
-
results
The result of the requested inputs.
- Parameters:
results- The result of the requested inputs.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
results
The result of the requested inputs.
- Parameters:
results- The result of the requested inputs.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
results
GetEstimatedCarbonEmissionsResponse.Builder results(Consumer<EstimatedCarbonEmissions.Builder>... results) The result of the requested inputs.
This is a convenience method that creates an instance of theEstimatedCarbonEmissions.Builderavoiding the need to create one manually viaEstimatedCarbonEmissions.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toresults(List<EstimatedCarbonEmissions>).- Parameters:
results- a consumer that will call methods onEstimatedCarbonEmissions.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
nextToken
The pagination token indicating there are additional pages available. You can use the token in a following request to fetch the next set of results.
- Parameters:
nextToken- The pagination token indicating there are additional pages available. You can use the token in a following request to fetch the next set of results.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-