Interface BcmPricingCalculatorAsyncClient
- All Superinterfaces:
AutoCloseable
,AwsClient
,SdkAutoCloseable
,SdkClient
builder()
method.The asynchronous client performs non-blocking I/O when configured with any
SdkAsyncHttpClient
supported in the SDK. However, full non-blocking is not guaranteed as the async client may
perform blocking calls in some cases such as credentials retrieval and endpoint discovery as part of the async API
call.
You can use the Pricing Calculator API to programmatically create estimates for your planned cloud use. You can model usage and commitments such as Savings Plans and Reserved Instances, and generate estimated costs using your discounts and benefit sharing preferences.
The Pricing Calculator API provides the following endpoint:
-
https://bcm-pricing-calculator.us-east-1.api.aws
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
Value for looking up the service's metadata from theServiceMetadataProvider
.static final String
-
Method Summary
Modifier and TypeMethodDescriptionbatchCreateBillScenarioCommitmentModification
(Consumer<BatchCreateBillScenarioCommitmentModificationRequest.Builder> batchCreateBillScenarioCommitmentModificationRequest) Create Compute Savings Plans, EC2 Instance Savings Plans, or EC2 Reserved Instances commitments that you want to model in a Bill Scenario.batchCreateBillScenarioCommitmentModification
(BatchCreateBillScenarioCommitmentModificationRequest batchCreateBillScenarioCommitmentModificationRequest) Create Compute Savings Plans, EC2 Instance Savings Plans, or EC2 Reserved Instances commitments that you want to model in a Bill Scenario.batchCreateBillScenarioUsageModification
(Consumer<BatchCreateBillScenarioUsageModificationRequest.Builder> batchCreateBillScenarioUsageModificationRequest) Create Amazon Web Services service usage that you want to model in a Bill Scenario.batchCreateBillScenarioUsageModification
(BatchCreateBillScenarioUsageModificationRequest batchCreateBillScenarioUsageModificationRequest) Create Amazon Web Services service usage that you want to model in a Bill Scenario.batchCreateWorkloadEstimateUsage
(Consumer<BatchCreateWorkloadEstimateUsageRequest.Builder> batchCreateWorkloadEstimateUsageRequest) Create Amazon Web Services service usage that you want to model in a Workload Estimate.batchCreateWorkloadEstimateUsage
(BatchCreateWorkloadEstimateUsageRequest batchCreateWorkloadEstimateUsageRequest) Create Amazon Web Services service usage that you want to model in a Workload Estimate.batchDeleteBillScenarioCommitmentModification
(Consumer<BatchDeleteBillScenarioCommitmentModificationRequest.Builder> batchDeleteBillScenarioCommitmentModificationRequest) Delete commitment that you have created in a Bill Scenario.batchDeleteBillScenarioCommitmentModification
(BatchDeleteBillScenarioCommitmentModificationRequest batchDeleteBillScenarioCommitmentModificationRequest) Delete commitment that you have created in a Bill Scenario.batchDeleteBillScenarioUsageModification
(Consumer<BatchDeleteBillScenarioUsageModificationRequest.Builder> batchDeleteBillScenarioUsageModificationRequest) Delete usage that you have created in a Bill Scenario.batchDeleteBillScenarioUsageModification
(BatchDeleteBillScenarioUsageModificationRequest batchDeleteBillScenarioUsageModificationRequest) Delete usage that you have created in a Bill Scenario.batchDeleteWorkloadEstimateUsage
(Consumer<BatchDeleteWorkloadEstimateUsageRequest.Builder> batchDeleteWorkloadEstimateUsageRequest) Delete usage that you have created in a Workload estimate.batchDeleteWorkloadEstimateUsage
(BatchDeleteWorkloadEstimateUsageRequest batchDeleteWorkloadEstimateUsageRequest) Delete usage that you have created in a Workload estimate.batchUpdateBillScenarioCommitmentModification
(Consumer<BatchUpdateBillScenarioCommitmentModificationRequest.Builder> batchUpdateBillScenarioCommitmentModificationRequest) Update a newly added or existing commitment.batchUpdateBillScenarioCommitmentModification
(BatchUpdateBillScenarioCommitmentModificationRequest batchUpdateBillScenarioCommitmentModificationRequest) Update a newly added or existing commitment.batchUpdateBillScenarioUsageModification
(Consumer<BatchUpdateBillScenarioUsageModificationRequest.Builder> batchUpdateBillScenarioUsageModificationRequest) Update a newly added or existing usage lines.batchUpdateBillScenarioUsageModification
(BatchUpdateBillScenarioUsageModificationRequest batchUpdateBillScenarioUsageModificationRequest) Update a newly added or existing usage lines.batchUpdateWorkloadEstimateUsage
(Consumer<BatchUpdateWorkloadEstimateUsageRequest.Builder> batchUpdateWorkloadEstimateUsageRequest) Update a newly added or existing usage lines.batchUpdateWorkloadEstimateUsage
(BatchUpdateWorkloadEstimateUsageRequest batchUpdateWorkloadEstimateUsageRequest) Update a newly added or existing usage lines.builder()
Create a builder that can be used to configure and create aBcmPricingCalculatorAsyncClient
.create()
Create aBcmPricingCalculatorAsyncClient
with the region loaded from theDefaultAwsRegionProviderChain
and credentials loaded from theDefaultCredentialsProvider
.createBillEstimate
(Consumer<CreateBillEstimateRequest.Builder> createBillEstimateRequest) Create a Bill estimate from a Bill scenario.createBillEstimate
(CreateBillEstimateRequest createBillEstimateRequest) Create a Bill estimate from a Bill scenario.createBillScenario
(Consumer<CreateBillScenarioRequest.Builder> createBillScenarioRequest) Creates a new bill scenario to model potential changes to Amazon Web Services usage and costs.createBillScenario
(CreateBillScenarioRequest createBillScenarioRequest) Creates a new bill scenario to model potential changes to Amazon Web Services usage and costs.createWorkloadEstimate
(Consumer<CreateWorkloadEstimateRequest.Builder> createWorkloadEstimateRequest) Creates a new workload estimate to model costs for a specific workload.createWorkloadEstimate
(CreateWorkloadEstimateRequest createWorkloadEstimateRequest) Creates a new workload estimate to model costs for a specific workload.deleteBillEstimate
(Consumer<DeleteBillEstimateRequest.Builder> deleteBillEstimateRequest) Deletes an existing bill estimate.deleteBillEstimate
(DeleteBillEstimateRequest deleteBillEstimateRequest) Deletes an existing bill estimate.deleteBillScenario
(Consumer<DeleteBillScenarioRequest.Builder> deleteBillScenarioRequest) Deletes an existing bill scenario.deleteBillScenario
(DeleteBillScenarioRequest deleteBillScenarioRequest) Deletes an existing bill scenario.deleteWorkloadEstimate
(Consumer<DeleteWorkloadEstimateRequest.Builder> deleteWorkloadEstimateRequest) Deletes an existing workload estimate.deleteWorkloadEstimate
(DeleteWorkloadEstimateRequest deleteWorkloadEstimateRequest) Deletes an existing workload estimate.default CompletableFuture
<GetBillEstimateResponse> getBillEstimate
(Consumer<GetBillEstimateRequest.Builder> getBillEstimateRequest) Retrieves details of a specific bill estimate.default CompletableFuture
<GetBillEstimateResponse> getBillEstimate
(GetBillEstimateRequest getBillEstimateRequest) Retrieves details of a specific bill estimate.default CompletableFuture
<GetBillScenarioResponse> getBillScenario
(Consumer<GetBillScenarioRequest.Builder> getBillScenarioRequest) Retrieves details of a specific bill scenario.default CompletableFuture
<GetBillScenarioResponse> getBillScenario
(GetBillScenarioRequest getBillScenarioRequest) Retrieves details of a specific bill scenario.default CompletableFuture
<GetPreferencesResponse> getPreferences
(Consumer<GetPreferencesRequest.Builder> getPreferencesRequest) Retrieves the current preferences for Pricing Calculator.default CompletableFuture
<GetPreferencesResponse> getPreferences
(GetPreferencesRequest getPreferencesRequest) Retrieves the current preferences for Pricing Calculator.getWorkloadEstimate
(Consumer<GetWorkloadEstimateRequest.Builder> getWorkloadEstimateRequest) Retrieves details of a specific workload estimate.getWorkloadEstimate
(GetWorkloadEstimateRequest getWorkloadEstimateRequest) Retrieves details of a specific workload estimate.listBillEstimateCommitments
(Consumer<ListBillEstimateCommitmentsRequest.Builder> listBillEstimateCommitmentsRequest) Lists the commitments associated with a bill estimate.listBillEstimateCommitments
(ListBillEstimateCommitmentsRequest listBillEstimateCommitmentsRequest) Lists the commitments associated with a bill estimate.listBillEstimateCommitmentsPaginator
(Consumer<ListBillEstimateCommitmentsRequest.Builder> listBillEstimateCommitmentsRequest) This is a variant oflistBillEstimateCommitments(software.amazon.awssdk.services.bcmpricingcalculator.model.ListBillEstimateCommitmentsRequest)
operation.listBillEstimateCommitmentsPaginator
(ListBillEstimateCommitmentsRequest listBillEstimateCommitmentsRequest) This is a variant oflistBillEstimateCommitments(software.amazon.awssdk.services.bcmpricingcalculator.model.ListBillEstimateCommitmentsRequest)
operation.listBillEstimateInputCommitmentModifications
(Consumer<ListBillEstimateInputCommitmentModificationsRequest.Builder> listBillEstimateInputCommitmentModificationsRequest) Lists the input commitment modifications associated with a bill estimate.listBillEstimateInputCommitmentModifications
(ListBillEstimateInputCommitmentModificationsRequest listBillEstimateInputCommitmentModificationsRequest) Lists the input commitment modifications associated with a bill estimate.listBillEstimateInputCommitmentModificationsPaginator
(Consumer<ListBillEstimateInputCommitmentModificationsRequest.Builder> listBillEstimateInputCommitmentModificationsRequest) listBillEstimateInputCommitmentModificationsPaginator
(ListBillEstimateInputCommitmentModificationsRequest listBillEstimateInputCommitmentModificationsRequest) listBillEstimateInputUsageModifications
(Consumer<ListBillEstimateInputUsageModificationsRequest.Builder> listBillEstimateInputUsageModificationsRequest) Lists the input usage modifications associated with a bill estimate.listBillEstimateInputUsageModifications
(ListBillEstimateInputUsageModificationsRequest listBillEstimateInputUsageModificationsRequest) Lists the input usage modifications associated with a bill estimate.listBillEstimateInputUsageModificationsPaginator
(Consumer<ListBillEstimateInputUsageModificationsRequest.Builder> listBillEstimateInputUsageModificationsRequest) listBillEstimateInputUsageModificationsPaginator
(ListBillEstimateInputUsageModificationsRequest listBillEstimateInputUsageModificationsRequest) listBillEstimateLineItems
(Consumer<ListBillEstimateLineItemsRequest.Builder> listBillEstimateLineItemsRequest) Lists the line items associated with a bill estimate.listBillEstimateLineItems
(ListBillEstimateLineItemsRequest listBillEstimateLineItemsRequest) Lists the line items associated with a bill estimate.listBillEstimateLineItemsPaginator
(Consumer<ListBillEstimateLineItemsRequest.Builder> listBillEstimateLineItemsRequest) This is a variant oflistBillEstimateLineItems(software.amazon.awssdk.services.bcmpricingcalculator.model.ListBillEstimateLineItemsRequest)
operation.listBillEstimateLineItemsPaginator
(ListBillEstimateLineItemsRequest listBillEstimateLineItemsRequest) This is a variant oflistBillEstimateLineItems(software.amazon.awssdk.services.bcmpricingcalculator.model.ListBillEstimateLineItemsRequest)
operation.listBillEstimates
(Consumer<ListBillEstimatesRequest.Builder> listBillEstimatesRequest) Lists all bill estimates for the account.listBillEstimates
(ListBillEstimatesRequest listBillEstimatesRequest) Lists all bill estimates for the account.default ListBillEstimatesPublisher
listBillEstimatesPaginator
(Consumer<ListBillEstimatesRequest.Builder> listBillEstimatesRequest) This is a variant oflistBillEstimates(software.amazon.awssdk.services.bcmpricingcalculator.model.ListBillEstimatesRequest)
operation.default ListBillEstimatesPublisher
listBillEstimatesPaginator
(ListBillEstimatesRequest listBillEstimatesRequest) This is a variant oflistBillEstimates(software.amazon.awssdk.services.bcmpricingcalculator.model.ListBillEstimatesRequest)
operation.listBillScenarioCommitmentModifications
(Consumer<ListBillScenarioCommitmentModificationsRequest.Builder> listBillScenarioCommitmentModificationsRequest) Lists the commitment modifications associated with a bill scenario.listBillScenarioCommitmentModifications
(ListBillScenarioCommitmentModificationsRequest listBillScenarioCommitmentModificationsRequest) Lists the commitment modifications associated with a bill scenario.listBillScenarioCommitmentModificationsPaginator
(Consumer<ListBillScenarioCommitmentModificationsRequest.Builder> listBillScenarioCommitmentModificationsRequest) listBillScenarioCommitmentModificationsPaginator
(ListBillScenarioCommitmentModificationsRequest listBillScenarioCommitmentModificationsRequest) listBillScenarios
(Consumer<ListBillScenariosRequest.Builder> listBillScenariosRequest) Lists all bill scenarios for the account.listBillScenarios
(ListBillScenariosRequest listBillScenariosRequest) Lists all bill scenarios for the account.default ListBillScenariosPublisher
listBillScenariosPaginator
(Consumer<ListBillScenariosRequest.Builder> listBillScenariosRequest) This is a variant oflistBillScenarios(software.amazon.awssdk.services.bcmpricingcalculator.model.ListBillScenariosRequest)
operation.default ListBillScenariosPublisher
listBillScenariosPaginator
(ListBillScenariosRequest listBillScenariosRequest) This is a variant oflistBillScenarios(software.amazon.awssdk.services.bcmpricingcalculator.model.ListBillScenariosRequest)
operation.listBillScenarioUsageModifications
(Consumer<ListBillScenarioUsageModificationsRequest.Builder> listBillScenarioUsageModificationsRequest) Lists the usage modifications associated with a bill scenario.listBillScenarioUsageModifications
(ListBillScenarioUsageModificationsRequest listBillScenarioUsageModificationsRequest) Lists the usage modifications associated with a bill scenario.listBillScenarioUsageModificationsPaginator
(Consumer<ListBillScenarioUsageModificationsRequest.Builder> listBillScenarioUsageModificationsRequest) listBillScenarioUsageModificationsPaginator
(ListBillScenarioUsageModificationsRequest listBillScenarioUsageModificationsRequest) listTagsForResource
(Consumer<ListTagsForResourceRequest.Builder> listTagsForResourceRequest) Lists all tags associated with a specified resource.listTagsForResource
(ListTagsForResourceRequest listTagsForResourceRequest) Lists all tags associated with a specified resource.listWorkloadEstimates
(Consumer<ListWorkloadEstimatesRequest.Builder> listWorkloadEstimatesRequest) Lists all workload estimates for the account.listWorkloadEstimates
(ListWorkloadEstimatesRequest listWorkloadEstimatesRequest) Lists all workload estimates for the account.default ListWorkloadEstimatesPublisher
listWorkloadEstimatesPaginator
(Consumer<ListWorkloadEstimatesRequest.Builder> listWorkloadEstimatesRequest) This is a variant oflistWorkloadEstimates(software.amazon.awssdk.services.bcmpricingcalculator.model.ListWorkloadEstimatesRequest)
operation.default ListWorkloadEstimatesPublisher
listWorkloadEstimatesPaginator
(ListWorkloadEstimatesRequest listWorkloadEstimatesRequest) This is a variant oflistWorkloadEstimates(software.amazon.awssdk.services.bcmpricingcalculator.model.ListWorkloadEstimatesRequest)
operation.listWorkloadEstimateUsage
(Consumer<ListWorkloadEstimateUsageRequest.Builder> listWorkloadEstimateUsageRequest) Lists the usage associated with a workload estimate.listWorkloadEstimateUsage
(ListWorkloadEstimateUsageRequest listWorkloadEstimateUsageRequest) Lists the usage associated with a workload estimate.listWorkloadEstimateUsagePaginator
(Consumer<ListWorkloadEstimateUsageRequest.Builder> listWorkloadEstimateUsageRequest) This is a variant oflistWorkloadEstimateUsage(software.amazon.awssdk.services.bcmpricingcalculator.model.ListWorkloadEstimateUsageRequest)
operation.listWorkloadEstimateUsagePaginator
(ListWorkloadEstimateUsageRequest listWorkloadEstimateUsageRequest) This is a variant oflistWorkloadEstimateUsage(software.amazon.awssdk.services.bcmpricingcalculator.model.ListWorkloadEstimateUsageRequest)
operation.The SDK service client configuration exposes client settings to the user, e.g., ClientOverrideConfigurationdefault CompletableFuture
<TagResourceResponse> tagResource
(Consumer<TagResourceRequest.Builder> tagResourceRequest) Adds one or more tags to a specified resource.default CompletableFuture
<TagResourceResponse> tagResource
(TagResourceRequest tagResourceRequest) Adds one or more tags to a specified resource.default CompletableFuture
<UntagResourceResponse> untagResource
(Consumer<UntagResourceRequest.Builder> untagResourceRequest) Removes one or more tags from a specified resource.default CompletableFuture
<UntagResourceResponse> untagResource
(UntagResourceRequest untagResourceRequest) Removes one or more tags from a specified resource.updateBillEstimate
(Consumer<UpdateBillEstimateRequest.Builder> updateBillEstimateRequest) Updates an existing bill estimate.updateBillEstimate
(UpdateBillEstimateRequest updateBillEstimateRequest) Updates an existing bill estimate.updateBillScenario
(Consumer<UpdateBillScenarioRequest.Builder> updateBillScenarioRequest) Updates an existing bill scenario.updateBillScenario
(UpdateBillScenarioRequest updateBillScenarioRequest) Updates an existing bill scenario.updatePreferences
(Consumer<UpdatePreferencesRequest.Builder> updatePreferencesRequest) Updates the preferences for Pricing Calculator.updatePreferences
(UpdatePreferencesRequest updatePreferencesRequest) Updates the preferences for Pricing Calculator.updateWorkloadEstimate
(Consumer<UpdateWorkloadEstimateRequest.Builder> updateWorkloadEstimateRequest) Updates an existing workload estimate.updateWorkloadEstimate
(UpdateWorkloadEstimateRequest updateWorkloadEstimateRequest) Updates an existing workload estimate.Methods inherited from interface software.amazon.awssdk.utils.SdkAutoCloseable
close
Methods inherited from interface software.amazon.awssdk.core.SdkClient
serviceName
-
Field Details
-
SERVICE_NAME
- See Also:
-
SERVICE_METADATA_ID
Value for looking up the service's metadata from theServiceMetadataProvider
.- See Also:
-
-
Method Details
-
batchCreateBillScenarioCommitmentModification
default CompletableFuture<BatchCreateBillScenarioCommitmentModificationResponse> batchCreateBillScenarioCommitmentModification(BatchCreateBillScenarioCommitmentModificationRequest batchCreateBillScenarioCommitmentModificationRequest) Create Compute Savings Plans, EC2 Instance Savings Plans, or EC2 Reserved Instances commitments that you want to model in a Bill Scenario.
The
BatchCreateBillScenarioCommitmentModification
operation doesn't have its own IAM permission. To authorize this operation for Amazon Web Services principals, include the permissionbcm-pricing-calculator:CreateBillScenarioCommitmentModification
in your policies.- Parameters:
batchCreateBillScenarioCommitmentModificationRequest
-- Returns:
- A Java Future containing the result of the BatchCreateBillScenarioCommitmentModification operation
returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- ConflictException The request could not be processed because of conflict in the current state of the resource.
- ValidationException The input provided fails to satisfy the constraints specified by an Amazon Web Services service.
- DataUnavailableException The requested data is currently unavailable.
- InternalServerException An internal error has occurred. Retry your request, but if the problem persists, contact Amazon Web Services support.
- ResourceNotFoundException The specified resource was not found.
- AccessDeniedException You do not have sufficient access to perform this action.
- ThrottlingException The request was denied due to request throttling.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BcmPricingCalculatorException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
batchCreateBillScenarioCommitmentModification
default CompletableFuture<BatchCreateBillScenarioCommitmentModificationResponse> batchCreateBillScenarioCommitmentModification(Consumer<BatchCreateBillScenarioCommitmentModificationRequest.Builder> batchCreateBillScenarioCommitmentModificationRequest) Create Compute Savings Plans, EC2 Instance Savings Plans, or EC2 Reserved Instances commitments that you want to model in a Bill Scenario.
The
BatchCreateBillScenarioCommitmentModification
operation doesn't have its own IAM permission. To authorize this operation for Amazon Web Services principals, include the permissionbcm-pricing-calculator:CreateBillScenarioCommitmentModification
in your policies.
This is a convenience which creates an instance of the
BatchCreateBillScenarioCommitmentModificationRequest.Builder
avoiding the need to create one manually viaBatchCreateBillScenarioCommitmentModificationRequest.builder()
- Parameters:
batchCreateBillScenarioCommitmentModificationRequest
- AConsumer
that will call methods onBatchCreateBillScenarioCommitmentModificationRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the BatchCreateBillScenarioCommitmentModification operation
returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- ConflictException The request could not be processed because of conflict in the current state of the resource.
- ValidationException The input provided fails to satisfy the constraints specified by an Amazon Web Services service.
- DataUnavailableException The requested data is currently unavailable.
- InternalServerException An internal error has occurred. Retry your request, but if the problem persists, contact Amazon Web Services support.
- ResourceNotFoundException The specified resource was not found.
- AccessDeniedException You do not have sufficient access to perform this action.
- ThrottlingException The request was denied due to request throttling.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BcmPricingCalculatorException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
batchCreateBillScenarioUsageModification
default CompletableFuture<BatchCreateBillScenarioUsageModificationResponse> batchCreateBillScenarioUsageModification(BatchCreateBillScenarioUsageModificationRequest batchCreateBillScenarioUsageModificationRequest) Create Amazon Web Services service usage that you want to model in a Bill Scenario.
The
BatchCreateBillScenarioUsageModification
operation doesn't have its own IAM permission. To authorize this operation for Amazon Web Services principals, include the permissionbcm-pricing-calculator:CreateBillScenarioUsageModification
in your policies.- Parameters:
batchCreateBillScenarioUsageModificationRequest
-- Returns:
- A Java Future containing the result of the BatchCreateBillScenarioUsageModification operation returned by
the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- ConflictException The request could not be processed because of conflict in the current state of the resource.
- ValidationException The input provided fails to satisfy the constraints specified by an Amazon Web Services service.
- DataUnavailableException The requested data is currently unavailable.
- ServiceQuotaExceededException The request would cause you to exceed your service quota.
- InternalServerException An internal error has occurred. Retry your request, but if the problem persists, contact Amazon Web Services support.
- ResourceNotFoundException The specified resource was not found.
- AccessDeniedException You do not have sufficient access to perform this action.
- ThrottlingException The request was denied due to request throttling.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BcmPricingCalculatorException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
batchCreateBillScenarioUsageModification
default CompletableFuture<BatchCreateBillScenarioUsageModificationResponse> batchCreateBillScenarioUsageModification(Consumer<BatchCreateBillScenarioUsageModificationRequest.Builder> batchCreateBillScenarioUsageModificationRequest) Create Amazon Web Services service usage that you want to model in a Bill Scenario.
The
BatchCreateBillScenarioUsageModification
operation doesn't have its own IAM permission. To authorize this operation for Amazon Web Services principals, include the permissionbcm-pricing-calculator:CreateBillScenarioUsageModification
in your policies.
This is a convenience which creates an instance of the
BatchCreateBillScenarioUsageModificationRequest.Builder
avoiding the need to create one manually viaBatchCreateBillScenarioUsageModificationRequest.builder()
- Parameters:
batchCreateBillScenarioUsageModificationRequest
- AConsumer
that will call methods onBatchCreateBillScenarioUsageModificationRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the BatchCreateBillScenarioUsageModification operation returned by
the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- ConflictException The request could not be processed because of conflict in the current state of the resource.
- ValidationException The input provided fails to satisfy the constraints specified by an Amazon Web Services service.
- DataUnavailableException The requested data is currently unavailable.
- ServiceQuotaExceededException The request would cause you to exceed your service quota.
- InternalServerException An internal error has occurred. Retry your request, but if the problem persists, contact Amazon Web Services support.
- ResourceNotFoundException The specified resource was not found.
- AccessDeniedException You do not have sufficient access to perform this action.
- ThrottlingException The request was denied due to request throttling.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BcmPricingCalculatorException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
batchCreateWorkloadEstimateUsage
default CompletableFuture<BatchCreateWorkloadEstimateUsageResponse> batchCreateWorkloadEstimateUsage(BatchCreateWorkloadEstimateUsageRequest batchCreateWorkloadEstimateUsageRequest) Create Amazon Web Services service usage that you want to model in a Workload Estimate.
The
BatchCreateWorkloadEstimateUsage
operation doesn't have its own IAM permission. To authorize this operation for Amazon Web Services principals, include the permissionbcm-pricing-calculator:CreateWorkloadEstimateUsage
in your policies.- Parameters:
batchCreateWorkloadEstimateUsageRequest
-- Returns:
- A Java Future containing the result of the BatchCreateWorkloadEstimateUsage operation returned by the
service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- ConflictException The request could not be processed because of conflict in the current state of the resource.
- ValidationException The input provided fails to satisfy the constraints specified by an Amazon Web Services service.
- DataUnavailableException The requested data is currently unavailable.
- ServiceQuotaExceededException The request would cause you to exceed your service quota.
- InternalServerException An internal error has occurred. Retry your request, but if the problem persists, contact Amazon Web Services support.
- ResourceNotFoundException The specified resource was not found.
- AccessDeniedException You do not have sufficient access to perform this action.
- ThrottlingException The request was denied due to request throttling.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BcmPricingCalculatorException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
batchCreateWorkloadEstimateUsage
default CompletableFuture<BatchCreateWorkloadEstimateUsageResponse> batchCreateWorkloadEstimateUsage(Consumer<BatchCreateWorkloadEstimateUsageRequest.Builder> batchCreateWorkloadEstimateUsageRequest) Create Amazon Web Services service usage that you want to model in a Workload Estimate.
The
BatchCreateWorkloadEstimateUsage
operation doesn't have its own IAM permission. To authorize this operation for Amazon Web Services principals, include the permissionbcm-pricing-calculator:CreateWorkloadEstimateUsage
in your policies.
This is a convenience which creates an instance of the
BatchCreateWorkloadEstimateUsageRequest.Builder
avoiding the need to create one manually viaBatchCreateWorkloadEstimateUsageRequest.builder()
- Parameters:
batchCreateWorkloadEstimateUsageRequest
- AConsumer
that will call methods onBatchCreateWorkloadEstimateUsageRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the BatchCreateWorkloadEstimateUsage operation returned by the
service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- ConflictException The request could not be processed because of conflict in the current state of the resource.
- ValidationException The input provided fails to satisfy the constraints specified by an Amazon Web Services service.
- DataUnavailableException The requested data is currently unavailable.
- ServiceQuotaExceededException The request would cause you to exceed your service quota.
- InternalServerException An internal error has occurred. Retry your request, but if the problem persists, contact Amazon Web Services support.
- ResourceNotFoundException The specified resource was not found.
- AccessDeniedException You do not have sufficient access to perform this action.
- ThrottlingException The request was denied due to request throttling.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BcmPricingCalculatorException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
batchDeleteBillScenarioCommitmentModification
default CompletableFuture<BatchDeleteBillScenarioCommitmentModificationResponse> batchDeleteBillScenarioCommitmentModification(BatchDeleteBillScenarioCommitmentModificationRequest batchDeleteBillScenarioCommitmentModificationRequest) Delete commitment that you have created in a Bill Scenario. You can only delete a commitment that you had added and cannot model deletion (or removal) of a existing commitment. If you want model deletion of an existing commitment, see the negate BillScenarioCommitmentModificationAction of BatchCreateBillScenarioCommitmentModification operation.
The
BatchDeleteBillScenarioCommitmentModification
operation doesn't have its own IAM permission. To authorize this operation for Amazon Web Services principals, include the permissionbcm-pricing-calculator:DeleteBillScenarioCommitmentModification
in your policies.- Parameters:
batchDeleteBillScenarioCommitmentModificationRequest
-- Returns:
- A Java Future containing the result of the BatchDeleteBillScenarioCommitmentModification operation
returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- ConflictException The request could not be processed because of conflict in the current state of the resource.
- ValidationException The input provided fails to satisfy the constraints specified by an Amazon Web Services service.
- DataUnavailableException The requested data is currently unavailable.
- InternalServerException An internal error has occurred. Retry your request, but if the problem persists, contact Amazon Web Services support.
- ResourceNotFoundException The specified resource was not found.
- AccessDeniedException You do not have sufficient access to perform this action.
- ThrottlingException The request was denied due to request throttling.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BcmPricingCalculatorException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
batchDeleteBillScenarioCommitmentModification
default CompletableFuture<BatchDeleteBillScenarioCommitmentModificationResponse> batchDeleteBillScenarioCommitmentModification(Consumer<BatchDeleteBillScenarioCommitmentModificationRequest.Builder> batchDeleteBillScenarioCommitmentModificationRequest) Delete commitment that you have created in a Bill Scenario. You can only delete a commitment that you had added and cannot model deletion (or removal) of a existing commitment. If you want model deletion of an existing commitment, see the negate BillScenarioCommitmentModificationAction of BatchCreateBillScenarioCommitmentModification operation.
The
BatchDeleteBillScenarioCommitmentModification
operation doesn't have its own IAM permission. To authorize this operation for Amazon Web Services principals, include the permissionbcm-pricing-calculator:DeleteBillScenarioCommitmentModification
in your policies.
This is a convenience which creates an instance of the
BatchDeleteBillScenarioCommitmentModificationRequest.Builder
avoiding the need to create one manually viaBatchDeleteBillScenarioCommitmentModificationRequest.builder()
- Parameters:
batchDeleteBillScenarioCommitmentModificationRequest
- AConsumer
that will call methods onBatchDeleteBillScenarioCommitmentModificationRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the BatchDeleteBillScenarioCommitmentModification operation
returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- ConflictException The request could not be processed because of conflict in the current state of the resource.
- ValidationException The input provided fails to satisfy the constraints specified by an Amazon Web Services service.
- DataUnavailableException The requested data is currently unavailable.
- InternalServerException An internal error has occurred. Retry your request, but if the problem persists, contact Amazon Web Services support.
- ResourceNotFoundException The specified resource was not found.
- AccessDeniedException You do not have sufficient access to perform this action.
- ThrottlingException The request was denied due to request throttling.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BcmPricingCalculatorException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
batchDeleteBillScenarioUsageModification
default CompletableFuture<BatchDeleteBillScenarioUsageModificationResponse> batchDeleteBillScenarioUsageModification(BatchDeleteBillScenarioUsageModificationRequest batchDeleteBillScenarioUsageModificationRequest) Delete usage that you have created in a Bill Scenario. You can only delete usage that you had added and cannot model deletion (or removal) of a existing usage. If you want model removal of an existing usage, see BatchUpdateBillScenarioUsageModification.
The
BatchDeleteBillScenarioUsageModification
operation doesn't have its own IAM permission. To authorize this operation for Amazon Web Services principals, include the permissionbcm-pricing-calculator:DeleteBillScenarioUsageModification
in your policies.- Parameters:
batchDeleteBillScenarioUsageModificationRequest
-- Returns:
- A Java Future containing the result of the BatchDeleteBillScenarioUsageModification operation returned by
the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- ConflictException The request could not be processed because of conflict in the current state of the resource.
- ValidationException The input provided fails to satisfy the constraints specified by an Amazon Web Services service.
- DataUnavailableException The requested data is currently unavailable.
- ServiceQuotaExceededException The request would cause you to exceed your service quota.
- InternalServerException An internal error has occurred. Retry your request, but if the problem persists, contact Amazon Web Services support.
- ResourceNotFoundException The specified resource was not found.
- AccessDeniedException You do not have sufficient access to perform this action.
- ThrottlingException The request was denied due to request throttling.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BcmPricingCalculatorException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
batchDeleteBillScenarioUsageModification
default CompletableFuture<BatchDeleteBillScenarioUsageModificationResponse> batchDeleteBillScenarioUsageModification(Consumer<BatchDeleteBillScenarioUsageModificationRequest.Builder> batchDeleteBillScenarioUsageModificationRequest) Delete usage that you have created in a Bill Scenario. You can only delete usage that you had added and cannot model deletion (or removal) of a existing usage. If you want model removal of an existing usage, see BatchUpdateBillScenarioUsageModification.
The
BatchDeleteBillScenarioUsageModification
operation doesn't have its own IAM permission. To authorize this operation for Amazon Web Services principals, include the permissionbcm-pricing-calculator:DeleteBillScenarioUsageModification
in your policies.
This is a convenience which creates an instance of the
BatchDeleteBillScenarioUsageModificationRequest.Builder
avoiding the need to create one manually viaBatchDeleteBillScenarioUsageModificationRequest.builder()
- Parameters:
batchDeleteBillScenarioUsageModificationRequest
- AConsumer
that will call methods onBatchDeleteBillScenarioUsageModificationRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the BatchDeleteBillScenarioUsageModification operation returned by
the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- ConflictException The request could not be processed because of conflict in the current state of the resource.
- ValidationException The input provided fails to satisfy the constraints specified by an Amazon Web Services service.
- DataUnavailableException The requested data is currently unavailable.
- ServiceQuotaExceededException The request would cause you to exceed your service quota.
- InternalServerException An internal error has occurred. Retry your request, but if the problem persists, contact Amazon Web Services support.
- ResourceNotFoundException The specified resource was not found.
- AccessDeniedException You do not have sufficient access to perform this action.
- ThrottlingException The request was denied due to request throttling.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BcmPricingCalculatorException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
batchDeleteWorkloadEstimateUsage
default CompletableFuture<BatchDeleteWorkloadEstimateUsageResponse> batchDeleteWorkloadEstimateUsage(BatchDeleteWorkloadEstimateUsageRequest batchDeleteWorkloadEstimateUsageRequest) Delete usage that you have created in a Workload estimate. You can only delete usage that you had added and cannot model deletion (or removal) of a existing usage. If you want model removal of an existing usage, see BatchUpdateWorkloadEstimateUsage.
The
BatchDeleteWorkloadEstimateUsage
operation doesn't have its own IAM permission. To authorize this operation for Amazon Web Services principals, include the permissionbcm-pricing-calculator:DeleteWorkloadEstimateUsage
in your policies.- Parameters:
batchDeleteWorkloadEstimateUsageRequest
-- Returns:
- A Java Future containing the result of the BatchDeleteWorkloadEstimateUsage operation returned by the
service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- ValidationException The input provided fails to satisfy the constraints specified by an Amazon Web Services service.
- DataUnavailableException The requested data is currently unavailable.
- ServiceQuotaExceededException The request would cause you to exceed your service quota.
- InternalServerException An internal error has occurred. Retry your request, but if the problem persists, contact Amazon Web Services support.
- ResourceNotFoundException The specified resource was not found.
- AccessDeniedException You do not have sufficient access to perform this action.
- ThrottlingException The request was denied due to request throttling.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BcmPricingCalculatorException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
batchDeleteWorkloadEstimateUsage
default CompletableFuture<BatchDeleteWorkloadEstimateUsageResponse> batchDeleteWorkloadEstimateUsage(Consumer<BatchDeleteWorkloadEstimateUsageRequest.Builder> batchDeleteWorkloadEstimateUsageRequest) Delete usage that you have created in a Workload estimate. You can only delete usage that you had added and cannot model deletion (or removal) of a existing usage. If you want model removal of an existing usage, see BatchUpdateWorkloadEstimateUsage.
The
BatchDeleteWorkloadEstimateUsage
operation doesn't have its own IAM permission. To authorize this operation for Amazon Web Services principals, include the permissionbcm-pricing-calculator:DeleteWorkloadEstimateUsage
in your policies.
This is a convenience which creates an instance of the
BatchDeleteWorkloadEstimateUsageRequest.Builder
avoiding the need to create one manually viaBatchDeleteWorkloadEstimateUsageRequest.builder()
- Parameters:
batchDeleteWorkloadEstimateUsageRequest
- AConsumer
that will call methods onBatchDeleteWorkloadEstimateUsageRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the BatchDeleteWorkloadEstimateUsage operation returned by the
service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- ValidationException The input provided fails to satisfy the constraints specified by an Amazon Web Services service.
- DataUnavailableException The requested data is currently unavailable.
- ServiceQuotaExceededException The request would cause you to exceed your service quota.
- InternalServerException An internal error has occurred. Retry your request, but if the problem persists, contact Amazon Web Services support.
- ResourceNotFoundException The specified resource was not found.
- AccessDeniedException You do not have sufficient access to perform this action.
- ThrottlingException The request was denied due to request throttling.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BcmPricingCalculatorException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
batchUpdateBillScenarioCommitmentModification
default CompletableFuture<BatchUpdateBillScenarioCommitmentModificationResponse> batchUpdateBillScenarioCommitmentModification(BatchUpdateBillScenarioCommitmentModificationRequest batchUpdateBillScenarioCommitmentModificationRequest) Update a newly added or existing commitment. You can update the commitment group based on a commitment ID and a Bill scenario ID.
The
BatchUpdateBillScenarioCommitmentModification
operation doesn't have its own IAM permission. To authorize this operation for Amazon Web Services principals, include the permissionbcm-pricing-calculator:UpdateBillScenarioCommitmentModification
in your policies.- Parameters:
batchUpdateBillScenarioCommitmentModificationRequest
-- Returns:
- A Java Future containing the result of the BatchUpdateBillScenarioCommitmentModification operation
returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- ConflictException The request could not be processed because of conflict in the current state of the resource.
- ValidationException The input provided fails to satisfy the constraints specified by an Amazon Web Services service.
- DataUnavailableException The requested data is currently unavailable.
- InternalServerException An internal error has occurred. Retry your request, but if the problem persists, contact Amazon Web Services support.
- ResourceNotFoundException The specified resource was not found.
- AccessDeniedException You do not have sufficient access to perform this action.
- ThrottlingException The request was denied due to request throttling.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BcmPricingCalculatorException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
batchUpdateBillScenarioCommitmentModification
default CompletableFuture<BatchUpdateBillScenarioCommitmentModificationResponse> batchUpdateBillScenarioCommitmentModification(Consumer<BatchUpdateBillScenarioCommitmentModificationRequest.Builder> batchUpdateBillScenarioCommitmentModificationRequest) Update a newly added or existing commitment. You can update the commitment group based on a commitment ID and a Bill scenario ID.
The
BatchUpdateBillScenarioCommitmentModification
operation doesn't have its own IAM permission. To authorize this operation for Amazon Web Services principals, include the permissionbcm-pricing-calculator:UpdateBillScenarioCommitmentModification
in your policies.
This is a convenience which creates an instance of the
BatchUpdateBillScenarioCommitmentModificationRequest.Builder
avoiding the need to create one manually viaBatchUpdateBillScenarioCommitmentModificationRequest.builder()
- Parameters:
batchUpdateBillScenarioCommitmentModificationRequest
- AConsumer
that will call methods onBatchUpdateBillScenarioCommitmentModificationRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the BatchUpdateBillScenarioCommitmentModification operation
returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- ConflictException The request could not be processed because of conflict in the current state of the resource.
- ValidationException The input provided fails to satisfy the constraints specified by an Amazon Web Services service.
- DataUnavailableException The requested data is currently unavailable.
- InternalServerException An internal error has occurred. Retry your request, but if the problem persists, contact Amazon Web Services support.
- ResourceNotFoundException The specified resource was not found.
- AccessDeniedException You do not have sufficient access to perform this action.
- ThrottlingException The request was denied due to request throttling.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BcmPricingCalculatorException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
batchUpdateBillScenarioUsageModification
default CompletableFuture<BatchUpdateBillScenarioUsageModificationResponse> batchUpdateBillScenarioUsageModification(BatchUpdateBillScenarioUsageModificationRequest batchUpdateBillScenarioUsageModificationRequest) Update a newly added or existing usage lines. You can update the usage amounts, usage hour, and usage group based on a usage ID and a Bill scenario ID.
The
BatchUpdateBillScenarioUsageModification
operation doesn't have its own IAM permission. To authorize this operation for Amazon Web Services principals, include the permissionbcm-pricing-calculator:UpdateBillScenarioUsageModification
in your policies.- Parameters:
batchUpdateBillScenarioUsageModificationRequest
-- Returns:
- A Java Future containing the result of the BatchUpdateBillScenarioUsageModification operation returned by
the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- ConflictException The request could not be processed because of conflict in the current state of the resource.
- ValidationException The input provided fails to satisfy the constraints specified by an Amazon Web Services service.
- DataUnavailableException The requested data is currently unavailable.
- ServiceQuotaExceededException The request would cause you to exceed your service quota.
- InternalServerException An internal error has occurred. Retry your request, but if the problem persists, contact Amazon Web Services support.
- ResourceNotFoundException The specified resource was not found.
- AccessDeniedException You do not have sufficient access to perform this action.
- ThrottlingException The request was denied due to request throttling.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BcmPricingCalculatorException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
batchUpdateBillScenarioUsageModification
default CompletableFuture<BatchUpdateBillScenarioUsageModificationResponse> batchUpdateBillScenarioUsageModification(Consumer<BatchUpdateBillScenarioUsageModificationRequest.Builder> batchUpdateBillScenarioUsageModificationRequest) Update a newly added or existing usage lines. You can update the usage amounts, usage hour, and usage group based on a usage ID and a Bill scenario ID.
The
BatchUpdateBillScenarioUsageModification
operation doesn't have its own IAM permission. To authorize this operation for Amazon Web Services principals, include the permissionbcm-pricing-calculator:UpdateBillScenarioUsageModification
in your policies.
This is a convenience which creates an instance of the
BatchUpdateBillScenarioUsageModificationRequest.Builder
avoiding the need to create one manually viaBatchUpdateBillScenarioUsageModificationRequest.builder()
- Parameters:
batchUpdateBillScenarioUsageModificationRequest
- AConsumer
that will call methods onBatchUpdateBillScenarioUsageModificationRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the BatchUpdateBillScenarioUsageModification operation returned by
the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- ConflictException The request could not be processed because of conflict in the current state of the resource.
- ValidationException The input provided fails to satisfy the constraints specified by an Amazon Web Services service.
- DataUnavailableException The requested data is currently unavailable.
- ServiceQuotaExceededException The request would cause you to exceed your service quota.
- InternalServerException An internal error has occurred. Retry your request, but if the problem persists, contact Amazon Web Services support.
- ResourceNotFoundException The specified resource was not found.
- AccessDeniedException You do not have sufficient access to perform this action.
- ThrottlingException The request was denied due to request throttling.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BcmPricingCalculatorException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
batchUpdateWorkloadEstimateUsage
default CompletableFuture<BatchUpdateWorkloadEstimateUsageResponse> batchUpdateWorkloadEstimateUsage(BatchUpdateWorkloadEstimateUsageRequest batchUpdateWorkloadEstimateUsageRequest) Update a newly added or existing usage lines. You can update the usage amounts and usage group based on a usage ID and a Workload estimate ID.
The
BatchUpdateWorkloadEstimateUsage
operation doesn't have its own IAM permission. To authorize this operation for Amazon Web Services principals, include the permissionbcm-pricing-calculator:UpdateWorkloadEstimateUsage
in your policies.- Parameters:
batchUpdateWorkloadEstimateUsageRequest
-- Returns:
- A Java Future containing the result of the BatchUpdateWorkloadEstimateUsage operation returned by the
service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- ValidationException The input provided fails to satisfy the constraints specified by an Amazon Web Services service.
- DataUnavailableException The requested data is currently unavailable.
- ServiceQuotaExceededException The request would cause you to exceed your service quota.
- InternalServerException An internal error has occurred. Retry your request, but if the problem persists, contact Amazon Web Services support.
- ResourceNotFoundException The specified resource was not found.
- AccessDeniedException You do not have sufficient access to perform this action.
- ThrottlingException The request was denied due to request throttling.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BcmPricingCalculatorException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
batchUpdateWorkloadEstimateUsage
default CompletableFuture<BatchUpdateWorkloadEstimateUsageResponse> batchUpdateWorkloadEstimateUsage(Consumer<BatchUpdateWorkloadEstimateUsageRequest.Builder> batchUpdateWorkloadEstimateUsageRequest) Update a newly added or existing usage lines. You can update the usage amounts and usage group based on a usage ID and a Workload estimate ID.
The
BatchUpdateWorkloadEstimateUsage
operation doesn't have its own IAM permission. To authorize this operation for Amazon Web Services principals, include the permissionbcm-pricing-calculator:UpdateWorkloadEstimateUsage
in your policies.
This is a convenience which creates an instance of the
BatchUpdateWorkloadEstimateUsageRequest.Builder
avoiding the need to create one manually viaBatchUpdateWorkloadEstimateUsageRequest.builder()
- Parameters:
batchUpdateWorkloadEstimateUsageRequest
- AConsumer
that will call methods onBatchUpdateWorkloadEstimateUsageRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the BatchUpdateWorkloadEstimateUsage operation returned by the
service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- ValidationException The input provided fails to satisfy the constraints specified by an Amazon Web Services service.
- DataUnavailableException The requested data is currently unavailable.
- ServiceQuotaExceededException The request would cause you to exceed your service quota.
- InternalServerException An internal error has occurred. Retry your request, but if the problem persists, contact Amazon Web Services support.
- ResourceNotFoundException The specified resource was not found.
- AccessDeniedException You do not have sufficient access to perform this action.
- ThrottlingException The request was denied due to request throttling.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BcmPricingCalculatorException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
createBillEstimate
default CompletableFuture<CreateBillEstimateResponse> createBillEstimate(CreateBillEstimateRequest createBillEstimateRequest) Create a Bill estimate from a Bill scenario. In the Bill scenario you can model usage addition, usage changes, and usage removal. You can also model commitment addition and commitment removal. After all changes in a Bill scenario is made satisfactorily, you can call this API with a Bill scenario ID to generate the Bill estimate. Bill estimate calculates the pre-tax cost for your consolidated billing family, incorporating all modeled usage and commitments alongside existing usage and commitments from your most recent completed anniversary bill, with any applicable discounts applied.
- Parameters:
createBillEstimateRequest
-- Returns:
- A Java Future containing the result of the CreateBillEstimate operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- ConflictException The request could not be processed because of conflict in the current state of the resource.
- ValidationException The input provided fails to satisfy the constraints specified by an Amazon Web Services service.
- DataUnavailableException The requested data is currently unavailable.
- InternalServerException An internal error has occurred. Retry your request, but if the problem persists, contact Amazon Web Services support.
- ResourceNotFoundException The specified resource was not found.
- AccessDeniedException You do not have sufficient access to perform this action.
- ThrottlingException The request was denied due to request throttling.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BcmPricingCalculatorException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
createBillEstimate
default CompletableFuture<CreateBillEstimateResponse> createBillEstimate(Consumer<CreateBillEstimateRequest.Builder> createBillEstimateRequest) Create a Bill estimate from a Bill scenario. In the Bill scenario you can model usage addition, usage changes, and usage removal. You can also model commitment addition and commitment removal. After all changes in a Bill scenario is made satisfactorily, you can call this API with a Bill scenario ID to generate the Bill estimate. Bill estimate calculates the pre-tax cost for your consolidated billing family, incorporating all modeled usage and commitments alongside existing usage and commitments from your most recent completed anniversary bill, with any applicable discounts applied.
This is a convenience which creates an instance of the
CreateBillEstimateRequest.Builder
avoiding the need to create one manually viaCreateBillEstimateRequest.builder()
- Parameters:
createBillEstimateRequest
- AConsumer
that will call methods onCreateBillEstimateRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the CreateBillEstimate operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- ConflictException The request could not be processed because of conflict in the current state of the resource.
- ValidationException The input provided fails to satisfy the constraints specified by an Amazon Web Services service.
- DataUnavailableException The requested data is currently unavailable.
- InternalServerException An internal error has occurred. Retry your request, but if the problem persists, contact Amazon Web Services support.
- ResourceNotFoundException The specified resource was not found.
- AccessDeniedException You do not have sufficient access to perform this action.
- ThrottlingException The request was denied due to request throttling.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BcmPricingCalculatorException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
createBillScenario
default CompletableFuture<CreateBillScenarioResponse> createBillScenario(CreateBillScenarioRequest createBillScenarioRequest) Creates a new bill scenario to model potential changes to Amazon Web Services usage and costs.
- Parameters:
createBillScenarioRequest
-- Returns:
- A Java Future containing the result of the CreateBillScenario operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- ConflictException The request could not be processed because of conflict in the current state of the resource.
- ValidationException The input provided fails to satisfy the constraints specified by an Amazon Web Services service.
- DataUnavailableException The requested data is currently unavailable.
- ServiceQuotaExceededException The request would cause you to exceed your service quota.
- InternalServerException An internal error has occurred. Retry your request, but if the problem persists, contact Amazon Web Services support.
- AccessDeniedException You do not have sufficient access to perform this action.
- ThrottlingException The request was denied due to request throttling.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BcmPricingCalculatorException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
createBillScenario
default CompletableFuture<CreateBillScenarioResponse> createBillScenario(Consumer<CreateBillScenarioRequest.Builder> createBillScenarioRequest) Creates a new bill scenario to model potential changes to Amazon Web Services usage and costs.
This is a convenience which creates an instance of the
CreateBillScenarioRequest.Builder
avoiding the need to create one manually viaCreateBillScenarioRequest.builder()
- Parameters:
createBillScenarioRequest
- AConsumer
that will call methods onCreateBillScenarioRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the CreateBillScenario operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- ConflictException The request could not be processed because of conflict in the current state of the resource.
- ValidationException The input provided fails to satisfy the constraints specified by an Amazon Web Services service.
- DataUnavailableException The requested data is currently unavailable.
- ServiceQuotaExceededException The request would cause you to exceed your service quota.
- InternalServerException An internal error has occurred. Retry your request, but if the problem persists, contact Amazon Web Services support.
- AccessDeniedException You do not have sufficient access to perform this action.
- ThrottlingException The request was denied due to request throttling.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BcmPricingCalculatorException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
createWorkloadEstimate
default CompletableFuture<CreateWorkloadEstimateResponse> createWorkloadEstimate(CreateWorkloadEstimateRequest createWorkloadEstimateRequest) Creates a new workload estimate to model costs for a specific workload.
- Parameters:
createWorkloadEstimateRequest
-- Returns:
- A Java Future containing the result of the CreateWorkloadEstimate operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- ConflictException The request could not be processed because of conflict in the current state of the resource.
- ValidationException The input provided fails to satisfy the constraints specified by an Amazon Web Services service.
- DataUnavailableException The requested data is currently unavailable.
- ServiceQuotaExceededException The request would cause you to exceed your service quota.
- InternalServerException An internal error has occurred. Retry your request, but if the problem persists, contact Amazon Web Services support.
- AccessDeniedException You do not have sufficient access to perform this action.
- ThrottlingException The request was denied due to request throttling.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BcmPricingCalculatorException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
createWorkloadEstimate
default CompletableFuture<CreateWorkloadEstimateResponse> createWorkloadEstimate(Consumer<CreateWorkloadEstimateRequest.Builder> createWorkloadEstimateRequest) Creates a new workload estimate to model costs for a specific workload.
This is a convenience which creates an instance of the
CreateWorkloadEstimateRequest.Builder
avoiding the need to create one manually viaCreateWorkloadEstimateRequest.builder()
- Parameters:
createWorkloadEstimateRequest
- AConsumer
that will call methods onCreateWorkloadEstimateRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the CreateWorkloadEstimate operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- ConflictException The request could not be processed because of conflict in the current state of the resource.
- ValidationException The input provided fails to satisfy the constraints specified by an Amazon Web Services service.
- DataUnavailableException The requested data is currently unavailable.
- ServiceQuotaExceededException The request would cause you to exceed your service quota.
- InternalServerException An internal error has occurred. Retry your request, but if the problem persists, contact Amazon Web Services support.
- AccessDeniedException You do not have sufficient access to perform this action.
- ThrottlingException The request was denied due to request throttling.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BcmPricingCalculatorException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
deleteBillEstimate
default CompletableFuture<DeleteBillEstimateResponse> deleteBillEstimate(DeleteBillEstimateRequest deleteBillEstimateRequest) Deletes an existing bill estimate.
- Parameters:
deleteBillEstimateRequest
-- Returns:
- A Java Future containing the result of the DeleteBillEstimate operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- ConflictException The request could not be processed because of conflict in the current state of the resource.
- ValidationException The input provided fails to satisfy the constraints specified by an Amazon Web Services service.
- DataUnavailableException The requested data is currently unavailable.
- InternalServerException An internal error has occurred. Retry your request, but if the problem persists, contact Amazon Web Services support.
- AccessDeniedException You do not have sufficient access to perform this action.
- ThrottlingException The request was denied due to request throttling.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BcmPricingCalculatorException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
deleteBillEstimate
default CompletableFuture<DeleteBillEstimateResponse> deleteBillEstimate(Consumer<DeleteBillEstimateRequest.Builder> deleteBillEstimateRequest) Deletes an existing bill estimate.
This is a convenience which creates an instance of the
DeleteBillEstimateRequest.Builder
avoiding the need to create one manually viaDeleteBillEstimateRequest.builder()
- Parameters:
deleteBillEstimateRequest
- AConsumer
that will call methods onDeleteBillEstimateRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the DeleteBillEstimate operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- ConflictException The request could not be processed because of conflict in the current state of the resource.
- ValidationException The input provided fails to satisfy the constraints specified by an Amazon Web Services service.
- DataUnavailableException The requested data is currently unavailable.
- InternalServerException An internal error has occurred. Retry your request, but if the problem persists, contact Amazon Web Services support.
- AccessDeniedException You do not have sufficient access to perform this action.
- ThrottlingException The request was denied due to request throttling.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BcmPricingCalculatorException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
deleteBillScenario
default CompletableFuture<DeleteBillScenarioResponse> deleteBillScenario(DeleteBillScenarioRequest deleteBillScenarioRequest) Deletes an existing bill scenario.
- Parameters:
deleteBillScenarioRequest
-- Returns:
- A Java Future containing the result of the DeleteBillScenario operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- ConflictException The request could not be processed because of conflict in the current state of the resource.
- ValidationException The input provided fails to satisfy the constraints specified by an Amazon Web Services service.
- DataUnavailableException The requested data is currently unavailable.
- InternalServerException An internal error has occurred. Retry your request, but if the problem persists, contact Amazon Web Services support.
- AccessDeniedException You do not have sufficient access to perform this action.
- ThrottlingException The request was denied due to request throttling.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BcmPricingCalculatorException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
deleteBillScenario
default CompletableFuture<DeleteBillScenarioResponse> deleteBillScenario(Consumer<DeleteBillScenarioRequest.Builder> deleteBillScenarioRequest) Deletes an existing bill scenario.
This is a convenience which creates an instance of the
DeleteBillScenarioRequest.Builder
avoiding the need to create one manually viaDeleteBillScenarioRequest.builder()
- Parameters:
deleteBillScenarioRequest
- AConsumer
that will call methods onDeleteBillScenarioRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the DeleteBillScenario operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- ConflictException The request could not be processed because of conflict in the current state of the resource.
- ValidationException The input provided fails to satisfy the constraints specified by an Amazon Web Services service.
- DataUnavailableException The requested data is currently unavailable.
- InternalServerException An internal error has occurred. Retry your request, but if the problem persists, contact Amazon Web Services support.
- AccessDeniedException You do not have sufficient access to perform this action.
- ThrottlingException The request was denied due to request throttling.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BcmPricingCalculatorException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
deleteWorkloadEstimate
default CompletableFuture<DeleteWorkloadEstimateResponse> deleteWorkloadEstimate(DeleteWorkloadEstimateRequest deleteWorkloadEstimateRequest) Deletes an existing workload estimate.
- Parameters:
deleteWorkloadEstimateRequest
-- Returns:
- A Java Future containing the result of the DeleteWorkloadEstimate operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- ValidationException The input provided fails to satisfy the constraints specified by an Amazon Web Services service.
- DataUnavailableException The requested data is currently unavailable.
- InternalServerException An internal error has occurred. Retry your request, but if the problem persists, contact Amazon Web Services support.
- AccessDeniedException You do not have sufficient access to perform this action.
- ThrottlingException The request was denied due to request throttling.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BcmPricingCalculatorException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
deleteWorkloadEstimate
default CompletableFuture<DeleteWorkloadEstimateResponse> deleteWorkloadEstimate(Consumer<DeleteWorkloadEstimateRequest.Builder> deleteWorkloadEstimateRequest) Deletes an existing workload estimate.
This is a convenience which creates an instance of the
DeleteWorkloadEstimateRequest.Builder
avoiding the need to create one manually viaDeleteWorkloadEstimateRequest.builder()
- Parameters:
deleteWorkloadEstimateRequest
- AConsumer
that will call methods onDeleteWorkloadEstimateRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the DeleteWorkloadEstimate operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- ValidationException The input provided fails to satisfy the constraints specified by an Amazon Web Services service.
- DataUnavailableException The requested data is currently unavailable.
- InternalServerException An internal error has occurred. Retry your request, but if the problem persists, contact Amazon Web Services support.
- AccessDeniedException You do not have sufficient access to perform this action.
- ThrottlingException The request was denied due to request throttling.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BcmPricingCalculatorException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
getBillEstimate
default CompletableFuture<GetBillEstimateResponse> getBillEstimate(GetBillEstimateRequest getBillEstimateRequest) Retrieves details of a specific bill estimate.
- Parameters:
getBillEstimateRequest
-- Returns:
- A Java Future containing the result of the GetBillEstimate operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- ValidationException The input provided fails to satisfy the constraints specified by an Amazon Web Services service.
- DataUnavailableException The requested data is currently unavailable.
- InternalServerException An internal error has occurred. Retry your request, but if the problem persists, contact Amazon Web Services support.
- ResourceNotFoundException The specified resource was not found.
- AccessDeniedException You do not have sufficient access to perform this action.
- ThrottlingException The request was denied due to request throttling.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BcmPricingCalculatorException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
getBillEstimate
default CompletableFuture<GetBillEstimateResponse> getBillEstimate(Consumer<GetBillEstimateRequest.Builder> getBillEstimateRequest) Retrieves details of a specific bill estimate.
This is a convenience which creates an instance of the
GetBillEstimateRequest.Builder
avoiding the need to create one manually viaGetBillEstimateRequest.builder()
- Parameters:
getBillEstimateRequest
- AConsumer
that will call methods onGetBillEstimateRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the GetBillEstimate operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- ValidationException The input provided fails to satisfy the constraints specified by an Amazon Web Services service.
- DataUnavailableException The requested data is currently unavailable.
- InternalServerException An internal error has occurred. Retry your request, but if the problem persists, contact Amazon Web Services support.
- ResourceNotFoundException The specified resource was not found.
- AccessDeniedException You do not have sufficient access to perform this action.
- ThrottlingException The request was denied due to request throttling.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BcmPricingCalculatorException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
getBillScenario
default CompletableFuture<GetBillScenarioResponse> getBillScenario(GetBillScenarioRequest getBillScenarioRequest) Retrieves details of a specific bill scenario.
- Parameters:
getBillScenarioRequest
-- Returns:
- A Java Future containing the result of the GetBillScenario operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- ValidationException The input provided fails to satisfy the constraints specified by an Amazon Web Services service.
- DataUnavailableException The requested data is currently unavailable.
- InternalServerException An internal error has occurred. Retry your request, but if the problem persists, contact Amazon Web Services support.
- ResourceNotFoundException The specified resource was not found.
- AccessDeniedException You do not have sufficient access to perform this action.
- ThrottlingException The request was denied due to request throttling.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BcmPricingCalculatorException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
getBillScenario
default CompletableFuture<GetBillScenarioResponse> getBillScenario(Consumer<GetBillScenarioRequest.Builder> getBillScenarioRequest) Retrieves details of a specific bill scenario.
This is a convenience which creates an instance of the
GetBillScenarioRequest.Builder
avoiding the need to create one manually viaGetBillScenarioRequest.builder()
- Parameters:
getBillScenarioRequest
- AConsumer
that will call methods onGetBillScenarioRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the GetBillScenario operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- ValidationException The input provided fails to satisfy the constraints specified by an Amazon Web Services service.
- DataUnavailableException The requested data is currently unavailable.
- InternalServerException An internal error has occurred. Retry your request, but if the problem persists, contact Amazon Web Services support.
- ResourceNotFoundException The specified resource was not found.
- AccessDeniedException You do not have sufficient access to perform this action.
- ThrottlingException The request was denied due to request throttling.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BcmPricingCalculatorException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
getPreferences
default CompletableFuture<GetPreferencesResponse> getPreferences(GetPreferencesRequest getPreferencesRequest) Retrieves the current preferences for Pricing Calculator.
- Parameters:
getPreferencesRequest
-- Returns:
- A Java Future containing the result of the GetPreferences operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- ValidationException The input provided fails to satisfy the constraints specified by an Amazon Web Services service.
- DataUnavailableException The requested data is currently unavailable.
- InternalServerException An internal error has occurred. Retry your request, but if the problem persists, contact Amazon Web Services support.
- AccessDeniedException You do not have sufficient access to perform this action.
- ThrottlingException The request was denied due to request throttling.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BcmPricingCalculatorException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
getPreferences
default CompletableFuture<GetPreferencesResponse> getPreferences(Consumer<GetPreferencesRequest.Builder> getPreferencesRequest) Retrieves the current preferences for Pricing Calculator.
This is a convenience which creates an instance of the
GetPreferencesRequest.Builder
avoiding the need to create one manually viaGetPreferencesRequest.builder()
- Parameters:
getPreferencesRequest
- AConsumer
that will call methods onGetPreferencesRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the GetPreferences operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- ValidationException The input provided fails to satisfy the constraints specified by an Amazon Web Services service.
- DataUnavailableException The requested data is currently unavailable.
- InternalServerException An internal error has occurred. Retry your request, but if the problem persists, contact Amazon Web Services support.
- AccessDeniedException You do not have sufficient access to perform this action.
- ThrottlingException The request was denied due to request throttling.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BcmPricingCalculatorException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
getWorkloadEstimate
default CompletableFuture<GetWorkloadEstimateResponse> getWorkloadEstimate(GetWorkloadEstimateRequest getWorkloadEstimateRequest) Retrieves details of a specific workload estimate.
- Parameters:
getWorkloadEstimateRequest
-- Returns:
- A Java Future containing the result of the GetWorkloadEstimate operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- ValidationException The input provided fails to satisfy the constraints specified by an Amazon Web Services service.
- DataUnavailableException The requested data is currently unavailable.
- InternalServerException An internal error has occurred. Retry your request, but if the problem persists, contact Amazon Web Services support.
- ResourceNotFoundException The specified resource was not found.
- AccessDeniedException You do not have sufficient access to perform this action.
- ThrottlingException The request was denied due to request throttling.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BcmPricingCalculatorException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
getWorkloadEstimate
default CompletableFuture<GetWorkloadEstimateResponse> getWorkloadEstimate(Consumer<GetWorkloadEstimateRequest.Builder> getWorkloadEstimateRequest) Retrieves details of a specific workload estimate.
This is a convenience which creates an instance of the
GetWorkloadEstimateRequest.Builder
avoiding the need to create one manually viaGetWorkloadEstimateRequest.builder()
- Parameters:
getWorkloadEstimateRequest
- AConsumer
that will call methods onGetWorkloadEstimateRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the GetWorkloadEstimate operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- ValidationException The input provided fails to satisfy the constraints specified by an Amazon Web Services service.
- DataUnavailableException The requested data is currently unavailable.
- InternalServerException An internal error has occurred. Retry your request, but if the problem persists, contact Amazon Web Services support.
- ResourceNotFoundException The specified resource was not found.
- AccessDeniedException You do not have sufficient access to perform this action.
- ThrottlingException The request was denied due to request throttling.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BcmPricingCalculatorException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listBillEstimateCommitments
default CompletableFuture<ListBillEstimateCommitmentsResponse> listBillEstimateCommitments(ListBillEstimateCommitmentsRequest listBillEstimateCommitmentsRequest) Lists the commitments associated with a bill estimate.
- Parameters:
listBillEstimateCommitmentsRequest
-- Returns:
- A Java Future containing the result of the ListBillEstimateCommitments operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- ValidationException The input provided fails to satisfy the constraints specified by an Amazon Web Services service.
- DataUnavailableException The requested data is currently unavailable.
- InternalServerException An internal error has occurred. Retry your request, but if the problem persists, contact Amazon Web Services support.
- ResourceNotFoundException The specified resource was not found.
- AccessDeniedException You do not have sufficient access to perform this action.
- ThrottlingException The request was denied due to request throttling.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BcmPricingCalculatorException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listBillEstimateCommitments
default CompletableFuture<ListBillEstimateCommitmentsResponse> listBillEstimateCommitments(Consumer<ListBillEstimateCommitmentsRequest.Builder> listBillEstimateCommitmentsRequest) Lists the commitments associated with a bill estimate.
This is a convenience which creates an instance of the
ListBillEstimateCommitmentsRequest.Builder
avoiding the need to create one manually viaListBillEstimateCommitmentsRequest.builder()
- Parameters:
listBillEstimateCommitmentsRequest
- AConsumer
that will call methods onListBillEstimateCommitmentsRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the ListBillEstimateCommitments operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- ValidationException The input provided fails to satisfy the constraints specified by an Amazon Web Services service.
- DataUnavailableException The requested data is currently unavailable.
- InternalServerException An internal error has occurred. Retry your request, but if the problem persists, contact Amazon Web Services support.
- ResourceNotFoundException The specified resource was not found.
- AccessDeniedException You do not have sufficient access to perform this action.
- ThrottlingException The request was denied due to request throttling.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BcmPricingCalculatorException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listBillEstimateCommitmentsPaginator
default ListBillEstimateCommitmentsPublisher listBillEstimateCommitmentsPaginator(ListBillEstimateCommitmentsRequest listBillEstimateCommitmentsRequest) This is a variant of
listBillEstimateCommitments(software.amazon.awssdk.services.bcmpricingcalculator.model.ListBillEstimateCommitmentsRequest)
operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber)
. Each call to the subscribe method will result in a newSubscription
i.e., a new contract to stream data from the starting request.The following are few ways to use the response class:
1) Using the subscribe helper methodsoftware.amazon.awssdk.services.bcmpricingcalculator.paginators.ListBillEstimateCommitmentsPublisher publisher = client.listBillEstimateCommitmentsPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
software.amazon.awssdk.services.bcmpricingcalculator.paginators.ListBillEstimateCommitmentsPublisher publisher = client.listBillEstimateCommitmentsPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.bcmpricingcalculator.model.ListBillEstimateCommitmentsResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.bcmpricingcalculator.model.ListBillEstimateCommitmentsResponse response) { //... }; });
Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listBillEstimateCommitments(software.amazon.awssdk.services.bcmpricingcalculator.model.ListBillEstimateCommitmentsRequest)
operation.- Parameters:
listBillEstimateCommitmentsRequest
-- Returns:
- A custom publisher that can be subscribed to request a stream of response pages.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- ValidationException The input provided fails to satisfy the constraints specified by an Amazon Web Services service.
- DataUnavailableException The requested data is currently unavailable.
- InternalServerException An internal error has occurred. Retry your request, but if the problem persists, contact Amazon Web Services support.
- ResourceNotFoundException The specified resource was not found.
- AccessDeniedException You do not have sufficient access to perform this action.
- ThrottlingException The request was denied due to request throttling.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BcmPricingCalculatorException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listBillEstimateCommitmentsPaginator
default ListBillEstimateCommitmentsPublisher listBillEstimateCommitmentsPaginator(Consumer<ListBillEstimateCommitmentsRequest.Builder> listBillEstimateCommitmentsRequest) This is a variant of
listBillEstimateCommitments(software.amazon.awssdk.services.bcmpricingcalculator.model.ListBillEstimateCommitmentsRequest)
operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber)
. Each call to the subscribe method will result in a newSubscription
i.e., a new contract to stream data from the starting request.The following are few ways to use the response class:
1) Using the subscribe helper methodsoftware.amazon.awssdk.services.bcmpricingcalculator.paginators.ListBillEstimateCommitmentsPublisher publisher = client.listBillEstimateCommitmentsPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
software.amazon.awssdk.services.bcmpricingcalculator.paginators.ListBillEstimateCommitmentsPublisher publisher = client.listBillEstimateCommitmentsPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.bcmpricingcalculator.model.ListBillEstimateCommitmentsResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.bcmpricingcalculator.model.ListBillEstimateCommitmentsResponse response) { //... }; });
Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listBillEstimateCommitments(software.amazon.awssdk.services.bcmpricingcalculator.model.ListBillEstimateCommitmentsRequest)
operation.
This is a convenience which creates an instance of the
ListBillEstimateCommitmentsRequest.Builder
avoiding the need to create one manually viaListBillEstimateCommitmentsRequest.builder()
- Parameters:
listBillEstimateCommitmentsRequest
- AConsumer
that will call methods onListBillEstimateCommitmentsRequest.Builder
to create a request.- Returns:
- A custom publisher that can be subscribed to request a stream of response pages.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- ValidationException The input provided fails to satisfy the constraints specified by an Amazon Web Services service.
- DataUnavailableException The requested data is currently unavailable.
- InternalServerException An internal error has occurred. Retry your request, but if the problem persists, contact Amazon Web Services support.
- ResourceNotFoundException The specified resource was not found.
- AccessDeniedException You do not have sufficient access to perform this action.
- ThrottlingException The request was denied due to request throttling.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BcmPricingCalculatorException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listBillEstimateInputCommitmentModifications
default CompletableFuture<ListBillEstimateInputCommitmentModificationsResponse> listBillEstimateInputCommitmentModifications(ListBillEstimateInputCommitmentModificationsRequest listBillEstimateInputCommitmentModificationsRequest) Lists the input commitment modifications associated with a bill estimate.
- Parameters:
listBillEstimateInputCommitmentModificationsRequest
-- Returns:
- A Java Future containing the result of the ListBillEstimateInputCommitmentModifications operation
returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- ValidationException The input provided fails to satisfy the constraints specified by an Amazon Web Services service.
- DataUnavailableException The requested data is currently unavailable.
- InternalServerException An internal error has occurred. Retry your request, but if the problem persists, contact Amazon Web Services support.
- ResourceNotFoundException The specified resource was not found.
- AccessDeniedException You do not have sufficient access to perform this action.
- ThrottlingException The request was denied due to request throttling.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BcmPricingCalculatorException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listBillEstimateInputCommitmentModifications
default CompletableFuture<ListBillEstimateInputCommitmentModificationsResponse> listBillEstimateInputCommitmentModifications(Consumer<ListBillEstimateInputCommitmentModificationsRequest.Builder> listBillEstimateInputCommitmentModificationsRequest) Lists the input commitment modifications associated with a bill estimate.
This is a convenience which creates an instance of the
ListBillEstimateInputCommitmentModificationsRequest.Builder
avoiding the need to create one manually viaListBillEstimateInputCommitmentModificationsRequest.builder()
- Parameters:
listBillEstimateInputCommitmentModificationsRequest
- AConsumer
that will call methods onListBillEstimateInputCommitmentModificationsRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the ListBillEstimateInputCommitmentModifications operation
returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- ValidationException The input provided fails to satisfy the constraints specified by an Amazon Web Services service.
- DataUnavailableException The requested data is currently unavailable.
- InternalServerException An internal error has occurred. Retry your request, but if the problem persists, contact Amazon Web Services support.
- ResourceNotFoundException The specified resource was not found.
- AccessDeniedException You do not have sufficient access to perform this action.
- ThrottlingException The request was denied due to request throttling.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BcmPricingCalculatorException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listBillEstimateInputCommitmentModificationsPaginator
default ListBillEstimateInputCommitmentModificationsPublisher listBillEstimateInputCommitmentModificationsPaginator(ListBillEstimateInputCommitmentModificationsRequest listBillEstimateInputCommitmentModificationsRequest) This is a variant of
listBillEstimateInputCommitmentModifications(software.amazon.awssdk.services.bcmpricingcalculator.model.ListBillEstimateInputCommitmentModificationsRequest)
operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber)
. Each call to the subscribe method will result in a newSubscription
i.e., a new contract to stream data from the starting request.The following are few ways to use the response class:
1) Using the subscribe helper methodsoftware.amazon.awssdk.services.bcmpricingcalculator.paginators.ListBillEstimateInputCommitmentModificationsPublisher publisher = client.listBillEstimateInputCommitmentModificationsPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
software.amazon.awssdk.services.bcmpricingcalculator.paginators.ListBillEstimateInputCommitmentModificationsPublisher publisher = client.listBillEstimateInputCommitmentModificationsPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.bcmpricingcalculator.model.ListBillEstimateInputCommitmentModificationsResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.bcmpricingcalculator.model.ListBillEstimateInputCommitmentModificationsResponse response) { //... }; });
Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listBillEstimateInputCommitmentModifications(software.amazon.awssdk.services.bcmpricingcalculator.model.ListBillEstimateInputCommitmentModificationsRequest)
operation.- Parameters:
listBillEstimateInputCommitmentModificationsRequest
-- Returns:
- A custom publisher that can be subscribed to request a stream of response pages.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- ValidationException The input provided fails to satisfy the constraints specified by an Amazon Web Services service.
- DataUnavailableException The requested data is currently unavailable.
- InternalServerException An internal error has occurred. Retry your request, but if the problem persists, contact Amazon Web Services support.
- ResourceNotFoundException The specified resource was not found.
- AccessDeniedException You do not have sufficient access to perform this action.
- ThrottlingException The request was denied due to request throttling.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BcmPricingCalculatorException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listBillEstimateInputCommitmentModificationsPaginator
default ListBillEstimateInputCommitmentModificationsPublisher listBillEstimateInputCommitmentModificationsPaginator(Consumer<ListBillEstimateInputCommitmentModificationsRequest.Builder> listBillEstimateInputCommitmentModificationsRequest) This is a variant of
listBillEstimateInputCommitmentModifications(software.amazon.awssdk.services.bcmpricingcalculator.model.ListBillEstimateInputCommitmentModificationsRequest)
operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber)
. Each call to the subscribe method will result in a newSubscription
i.e., a new contract to stream data from the starting request.The following are few ways to use the response class:
1) Using the subscribe helper methodsoftware.amazon.awssdk.services.bcmpricingcalculator.paginators.ListBillEstimateInputCommitmentModificationsPublisher publisher = client.listBillEstimateInputCommitmentModificationsPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
software.amazon.awssdk.services.bcmpricingcalculator.paginators.ListBillEstimateInputCommitmentModificationsPublisher publisher = client.listBillEstimateInputCommitmentModificationsPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.bcmpricingcalculator.model.ListBillEstimateInputCommitmentModificationsResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.bcmpricingcalculator.model.ListBillEstimateInputCommitmentModificationsResponse response) { //... }; });
Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listBillEstimateInputCommitmentModifications(software.amazon.awssdk.services.bcmpricingcalculator.model.ListBillEstimateInputCommitmentModificationsRequest)
operation.
This is a convenience which creates an instance of the
ListBillEstimateInputCommitmentModificationsRequest.Builder
avoiding the need to create one manually viaListBillEstimateInputCommitmentModificationsRequest.builder()
- Parameters:
listBillEstimateInputCommitmentModificationsRequest
- AConsumer
that will call methods onListBillEstimateInputCommitmentModificationsRequest.Builder
to create a request.- Returns:
- A custom publisher that can be subscribed to request a stream of response pages.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- ValidationException The input provided fails to satisfy the constraints specified by an Amazon Web Services service.
- DataUnavailableException The requested data is currently unavailable.
- InternalServerException An internal error has occurred. Retry your request, but if the problem persists, contact Amazon Web Services support.
- ResourceNotFoundException The specified resource was not found.
- AccessDeniedException You do not have sufficient access to perform this action.
- ThrottlingException The request was denied due to request throttling.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BcmPricingCalculatorException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listBillEstimateInputUsageModifications
default CompletableFuture<ListBillEstimateInputUsageModificationsResponse> listBillEstimateInputUsageModifications(ListBillEstimateInputUsageModificationsRequest listBillEstimateInputUsageModificationsRequest) Lists the input usage modifications associated with a bill estimate.
- Parameters:
listBillEstimateInputUsageModificationsRequest
-- Returns:
- A Java Future containing the result of the ListBillEstimateInputUsageModifications operation returned by
the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- ValidationException The input provided fails to satisfy the constraints specified by an Amazon Web Services service.
- DataUnavailableException The requested data is currently unavailable.
- InternalServerException An internal error has occurred. Retry your request, but if the problem persists, contact Amazon Web Services support.
- ResourceNotFoundException The specified resource was not found.
- AccessDeniedException You do not have sufficient access to perform this action.
- ThrottlingException The request was denied due to request throttling.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BcmPricingCalculatorException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listBillEstimateInputUsageModifications
default CompletableFuture<ListBillEstimateInputUsageModificationsResponse> listBillEstimateInputUsageModifications(Consumer<ListBillEstimateInputUsageModificationsRequest.Builder> listBillEstimateInputUsageModificationsRequest) Lists the input usage modifications associated with a bill estimate.
This is a convenience which creates an instance of the
ListBillEstimateInputUsageModificationsRequest.Builder
avoiding the need to create one manually viaListBillEstimateInputUsageModificationsRequest.builder()
- Parameters:
listBillEstimateInputUsageModificationsRequest
- AConsumer
that will call methods onListBillEstimateInputUsageModificationsRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the ListBillEstimateInputUsageModifications operation returned by
the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- ValidationException The input provided fails to satisfy the constraints specified by an Amazon Web Services service.
- DataUnavailableException The requested data is currently unavailable.
- InternalServerException An internal error has occurred. Retry your request, but if the problem persists, contact Amazon Web Services support.
- ResourceNotFoundException The specified resource was not found.
- AccessDeniedException You do not have sufficient access to perform this action.
- ThrottlingException The request was denied due to request throttling.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BcmPricingCalculatorException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listBillEstimateInputUsageModificationsPaginator
default ListBillEstimateInputUsageModificationsPublisher listBillEstimateInputUsageModificationsPaginator(ListBillEstimateInputUsageModificationsRequest listBillEstimateInputUsageModificationsRequest) This is a variant of
listBillEstimateInputUsageModifications(software.amazon.awssdk.services.bcmpricingcalculator.model.ListBillEstimateInputUsageModificationsRequest)
operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber)
. Each call to the subscribe method will result in a newSubscription
i.e., a new contract to stream data from the starting request.The following are few ways to use the response class:
1) Using the subscribe helper methodsoftware.amazon.awssdk.services.bcmpricingcalculator.paginators.ListBillEstimateInputUsageModificationsPublisher publisher = client.listBillEstimateInputUsageModificationsPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
software.amazon.awssdk.services.bcmpricingcalculator.paginators.ListBillEstimateInputUsageModificationsPublisher publisher = client.listBillEstimateInputUsageModificationsPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.bcmpricingcalculator.model.ListBillEstimateInputUsageModificationsResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.bcmpricingcalculator.model.ListBillEstimateInputUsageModificationsResponse response) { //... }; });
Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listBillEstimateInputUsageModifications(software.amazon.awssdk.services.bcmpricingcalculator.model.ListBillEstimateInputUsageModificationsRequest)
operation.- Parameters:
listBillEstimateInputUsageModificationsRequest
-- Returns:
- A custom publisher that can be subscribed to request a stream of response pages.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- ValidationException The input provided fails to satisfy the constraints specified by an Amazon Web Services service.
- DataUnavailableException The requested data is currently unavailable.
- InternalServerException An internal error has occurred. Retry your request, but if the problem persists, contact Amazon Web Services support.
- ResourceNotFoundException The specified resource was not found.
- AccessDeniedException You do not have sufficient access to perform this action.
- ThrottlingException The request was denied due to request throttling.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BcmPricingCalculatorException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listBillEstimateInputUsageModificationsPaginator
default ListBillEstimateInputUsageModificationsPublisher listBillEstimateInputUsageModificationsPaginator(Consumer<ListBillEstimateInputUsageModificationsRequest.Builder> listBillEstimateInputUsageModificationsRequest) This is a variant of
listBillEstimateInputUsageModifications(software.amazon.awssdk.services.bcmpricingcalculator.model.ListBillEstimateInputUsageModificationsRequest)
operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber)
. Each call to the subscribe method will result in a newSubscription
i.e., a new contract to stream data from the starting request.The following are few ways to use the response class:
1) Using the subscribe helper methodsoftware.amazon.awssdk.services.bcmpricingcalculator.paginators.ListBillEstimateInputUsageModificationsPublisher publisher = client.listBillEstimateInputUsageModificationsPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
software.amazon.awssdk.services.bcmpricingcalculator.paginators.ListBillEstimateInputUsageModificationsPublisher publisher = client.listBillEstimateInputUsageModificationsPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.bcmpricingcalculator.model.ListBillEstimateInputUsageModificationsResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.bcmpricingcalculator.model.ListBillEstimateInputUsageModificationsResponse response) { //... }; });
Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listBillEstimateInputUsageModifications(software.amazon.awssdk.services.bcmpricingcalculator.model.ListBillEstimateInputUsageModificationsRequest)
operation.
This is a convenience which creates an instance of the
ListBillEstimateInputUsageModificationsRequest.Builder
avoiding the need to create one manually viaListBillEstimateInputUsageModificationsRequest.builder()
- Parameters:
listBillEstimateInputUsageModificationsRequest
- AConsumer
that will call methods onListBillEstimateInputUsageModificationsRequest.Builder
to create a request.- Returns:
- A custom publisher that can be subscribed to request a stream of response pages.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- ValidationException The input provided fails to satisfy the constraints specified by an Amazon Web Services service.
- DataUnavailableException The requested data is currently unavailable.
- InternalServerException An internal error has occurred. Retry your request, but if the problem persists, contact Amazon Web Services support.
- ResourceNotFoundException The specified resource was not found.
- AccessDeniedException You do not have sufficient access to perform this action.
- ThrottlingException The request was denied due to request throttling.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BcmPricingCalculatorException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listBillEstimateLineItems
default CompletableFuture<ListBillEstimateLineItemsResponse> listBillEstimateLineItems(ListBillEstimateLineItemsRequest listBillEstimateLineItemsRequest) Lists the line items associated with a bill estimate.
- Parameters:
listBillEstimateLineItemsRequest
-- Returns:
- A Java Future containing the result of the ListBillEstimateLineItems operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- ValidationException The input provided fails to satisfy the constraints specified by an Amazon Web Services service.
- DataUnavailableException The requested data is currently unavailable.
- InternalServerException An internal error has occurred. Retry your request, but if the problem persists, contact Amazon Web Services support.
- ResourceNotFoundException The specified resource was not found.
- AccessDeniedException You do not have sufficient access to perform this action.
- ThrottlingException The request was denied due to request throttling.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BcmPricingCalculatorException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listBillEstimateLineItems
default CompletableFuture<ListBillEstimateLineItemsResponse> listBillEstimateLineItems(Consumer<ListBillEstimateLineItemsRequest.Builder> listBillEstimateLineItemsRequest) Lists the line items associated with a bill estimate.
This is a convenience which creates an instance of the
ListBillEstimateLineItemsRequest.Builder
avoiding the need to create one manually viaListBillEstimateLineItemsRequest.builder()
- Parameters:
listBillEstimateLineItemsRequest
- AConsumer
that will call methods onListBillEstimateLineItemsRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the ListBillEstimateLineItems operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- ValidationException The input provided fails to satisfy the constraints specified by an Amazon Web Services service.
- DataUnavailableException The requested data is currently unavailable.
- InternalServerException An internal error has occurred. Retry your request, but if the problem persists, contact Amazon Web Services support.
- ResourceNotFoundException The specified resource was not found.
- AccessDeniedException You do not have sufficient access to perform this action.
- ThrottlingException The request was denied due to request throttling.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BcmPricingCalculatorException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listBillEstimateLineItemsPaginator
default ListBillEstimateLineItemsPublisher listBillEstimateLineItemsPaginator(ListBillEstimateLineItemsRequest listBillEstimateLineItemsRequest) This is a variant of
listBillEstimateLineItems(software.amazon.awssdk.services.bcmpricingcalculator.model.ListBillEstimateLineItemsRequest)
operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber)
. Each call to the subscribe method will result in a newSubscription
i.e., a new contract to stream data from the starting request.The following are few ways to use the response class:
1) Using the subscribe helper methodsoftware.amazon.awssdk.services.bcmpricingcalculator.paginators.ListBillEstimateLineItemsPublisher publisher = client.listBillEstimateLineItemsPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
software.amazon.awssdk.services.bcmpricingcalculator.paginators.ListBillEstimateLineItemsPublisher publisher = client.listBillEstimateLineItemsPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.bcmpricingcalculator.model.ListBillEstimateLineItemsResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.bcmpricingcalculator.model.ListBillEstimateLineItemsResponse response) { //... }; });
Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listBillEstimateLineItems(software.amazon.awssdk.services.bcmpricingcalculator.model.ListBillEstimateLineItemsRequest)
operation.- Parameters:
listBillEstimateLineItemsRequest
-- Returns:
- A custom publisher that can be subscribed to request a stream of response pages.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- ValidationException The input provided fails to satisfy the constraints specified by an Amazon Web Services service.
- DataUnavailableException The requested data is currently unavailable.
- InternalServerException An internal error has occurred. Retry your request, but if the problem persists, contact Amazon Web Services support.
- ResourceNotFoundException The specified resource was not found.
- AccessDeniedException You do not have sufficient access to perform this action.
- ThrottlingException The request was denied due to request throttling.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BcmPricingCalculatorException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listBillEstimateLineItemsPaginator
default ListBillEstimateLineItemsPublisher listBillEstimateLineItemsPaginator(Consumer<ListBillEstimateLineItemsRequest.Builder> listBillEstimateLineItemsRequest) This is a variant of
listBillEstimateLineItems(software.amazon.awssdk.services.bcmpricingcalculator.model.ListBillEstimateLineItemsRequest)
operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber)
. Each call to the subscribe method will result in a newSubscription
i.e., a new contract to stream data from the starting request.The following are few ways to use the response class:
1) Using the subscribe helper methodsoftware.amazon.awssdk.services.bcmpricingcalculator.paginators.ListBillEstimateLineItemsPublisher publisher = client.listBillEstimateLineItemsPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
software.amazon.awssdk.services.bcmpricingcalculator.paginators.ListBillEstimateLineItemsPublisher publisher = client.listBillEstimateLineItemsPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.bcmpricingcalculator.model.ListBillEstimateLineItemsResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.bcmpricingcalculator.model.ListBillEstimateLineItemsResponse response) { //... }; });
Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listBillEstimateLineItems(software.amazon.awssdk.services.bcmpricingcalculator.model.ListBillEstimateLineItemsRequest)
operation.
This is a convenience which creates an instance of the
ListBillEstimateLineItemsRequest.Builder
avoiding the need to create one manually viaListBillEstimateLineItemsRequest.builder()
- Parameters:
listBillEstimateLineItemsRequest
- AConsumer
that will call methods onListBillEstimateLineItemsRequest.Builder
to create a request.- Returns:
- A custom publisher that can be subscribed to request a stream of response pages.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- ValidationException The input provided fails to satisfy the constraints specified by an Amazon Web Services service.
- DataUnavailableException The requested data is currently unavailable.
- InternalServerException An internal error has occurred. Retry your request, but if the problem persists, contact Amazon Web Services support.
- ResourceNotFoundException The specified resource was not found.
- AccessDeniedException You do not have sufficient access to perform this action.
- ThrottlingException The request was denied due to request throttling.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BcmPricingCalculatorException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listBillEstimates
default CompletableFuture<ListBillEstimatesResponse> listBillEstimates(ListBillEstimatesRequest listBillEstimatesRequest) Lists all bill estimates for the account.
- Parameters:
listBillEstimatesRequest
-- Returns:
- A Java Future containing the result of the ListBillEstimates operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- ValidationException The input provided fails to satisfy the constraints specified by an Amazon Web Services service.
- DataUnavailableException The requested data is currently unavailable.
- InternalServerException An internal error has occurred. Retry your request, but if the problem persists, contact Amazon Web Services support.
- AccessDeniedException You do not have sufficient access to perform this action.
- ThrottlingException The request was denied due to request throttling.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BcmPricingCalculatorException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listBillEstimates
default CompletableFuture<ListBillEstimatesResponse> listBillEstimates(Consumer<ListBillEstimatesRequest.Builder> listBillEstimatesRequest) Lists all bill estimates for the account.
This is a convenience which creates an instance of the
ListBillEstimatesRequest.Builder
avoiding the need to create one manually viaListBillEstimatesRequest.builder()
- Parameters:
listBillEstimatesRequest
- AConsumer
that will call methods onListBillEstimatesRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the ListBillEstimates operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- ValidationException The input provided fails to satisfy the constraints specified by an Amazon Web Services service.
- DataUnavailableException The requested data is currently unavailable.
- InternalServerException An internal error has occurred. Retry your request, but if the problem persists, contact Amazon Web Services support.
- AccessDeniedException You do not have sufficient access to perform this action.
- ThrottlingException The request was denied due to request throttling.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BcmPricingCalculatorException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listBillEstimatesPaginator
default ListBillEstimatesPublisher listBillEstimatesPaginator(ListBillEstimatesRequest listBillEstimatesRequest) This is a variant of
listBillEstimates(software.amazon.awssdk.services.bcmpricingcalculator.model.ListBillEstimatesRequest)
operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber)
. Each call to the subscribe method will result in a newSubscription
i.e., a new contract to stream data from the starting request.The following are few ways to use the response class:
1) Using the subscribe helper methodsoftware.amazon.awssdk.services.bcmpricingcalculator.paginators.ListBillEstimatesPublisher publisher = client.listBillEstimatesPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
software.amazon.awssdk.services.bcmpricingcalculator.paginators.ListBillEstimatesPublisher publisher = client.listBillEstimatesPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.bcmpricingcalculator.model.ListBillEstimatesResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.bcmpricingcalculator.model.ListBillEstimatesResponse response) { //... }; });
Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listBillEstimates(software.amazon.awssdk.services.bcmpricingcalculator.model.ListBillEstimatesRequest)
operation.- Parameters:
listBillEstimatesRequest
-- Returns:
- A custom publisher that can be subscribed to request a stream of response pages.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- ValidationException The input provided fails to satisfy the constraints specified by an Amazon Web Services service.
- DataUnavailableException The requested data is currently unavailable.
- InternalServerException An internal error has occurred. Retry your request, but if the problem persists, contact Amazon Web Services support.
- AccessDeniedException You do not have sufficient access to perform this action.
- ThrottlingException The request was denied due to request throttling.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BcmPricingCalculatorException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listBillEstimatesPaginator
default ListBillEstimatesPublisher listBillEstimatesPaginator(Consumer<ListBillEstimatesRequest.Builder> listBillEstimatesRequest) This is a variant of
listBillEstimates(software.amazon.awssdk.services.bcmpricingcalculator.model.ListBillEstimatesRequest)
operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber)
. Each call to the subscribe method will result in a newSubscription
i.e., a new contract to stream data from the starting request.The following are few ways to use the response class:
1) Using the subscribe helper methodsoftware.amazon.awssdk.services.bcmpricingcalculator.paginators.ListBillEstimatesPublisher publisher = client.listBillEstimatesPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
software.amazon.awssdk.services.bcmpricingcalculator.paginators.ListBillEstimatesPublisher publisher = client.listBillEstimatesPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.bcmpricingcalculator.model.ListBillEstimatesResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.bcmpricingcalculator.model.ListBillEstimatesResponse response) { //... }; });
Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listBillEstimates(software.amazon.awssdk.services.bcmpricingcalculator.model.ListBillEstimatesRequest)
operation.
This is a convenience which creates an instance of the
ListBillEstimatesRequest.Builder
avoiding the need to create one manually viaListBillEstimatesRequest.builder()
- Parameters:
listBillEstimatesRequest
- AConsumer
that will call methods onListBillEstimatesRequest.Builder
to create a request.- Returns:
- A custom publisher that can be subscribed to request a stream of response pages.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- ValidationException The input provided fails to satisfy the constraints specified by an Amazon Web Services service.
- DataUnavailableException The requested data is currently unavailable.
- InternalServerException An internal error has occurred. Retry your request, but if the problem persists, contact Amazon Web Services support.
- AccessDeniedException You do not have sufficient access to perform this action.
- ThrottlingException The request was denied due to request throttling.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BcmPricingCalculatorException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listBillScenarioCommitmentModifications
default CompletableFuture<ListBillScenarioCommitmentModificationsResponse> listBillScenarioCommitmentModifications(ListBillScenarioCommitmentModificationsRequest listBillScenarioCommitmentModificationsRequest) Lists the commitment modifications associated with a bill scenario.
- Parameters:
listBillScenarioCommitmentModificationsRequest
-- Returns:
- A Java Future containing the result of the ListBillScenarioCommitmentModifications operation returned by
the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- ValidationException The input provided fails to satisfy the constraints specified by an Amazon Web Services service.
- DataUnavailableException The requested data is currently unavailable.
- InternalServerException An internal error has occurred. Retry your request, but if the problem persists, contact Amazon Web Services support.
- ResourceNotFoundException The specified resource was not found.
- AccessDeniedException You do not have sufficient access to perform this action.
- ThrottlingException The request was denied due to request throttling.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BcmPricingCalculatorException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listBillScenarioCommitmentModifications
default CompletableFuture<ListBillScenarioCommitmentModificationsResponse> listBillScenarioCommitmentModifications(Consumer<ListBillScenarioCommitmentModificationsRequest.Builder> listBillScenarioCommitmentModificationsRequest) Lists the commitment modifications associated with a bill scenario.
This is a convenience which creates an instance of the
ListBillScenarioCommitmentModificationsRequest.Builder
avoiding the need to create one manually viaListBillScenarioCommitmentModificationsRequest.builder()
- Parameters:
listBillScenarioCommitmentModificationsRequest
- AConsumer
that will call methods onListBillScenarioCommitmentModificationsRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the ListBillScenarioCommitmentModifications operation returned by
the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- ValidationException The input provided fails to satisfy the constraints specified by an Amazon Web Services service.
- DataUnavailableException The requested data is currently unavailable.
- InternalServerException An internal error has occurred. Retry your request, but if the problem persists, contact Amazon Web Services support.
- ResourceNotFoundException The specified resource was not found.
- AccessDeniedException You do not have sufficient access to perform this action.
- ThrottlingException The request was denied due to request throttling.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BcmPricingCalculatorException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listBillScenarioCommitmentModificationsPaginator
default ListBillScenarioCommitmentModificationsPublisher listBillScenarioCommitmentModificationsPaginator(ListBillScenarioCommitmentModificationsRequest listBillScenarioCommitmentModificationsRequest) This is a variant of
listBillScenarioCommitmentModifications(software.amazon.awssdk.services.bcmpricingcalculator.model.ListBillScenarioCommitmentModificationsRequest)
operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber)
. Each call to the subscribe method will result in a newSubscription
i.e., a new contract to stream data from the starting request.The following are few ways to use the response class:
1) Using the subscribe helper methodsoftware.amazon.awssdk.services.bcmpricingcalculator.paginators.ListBillScenarioCommitmentModificationsPublisher publisher = client.listBillScenarioCommitmentModificationsPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
software.amazon.awssdk.services.bcmpricingcalculator.paginators.ListBillScenarioCommitmentModificationsPublisher publisher = client.listBillScenarioCommitmentModificationsPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.bcmpricingcalculator.model.ListBillScenarioCommitmentModificationsResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.bcmpricingcalculator.model.ListBillScenarioCommitmentModificationsResponse response) { //... }; });
Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listBillScenarioCommitmentModifications(software.amazon.awssdk.services.bcmpricingcalculator.model.ListBillScenarioCommitmentModificationsRequest)
operation.- Parameters:
listBillScenarioCommitmentModificationsRequest
-- Returns:
- A custom publisher that can be subscribed to request a stream of response pages.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- ValidationException The input provided fails to satisfy the constraints specified by an Amazon Web Services service.
- DataUnavailableException The requested data is currently unavailable.
- InternalServerException An internal error has occurred. Retry your request, but if the problem persists, contact Amazon Web Services support.
- ResourceNotFoundException The specified resource was not found.
- AccessDeniedException You do not have sufficient access to perform this action.
- ThrottlingException The request was denied due to request throttling.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BcmPricingCalculatorException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listBillScenarioCommitmentModificationsPaginator
default ListBillScenarioCommitmentModificationsPublisher listBillScenarioCommitmentModificationsPaginator(Consumer<ListBillScenarioCommitmentModificationsRequest.Builder> listBillScenarioCommitmentModificationsRequest) This is a variant of
listBillScenarioCommitmentModifications(software.amazon.awssdk.services.bcmpricingcalculator.model.ListBillScenarioCommitmentModificationsRequest)
operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber)
. Each call to the subscribe method will result in a newSubscription
i.e., a new contract to stream data from the starting request.The following are few ways to use the response class:
1) Using the subscribe helper methodsoftware.amazon.awssdk.services.bcmpricingcalculator.paginators.ListBillScenarioCommitmentModificationsPublisher publisher = client.listBillScenarioCommitmentModificationsPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
software.amazon.awssdk.services.bcmpricingcalculator.paginators.ListBillScenarioCommitmentModificationsPublisher publisher = client.listBillScenarioCommitmentModificationsPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.bcmpricingcalculator.model.ListBillScenarioCommitmentModificationsResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.bcmpricingcalculator.model.ListBillScenarioCommitmentModificationsResponse response) { //... }; });
Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listBillScenarioCommitmentModifications(software.amazon.awssdk.services.bcmpricingcalculator.model.ListBillScenarioCommitmentModificationsRequest)
operation.
This is a convenience which creates an instance of the
ListBillScenarioCommitmentModificationsRequest.Builder
avoiding the need to create one manually viaListBillScenarioCommitmentModificationsRequest.builder()
- Parameters:
listBillScenarioCommitmentModificationsRequest
- AConsumer
that will call methods onListBillScenarioCommitmentModificationsRequest.Builder
to create a request.- Returns:
- A custom publisher that can be subscribed to request a stream of response pages.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- ValidationException The input provided fails to satisfy the constraints specified by an Amazon Web Services service.
- DataUnavailableException The requested data is currently unavailable.
- InternalServerException An internal error has occurred. Retry your request, but if the problem persists, contact Amazon Web Services support.
- ResourceNotFoundException The specified resource was not found.
- AccessDeniedException You do not have sufficient access to perform this action.
- ThrottlingException The request was denied due to request throttling.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BcmPricingCalculatorException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listBillScenarioUsageModifications
default CompletableFuture<ListBillScenarioUsageModificationsResponse> listBillScenarioUsageModifications(ListBillScenarioUsageModificationsRequest listBillScenarioUsageModificationsRequest) Lists the usage modifications associated with a bill scenario.
- Parameters:
listBillScenarioUsageModificationsRequest
-- Returns:
- A Java Future containing the result of the ListBillScenarioUsageModifications operation returned by the
service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- ValidationException The input provided fails to satisfy the constraints specified by an Amazon Web Services service.
- DataUnavailableException The requested data is currently unavailable.
- InternalServerException An internal error has occurred. Retry your request, but if the problem persists, contact Amazon Web Services support.
- ResourceNotFoundException The specified resource was not found.
- AccessDeniedException You do not have sufficient access to perform this action.
- ThrottlingException The request was denied due to request throttling.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BcmPricingCalculatorException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listBillScenarioUsageModifications
default CompletableFuture<ListBillScenarioUsageModificationsResponse> listBillScenarioUsageModifications(Consumer<ListBillScenarioUsageModificationsRequest.Builder> listBillScenarioUsageModificationsRequest) Lists the usage modifications associated with a bill scenario.
This is a convenience which creates an instance of the
ListBillScenarioUsageModificationsRequest.Builder
avoiding the need to create one manually viaListBillScenarioUsageModificationsRequest.builder()
- Parameters:
listBillScenarioUsageModificationsRequest
- AConsumer
that will call methods onListBillScenarioUsageModificationsRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the ListBillScenarioUsageModifications operation returned by the
service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- ValidationException The input provided fails to satisfy the constraints specified by an Amazon Web Services service.
- DataUnavailableException The requested data is currently unavailable.
- InternalServerException An internal error has occurred. Retry your request, but if the problem persists, contact Amazon Web Services support.
- ResourceNotFoundException The specified resource was not found.
- AccessDeniedException You do not have sufficient access to perform this action.
- ThrottlingException The request was denied due to request throttling.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BcmPricingCalculatorException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listBillScenarioUsageModificationsPaginator
default ListBillScenarioUsageModificationsPublisher listBillScenarioUsageModificationsPaginator(ListBillScenarioUsageModificationsRequest listBillScenarioUsageModificationsRequest) This is a variant of
listBillScenarioUsageModifications(software.amazon.awssdk.services.bcmpricingcalculator.model.ListBillScenarioUsageModificationsRequest)
operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber)
. Each call to the subscribe method will result in a newSubscription
i.e., a new contract to stream data from the starting request.The following are few ways to use the response class:
1) Using the subscribe helper methodsoftware.amazon.awssdk.services.bcmpricingcalculator.paginators.ListBillScenarioUsageModificationsPublisher publisher = client.listBillScenarioUsageModificationsPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
software.amazon.awssdk.services.bcmpricingcalculator.paginators.ListBillScenarioUsageModificationsPublisher publisher = client.listBillScenarioUsageModificationsPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.bcmpricingcalculator.model.ListBillScenarioUsageModificationsResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.bcmpricingcalculator.model.ListBillScenarioUsageModificationsResponse response) { //... }; });
Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listBillScenarioUsageModifications(software.amazon.awssdk.services.bcmpricingcalculator.model.ListBillScenarioUsageModificationsRequest)
operation.- Parameters:
listBillScenarioUsageModificationsRequest
-- Returns:
- A custom publisher that can be subscribed to request a stream of response pages.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- ValidationException The input provided fails to satisfy the constraints specified by an Amazon Web Services service.
- DataUnavailableException The requested data is currently unavailable.
- InternalServerException An internal error has occurred. Retry your request, but if the problem persists, contact Amazon Web Services support.
- ResourceNotFoundException The specified resource was not found.
- AccessDeniedException You do not have sufficient access to perform this action.
- ThrottlingException The request was denied due to request throttling.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BcmPricingCalculatorException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listBillScenarioUsageModificationsPaginator
default ListBillScenarioUsageModificationsPublisher listBillScenarioUsageModificationsPaginator(Consumer<ListBillScenarioUsageModificationsRequest.Builder> listBillScenarioUsageModificationsRequest) This is a variant of
listBillScenarioUsageModifications(software.amazon.awssdk.services.bcmpricingcalculator.model.ListBillScenarioUsageModificationsRequest)
operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber)
. Each call to the subscribe method will result in a newSubscription
i.e., a new contract to stream data from the starting request.The following are few ways to use the response class:
1) Using the subscribe helper methodsoftware.amazon.awssdk.services.bcmpricingcalculator.paginators.ListBillScenarioUsageModificationsPublisher publisher = client.listBillScenarioUsageModificationsPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
software.amazon.awssdk.services.bcmpricingcalculator.paginators.ListBillScenarioUsageModificationsPublisher publisher = client.listBillScenarioUsageModificationsPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.bcmpricingcalculator.model.ListBillScenarioUsageModificationsResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.bcmpricingcalculator.model.ListBillScenarioUsageModificationsResponse response) { //... }; });
Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listBillScenarioUsageModifications(software.amazon.awssdk.services.bcmpricingcalculator.model.ListBillScenarioUsageModificationsRequest)
operation.
This is a convenience which creates an instance of the
ListBillScenarioUsageModificationsRequest.Builder
avoiding the need to create one manually viaListBillScenarioUsageModificationsRequest.builder()
- Parameters:
listBillScenarioUsageModificationsRequest
- AConsumer
that will call methods onListBillScenarioUsageModificationsRequest.Builder
to create a request.- Returns:
- A custom publisher that can be subscribed to request a stream of response pages.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- ValidationException The input provided fails to satisfy the constraints specified by an Amazon Web Services service.
- DataUnavailableException The requested data is currently unavailable.
- InternalServerException An internal error has occurred. Retry your request, but if the problem persists, contact Amazon Web Services support.
- ResourceNotFoundException The specified resource was not found.
- AccessDeniedException You do not have sufficient access to perform this action.
- ThrottlingException The request was denied due to request throttling.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BcmPricingCalculatorException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listBillScenarios
default CompletableFuture<ListBillScenariosResponse> listBillScenarios(ListBillScenariosRequest listBillScenariosRequest) Lists all bill scenarios for the account.
- Parameters:
listBillScenariosRequest
-- Returns:
- A Java Future containing the result of the ListBillScenarios operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- ValidationException The input provided fails to satisfy the constraints specified by an Amazon Web Services service.
- DataUnavailableException The requested data is currently unavailable.
- InternalServerException An internal error has occurred. Retry your request, but if the problem persists, contact Amazon Web Services support.
- AccessDeniedException You do not have sufficient access to perform this action.
- ThrottlingException The request was denied due to request throttling.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BcmPricingCalculatorException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listBillScenarios
default CompletableFuture<ListBillScenariosResponse> listBillScenarios(Consumer<ListBillScenariosRequest.Builder> listBillScenariosRequest) Lists all bill scenarios for the account.
This is a convenience which creates an instance of the
ListBillScenariosRequest.Builder
avoiding the need to create one manually viaListBillScenariosRequest.builder()
- Parameters:
listBillScenariosRequest
- AConsumer
that will call methods onListBillScenariosRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the ListBillScenarios operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- ValidationException The input provided fails to satisfy the constraints specified by an Amazon Web Services service.
- DataUnavailableException The requested data is currently unavailable.
- InternalServerException An internal error has occurred. Retry your request, but if the problem persists, contact Amazon Web Services support.
- AccessDeniedException You do not have sufficient access to perform this action.
- ThrottlingException The request was denied due to request throttling.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BcmPricingCalculatorException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listBillScenariosPaginator
default ListBillScenariosPublisher listBillScenariosPaginator(ListBillScenariosRequest listBillScenariosRequest) This is a variant of
listBillScenarios(software.amazon.awssdk.services.bcmpricingcalculator.model.ListBillScenariosRequest)
operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber)
. Each call to the subscribe method will result in a newSubscription
i.e., a new contract to stream data from the starting request.The following are few ways to use the response class:
1) Using the subscribe helper methodsoftware.amazon.awssdk.services.bcmpricingcalculator.paginators.ListBillScenariosPublisher publisher = client.listBillScenariosPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
software.amazon.awssdk.services.bcmpricingcalculator.paginators.ListBillScenariosPublisher publisher = client.listBillScenariosPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.bcmpricingcalculator.model.ListBillScenariosResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.bcmpricingcalculator.model.ListBillScenariosResponse response) { //... }; });
Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listBillScenarios(software.amazon.awssdk.services.bcmpricingcalculator.model.ListBillScenariosRequest)
operation.- Parameters:
listBillScenariosRequest
-- Returns:
- A custom publisher that can be subscribed to request a stream of response pages.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- ValidationException The input provided fails to satisfy the constraints specified by an Amazon Web Services service.
- DataUnavailableException The requested data is currently unavailable.
- InternalServerException An internal error has occurred. Retry your request, but if the problem persists, contact Amazon Web Services support.
- AccessDeniedException You do not have sufficient access to perform this action.
- ThrottlingException The request was denied due to request throttling.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BcmPricingCalculatorException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listBillScenariosPaginator
default ListBillScenariosPublisher listBillScenariosPaginator(Consumer<ListBillScenariosRequest.Builder> listBillScenariosRequest) This is a variant of
listBillScenarios(software.amazon.awssdk.services.bcmpricingcalculator.model.ListBillScenariosRequest)
operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber)
. Each call to the subscribe method will result in a newSubscription
i.e., a new contract to stream data from the starting request.The following are few ways to use the response class:
1) Using the subscribe helper methodsoftware.amazon.awssdk.services.bcmpricingcalculator.paginators.ListBillScenariosPublisher publisher = client.listBillScenariosPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
software.amazon.awssdk.services.bcmpricingcalculator.paginators.ListBillScenariosPublisher publisher = client.listBillScenariosPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.bcmpricingcalculator.model.ListBillScenariosResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.bcmpricingcalculator.model.ListBillScenariosResponse response) { //... }; });
Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listBillScenarios(software.amazon.awssdk.services.bcmpricingcalculator.model.ListBillScenariosRequest)
operation.
This is a convenience which creates an instance of the
ListBillScenariosRequest.Builder
avoiding the need to create one manually viaListBillScenariosRequest.builder()
- Parameters:
listBillScenariosRequest
- AConsumer
that will call methods onListBillScenariosRequest.Builder
to create a request.- Returns:
- A custom publisher that can be subscribed to request a stream of response pages.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- ValidationException The input provided fails to satisfy the constraints specified by an Amazon Web Services service.
- DataUnavailableException The requested data is currently unavailable.
- InternalServerException An internal error has occurred. Retry your request, but if the problem persists, contact Amazon Web Services support.
- AccessDeniedException You do not have sufficient access to perform this action.
- ThrottlingException The request was denied due to request throttling.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BcmPricingCalculatorException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listTagsForResource
default CompletableFuture<ListTagsForResourceResponse> listTagsForResource(ListTagsForResourceRequest listTagsForResourceRequest) Lists all tags associated with a specified resource.
- Parameters:
listTagsForResourceRequest
-- Returns:
- A Java Future containing the result of the ListTagsForResource operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- ValidationException The input provided fails to satisfy the constraints specified by an Amazon Web Services service.
- InternalServerException An internal error has occurred. Retry your request, but if the problem persists, contact Amazon Web Services support.
- ResourceNotFoundException The specified resource was not found.
- AccessDeniedException You do not have sufficient access to perform this action.
- ThrottlingException The request was denied due to request throttling.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BcmPricingCalculatorException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listTagsForResource
default CompletableFuture<ListTagsForResourceResponse> listTagsForResource(Consumer<ListTagsForResourceRequest.Builder> listTagsForResourceRequest) Lists all tags associated with a specified resource.
This is a convenience which creates an instance of the
ListTagsForResourceRequest.Builder
avoiding the need to create one manually viaListTagsForResourceRequest.builder()
- Parameters:
listTagsForResourceRequest
- AConsumer
that will call methods onListTagsForResourceRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the ListTagsForResource operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- ValidationException The input provided fails to satisfy the constraints specified by an Amazon Web Services service.
- InternalServerException An internal error has occurred. Retry your request, but if the problem persists, contact Amazon Web Services support.
- ResourceNotFoundException The specified resource was not found.
- AccessDeniedException You do not have sufficient access to perform this action.
- ThrottlingException The request was denied due to request throttling.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BcmPricingCalculatorException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listWorkloadEstimateUsage
default CompletableFuture<ListWorkloadEstimateUsageResponse> listWorkloadEstimateUsage(ListWorkloadEstimateUsageRequest listWorkloadEstimateUsageRequest) Lists the usage associated with a workload estimate.
- Parameters:
listWorkloadEstimateUsageRequest
-- Returns:
- A Java Future containing the result of the ListWorkloadEstimateUsage operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- ValidationException The input provided fails to satisfy the constraints specified by an Amazon Web Services service.
- DataUnavailableException The requested data is currently unavailable.
- InternalServerException An internal error has occurred. Retry your request, but if the problem persists, contact Amazon Web Services support.
- ResourceNotFoundException The specified resource was not found.
- AccessDeniedException You do not have sufficient access to perform this action.
- ThrottlingException The request was denied due to request throttling.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BcmPricingCalculatorException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listWorkloadEstimateUsage
default CompletableFuture<ListWorkloadEstimateUsageResponse> listWorkloadEstimateUsage(Consumer<ListWorkloadEstimateUsageRequest.Builder> listWorkloadEstimateUsageRequest) Lists the usage associated with a workload estimate.
This is a convenience which creates an instance of the
ListWorkloadEstimateUsageRequest.Builder
avoiding the need to create one manually viaListWorkloadEstimateUsageRequest.builder()
- Parameters:
listWorkloadEstimateUsageRequest
- AConsumer
that will call methods onListWorkloadEstimateUsageRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the ListWorkloadEstimateUsage operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- ValidationException The input provided fails to satisfy the constraints specified by an Amazon Web Services service.
- DataUnavailableException The requested data is currently unavailable.
- InternalServerException An internal error has occurred. Retry your request, but if the problem persists, contact Amazon Web Services support.
- ResourceNotFoundException The specified resource was not found.
- AccessDeniedException You do not have sufficient access to perform this action.
- ThrottlingException The request was denied due to request throttling.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BcmPricingCalculatorException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listWorkloadEstimateUsagePaginator
default ListWorkloadEstimateUsagePublisher listWorkloadEstimateUsagePaginator(ListWorkloadEstimateUsageRequest listWorkloadEstimateUsageRequest) This is a variant of
listWorkloadEstimateUsage(software.amazon.awssdk.services.bcmpricingcalculator.model.ListWorkloadEstimateUsageRequest)
operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber)
. Each call to the subscribe method will result in a newSubscription
i.e., a new contract to stream data from the starting request.The following are few ways to use the response class:
1) Using the subscribe helper methodsoftware.amazon.awssdk.services.bcmpricingcalculator.paginators.ListWorkloadEstimateUsagePublisher publisher = client.listWorkloadEstimateUsagePaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
software.amazon.awssdk.services.bcmpricingcalculator.paginators.ListWorkloadEstimateUsagePublisher publisher = client.listWorkloadEstimateUsagePaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.bcmpricingcalculator.model.ListWorkloadEstimateUsageResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.bcmpricingcalculator.model.ListWorkloadEstimateUsageResponse response) { //... }; });
Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listWorkloadEstimateUsage(software.amazon.awssdk.services.bcmpricingcalculator.model.ListWorkloadEstimateUsageRequest)
operation.- Parameters:
listWorkloadEstimateUsageRequest
-- Returns:
- A custom publisher that can be subscribed to request a stream of response pages.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- ValidationException The input provided fails to satisfy the constraints specified by an Amazon Web Services service.
- DataUnavailableException The requested data is currently unavailable.
- InternalServerException An internal error has occurred. Retry your request, but if the problem persists, contact Amazon Web Services support.
- ResourceNotFoundException The specified resource was not found.
- AccessDeniedException You do not have sufficient access to perform this action.
- ThrottlingException The request was denied due to request throttling.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BcmPricingCalculatorException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listWorkloadEstimateUsagePaginator
default ListWorkloadEstimateUsagePublisher listWorkloadEstimateUsagePaginator(Consumer<ListWorkloadEstimateUsageRequest.Builder> listWorkloadEstimateUsageRequest) This is a variant of
listWorkloadEstimateUsage(software.amazon.awssdk.services.bcmpricingcalculator.model.ListWorkloadEstimateUsageRequest)
operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber)
. Each call to the subscribe method will result in a newSubscription
i.e., a new contract to stream data from the starting request.The following are few ways to use the response class:
1) Using the subscribe helper methodsoftware.amazon.awssdk.services.bcmpricingcalculator.paginators.ListWorkloadEstimateUsagePublisher publisher = client.listWorkloadEstimateUsagePaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
software.amazon.awssdk.services.bcmpricingcalculator.paginators.ListWorkloadEstimateUsagePublisher publisher = client.listWorkloadEstimateUsagePaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.bcmpricingcalculator.model.ListWorkloadEstimateUsageResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.bcmpricingcalculator.model.ListWorkloadEstimateUsageResponse response) { //... }; });
Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listWorkloadEstimateUsage(software.amazon.awssdk.services.bcmpricingcalculator.model.ListWorkloadEstimateUsageRequest)
operation.
This is a convenience which creates an instance of the
ListWorkloadEstimateUsageRequest.Builder
avoiding the need to create one manually viaListWorkloadEstimateUsageRequest.builder()
- Parameters:
listWorkloadEstimateUsageRequest
- AConsumer
that will call methods onListWorkloadEstimateUsageRequest.Builder
to create a request.- Returns:
- A custom publisher that can be subscribed to request a stream of response pages.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- ValidationException The input provided fails to satisfy the constraints specified by an Amazon Web Services service.
- DataUnavailableException The requested data is currently unavailable.
- InternalServerException An internal error has occurred. Retry your request, but if the problem persists, contact Amazon Web Services support.
- ResourceNotFoundException The specified resource was not found.
- AccessDeniedException You do not have sufficient access to perform this action.
- ThrottlingException The request was denied due to request throttling.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BcmPricingCalculatorException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listWorkloadEstimates
default CompletableFuture<ListWorkloadEstimatesResponse> listWorkloadEstimates(ListWorkloadEstimatesRequest listWorkloadEstimatesRequest) Lists all workload estimates for the account.
- Parameters:
listWorkloadEstimatesRequest
-- Returns:
- A Java Future containing the result of the ListWorkloadEstimates operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- ValidationException The input provided fails to satisfy the constraints specified by an Amazon Web Services service.
- DataUnavailableException The requested data is currently unavailable.
- InternalServerException An internal error has occurred. Retry your request, but if the problem persists, contact Amazon Web Services support.
- AccessDeniedException You do not have sufficient access to perform this action.
- ThrottlingException The request was denied due to request throttling.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BcmPricingCalculatorException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listWorkloadEstimates
default CompletableFuture<ListWorkloadEstimatesResponse> listWorkloadEstimates(Consumer<ListWorkloadEstimatesRequest.Builder> listWorkloadEstimatesRequest) Lists all workload estimates for the account.
This is a convenience which creates an instance of the
ListWorkloadEstimatesRequest.Builder
avoiding the need to create one manually viaListWorkloadEstimatesRequest.builder()
- Parameters:
listWorkloadEstimatesRequest
- AConsumer
that will call methods onListWorkloadEstimatesRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the ListWorkloadEstimates operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- ValidationException The input provided fails to satisfy the constraints specified by an Amazon Web Services service.
- DataUnavailableException The requested data is currently unavailable.
- InternalServerException An internal error has occurred. Retry your request, but if the problem persists, contact Amazon Web Services support.
- AccessDeniedException You do not have sufficient access to perform this action.
- ThrottlingException The request was denied due to request throttling.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BcmPricingCalculatorException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listWorkloadEstimatesPaginator
default ListWorkloadEstimatesPublisher listWorkloadEstimatesPaginator(ListWorkloadEstimatesRequest listWorkloadEstimatesRequest) This is a variant of
listWorkloadEstimates(software.amazon.awssdk.services.bcmpricingcalculator.model.ListWorkloadEstimatesRequest)
operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber)
. Each call to the subscribe method will result in a newSubscription
i.e., a new contract to stream data from the starting request.The following are few ways to use the response class:
1) Using the subscribe helper methodsoftware.amazon.awssdk.services.bcmpricingcalculator.paginators.ListWorkloadEstimatesPublisher publisher = client.listWorkloadEstimatesPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
software.amazon.awssdk.services.bcmpricingcalculator.paginators.ListWorkloadEstimatesPublisher publisher = client.listWorkloadEstimatesPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.bcmpricingcalculator.model.ListWorkloadEstimatesResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.bcmpricingcalculator.model.ListWorkloadEstimatesResponse response) { //... }; });
Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listWorkloadEstimates(software.amazon.awssdk.services.bcmpricingcalculator.model.ListWorkloadEstimatesRequest)
operation.- Parameters:
listWorkloadEstimatesRequest
-- Returns:
- A custom publisher that can be subscribed to request a stream of response pages.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- ValidationException The input provided fails to satisfy the constraints specified by an Amazon Web Services service.
- DataUnavailableException The requested data is currently unavailable.
- InternalServerException An internal error has occurred. Retry your request, but if the problem persists, contact Amazon Web Services support.
- AccessDeniedException You do not have sufficient access to perform this action.
- ThrottlingException The request was denied due to request throttling.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BcmPricingCalculatorException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listWorkloadEstimatesPaginator
default ListWorkloadEstimatesPublisher listWorkloadEstimatesPaginator(Consumer<ListWorkloadEstimatesRequest.Builder> listWorkloadEstimatesRequest) This is a variant of
listWorkloadEstimates(software.amazon.awssdk.services.bcmpricingcalculator.model.ListWorkloadEstimatesRequest)
operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber)
. Each call to the subscribe method will result in a newSubscription
i.e., a new contract to stream data from the starting request.The following are few ways to use the response class:
1) Using the subscribe helper methodsoftware.amazon.awssdk.services.bcmpricingcalculator.paginators.ListWorkloadEstimatesPublisher publisher = client.listWorkloadEstimatesPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
software.amazon.awssdk.services.bcmpricingcalculator.paginators.ListWorkloadEstimatesPublisher publisher = client.listWorkloadEstimatesPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.bcmpricingcalculator.model.ListWorkloadEstimatesResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.bcmpricingcalculator.model.ListWorkloadEstimatesResponse response) { //... }; });
Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listWorkloadEstimates(software.amazon.awssdk.services.bcmpricingcalculator.model.ListWorkloadEstimatesRequest)
operation.
This is a convenience which creates an instance of the
ListWorkloadEstimatesRequest.Builder
avoiding the need to create one manually viaListWorkloadEstimatesRequest.builder()
- Parameters:
listWorkloadEstimatesRequest
- AConsumer
that will call methods onListWorkloadEstimatesRequest.Builder
to create a request.- Returns:
- A custom publisher that can be subscribed to request a stream of response pages.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- ValidationException The input provided fails to satisfy the constraints specified by an Amazon Web Services service.
- DataUnavailableException The requested data is currently unavailable.
- InternalServerException An internal error has occurred. Retry your request, but if the problem persists, contact Amazon Web Services support.
- AccessDeniedException You do not have sufficient access to perform this action.
- ThrottlingException The request was denied due to request throttling.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BcmPricingCalculatorException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
tagResource
Adds one or more tags to a specified resource.
- Parameters:
tagResourceRequest
-- Returns:
- A Java Future containing the result of the TagResource operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- ValidationException The input provided fails to satisfy the constraints specified by an Amazon Web Services service.
- ServiceQuotaExceededException The request would cause you to exceed your service quota.
- InternalServerException An internal error has occurred. Retry your request, but if the problem persists, contact Amazon Web Services support.
- ResourceNotFoundException The specified resource was not found.
- AccessDeniedException You do not have sufficient access to perform this action.
- ThrottlingException The request was denied due to request throttling.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BcmPricingCalculatorException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
tagResource
default CompletableFuture<TagResourceResponse> tagResource(Consumer<TagResourceRequest.Builder> tagResourceRequest) Adds one or more tags to a specified resource.
This is a convenience which creates an instance of the
TagResourceRequest.Builder
avoiding the need to create one manually viaTagResourceRequest.builder()
- Parameters:
tagResourceRequest
- AConsumer
that will call methods onTagResourceRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the TagResource operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- ValidationException The input provided fails to satisfy the constraints specified by an Amazon Web Services service.
- ServiceQuotaExceededException The request would cause you to exceed your service quota.
- InternalServerException An internal error has occurred. Retry your request, but if the problem persists, contact Amazon Web Services support.
- ResourceNotFoundException The specified resource was not found.
- AccessDeniedException You do not have sufficient access to perform this action.
- ThrottlingException The request was denied due to request throttling.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BcmPricingCalculatorException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
untagResource
default CompletableFuture<UntagResourceResponse> untagResource(UntagResourceRequest untagResourceRequest) Removes one or more tags from a specified resource.
- Parameters:
untagResourceRequest
-- Returns:
- A Java Future containing the result of the UntagResource operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- ValidationException The input provided fails to satisfy the constraints specified by an Amazon Web Services service.
- InternalServerException An internal error has occurred. Retry your request, but if the problem persists, contact Amazon Web Services support.
- ResourceNotFoundException The specified resource was not found.
- AccessDeniedException You do not have sufficient access to perform this action.
- ThrottlingException The request was denied due to request throttling.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BcmPricingCalculatorException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
untagResource
default CompletableFuture<UntagResourceResponse> untagResource(Consumer<UntagResourceRequest.Builder> untagResourceRequest) Removes one or more tags from a specified resource.
This is a convenience which creates an instance of the
UntagResourceRequest.Builder
avoiding the need to create one manually viaUntagResourceRequest.builder()
- Parameters:
untagResourceRequest
- AConsumer
that will call methods onUntagResourceRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the UntagResource operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- ValidationException The input provided fails to satisfy the constraints specified by an Amazon Web Services service.
- InternalServerException An internal error has occurred. Retry your request, but if the problem persists, contact Amazon Web Services support.
- ResourceNotFoundException The specified resource was not found.
- AccessDeniedException You do not have sufficient access to perform this action.
- ThrottlingException The request was denied due to request throttling.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BcmPricingCalculatorException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
updateBillEstimate
default CompletableFuture<UpdateBillEstimateResponse> updateBillEstimate(UpdateBillEstimateRequest updateBillEstimateRequest) Updates an existing bill estimate.
- Parameters:
updateBillEstimateRequest
-- Returns:
- A Java Future containing the result of the UpdateBillEstimate operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- ConflictException The request could not be processed because of conflict in the current state of the resource.
- ValidationException The input provided fails to satisfy the constraints specified by an Amazon Web Services service.
- DataUnavailableException The requested data is currently unavailable.
- InternalServerException An internal error has occurred. Retry your request, but if the problem persists, contact Amazon Web Services support.
- ResourceNotFoundException The specified resource was not found.
- AccessDeniedException You do not have sufficient access to perform this action.
- ThrottlingException The request was denied due to request throttling.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BcmPricingCalculatorException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
updateBillEstimate
default CompletableFuture<UpdateBillEstimateResponse> updateBillEstimate(Consumer<UpdateBillEstimateRequest.Builder> updateBillEstimateRequest) Updates an existing bill estimate.
This is a convenience which creates an instance of the
UpdateBillEstimateRequest.Builder
avoiding the need to create one manually viaUpdateBillEstimateRequest.builder()
- Parameters:
updateBillEstimateRequest
- AConsumer
that will call methods onUpdateBillEstimateRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the UpdateBillEstimate operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- ConflictException The request could not be processed because of conflict in the current state of the resource.
- ValidationException The input provided fails to satisfy the constraints specified by an Amazon Web Services service.
- DataUnavailableException The requested data is currently unavailable.
- InternalServerException An internal error has occurred. Retry your request, but if the problem persists, contact Amazon Web Services support.
- ResourceNotFoundException The specified resource was not found.
- AccessDeniedException You do not have sufficient access to perform this action.
- ThrottlingException The request was denied due to request throttling.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BcmPricingCalculatorException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
updateBillScenario
default CompletableFuture<UpdateBillScenarioResponse> updateBillScenario(UpdateBillScenarioRequest updateBillScenarioRequest) Updates an existing bill scenario.
- Parameters:
updateBillScenarioRequest
-- Returns:
- A Java Future containing the result of the UpdateBillScenario operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- ConflictException The request could not be processed because of conflict in the current state of the resource.
- ValidationException The input provided fails to satisfy the constraints specified by an Amazon Web Services service.
- DataUnavailableException The requested data is currently unavailable.
- InternalServerException An internal error has occurred. Retry your request, but if the problem persists, contact Amazon Web Services support.
- ResourceNotFoundException The specified resource was not found.
- AccessDeniedException You do not have sufficient access to perform this action.
- ThrottlingException The request was denied due to request throttling.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BcmPricingCalculatorException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
updateBillScenario
default CompletableFuture<UpdateBillScenarioResponse> updateBillScenario(Consumer<UpdateBillScenarioRequest.Builder> updateBillScenarioRequest) Updates an existing bill scenario.
This is a convenience which creates an instance of the
UpdateBillScenarioRequest.Builder
avoiding the need to create one manually viaUpdateBillScenarioRequest.builder()
- Parameters:
updateBillScenarioRequest
- AConsumer
that will call methods onUpdateBillScenarioRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the UpdateBillScenario operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- ConflictException The request could not be processed because of conflict in the current state of the resource.
- ValidationException The input provided fails to satisfy the constraints specified by an Amazon Web Services service.
- DataUnavailableException The requested data is currently unavailable.
- InternalServerException An internal error has occurred. Retry your request, but if the problem persists, contact Amazon Web Services support.
- ResourceNotFoundException The specified resource was not found.
- AccessDeniedException You do not have sufficient access to perform this action.
- ThrottlingException The request was denied due to request throttling.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BcmPricingCalculatorException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
updatePreferences
default CompletableFuture<UpdatePreferencesResponse> updatePreferences(UpdatePreferencesRequest updatePreferencesRequest) Updates the preferences for Pricing Calculator.
- Parameters:
updatePreferencesRequest
-- Returns:
- A Java Future containing the result of the UpdatePreferences operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- ValidationException The input provided fails to satisfy the constraints specified by an Amazon Web Services service.
- DataUnavailableException The requested data is currently unavailable.
- ServiceQuotaExceededException The request would cause you to exceed your service quota.
- InternalServerException An internal error has occurred. Retry your request, but if the problem persists, contact Amazon Web Services support.
- AccessDeniedException You do not have sufficient access to perform this action.
- ThrottlingException The request was denied due to request throttling.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BcmPricingCalculatorException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
updatePreferences
default CompletableFuture<UpdatePreferencesResponse> updatePreferences(Consumer<UpdatePreferencesRequest.Builder> updatePreferencesRequest) Updates the preferences for Pricing Calculator.
This is a convenience which creates an instance of the
UpdatePreferencesRequest.Builder
avoiding the need to create one manually viaUpdatePreferencesRequest.builder()
- Parameters:
updatePreferencesRequest
- AConsumer
that will call methods onUpdatePreferencesRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the UpdatePreferences operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- ValidationException The input provided fails to satisfy the constraints specified by an Amazon Web Services service.
- DataUnavailableException The requested data is currently unavailable.
- ServiceQuotaExceededException The request would cause you to exceed your service quota.
- InternalServerException An internal error has occurred. Retry your request, but if the problem persists, contact Amazon Web Services support.
- AccessDeniedException You do not have sufficient access to perform this action.
- ThrottlingException The request was denied due to request throttling.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BcmPricingCalculatorException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
updateWorkloadEstimate
default CompletableFuture<UpdateWorkloadEstimateResponse> updateWorkloadEstimate(UpdateWorkloadEstimateRequest updateWorkloadEstimateRequest) Updates an existing workload estimate.
- Parameters:
updateWorkloadEstimateRequest
-- Returns:
- A Java Future containing the result of the UpdateWorkloadEstimate operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- ConflictException The request could not be processed because of conflict in the current state of the resource.
- ValidationException The input provided fails to satisfy the constraints specified by an Amazon Web Services service.
- DataUnavailableException The requested data is currently unavailable.
- InternalServerException An internal error has occurred. Retry your request, but if the problem persists, contact Amazon Web Services support.
- ResourceNotFoundException The specified resource was not found.
- AccessDeniedException You do not have sufficient access to perform this action.
- ThrottlingException The request was denied due to request throttling.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BcmPricingCalculatorException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
updateWorkloadEstimate
default CompletableFuture<UpdateWorkloadEstimateResponse> updateWorkloadEstimate(Consumer<UpdateWorkloadEstimateRequest.Builder> updateWorkloadEstimateRequest) Updates an existing workload estimate.
This is a convenience which creates an instance of the
UpdateWorkloadEstimateRequest.Builder
avoiding the need to create one manually viaUpdateWorkloadEstimateRequest.builder()
- Parameters:
updateWorkloadEstimateRequest
- AConsumer
that will call methods onUpdateWorkloadEstimateRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the UpdateWorkloadEstimate operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- ConflictException The request could not be processed because of conflict in the current state of the resource.
- ValidationException The input provided fails to satisfy the constraints specified by an Amazon Web Services service.
- DataUnavailableException The requested data is currently unavailable.
- InternalServerException An internal error has occurred. Retry your request, but if the problem persists, contact Amazon Web Services support.
- ResourceNotFoundException The specified resource was not found.
- AccessDeniedException You do not have sufficient access to perform this action.
- ThrottlingException The request was denied due to request throttling.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BcmPricingCalculatorException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
serviceClientConfiguration
Description copied from interface:SdkClient
The SDK service client configuration exposes client settings to the user, e.g., ClientOverrideConfiguration- Specified by:
serviceClientConfiguration
in interfaceAwsClient
- Specified by:
serviceClientConfiguration
in interfaceSdkClient
- Returns:
- SdkServiceClientConfiguration
-
create
Create aBcmPricingCalculatorAsyncClient
with the region loaded from theDefaultAwsRegionProviderChain
and credentials loaded from theDefaultCredentialsProvider
. -
builder
Create a builder that can be used to configure and create aBcmPricingCalculatorAsyncClient
.
-