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, responseMetadataMethods 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, 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.Builderavoiding the need to create one manually viaBatchCreateWorkloadEstimateUsageItem.builder().When the
Consumercompletes,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.Builderavoiding the need to create one manually viaBatchCreateWorkloadEstimateUsageError.builder().When the
Consumercompletes,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:
-