Interface BatchCreateWorkloadEstimateUsageResponse.Builder
- All Superinterfaces:
AwsResponse.Builder
,BcmPricingCalculatorResponse.Builder
,Buildable
,CopyableBuilder<BatchCreateWorkloadEstimateUsageResponse.Builder,
,BatchCreateWorkloadEstimateUsageResponse> SdkBuilder<BatchCreateWorkloadEstimateUsageResponse.Builder,
,BatchCreateWorkloadEstimateUsageResponse> SdkPojo
,SdkResponse.Builder
- Enclosing class:
BatchCreateWorkloadEstimateUsageResponse
-
Method Summary
Modifier and TypeMethodDescriptionReturns the list of errors reason and the usage item keys that cannot be created in the Workload estimate.Returns the list of errors reason and the usage item keys that cannot be created in the Workload estimate.errors
(BatchCreateWorkloadEstimateUsageError... errors) Returns the list of errors reason and the usage item keys that cannot be created in the Workload estimate.Returns the list of successful usage line items that were created for the Workload estimate.Returns the list of successful usage line items that were created for the Workload estimate.items
(BatchCreateWorkloadEstimateUsageItem... items) Returns the list of successful usage line items that were created for the Workload estimate.Methods inherited from interface software.amazon.awssdk.services.bcmpricingcalculator.model.BcmPricingCalculatorResponse.Builder
build, responseMetadata, responseMetadata
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
Methods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Method Details
-
items
BatchCreateWorkloadEstimateUsageResponse.Builder items(Collection<BatchCreateWorkloadEstimateUsageItem> items) Returns the list of successful usage line items that were created for the Workload estimate.
- Parameters:
items
- Returns the list of successful usage line items that were created for the Workload estimate.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
items
BatchCreateWorkloadEstimateUsageResponse.Builder items(BatchCreateWorkloadEstimateUsageItem... items) Returns the list of successful usage line items that were created for the Workload estimate.
- Parameters:
items
- Returns the list of successful usage line items that were created for the Workload estimate.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
items
BatchCreateWorkloadEstimateUsageResponse.Builder items(Consumer<BatchCreateWorkloadEstimateUsageItem.Builder>... items) Returns the list of successful usage line items that were created for the Workload estimate.
This is a convenience method that creates an instance of theBatchCreateWorkloadEstimateUsageItem.Builder
avoiding the need to create one manually viaBatchCreateWorkloadEstimateUsageItem.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toitems(List<BatchCreateWorkloadEstimateUsageItem>)
.- Parameters:
items
- a consumer that will call methods onBatchCreateWorkloadEstimateUsageItem.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
errors
BatchCreateWorkloadEstimateUsageResponse.Builder errors(Collection<BatchCreateWorkloadEstimateUsageError> errors) Returns the list of errors reason and the usage item keys that cannot be created in the Workload estimate.
- Parameters:
errors
- Returns the list of errors reason and the usage item keys that cannot be created in the Workload estimate.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
errors
BatchCreateWorkloadEstimateUsageResponse.Builder errors(BatchCreateWorkloadEstimateUsageError... errors) Returns the list of errors reason and the usage item keys that cannot be created in the Workload estimate.
- Parameters:
errors
- Returns the list of errors reason and the usage item keys that cannot be created in the Workload estimate.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
errors
BatchCreateWorkloadEstimateUsageResponse.Builder errors(Consumer<BatchCreateWorkloadEstimateUsageError.Builder>... errors) Returns the list of errors reason and the usage item keys that cannot be created in the Workload estimate.
This is a convenience method that creates an instance of theBatchCreateWorkloadEstimateUsageError.Builder
avoiding the need to create one manually viaBatchCreateWorkloadEstimateUsageError.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toerrors(List<BatchCreateWorkloadEstimateUsageError>)
.- Parameters:
errors
- a consumer that will call methods onBatchCreateWorkloadEstimateUsageError.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-