Interface BudgetsClient
- All Superinterfaces:
AutoCloseable,AwsClient,SdkAutoCloseable,SdkClient
builder() method.
Use the Amazon Web Services Budgets API to plan your service usage, service costs, and instance reservations. This API reference provides descriptions, syntax, and usage examples for each of the actions and data types for the Amazon Web Services Budgets feature.
Budgets provide you with a way to see the following information:
-
How close your plan is to your budgeted amount or to the free tier limits
-
Your usage-to-date, including how much you've used of your Reserved Instances (RIs)
-
Your current estimated charges from Amazon Web Services, and how much your predicted usage will accrue in charges by the end of the month
-
How much of your budget has been used
Amazon Web Services updates your budget status several times a day. Budgets track your unblended costs, subscriptions, refunds, and RIs. You can create the following types of budgets:
-
Cost budgets - Plan how much you want to spend on a service.
-
Usage budgets - Plan how much you want to use one or more services.
-
RI utilization budgets - Define a utilization threshold, and receive alerts when your RI usage falls below that threshold. This lets you see if your RIs are unused or under-utilized.
-
RI coverage budgets - Define a coverage threshold, and receive alerts when the number of your instance hours that are covered by RIs fall below that threshold. This lets you see how much of your instance usage is covered by a reservation.
Service Endpoint
The Amazon Web Services Budgets API provides the following endpoint:
-
https://budgets.amazonaws.com
For information about costs that are associated with the Amazon Web Services Budgets API, see Amazon Web Services Cost Management Pricing.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringValue for looking up the service's metadata from theServiceMetadataProvider.static final String -
Method Summary
Modifier and TypeMethodDescriptionstatic BudgetsClientBuilderbuilder()Create a builder that can be used to configure and create aBudgetsClient.static BudgetsClientcreate()Create aBudgetsClientwith the region loaded from theDefaultAwsRegionProviderChainand credentials loaded from theDefaultCredentialsProvider.default CreateBudgetResponsecreateBudget(Consumer<CreateBudgetRequest.Builder> createBudgetRequest) Creates a budget and, if included, notifications and subscribers.default CreateBudgetResponsecreateBudget(CreateBudgetRequest createBudgetRequest) Creates a budget and, if included, notifications and subscribers.default CreateBudgetActionResponsecreateBudgetAction(Consumer<CreateBudgetActionRequest.Builder> createBudgetActionRequest) Creates a budget action.default CreateBudgetActionResponsecreateBudgetAction(CreateBudgetActionRequest createBudgetActionRequest) Creates a budget action.default CreateNotificationResponsecreateNotification(Consumer<CreateNotificationRequest.Builder> createNotificationRequest) Creates a notification.default CreateNotificationResponsecreateNotification(CreateNotificationRequest createNotificationRequest) Creates a notification.default CreateSubscriberResponsecreateSubscriber(Consumer<CreateSubscriberRequest.Builder> createSubscriberRequest) Creates a subscriber.default CreateSubscriberResponsecreateSubscriber(CreateSubscriberRequest createSubscriberRequest) Creates a subscriber.default DeleteBudgetResponsedeleteBudget(Consumer<DeleteBudgetRequest.Builder> deleteBudgetRequest) Deletes a budget.default DeleteBudgetResponsedeleteBudget(DeleteBudgetRequest deleteBudgetRequest) Deletes a budget.default DeleteBudgetActionResponsedeleteBudgetAction(Consumer<DeleteBudgetActionRequest.Builder> deleteBudgetActionRequest) Deletes a budget action.default DeleteBudgetActionResponsedeleteBudgetAction(DeleteBudgetActionRequest deleteBudgetActionRequest) Deletes a budget action.default DeleteNotificationResponsedeleteNotification(Consumer<DeleteNotificationRequest.Builder> deleteNotificationRequest) Deletes a notification.default DeleteNotificationResponsedeleteNotification(DeleteNotificationRequest deleteNotificationRequest) Deletes a notification.default DeleteSubscriberResponsedeleteSubscriber(Consumer<DeleteSubscriberRequest.Builder> deleteSubscriberRequest) Deletes a subscriber.default DeleteSubscriberResponsedeleteSubscriber(DeleteSubscriberRequest deleteSubscriberRequest) Deletes a subscriber.default DescribeBudgetResponsedescribeBudget(Consumer<DescribeBudgetRequest.Builder> describeBudgetRequest) Describes a budget.default DescribeBudgetResponsedescribeBudget(DescribeBudgetRequest describeBudgetRequest) Describes a budget.default DescribeBudgetActionResponsedescribeBudgetAction(Consumer<DescribeBudgetActionRequest.Builder> describeBudgetActionRequest) Describes a budget action detail.default DescribeBudgetActionResponsedescribeBudgetAction(DescribeBudgetActionRequest describeBudgetActionRequest) Describes a budget action detail.describeBudgetActionHistories(Consumer<DescribeBudgetActionHistoriesRequest.Builder> describeBudgetActionHistoriesRequest) Describes a budget action history detail.describeBudgetActionHistories(DescribeBudgetActionHistoriesRequest describeBudgetActionHistoriesRequest) Describes a budget action history detail.describeBudgetActionHistoriesPaginator(Consumer<DescribeBudgetActionHistoriesRequest.Builder> describeBudgetActionHistoriesRequest) This is a variant ofdescribeBudgetActionHistories(software.amazon.awssdk.services.budgets.model.DescribeBudgetActionHistoriesRequest)operation.describeBudgetActionHistoriesPaginator(DescribeBudgetActionHistoriesRequest describeBudgetActionHistoriesRequest) This is a variant ofdescribeBudgetActionHistories(software.amazon.awssdk.services.budgets.model.DescribeBudgetActionHistoriesRequest)operation.describeBudgetActionsForAccount(Consumer<DescribeBudgetActionsForAccountRequest.Builder> describeBudgetActionsForAccountRequest) Describes all of the budget actions for an account.describeBudgetActionsForAccount(DescribeBudgetActionsForAccountRequest describeBudgetActionsForAccountRequest) Describes all of the budget actions for an account.describeBudgetActionsForAccountPaginator(Consumer<DescribeBudgetActionsForAccountRequest.Builder> describeBudgetActionsForAccountRequest) This is a variant ofdescribeBudgetActionsForAccount(software.amazon.awssdk.services.budgets.model.DescribeBudgetActionsForAccountRequest)operation.describeBudgetActionsForAccountPaginator(DescribeBudgetActionsForAccountRequest describeBudgetActionsForAccountRequest) This is a variant ofdescribeBudgetActionsForAccount(software.amazon.awssdk.services.budgets.model.DescribeBudgetActionsForAccountRequest)operation.describeBudgetActionsForBudget(Consumer<DescribeBudgetActionsForBudgetRequest.Builder> describeBudgetActionsForBudgetRequest) Describes all of the budget actions for a budget.describeBudgetActionsForBudget(DescribeBudgetActionsForBudgetRequest describeBudgetActionsForBudgetRequest) Describes all of the budget actions for a budget.describeBudgetActionsForBudgetPaginator(Consumer<DescribeBudgetActionsForBudgetRequest.Builder> describeBudgetActionsForBudgetRequest) This is a variant ofdescribeBudgetActionsForBudget(software.amazon.awssdk.services.budgets.model.DescribeBudgetActionsForBudgetRequest)operation.describeBudgetActionsForBudgetPaginator(DescribeBudgetActionsForBudgetRequest describeBudgetActionsForBudgetRequest) This is a variant ofdescribeBudgetActionsForBudget(software.amazon.awssdk.services.budgets.model.DescribeBudgetActionsForBudgetRequest)operation.describeBudgetNotificationsForAccount(Consumer<DescribeBudgetNotificationsForAccountRequest.Builder> describeBudgetNotificationsForAccountRequest) Lists the budget names and notifications that are associated with an account.describeBudgetNotificationsForAccount(DescribeBudgetNotificationsForAccountRequest describeBudgetNotificationsForAccountRequest) Lists the budget names and notifications that are associated with an account.describeBudgetNotificationsForAccountPaginator(Consumer<DescribeBudgetNotificationsForAccountRequest.Builder> describeBudgetNotificationsForAccountRequest) describeBudgetNotificationsForAccountPaginator(DescribeBudgetNotificationsForAccountRequest describeBudgetNotificationsForAccountRequest) describeBudgetPerformanceHistory(Consumer<DescribeBudgetPerformanceHistoryRequest.Builder> describeBudgetPerformanceHistoryRequest) Describes the history forDAILY,MONTHLY, andQUARTERLYbudgets.describeBudgetPerformanceHistory(DescribeBudgetPerformanceHistoryRequest describeBudgetPerformanceHistoryRequest) Describes the history forDAILY,MONTHLY, andQUARTERLYbudgets.describeBudgetPerformanceHistoryPaginator(Consumer<DescribeBudgetPerformanceHistoryRequest.Builder> describeBudgetPerformanceHistoryRequest) This is a variant ofdescribeBudgetPerformanceHistory(software.amazon.awssdk.services.budgets.model.DescribeBudgetPerformanceHistoryRequest)operation.describeBudgetPerformanceHistoryPaginator(DescribeBudgetPerformanceHistoryRequest describeBudgetPerformanceHistoryRequest) This is a variant ofdescribeBudgetPerformanceHistory(software.amazon.awssdk.services.budgets.model.DescribeBudgetPerformanceHistoryRequest)operation.default DescribeBudgetsResponsedescribeBudgets(Consumer<DescribeBudgetsRequest.Builder> describeBudgetsRequest) Lists the budgets that are associated with an account.default DescribeBudgetsResponsedescribeBudgets(DescribeBudgetsRequest describeBudgetsRequest) Lists the budgets that are associated with an account.default DescribeBudgetsIterabledescribeBudgetsPaginator(Consumer<DescribeBudgetsRequest.Builder> describeBudgetsRequest) This is a variant ofdescribeBudgets(software.amazon.awssdk.services.budgets.model.DescribeBudgetsRequest)operation.default DescribeBudgetsIterabledescribeBudgetsPaginator(DescribeBudgetsRequest describeBudgetsRequest) This is a variant ofdescribeBudgets(software.amazon.awssdk.services.budgets.model.DescribeBudgetsRequest)operation.describeNotificationsForBudget(Consumer<DescribeNotificationsForBudgetRequest.Builder> describeNotificationsForBudgetRequest) Lists the notifications that are associated with a budget.describeNotificationsForBudget(DescribeNotificationsForBudgetRequest describeNotificationsForBudgetRequest) Lists the notifications that are associated with a budget.describeNotificationsForBudgetPaginator(Consumer<DescribeNotificationsForBudgetRequest.Builder> describeNotificationsForBudgetRequest) This is a variant ofdescribeNotificationsForBudget(software.amazon.awssdk.services.budgets.model.DescribeNotificationsForBudgetRequest)operation.describeNotificationsForBudgetPaginator(DescribeNotificationsForBudgetRequest describeNotificationsForBudgetRequest) This is a variant ofdescribeNotificationsForBudget(software.amazon.awssdk.services.budgets.model.DescribeNotificationsForBudgetRequest)operation.describeSubscribersForNotification(Consumer<DescribeSubscribersForNotificationRequest.Builder> describeSubscribersForNotificationRequest) Lists the subscribers that are associated with a notification.describeSubscribersForNotification(DescribeSubscribersForNotificationRequest describeSubscribersForNotificationRequest) Lists the subscribers that are associated with a notification.describeSubscribersForNotificationPaginator(Consumer<DescribeSubscribersForNotificationRequest.Builder> describeSubscribersForNotificationRequest) This is a variant ofdescribeSubscribersForNotification(software.amazon.awssdk.services.budgets.model.DescribeSubscribersForNotificationRequest)operation.describeSubscribersForNotificationPaginator(DescribeSubscribersForNotificationRequest describeSubscribersForNotificationRequest) This is a variant ofdescribeSubscribersForNotification(software.amazon.awssdk.services.budgets.model.DescribeSubscribersForNotificationRequest)operation.default ExecuteBudgetActionResponseexecuteBudgetAction(Consumer<ExecuteBudgetActionRequest.Builder> executeBudgetActionRequest) Executes a budget action.default ExecuteBudgetActionResponseexecuteBudgetAction(ExecuteBudgetActionRequest executeBudgetActionRequest) Executes a budget action.default ListTagsForResourceResponselistTagsForResource(Consumer<ListTagsForResourceRequest.Builder> listTagsForResourceRequest) Lists tags associated with a budget or budget action resource.default ListTagsForResourceResponselistTagsForResource(ListTagsForResourceRequest listTagsForResourceRequest) Lists tags associated with a budget or budget action resource.The SDK service client configuration exposes client settings to the user, e.g., ClientOverrideConfigurationstatic ServiceMetadatadefault TagResourceResponsetagResource(Consumer<TagResourceRequest.Builder> tagResourceRequest) Creates tags for a budget or budget action resource.default TagResourceResponsetagResource(TagResourceRequest tagResourceRequest) Creates tags for a budget or budget action resource.default UntagResourceResponseuntagResource(Consumer<UntagResourceRequest.Builder> untagResourceRequest) Deletes tags associated with a budget or budget action resource.default UntagResourceResponseuntagResource(UntagResourceRequest untagResourceRequest) Deletes tags associated with a budget or budget action resource.default UpdateBudgetResponseupdateBudget(Consumer<UpdateBudgetRequest.Builder> updateBudgetRequest) Updates a budget.default UpdateBudgetResponseupdateBudget(UpdateBudgetRequest updateBudgetRequest) Updates a budget.default UpdateBudgetActionResponseupdateBudgetAction(Consumer<UpdateBudgetActionRequest.Builder> updateBudgetActionRequest) Updates a budget action.default UpdateBudgetActionResponseupdateBudgetAction(UpdateBudgetActionRequest updateBudgetActionRequest) Updates a budget action.default UpdateNotificationResponseupdateNotification(Consumer<UpdateNotificationRequest.Builder> updateNotificationRequest) Updates a notification.default UpdateNotificationResponseupdateNotification(UpdateNotificationRequest updateNotificationRequest) Updates a notification.default UpdateSubscriberResponseupdateSubscriber(Consumer<UpdateSubscriberRequest.Builder> updateSubscriberRequest) Updates a subscriber.default UpdateSubscriberResponseupdateSubscriber(UpdateSubscriberRequest updateSubscriberRequest) Updates a subscriber.Methods inherited from interface software.amazon.awssdk.utils.SdkAutoCloseable
closeMethods 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
-
createBudget
default CreateBudgetResponse createBudget(CreateBudgetRequest createBudgetRequest) throws InvalidParameterException, InternalErrorException, CreationLimitExceededException, DuplicateRecordException, AccessDeniedException, ThrottlingException, ServiceQuotaExceededException, AwsServiceException, SdkClientException, BudgetsException Creates a budget and, if included, notifications and subscribers.
Only one of
BudgetLimitorPlannedBudgetLimitscan be present in the syntax at one time. Use the syntax that matches your case. The Request Syntax section shows theBudgetLimitsyntax. ForPlannedBudgetLimits, see the Examples section.- Parameters:
createBudgetRequest- Request of CreateBudget- Returns:
- Result of the CreateBudget operation returned by the service.
-
createBudget
default CreateBudgetResponse createBudget(Consumer<CreateBudgetRequest.Builder> createBudgetRequest) throws InvalidParameterException, InternalErrorException, CreationLimitExceededException, DuplicateRecordException, AccessDeniedException, ThrottlingException, ServiceQuotaExceededException, AwsServiceException, SdkClientException, BudgetsException Creates a budget and, if included, notifications and subscribers.
Only one of
BudgetLimitorPlannedBudgetLimitscan be present in the syntax at one time. Use the syntax that matches your case. The Request Syntax section shows theBudgetLimitsyntax. ForPlannedBudgetLimits, see the Examples section.
This is a convenience which creates an instance of the
CreateBudgetRequest.Builderavoiding the need to create one manually viaCreateBudgetRequest.builder()- Parameters:
createBudgetRequest- AConsumerthat will call methods onCreateBudgetRequest.Builderto create a request. Request of CreateBudget- Returns:
- Result of the CreateBudget operation returned by the service.
-
createBudgetAction
default CreateBudgetActionResponse createBudgetAction(CreateBudgetActionRequest createBudgetActionRequest) throws InvalidParameterException, InternalErrorException, CreationLimitExceededException, DuplicateRecordException, NotFoundException, AccessDeniedException, ThrottlingException, ServiceQuotaExceededException, AwsServiceException, SdkClientException, BudgetsException Creates a budget action.
- Parameters:
createBudgetActionRequest-- Returns:
- Result of the CreateBudgetAction operation returned by the service.
-
createBudgetAction
default CreateBudgetActionResponse createBudgetAction(Consumer<CreateBudgetActionRequest.Builder> createBudgetActionRequest) throws InvalidParameterException, InternalErrorException, CreationLimitExceededException, DuplicateRecordException, NotFoundException, AccessDeniedException, ThrottlingException, ServiceQuotaExceededException, AwsServiceException, SdkClientException, BudgetsException Creates a budget action.
This is a convenience which creates an instance of the
CreateBudgetActionRequest.Builderavoiding the need to create one manually viaCreateBudgetActionRequest.builder()- Parameters:
createBudgetActionRequest- AConsumerthat will call methods onCreateBudgetActionRequest.Builderto create a request.- Returns:
- Result of the CreateBudgetAction operation returned by the service.
-
createNotification
default CreateNotificationResponse createNotification(CreateNotificationRequest createNotificationRequest) throws InternalErrorException, InvalidParameterException, NotFoundException, CreationLimitExceededException, DuplicateRecordException, AccessDeniedException, ThrottlingException, AwsServiceException, SdkClientException, BudgetsException Creates a notification. You must create the budget before you create the associated notification.
- Parameters:
createNotificationRequest- Request of CreateNotification- Returns:
- Result of the CreateNotification operation returned by the service.
-
createNotification
default CreateNotificationResponse createNotification(Consumer<CreateNotificationRequest.Builder> createNotificationRequest) throws InternalErrorException, InvalidParameterException, NotFoundException, CreationLimitExceededException, DuplicateRecordException, AccessDeniedException, ThrottlingException, AwsServiceException, SdkClientException, BudgetsException Creates a notification. You must create the budget before you create the associated notification.
This is a convenience which creates an instance of the
CreateNotificationRequest.Builderavoiding the need to create one manually viaCreateNotificationRequest.builder()- Parameters:
createNotificationRequest- AConsumerthat will call methods onCreateNotificationRequest.Builderto create a request. Request of CreateNotification- Returns:
- Result of the CreateNotification operation returned by the service.
-
createSubscriber
default CreateSubscriberResponse createSubscriber(CreateSubscriberRequest createSubscriberRequest) throws InternalErrorException, InvalidParameterException, CreationLimitExceededException, DuplicateRecordException, NotFoundException, AccessDeniedException, ThrottlingException, AwsServiceException, SdkClientException, BudgetsException Creates a subscriber. You must create the associated budget and notification before you create the subscriber.
- Parameters:
createSubscriberRequest- Request of CreateSubscriber- Returns:
- Result of the CreateSubscriber operation returned by the service.
-
createSubscriber
default CreateSubscriberResponse createSubscriber(Consumer<CreateSubscriberRequest.Builder> createSubscriberRequest) throws InternalErrorException, InvalidParameterException, CreationLimitExceededException, DuplicateRecordException, NotFoundException, AccessDeniedException, ThrottlingException, AwsServiceException, SdkClientException, BudgetsException Creates a subscriber. You must create the associated budget and notification before you create the subscriber.
This is a convenience which creates an instance of the
CreateSubscriberRequest.Builderavoiding the need to create one manually viaCreateSubscriberRequest.builder()- Parameters:
createSubscriberRequest- AConsumerthat will call methods onCreateSubscriberRequest.Builderto create a request. Request of CreateSubscriber- Returns:
- Result of the CreateSubscriber operation returned by the service.
-
deleteBudget
default DeleteBudgetResponse deleteBudget(DeleteBudgetRequest deleteBudgetRequest) throws InternalErrorException, InvalidParameterException, NotFoundException, AccessDeniedException, ThrottlingException, AwsServiceException, SdkClientException, BudgetsException Deletes a budget. You can delete your budget at any time.
Deleting a budget also deletes the notifications and subscribers that are associated with that budget.
- Parameters:
deleteBudgetRequest- Request of DeleteBudget- Returns:
- Result of the DeleteBudget operation returned by the service.
-
deleteBudget
default DeleteBudgetResponse deleteBudget(Consumer<DeleteBudgetRequest.Builder> deleteBudgetRequest) throws InternalErrorException, InvalidParameterException, NotFoundException, AccessDeniedException, ThrottlingException, AwsServiceException, SdkClientException, BudgetsException Deletes a budget. You can delete your budget at any time.
Deleting a budget also deletes the notifications and subscribers that are associated with that budget.
This is a convenience which creates an instance of the
DeleteBudgetRequest.Builderavoiding the need to create one manually viaDeleteBudgetRequest.builder()- Parameters:
deleteBudgetRequest- AConsumerthat will call methods onDeleteBudgetRequest.Builderto create a request. Request of DeleteBudget- Returns:
- Result of the DeleteBudget operation returned by the service.
-
deleteBudgetAction
default DeleteBudgetActionResponse deleteBudgetAction(DeleteBudgetActionRequest deleteBudgetActionRequest) throws InternalErrorException, InvalidParameterException, NotFoundException, AccessDeniedException, ResourceLockedException, ThrottlingException, AwsServiceException, SdkClientException, BudgetsException Deletes a budget action.
- Parameters:
deleteBudgetActionRequest-- Returns:
- Result of the DeleteBudgetAction operation returned by the service.
-
deleteBudgetAction
default DeleteBudgetActionResponse deleteBudgetAction(Consumer<DeleteBudgetActionRequest.Builder> deleteBudgetActionRequest) throws InternalErrorException, InvalidParameterException, NotFoundException, AccessDeniedException, ResourceLockedException, ThrottlingException, AwsServiceException, SdkClientException, BudgetsException Deletes a budget action.
This is a convenience which creates an instance of the
DeleteBudgetActionRequest.Builderavoiding the need to create one manually viaDeleteBudgetActionRequest.builder()- Parameters:
deleteBudgetActionRequest- AConsumerthat will call methods onDeleteBudgetActionRequest.Builderto create a request.- Returns:
- Result of the DeleteBudgetAction operation returned by the service.
-
deleteNotification
default DeleteNotificationResponse deleteNotification(DeleteNotificationRequest deleteNotificationRequest) throws InvalidParameterException, InternalErrorException, NotFoundException, AccessDeniedException, ThrottlingException, AwsServiceException, SdkClientException, BudgetsException Deletes a notification.
Deleting a notification also deletes the subscribers that are associated with the notification.
- Parameters:
deleteNotificationRequest- Request of DeleteNotification- Returns:
- Result of the DeleteNotification operation returned by the service.
-
deleteNotification
default DeleteNotificationResponse deleteNotification(Consumer<DeleteNotificationRequest.Builder> deleteNotificationRequest) throws InvalidParameterException, InternalErrorException, NotFoundException, AccessDeniedException, ThrottlingException, AwsServiceException, SdkClientException, BudgetsException Deletes a notification.
Deleting a notification also deletes the subscribers that are associated with the notification.
This is a convenience which creates an instance of the
DeleteNotificationRequest.Builderavoiding the need to create one manually viaDeleteNotificationRequest.builder()- Parameters:
deleteNotificationRequest- AConsumerthat will call methods onDeleteNotificationRequest.Builderto create a request. Request of DeleteNotification- Returns:
- Result of the DeleteNotification operation returned by the service.
-
deleteSubscriber
default DeleteSubscriberResponse deleteSubscriber(DeleteSubscriberRequest deleteSubscriberRequest) throws InternalErrorException, InvalidParameterException, NotFoundException, AccessDeniedException, ThrottlingException, AwsServiceException, SdkClientException, BudgetsException Deletes a subscriber.
Deleting the last subscriber to a notification also deletes the notification.
- Parameters:
deleteSubscriberRequest- Request of DeleteSubscriber- Returns:
- Result of the DeleteSubscriber operation returned by the service.
-
deleteSubscriber
default DeleteSubscriberResponse deleteSubscriber(Consumer<DeleteSubscriberRequest.Builder> deleteSubscriberRequest) throws InternalErrorException, InvalidParameterException, NotFoundException, AccessDeniedException, ThrottlingException, AwsServiceException, SdkClientException, BudgetsException Deletes a subscriber.
Deleting the last subscriber to a notification also deletes the notification.
This is a convenience which creates an instance of the
DeleteSubscriberRequest.Builderavoiding the need to create one manually viaDeleteSubscriberRequest.builder()- Parameters:
deleteSubscriberRequest- AConsumerthat will call methods onDeleteSubscriberRequest.Builderto create a request. Request of DeleteSubscriber- Returns:
- Result of the DeleteSubscriber operation returned by the service.
-
describeBudget
default DescribeBudgetResponse describeBudget(DescribeBudgetRequest describeBudgetRequest) throws InternalErrorException, InvalidParameterException, NotFoundException, AccessDeniedException, ThrottlingException, AwsServiceException, SdkClientException, BudgetsException Describes a budget.
The Request Syntax section shows the
BudgetLimitsyntax. ForPlannedBudgetLimits, see the Examples section.- Parameters:
describeBudgetRequest- Request of DescribeBudget- Returns:
- Result of the DescribeBudget operation returned by the service.
-
describeBudget
default DescribeBudgetResponse describeBudget(Consumer<DescribeBudgetRequest.Builder> describeBudgetRequest) throws InternalErrorException, InvalidParameterException, NotFoundException, AccessDeniedException, ThrottlingException, AwsServiceException, SdkClientException, BudgetsException Describes a budget.
The Request Syntax section shows the
BudgetLimitsyntax. ForPlannedBudgetLimits, see the Examples section.
This is a convenience which creates an instance of the
DescribeBudgetRequest.Builderavoiding the need to create one manually viaDescribeBudgetRequest.builder()- Parameters:
describeBudgetRequest- AConsumerthat will call methods onDescribeBudgetRequest.Builderto create a request. Request of DescribeBudget- Returns:
- Result of the DescribeBudget operation returned by the service.
-
describeBudgetAction
default DescribeBudgetActionResponse describeBudgetAction(DescribeBudgetActionRequest describeBudgetActionRequest) throws InternalErrorException, InvalidParameterException, NotFoundException, AccessDeniedException, ThrottlingException, AwsServiceException, SdkClientException, BudgetsException Describes a budget action detail.
- Parameters:
describeBudgetActionRequest-- Returns:
- Result of the DescribeBudgetAction operation returned by the service.
-
describeBudgetAction
default DescribeBudgetActionResponse describeBudgetAction(Consumer<DescribeBudgetActionRequest.Builder> describeBudgetActionRequest) throws InternalErrorException, InvalidParameterException, NotFoundException, AccessDeniedException, ThrottlingException, AwsServiceException, SdkClientException, BudgetsException Describes a budget action detail.
This is a convenience which creates an instance of the
DescribeBudgetActionRequest.Builderavoiding the need to create one manually viaDescribeBudgetActionRequest.builder()- Parameters:
describeBudgetActionRequest- AConsumerthat will call methods onDescribeBudgetActionRequest.Builderto create a request.- Returns:
- Result of the DescribeBudgetAction operation returned by the service.
-
describeBudgetActionHistories
default DescribeBudgetActionHistoriesResponse describeBudgetActionHistories(DescribeBudgetActionHistoriesRequest describeBudgetActionHistoriesRequest) throws InternalErrorException, InvalidParameterException, NotFoundException, AccessDeniedException, InvalidNextTokenException, ThrottlingException, AwsServiceException, SdkClientException, BudgetsException Describes a budget action history detail.
- Parameters:
describeBudgetActionHistoriesRequest-- Returns:
- Result of the DescribeBudgetActionHistories operation returned by the service.
-
describeBudgetActionHistories
default DescribeBudgetActionHistoriesResponse describeBudgetActionHistories(Consumer<DescribeBudgetActionHistoriesRequest.Builder> describeBudgetActionHistoriesRequest) throws InternalErrorException, InvalidParameterException, NotFoundException, AccessDeniedException, InvalidNextTokenException, ThrottlingException, AwsServiceException, SdkClientException, BudgetsException Describes a budget action history detail.
This is a convenience which creates an instance of the
DescribeBudgetActionHistoriesRequest.Builderavoiding the need to create one manually viaDescribeBudgetActionHistoriesRequest.builder()- Parameters:
describeBudgetActionHistoriesRequest- AConsumerthat will call methods onDescribeBudgetActionHistoriesRequest.Builderto create a request.- Returns:
- Result of the DescribeBudgetActionHistories operation returned by the service.
-
describeBudgetActionHistoriesPaginator
default DescribeBudgetActionHistoriesIterable describeBudgetActionHistoriesPaginator(DescribeBudgetActionHistoriesRequest describeBudgetActionHistoriesRequest) throws InternalErrorException, InvalidParameterException, NotFoundException, AccessDeniedException, InvalidNextTokenException, ThrottlingException, AwsServiceException, SdkClientException, BudgetsException This is a variant of
describeBudgetActionHistories(software.amazon.awssdk.services.budgets.model.DescribeBudgetActionHistoriesRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.budgets.paginators.DescribeBudgetActionHistoriesIterable responses = client.describeBudgetActionHistoriesPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.budgets.paginators.DescribeBudgetActionHistoriesIterable responses = client .describeBudgetActionHistoriesPaginator(request); for (software.amazon.awssdk.services.budgets.model.DescribeBudgetActionHistoriesResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.budgets.paginators.DescribeBudgetActionHistoriesIterable responses = client.describeBudgetActionHistoriesPaginator(request); responses.iterator().forEachRemaining(....);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
describeBudgetActionHistories(software.amazon.awssdk.services.budgets.model.DescribeBudgetActionHistoriesRequest)operation.- Parameters:
describeBudgetActionHistoriesRequest-- Returns:
- A custom iterable that can be used to iterate through all the response pages.
-
describeBudgetActionHistoriesPaginator
default DescribeBudgetActionHistoriesIterable describeBudgetActionHistoriesPaginator(Consumer<DescribeBudgetActionHistoriesRequest.Builder> describeBudgetActionHistoriesRequest) throws InternalErrorException, InvalidParameterException, NotFoundException, AccessDeniedException, InvalidNextTokenException, ThrottlingException, AwsServiceException, SdkClientException, BudgetsException This is a variant of
describeBudgetActionHistories(software.amazon.awssdk.services.budgets.model.DescribeBudgetActionHistoriesRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.budgets.paginators.DescribeBudgetActionHistoriesIterable responses = client.describeBudgetActionHistoriesPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.budgets.paginators.DescribeBudgetActionHistoriesIterable responses = client .describeBudgetActionHistoriesPaginator(request); for (software.amazon.awssdk.services.budgets.model.DescribeBudgetActionHistoriesResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.budgets.paginators.DescribeBudgetActionHistoriesIterable responses = client.describeBudgetActionHistoriesPaginator(request); responses.iterator().forEachRemaining(....);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
describeBudgetActionHistories(software.amazon.awssdk.services.budgets.model.DescribeBudgetActionHistoriesRequest)operation.
This is a convenience which creates an instance of the
DescribeBudgetActionHistoriesRequest.Builderavoiding the need to create one manually viaDescribeBudgetActionHistoriesRequest.builder()- Parameters:
describeBudgetActionHistoriesRequest- AConsumerthat will call methods onDescribeBudgetActionHistoriesRequest.Builderto create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
-
describeBudgetActionsForAccount
default DescribeBudgetActionsForAccountResponse describeBudgetActionsForAccount(DescribeBudgetActionsForAccountRequest describeBudgetActionsForAccountRequest) throws InternalErrorException, InvalidParameterException, AccessDeniedException, InvalidNextTokenException, ThrottlingException, AwsServiceException, SdkClientException, BudgetsException Describes all of the budget actions for an account.
- Parameters:
describeBudgetActionsForAccountRequest-- Returns:
- Result of the DescribeBudgetActionsForAccount operation returned by the service.
-
describeBudgetActionsForAccount
default DescribeBudgetActionsForAccountResponse describeBudgetActionsForAccount(Consumer<DescribeBudgetActionsForAccountRequest.Builder> describeBudgetActionsForAccountRequest) throws InternalErrorException, InvalidParameterException, AccessDeniedException, InvalidNextTokenException, ThrottlingException, AwsServiceException, SdkClientException, BudgetsException Describes all of the budget actions for an account.
This is a convenience which creates an instance of the
DescribeBudgetActionsForAccountRequest.Builderavoiding the need to create one manually viaDescribeBudgetActionsForAccountRequest.builder()- Parameters:
describeBudgetActionsForAccountRequest- AConsumerthat will call methods onDescribeBudgetActionsForAccountRequest.Builderto create a request.- Returns:
- Result of the DescribeBudgetActionsForAccount operation returned by the service.
-
describeBudgetActionsForAccountPaginator
default DescribeBudgetActionsForAccountIterable describeBudgetActionsForAccountPaginator(DescribeBudgetActionsForAccountRequest describeBudgetActionsForAccountRequest) throws InternalErrorException, InvalidParameterException, AccessDeniedException, InvalidNextTokenException, ThrottlingException, AwsServiceException, SdkClientException, BudgetsException This is a variant of
describeBudgetActionsForAccount(software.amazon.awssdk.services.budgets.model.DescribeBudgetActionsForAccountRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.budgets.paginators.DescribeBudgetActionsForAccountIterable responses = client.describeBudgetActionsForAccountPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.budgets.paginators.DescribeBudgetActionsForAccountIterable responses = client .describeBudgetActionsForAccountPaginator(request); for (software.amazon.awssdk.services.budgets.model.DescribeBudgetActionsForAccountResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.budgets.paginators.DescribeBudgetActionsForAccountIterable responses = client.describeBudgetActionsForAccountPaginator(request); responses.iterator().forEachRemaining(....);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
describeBudgetActionsForAccount(software.amazon.awssdk.services.budgets.model.DescribeBudgetActionsForAccountRequest)operation.- Parameters:
describeBudgetActionsForAccountRequest-- Returns:
- A custom iterable that can be used to iterate through all the response pages.
-
describeBudgetActionsForAccountPaginator
default DescribeBudgetActionsForAccountIterable describeBudgetActionsForAccountPaginator(Consumer<DescribeBudgetActionsForAccountRequest.Builder> describeBudgetActionsForAccountRequest) throws InternalErrorException, InvalidParameterException, AccessDeniedException, InvalidNextTokenException, ThrottlingException, AwsServiceException, SdkClientException, BudgetsException This is a variant of
describeBudgetActionsForAccount(software.amazon.awssdk.services.budgets.model.DescribeBudgetActionsForAccountRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.budgets.paginators.DescribeBudgetActionsForAccountIterable responses = client.describeBudgetActionsForAccountPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.budgets.paginators.DescribeBudgetActionsForAccountIterable responses = client .describeBudgetActionsForAccountPaginator(request); for (software.amazon.awssdk.services.budgets.model.DescribeBudgetActionsForAccountResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.budgets.paginators.DescribeBudgetActionsForAccountIterable responses = client.describeBudgetActionsForAccountPaginator(request); responses.iterator().forEachRemaining(....);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
describeBudgetActionsForAccount(software.amazon.awssdk.services.budgets.model.DescribeBudgetActionsForAccountRequest)operation.
This is a convenience which creates an instance of the
DescribeBudgetActionsForAccountRequest.Builderavoiding the need to create one manually viaDescribeBudgetActionsForAccountRequest.builder()- Parameters:
describeBudgetActionsForAccountRequest- AConsumerthat will call methods onDescribeBudgetActionsForAccountRequest.Builderto create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
-
describeBudgetActionsForBudget
default DescribeBudgetActionsForBudgetResponse describeBudgetActionsForBudget(DescribeBudgetActionsForBudgetRequest describeBudgetActionsForBudgetRequest) throws InternalErrorException, InvalidParameterException, NotFoundException, AccessDeniedException, InvalidNextTokenException, ThrottlingException, AwsServiceException, SdkClientException, BudgetsException Describes all of the budget actions for a budget.
- Parameters:
describeBudgetActionsForBudgetRequest-- Returns:
- Result of the DescribeBudgetActionsForBudget operation returned by the service.
-
describeBudgetActionsForBudget
default DescribeBudgetActionsForBudgetResponse describeBudgetActionsForBudget(Consumer<DescribeBudgetActionsForBudgetRequest.Builder> describeBudgetActionsForBudgetRequest) throws InternalErrorException, InvalidParameterException, NotFoundException, AccessDeniedException, InvalidNextTokenException, ThrottlingException, AwsServiceException, SdkClientException, BudgetsException Describes all of the budget actions for a budget.
This is a convenience which creates an instance of the
DescribeBudgetActionsForBudgetRequest.Builderavoiding the need to create one manually viaDescribeBudgetActionsForBudgetRequest.builder()- Parameters:
describeBudgetActionsForBudgetRequest- AConsumerthat will call methods onDescribeBudgetActionsForBudgetRequest.Builderto create a request.- Returns:
- Result of the DescribeBudgetActionsForBudget operation returned by the service.
-
describeBudgetActionsForBudgetPaginator
default DescribeBudgetActionsForBudgetIterable describeBudgetActionsForBudgetPaginator(DescribeBudgetActionsForBudgetRequest describeBudgetActionsForBudgetRequest) throws InternalErrorException, InvalidParameterException, NotFoundException, AccessDeniedException, InvalidNextTokenException, ThrottlingException, AwsServiceException, SdkClientException, BudgetsException This is a variant of
describeBudgetActionsForBudget(software.amazon.awssdk.services.budgets.model.DescribeBudgetActionsForBudgetRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.budgets.paginators.DescribeBudgetActionsForBudgetIterable responses = client.describeBudgetActionsForBudgetPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.budgets.paginators.DescribeBudgetActionsForBudgetIterable responses = client .describeBudgetActionsForBudgetPaginator(request); for (software.amazon.awssdk.services.budgets.model.DescribeBudgetActionsForBudgetResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.budgets.paginators.DescribeBudgetActionsForBudgetIterable responses = client.describeBudgetActionsForBudgetPaginator(request); responses.iterator().forEachRemaining(....);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
describeBudgetActionsForBudget(software.amazon.awssdk.services.budgets.model.DescribeBudgetActionsForBudgetRequest)operation.- Parameters:
describeBudgetActionsForBudgetRequest-- Returns:
- A custom iterable that can be used to iterate through all the response pages.
-
describeBudgetActionsForBudgetPaginator
default DescribeBudgetActionsForBudgetIterable describeBudgetActionsForBudgetPaginator(Consumer<DescribeBudgetActionsForBudgetRequest.Builder> describeBudgetActionsForBudgetRequest) throws InternalErrorException, InvalidParameterException, NotFoundException, AccessDeniedException, InvalidNextTokenException, ThrottlingException, AwsServiceException, SdkClientException, BudgetsException This is a variant of
describeBudgetActionsForBudget(software.amazon.awssdk.services.budgets.model.DescribeBudgetActionsForBudgetRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.budgets.paginators.DescribeBudgetActionsForBudgetIterable responses = client.describeBudgetActionsForBudgetPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.budgets.paginators.DescribeBudgetActionsForBudgetIterable responses = client .describeBudgetActionsForBudgetPaginator(request); for (software.amazon.awssdk.services.budgets.model.DescribeBudgetActionsForBudgetResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.budgets.paginators.DescribeBudgetActionsForBudgetIterable responses = client.describeBudgetActionsForBudgetPaginator(request); responses.iterator().forEachRemaining(....);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
describeBudgetActionsForBudget(software.amazon.awssdk.services.budgets.model.DescribeBudgetActionsForBudgetRequest)operation.
This is a convenience which creates an instance of the
DescribeBudgetActionsForBudgetRequest.Builderavoiding the need to create one manually viaDescribeBudgetActionsForBudgetRequest.builder()- Parameters:
describeBudgetActionsForBudgetRequest- AConsumerthat will call methods onDescribeBudgetActionsForBudgetRequest.Builderto create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
-
describeBudgetNotificationsForAccount
default DescribeBudgetNotificationsForAccountResponse describeBudgetNotificationsForAccount(DescribeBudgetNotificationsForAccountRequest describeBudgetNotificationsForAccountRequest) throws InternalErrorException, InvalidParameterException, NotFoundException, InvalidNextTokenException, ExpiredNextTokenException, AccessDeniedException, ThrottlingException, AwsServiceException, SdkClientException, BudgetsException Lists the budget names and notifications that are associated with an account.
- Parameters:
describeBudgetNotificationsForAccountRequest-- Returns:
- Result of the DescribeBudgetNotificationsForAccount operation returned by the service.
-
describeBudgetNotificationsForAccount
default DescribeBudgetNotificationsForAccountResponse describeBudgetNotificationsForAccount(Consumer<DescribeBudgetNotificationsForAccountRequest.Builder> describeBudgetNotificationsForAccountRequest) throws InternalErrorException, InvalidParameterException, NotFoundException, InvalidNextTokenException, ExpiredNextTokenException, AccessDeniedException, ThrottlingException, AwsServiceException, SdkClientException, BudgetsException Lists the budget names and notifications that are associated with an account.
This is a convenience which creates an instance of the
DescribeBudgetNotificationsForAccountRequest.Builderavoiding the need to create one manually viaDescribeBudgetNotificationsForAccountRequest.builder()- Parameters:
describeBudgetNotificationsForAccountRequest- AConsumerthat will call methods onDescribeBudgetNotificationsForAccountRequest.Builderto create a request.- Returns:
- Result of the DescribeBudgetNotificationsForAccount operation returned by the service.
-
describeBudgetNotificationsForAccountPaginator
default DescribeBudgetNotificationsForAccountIterable describeBudgetNotificationsForAccountPaginator(DescribeBudgetNotificationsForAccountRequest describeBudgetNotificationsForAccountRequest) throws InternalErrorException, InvalidParameterException, NotFoundException, InvalidNextTokenException, ExpiredNextTokenException, AccessDeniedException, ThrottlingException, AwsServiceException, SdkClientException, BudgetsException This is a variant of
describeBudgetNotificationsForAccount(software.amazon.awssdk.services.budgets.model.DescribeBudgetNotificationsForAccountRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.budgets.paginators.DescribeBudgetNotificationsForAccountIterable responses = client.describeBudgetNotificationsForAccountPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.budgets.paginators.DescribeBudgetNotificationsForAccountIterable responses = client .describeBudgetNotificationsForAccountPaginator(request); for (software.amazon.awssdk.services.budgets.model.DescribeBudgetNotificationsForAccountResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.budgets.paginators.DescribeBudgetNotificationsForAccountIterable responses = client.describeBudgetNotificationsForAccountPaginator(request); responses.iterator().forEachRemaining(....);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
describeBudgetNotificationsForAccount(software.amazon.awssdk.services.budgets.model.DescribeBudgetNotificationsForAccountRequest)operation.- Parameters:
describeBudgetNotificationsForAccountRequest-- Returns:
- A custom iterable that can be used to iterate through all the response pages.
-
describeBudgetNotificationsForAccountPaginator
default DescribeBudgetNotificationsForAccountIterable describeBudgetNotificationsForAccountPaginator(Consumer<DescribeBudgetNotificationsForAccountRequest.Builder> describeBudgetNotificationsForAccountRequest) throws InternalErrorException, InvalidParameterException, NotFoundException, InvalidNextTokenException, ExpiredNextTokenException, AccessDeniedException, ThrottlingException, AwsServiceException, SdkClientException, BudgetsException This is a variant of
describeBudgetNotificationsForAccount(software.amazon.awssdk.services.budgets.model.DescribeBudgetNotificationsForAccountRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.budgets.paginators.DescribeBudgetNotificationsForAccountIterable responses = client.describeBudgetNotificationsForAccountPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.budgets.paginators.DescribeBudgetNotificationsForAccountIterable responses = client .describeBudgetNotificationsForAccountPaginator(request); for (software.amazon.awssdk.services.budgets.model.DescribeBudgetNotificationsForAccountResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.budgets.paginators.DescribeBudgetNotificationsForAccountIterable responses = client.describeBudgetNotificationsForAccountPaginator(request); responses.iterator().forEachRemaining(....);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
describeBudgetNotificationsForAccount(software.amazon.awssdk.services.budgets.model.DescribeBudgetNotificationsForAccountRequest)operation.
This is a convenience which creates an instance of the
DescribeBudgetNotificationsForAccountRequest.Builderavoiding the need to create one manually viaDescribeBudgetNotificationsForAccountRequest.builder()- Parameters:
describeBudgetNotificationsForAccountRequest- AConsumerthat will call methods onDescribeBudgetNotificationsForAccountRequest.Builderto create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
-
describeBudgetPerformanceHistory
default DescribeBudgetPerformanceHistoryResponse describeBudgetPerformanceHistory(DescribeBudgetPerformanceHistoryRequest describeBudgetPerformanceHistoryRequest) throws InternalErrorException, InvalidParameterException, NotFoundException, InvalidNextTokenException, ExpiredNextTokenException, AccessDeniedException, ThrottlingException, AwsServiceException, SdkClientException, BudgetsException Describes the history for
DAILY,MONTHLY, andQUARTERLYbudgets. Budget history isn't available forANNUALbudgets.- Parameters:
describeBudgetPerformanceHistoryRequest-- Returns:
- Result of the DescribeBudgetPerformanceHistory operation returned by the service.
-
describeBudgetPerformanceHistory
default DescribeBudgetPerformanceHistoryResponse describeBudgetPerformanceHistory(Consumer<DescribeBudgetPerformanceHistoryRequest.Builder> describeBudgetPerformanceHistoryRequest) throws InternalErrorException, InvalidParameterException, NotFoundException, InvalidNextTokenException, ExpiredNextTokenException, AccessDeniedException, ThrottlingException, AwsServiceException, SdkClientException, BudgetsException Describes the history for
DAILY,MONTHLY, andQUARTERLYbudgets. Budget history isn't available forANNUALbudgets.
This is a convenience which creates an instance of the
DescribeBudgetPerformanceHistoryRequest.Builderavoiding the need to create one manually viaDescribeBudgetPerformanceHistoryRequest.builder()- Parameters:
describeBudgetPerformanceHistoryRequest- AConsumerthat will call methods onDescribeBudgetPerformanceHistoryRequest.Builderto create a request.- Returns:
- Result of the DescribeBudgetPerformanceHistory operation returned by the service.
-
describeBudgetPerformanceHistoryPaginator
default DescribeBudgetPerformanceHistoryIterable describeBudgetPerformanceHistoryPaginator(DescribeBudgetPerformanceHistoryRequest describeBudgetPerformanceHistoryRequest) throws InternalErrorException, InvalidParameterException, NotFoundException, InvalidNextTokenException, ExpiredNextTokenException, AccessDeniedException, ThrottlingException, AwsServiceException, SdkClientException, BudgetsException This is a variant of
describeBudgetPerformanceHistory(software.amazon.awssdk.services.budgets.model.DescribeBudgetPerformanceHistoryRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.budgets.paginators.DescribeBudgetPerformanceHistoryIterable responses = client.describeBudgetPerformanceHistoryPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.budgets.paginators.DescribeBudgetPerformanceHistoryIterable responses = client .describeBudgetPerformanceHistoryPaginator(request); for (software.amazon.awssdk.services.budgets.model.DescribeBudgetPerformanceHistoryResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.budgets.paginators.DescribeBudgetPerformanceHistoryIterable responses = client.describeBudgetPerformanceHistoryPaginator(request); responses.iterator().forEachRemaining(....);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
describeBudgetPerformanceHistory(software.amazon.awssdk.services.budgets.model.DescribeBudgetPerformanceHistoryRequest)operation.- Parameters:
describeBudgetPerformanceHistoryRequest-- Returns:
- A custom iterable that can be used to iterate through all the response pages.
-
describeBudgetPerformanceHistoryPaginator
default DescribeBudgetPerformanceHistoryIterable describeBudgetPerformanceHistoryPaginator(Consumer<DescribeBudgetPerformanceHistoryRequest.Builder> describeBudgetPerformanceHistoryRequest) throws InternalErrorException, InvalidParameterException, NotFoundException, InvalidNextTokenException, ExpiredNextTokenException, AccessDeniedException, ThrottlingException, AwsServiceException, SdkClientException, BudgetsException This is a variant of
describeBudgetPerformanceHistory(software.amazon.awssdk.services.budgets.model.DescribeBudgetPerformanceHistoryRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.budgets.paginators.DescribeBudgetPerformanceHistoryIterable responses = client.describeBudgetPerformanceHistoryPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.budgets.paginators.DescribeBudgetPerformanceHistoryIterable responses = client .describeBudgetPerformanceHistoryPaginator(request); for (software.amazon.awssdk.services.budgets.model.DescribeBudgetPerformanceHistoryResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.budgets.paginators.DescribeBudgetPerformanceHistoryIterable responses = client.describeBudgetPerformanceHistoryPaginator(request); responses.iterator().forEachRemaining(....);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
describeBudgetPerformanceHistory(software.amazon.awssdk.services.budgets.model.DescribeBudgetPerformanceHistoryRequest)operation.
This is a convenience which creates an instance of the
DescribeBudgetPerformanceHistoryRequest.Builderavoiding the need to create one manually viaDescribeBudgetPerformanceHistoryRequest.builder()- Parameters:
describeBudgetPerformanceHistoryRequest- AConsumerthat will call methods onDescribeBudgetPerformanceHistoryRequest.Builderto create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
-
describeBudgets
default DescribeBudgetsResponse describeBudgets(DescribeBudgetsRequest describeBudgetsRequest) throws InternalErrorException, InvalidParameterException, NotFoundException, InvalidNextTokenException, ExpiredNextTokenException, AccessDeniedException, ThrottlingException, AwsServiceException, SdkClientException, BudgetsException Lists the budgets that are associated with an account.
The Request Syntax section shows the
BudgetLimitsyntax. ForPlannedBudgetLimits, see the Examples section.- Parameters:
describeBudgetsRequest- Request of DescribeBudgets- Returns:
- Result of the DescribeBudgets operation returned by the service.
-
describeBudgets
default DescribeBudgetsResponse describeBudgets(Consumer<DescribeBudgetsRequest.Builder> describeBudgetsRequest) throws InternalErrorException, InvalidParameterException, NotFoundException, InvalidNextTokenException, ExpiredNextTokenException, AccessDeniedException, ThrottlingException, AwsServiceException, SdkClientException, BudgetsException Lists the budgets that are associated with an account.
The Request Syntax section shows the
BudgetLimitsyntax. ForPlannedBudgetLimits, see the Examples section.
This is a convenience which creates an instance of the
DescribeBudgetsRequest.Builderavoiding the need to create one manually viaDescribeBudgetsRequest.builder()- Parameters:
describeBudgetsRequest- AConsumerthat will call methods onDescribeBudgetsRequest.Builderto create a request. Request of DescribeBudgets- Returns:
- Result of the DescribeBudgets operation returned by the service.
-
describeBudgetsPaginator
default DescribeBudgetsIterable describeBudgetsPaginator(DescribeBudgetsRequest describeBudgetsRequest) throws InternalErrorException, InvalidParameterException, NotFoundException, InvalidNextTokenException, ExpiredNextTokenException, AccessDeniedException, ThrottlingException, AwsServiceException, SdkClientException, BudgetsException This is a variant of
describeBudgets(software.amazon.awssdk.services.budgets.model.DescribeBudgetsRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.budgets.paginators.DescribeBudgetsIterable responses = client.describeBudgetsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.budgets.paginators.DescribeBudgetsIterable responses = client .describeBudgetsPaginator(request); for (software.amazon.awssdk.services.budgets.model.DescribeBudgetsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.budgets.paginators.DescribeBudgetsIterable responses = client.describeBudgetsPaginator(request); responses.iterator().forEachRemaining(....);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
describeBudgets(software.amazon.awssdk.services.budgets.model.DescribeBudgetsRequest)operation.- Parameters:
describeBudgetsRequest- Request of DescribeBudgets- Returns:
- A custom iterable that can be used to iterate through all the response pages.
-
describeBudgetsPaginator
default DescribeBudgetsIterable describeBudgetsPaginator(Consumer<DescribeBudgetsRequest.Builder> describeBudgetsRequest) throws InternalErrorException, InvalidParameterException, NotFoundException, InvalidNextTokenException, ExpiredNextTokenException, AccessDeniedException, ThrottlingException, AwsServiceException, SdkClientException, BudgetsException This is a variant of
describeBudgets(software.amazon.awssdk.services.budgets.model.DescribeBudgetsRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.budgets.paginators.DescribeBudgetsIterable responses = client.describeBudgetsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.budgets.paginators.DescribeBudgetsIterable responses = client .describeBudgetsPaginator(request); for (software.amazon.awssdk.services.budgets.model.DescribeBudgetsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.budgets.paginators.DescribeBudgetsIterable responses = client.describeBudgetsPaginator(request); responses.iterator().forEachRemaining(....);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
describeBudgets(software.amazon.awssdk.services.budgets.model.DescribeBudgetsRequest)operation.
This is a convenience which creates an instance of the
DescribeBudgetsRequest.Builderavoiding the need to create one manually viaDescribeBudgetsRequest.builder()- Parameters:
describeBudgetsRequest- AConsumerthat will call methods onDescribeBudgetsRequest.Builderto create a request. Request of DescribeBudgets- Returns:
- A custom iterable that can be used to iterate through all the response pages.
-
describeNotificationsForBudget
default DescribeNotificationsForBudgetResponse describeNotificationsForBudget(DescribeNotificationsForBudgetRequest describeNotificationsForBudgetRequest) throws InternalErrorException, InvalidParameterException, NotFoundException, InvalidNextTokenException, ExpiredNextTokenException, AccessDeniedException, ThrottlingException, AwsServiceException, SdkClientException, BudgetsException Lists the notifications that are associated with a budget.
- Parameters:
describeNotificationsForBudgetRequest- Request of DescribeNotificationsForBudget- Returns:
- Result of the DescribeNotificationsForBudget operation returned by the service.
-
describeNotificationsForBudget
default DescribeNotificationsForBudgetResponse describeNotificationsForBudget(Consumer<DescribeNotificationsForBudgetRequest.Builder> describeNotificationsForBudgetRequest) throws InternalErrorException, InvalidParameterException, NotFoundException, InvalidNextTokenException, ExpiredNextTokenException, AccessDeniedException, ThrottlingException, AwsServiceException, SdkClientException, BudgetsException Lists the notifications that are associated with a budget.
This is a convenience which creates an instance of the
DescribeNotificationsForBudgetRequest.Builderavoiding the need to create one manually viaDescribeNotificationsForBudgetRequest.builder()- Parameters:
describeNotificationsForBudgetRequest- AConsumerthat will call methods onDescribeNotificationsForBudgetRequest.Builderto create a request. Request of DescribeNotificationsForBudget- Returns:
- Result of the DescribeNotificationsForBudget operation returned by the service.
-
describeNotificationsForBudgetPaginator
default DescribeNotificationsForBudgetIterable describeNotificationsForBudgetPaginator(DescribeNotificationsForBudgetRequest describeNotificationsForBudgetRequest) throws InternalErrorException, InvalidParameterException, NotFoundException, InvalidNextTokenException, ExpiredNextTokenException, AccessDeniedException, ThrottlingException, AwsServiceException, SdkClientException, BudgetsException This is a variant of
describeNotificationsForBudget(software.amazon.awssdk.services.budgets.model.DescribeNotificationsForBudgetRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.budgets.paginators.DescribeNotificationsForBudgetIterable responses = client.describeNotificationsForBudgetPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.budgets.paginators.DescribeNotificationsForBudgetIterable responses = client .describeNotificationsForBudgetPaginator(request); for (software.amazon.awssdk.services.budgets.model.DescribeNotificationsForBudgetResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.budgets.paginators.DescribeNotificationsForBudgetIterable responses = client.describeNotificationsForBudgetPaginator(request); responses.iterator().forEachRemaining(....);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
describeNotificationsForBudget(software.amazon.awssdk.services.budgets.model.DescribeNotificationsForBudgetRequest)operation.- Parameters:
describeNotificationsForBudgetRequest- Request of DescribeNotificationsForBudget- Returns:
- A custom iterable that can be used to iterate through all the response pages.
-
describeNotificationsForBudgetPaginator
default DescribeNotificationsForBudgetIterable describeNotificationsForBudgetPaginator(Consumer<DescribeNotificationsForBudgetRequest.Builder> describeNotificationsForBudgetRequest) throws InternalErrorException, InvalidParameterException, NotFoundException, InvalidNextTokenException, ExpiredNextTokenException, AccessDeniedException, ThrottlingException, AwsServiceException, SdkClientException, BudgetsException This is a variant of
describeNotificationsForBudget(software.amazon.awssdk.services.budgets.model.DescribeNotificationsForBudgetRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.budgets.paginators.DescribeNotificationsForBudgetIterable responses = client.describeNotificationsForBudgetPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.budgets.paginators.DescribeNotificationsForBudgetIterable responses = client .describeNotificationsForBudgetPaginator(request); for (software.amazon.awssdk.services.budgets.model.DescribeNotificationsForBudgetResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.budgets.paginators.DescribeNotificationsForBudgetIterable responses = client.describeNotificationsForBudgetPaginator(request); responses.iterator().forEachRemaining(....);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
describeNotificationsForBudget(software.amazon.awssdk.services.budgets.model.DescribeNotificationsForBudgetRequest)operation.
This is a convenience which creates an instance of the
DescribeNotificationsForBudgetRequest.Builderavoiding the need to create one manually viaDescribeNotificationsForBudgetRequest.builder()- Parameters:
describeNotificationsForBudgetRequest- AConsumerthat will call methods onDescribeNotificationsForBudgetRequest.Builderto create a request. Request of DescribeNotificationsForBudget- Returns:
- A custom iterable that can be used to iterate through all the response pages.
-
describeSubscribersForNotification
default DescribeSubscribersForNotificationResponse describeSubscribersForNotification(DescribeSubscribersForNotificationRequest describeSubscribersForNotificationRequest) throws InternalErrorException, NotFoundException, InvalidParameterException, InvalidNextTokenException, ExpiredNextTokenException, AccessDeniedException, ThrottlingException, AwsServiceException, SdkClientException, BudgetsException Lists the subscribers that are associated with a notification.
- Parameters:
describeSubscribersForNotificationRequest- Request of DescribeSubscribersForNotification- Returns:
- Result of the DescribeSubscribersForNotification operation returned by the service.
-
describeSubscribersForNotification
default DescribeSubscribersForNotificationResponse describeSubscribersForNotification(Consumer<DescribeSubscribersForNotificationRequest.Builder> describeSubscribersForNotificationRequest) throws InternalErrorException, NotFoundException, InvalidParameterException, InvalidNextTokenException, ExpiredNextTokenException, AccessDeniedException, ThrottlingException, AwsServiceException, SdkClientException, BudgetsException Lists the subscribers that are associated with a notification.
This is a convenience which creates an instance of the
DescribeSubscribersForNotificationRequest.Builderavoiding the need to create one manually viaDescribeSubscribersForNotificationRequest.builder()- Parameters:
describeSubscribersForNotificationRequest- AConsumerthat will call methods onDescribeSubscribersForNotificationRequest.Builderto create a request. Request of DescribeSubscribersForNotification- Returns:
- Result of the DescribeSubscribersForNotification operation returned by the service.
-
describeSubscribersForNotificationPaginator
default DescribeSubscribersForNotificationIterable describeSubscribersForNotificationPaginator(DescribeSubscribersForNotificationRequest describeSubscribersForNotificationRequest) throws InternalErrorException, NotFoundException, InvalidParameterException, InvalidNextTokenException, ExpiredNextTokenException, AccessDeniedException, ThrottlingException, AwsServiceException, SdkClientException, BudgetsException This is a variant of
describeSubscribersForNotification(software.amazon.awssdk.services.budgets.model.DescribeSubscribersForNotificationRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.budgets.paginators.DescribeSubscribersForNotificationIterable responses = client.describeSubscribersForNotificationPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.budgets.paginators.DescribeSubscribersForNotificationIterable responses = client .describeSubscribersForNotificationPaginator(request); for (software.amazon.awssdk.services.budgets.model.DescribeSubscribersForNotificationResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.budgets.paginators.DescribeSubscribersForNotificationIterable responses = client.describeSubscribersForNotificationPaginator(request); responses.iterator().forEachRemaining(....);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
describeSubscribersForNotification(software.amazon.awssdk.services.budgets.model.DescribeSubscribersForNotificationRequest)operation.- Parameters:
describeSubscribersForNotificationRequest- Request of DescribeSubscribersForNotification- Returns:
- A custom iterable that can be used to iterate through all the response pages.
-
describeSubscribersForNotificationPaginator
default DescribeSubscribersForNotificationIterable describeSubscribersForNotificationPaginator(Consumer<DescribeSubscribersForNotificationRequest.Builder> describeSubscribersForNotificationRequest) throws InternalErrorException, NotFoundException, InvalidParameterException, InvalidNextTokenException, ExpiredNextTokenException, AccessDeniedException, ThrottlingException, AwsServiceException, SdkClientException, BudgetsException This is a variant of
describeSubscribersForNotification(software.amazon.awssdk.services.budgets.model.DescribeSubscribersForNotificationRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.budgets.paginators.DescribeSubscribersForNotificationIterable responses = client.describeSubscribersForNotificationPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.budgets.paginators.DescribeSubscribersForNotificationIterable responses = client .describeSubscribersForNotificationPaginator(request); for (software.amazon.awssdk.services.budgets.model.DescribeSubscribersForNotificationResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.budgets.paginators.DescribeSubscribersForNotificationIterable responses = client.describeSubscribersForNotificationPaginator(request); responses.iterator().forEachRemaining(....);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
describeSubscribersForNotification(software.amazon.awssdk.services.budgets.model.DescribeSubscribersForNotificationRequest)operation.
This is a convenience which creates an instance of the
DescribeSubscribersForNotificationRequest.Builderavoiding the need to create one manually viaDescribeSubscribersForNotificationRequest.builder()- Parameters:
describeSubscribersForNotificationRequest- AConsumerthat will call methods onDescribeSubscribersForNotificationRequest.Builderto create a request. Request of DescribeSubscribersForNotification- Returns:
- A custom iterable that can be used to iterate through all the response pages.
-
executeBudgetAction
default ExecuteBudgetActionResponse executeBudgetAction(ExecuteBudgetActionRequest executeBudgetActionRequest) throws InternalErrorException, InvalidParameterException, NotFoundException, AccessDeniedException, ResourceLockedException, ThrottlingException, AwsServiceException, SdkClientException, BudgetsException Executes a budget action.
- Parameters:
executeBudgetActionRequest-- Returns:
- Result of the ExecuteBudgetAction operation returned by the service.
-
executeBudgetAction
default ExecuteBudgetActionResponse executeBudgetAction(Consumer<ExecuteBudgetActionRequest.Builder> executeBudgetActionRequest) throws InternalErrorException, InvalidParameterException, NotFoundException, AccessDeniedException, ResourceLockedException, ThrottlingException, AwsServiceException, SdkClientException, BudgetsException Executes a budget action.
This is a convenience which creates an instance of the
ExecuteBudgetActionRequest.Builderavoiding the need to create one manually viaExecuteBudgetActionRequest.builder()- Parameters:
executeBudgetActionRequest- AConsumerthat will call methods onExecuteBudgetActionRequest.Builderto create a request.- Returns:
- Result of the ExecuteBudgetAction operation returned by the service.
-
listTagsForResource
default ListTagsForResourceResponse listTagsForResource(ListTagsForResourceRequest listTagsForResourceRequest) throws ThrottlingException, NotFoundException, AccessDeniedException, InternalErrorException, InvalidParameterException, AwsServiceException, SdkClientException, BudgetsException Lists tags associated with a budget or budget action resource.
- Parameters:
listTagsForResourceRequest-- Returns:
- Result of the ListTagsForResource operation returned by the service.
-
listTagsForResource
default ListTagsForResourceResponse listTagsForResource(Consumer<ListTagsForResourceRequest.Builder> listTagsForResourceRequest) throws ThrottlingException, NotFoundException, AccessDeniedException, InternalErrorException, InvalidParameterException, AwsServiceException, SdkClientException, BudgetsException Lists tags associated with a budget or budget action resource.
This is a convenience which creates an instance of the
ListTagsForResourceRequest.Builderavoiding the need to create one manually viaListTagsForResourceRequest.builder()- Parameters:
listTagsForResourceRequest- AConsumerthat will call methods onListTagsForResourceRequest.Builderto create a request.- Returns:
- Result of the ListTagsForResource operation returned by the service.
-
tagResource
default TagResourceResponse tagResource(TagResourceRequest tagResourceRequest) throws ThrottlingException, ServiceQuotaExceededException, NotFoundException, AccessDeniedException, InternalErrorException, InvalidParameterException, AwsServiceException, SdkClientException, BudgetsException Creates tags for a budget or budget action resource.
- Parameters:
tagResourceRequest-- Returns:
- Result of the TagResource operation returned by the service.
-
tagResource
default TagResourceResponse tagResource(Consumer<TagResourceRequest.Builder> tagResourceRequest) throws ThrottlingException, ServiceQuotaExceededException, NotFoundException, AccessDeniedException, InternalErrorException, InvalidParameterException, AwsServiceException, SdkClientException, BudgetsException Creates tags for a budget or budget action resource.
This is a convenience which creates an instance of the
TagResourceRequest.Builderavoiding the need to create one manually viaTagResourceRequest.builder()- Parameters:
tagResourceRequest- AConsumerthat will call methods onTagResourceRequest.Builderto create a request.- Returns:
- Result of the TagResource operation returned by the service.
-
untagResource
default UntagResourceResponse untagResource(UntagResourceRequest untagResourceRequest) throws ThrottlingException, NotFoundException, AccessDeniedException, InternalErrorException, InvalidParameterException, AwsServiceException, SdkClientException, BudgetsException Deletes tags associated with a budget or budget action resource.
- Parameters:
untagResourceRequest-- Returns:
- Result of the UntagResource operation returned by the service.
-
untagResource
default UntagResourceResponse untagResource(Consumer<UntagResourceRequest.Builder> untagResourceRequest) throws ThrottlingException, NotFoundException, AccessDeniedException, InternalErrorException, InvalidParameterException, AwsServiceException, SdkClientException, BudgetsException Deletes tags associated with a budget or budget action resource.
This is a convenience which creates an instance of the
UntagResourceRequest.Builderavoiding the need to create one manually viaUntagResourceRequest.builder()- Parameters:
untagResourceRequest- AConsumerthat will call methods onUntagResourceRequest.Builderto create a request.- Returns:
- Result of the UntagResource operation returned by the service.
-
updateBudget
default UpdateBudgetResponse updateBudget(UpdateBudgetRequest updateBudgetRequest) throws InternalErrorException, InvalidParameterException, NotFoundException, AccessDeniedException, ThrottlingException, AwsServiceException, SdkClientException, BudgetsException Updates a budget. You can change every part of a budget except for the
budgetNameand thecalculatedSpend. When you modify a budget, thecalculatedSpenddrops to zero until Amazon Web Services has new usage data to use for forecasting.Only one of
BudgetLimitorPlannedBudgetLimitscan be present in the syntax at one time. Use the syntax that matches your case. The Request Syntax section shows theBudgetLimitsyntax. ForPlannedBudgetLimits, see the Examples section.- Parameters:
updateBudgetRequest- Request of UpdateBudget- Returns:
- Result of the UpdateBudget operation returned by the service.
-
updateBudget
default UpdateBudgetResponse updateBudget(Consumer<UpdateBudgetRequest.Builder> updateBudgetRequest) throws InternalErrorException, InvalidParameterException, NotFoundException, AccessDeniedException, ThrottlingException, AwsServiceException, SdkClientException, BudgetsException Updates a budget. You can change every part of a budget except for the
budgetNameand thecalculatedSpend. When you modify a budget, thecalculatedSpenddrops to zero until Amazon Web Services has new usage data to use for forecasting.Only one of
BudgetLimitorPlannedBudgetLimitscan be present in the syntax at one time. Use the syntax that matches your case. The Request Syntax section shows theBudgetLimitsyntax. ForPlannedBudgetLimits, see the Examples section.
This is a convenience which creates an instance of the
UpdateBudgetRequest.Builderavoiding the need to create one manually viaUpdateBudgetRequest.builder()- Parameters:
updateBudgetRequest- AConsumerthat will call methods onUpdateBudgetRequest.Builderto create a request. Request of UpdateBudget- Returns:
- Result of the UpdateBudget operation returned by the service.
-
updateBudgetAction
default UpdateBudgetActionResponse updateBudgetAction(UpdateBudgetActionRequest updateBudgetActionRequest) throws InternalErrorException, InvalidParameterException, NotFoundException, AccessDeniedException, ResourceLockedException, ThrottlingException, AwsServiceException, SdkClientException, BudgetsException Updates a budget action.
- Parameters:
updateBudgetActionRequest-- Returns:
- Result of the UpdateBudgetAction operation returned by the service.
-
updateBudgetAction
default UpdateBudgetActionResponse updateBudgetAction(Consumer<UpdateBudgetActionRequest.Builder> updateBudgetActionRequest) throws InternalErrorException, InvalidParameterException, NotFoundException, AccessDeniedException, ResourceLockedException, ThrottlingException, AwsServiceException, SdkClientException, BudgetsException Updates a budget action.
This is a convenience which creates an instance of the
UpdateBudgetActionRequest.Builderavoiding the need to create one manually viaUpdateBudgetActionRequest.builder()- Parameters:
updateBudgetActionRequest- AConsumerthat will call methods onUpdateBudgetActionRequest.Builderto create a request.- Returns:
- Result of the UpdateBudgetAction operation returned by the service.
-
updateNotification
default UpdateNotificationResponse updateNotification(UpdateNotificationRequest updateNotificationRequest) throws InternalErrorException, InvalidParameterException, NotFoundException, DuplicateRecordException, AccessDeniedException, ThrottlingException, AwsServiceException, SdkClientException, BudgetsException Updates a notification.
- Parameters:
updateNotificationRequest- Request of UpdateNotification- Returns:
- Result of the UpdateNotification operation returned by the service.
-
updateNotification
default UpdateNotificationResponse updateNotification(Consumer<UpdateNotificationRequest.Builder> updateNotificationRequest) throws InternalErrorException, InvalidParameterException, NotFoundException, DuplicateRecordException, AccessDeniedException, ThrottlingException, AwsServiceException, SdkClientException, BudgetsException Updates a notification.
This is a convenience which creates an instance of the
UpdateNotificationRequest.Builderavoiding the need to create one manually viaUpdateNotificationRequest.builder()- Parameters:
updateNotificationRequest- AConsumerthat will call methods onUpdateNotificationRequest.Builderto create a request. Request of UpdateNotification- Returns:
- Result of the UpdateNotification operation returned by the service.
-
updateSubscriber
default UpdateSubscriberResponse updateSubscriber(UpdateSubscriberRequest updateSubscriberRequest) throws InternalErrorException, InvalidParameterException, NotFoundException, DuplicateRecordException, AccessDeniedException, ThrottlingException, AwsServiceException, SdkClientException, BudgetsException Updates a subscriber.
- Parameters:
updateSubscriberRequest- Request of UpdateSubscriber- Returns:
- Result of the UpdateSubscriber operation returned by the service.
-
updateSubscriber
default UpdateSubscriberResponse updateSubscriber(Consumer<UpdateSubscriberRequest.Builder> updateSubscriberRequest) throws InternalErrorException, InvalidParameterException, NotFoundException, DuplicateRecordException, AccessDeniedException, ThrottlingException, AwsServiceException, SdkClientException, BudgetsException Updates a subscriber.
This is a convenience which creates an instance of the
UpdateSubscriberRequest.Builderavoiding the need to create one manually viaUpdateSubscriberRequest.builder()- Parameters:
updateSubscriberRequest- AConsumerthat will call methods onUpdateSubscriberRequest.Builderto create a request. Request of UpdateSubscriber- Returns:
- Result of the UpdateSubscriber operation returned by the service.
-
create
Create aBudgetsClientwith the region loaded from theDefaultAwsRegionProviderChainand credentials loaded from theDefaultCredentialsProvider. -
builder
Create a builder that can be used to configure and create aBudgetsClient. -
serviceMetadata
-
serviceClientConfiguration
Description copied from interface:SdkClientThe SDK service client configuration exposes client settings to the user, e.g., ClientOverrideConfiguration- Specified by:
serviceClientConfigurationin interfaceAwsClient- Specified by:
serviceClientConfigurationin interfaceSdkClient- Returns:
- SdkServiceClientConfiguration
-