AutoCloseable
@Generated("software.amazon.awssdk:codegen") public interface BudgetsClient extends AutoCloseable
builder()
method.
All public APIs for AWS BudgetsModifier and Type | Field | Description |
---|---|---|
static String |
SERVICE_NAME |
Modifier and Type | Method | Description |
---|---|---|
static BudgetsClientBuilder |
builder() |
Create a builder that can be used to configure and create a
BudgetsClient . |
static BudgetsClient |
create() |
Create a
BudgetsClient with the region loaded from the
DefaultAwsRegionProviderChain and credentials loaded from the
DefaultCredentialsProvider . |
default CreateBudgetResponse |
createBudget(CreateBudgetRequest createBudgetRequest) |
Create a new budget
|
default CreateNotificationResponse |
createNotification(CreateNotificationRequest createNotificationRequest) |
Create a new Notification with subscribers for a budget
|
default CreateSubscriberResponse |
createSubscriber(CreateSubscriberRequest createSubscriberRequest) |
Create a new Subscriber for a notification
|
default DeleteBudgetResponse |
deleteBudget(DeleteBudgetRequest deleteBudgetRequest) |
Delete a budget and related notifications
|
default DeleteNotificationResponse |
deleteNotification(DeleteNotificationRequest deleteNotificationRequest) |
Delete a notification and related subscribers
|
default DeleteSubscriberResponse |
deleteSubscriber(DeleteSubscriberRequest deleteSubscriberRequest) |
Delete a Subscriber for a notification
|
default DescribeBudgetResponse |
describeBudget(DescribeBudgetRequest describeBudgetRequest) |
Get a single budget
|
default DescribeBudgetsResponse |
describeBudgets(DescribeBudgetsRequest describeBudgetsRequest) |
Get all budgets for an account
|
default DescribeNotificationsForBudgetResponse |
describeNotificationsForBudget(DescribeNotificationsForBudgetRequest describeNotificationsForBudgetRequest) |
Get notifications of a budget
|
default DescribeSubscribersForNotificationResponse |
describeSubscribersForNotification(DescribeSubscribersForNotificationRequest describeSubscribersForNotificationRequest) |
Get subscribers of a notification
|
static ServiceMetadata |
serviceMetadata() |
|
default UpdateBudgetResponse |
updateBudget(UpdateBudgetRequest updateBudgetRequest) |
Update the information of a budget already created
|
default UpdateNotificationResponse |
updateNotification(UpdateNotificationRequest updateNotificationRequest) |
Update the information about a notification already created
|
default UpdateSubscriberResponse |
updateSubscriber(UpdateSubscriberRequest updateSubscriberRequest) |
Update a subscriber
|
close
static final String SERVICE_NAME
static BudgetsClient create()
BudgetsClient
with the region loaded from the
DefaultAwsRegionProviderChain
and credentials loaded from the
DefaultCredentialsProvider
.static BudgetsClientBuilder builder()
BudgetsClient
.default CreateBudgetResponse createBudget(CreateBudgetRequest createBudgetRequest) throws InvalidParameterException, InternalErrorException, CreationLimitExceededException, DuplicateRecordException, SdkBaseException, SdkClientException, BudgetsException
createBudgetRequest
- Request of CreateBudgetInvalidParameterException
- This exception is thrown if any request is given an invalid parameter. E.g., if a required Date field is
null.InternalErrorException
- This exception is thrown on an unknown internal failure.CreationLimitExceededException
- The exception is thrown when customer tries to create a record (e.g. budget), but the number this record
already exceeds the limitation.DuplicateRecordException
- The exception is thrown when customer tries to create a record (e.g. budget) that already exists.SdkBaseException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc)BudgetsException
- Base exception for all service exceptions. Unknown exceptions will be thrown as an instance of this typedefault CreateNotificationResponse createNotification(CreateNotificationRequest createNotificationRequest) throws InternalErrorException, InvalidParameterException, NotFoundException, CreationLimitExceededException, DuplicateRecordException, SdkBaseException, SdkClientException, BudgetsException
createNotificationRequest
- Request of CreateNotificationInternalErrorException
- This exception is thrown on an unknown internal failure.InvalidParameterException
- This exception is thrown if any request is given an invalid parameter. E.g., if a required Date field is
null.NotFoundException
- This exception is thrown if a requested entity is not found. E.g., if a budget id doesn't exist for an
account ID.CreationLimitExceededException
- The exception is thrown when customer tries to create a record (e.g. budget), but the number this record
already exceeds the limitation.DuplicateRecordException
- The exception is thrown when customer tries to create a record (e.g. budget) that already exists.SdkBaseException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc)BudgetsException
- Base exception for all service exceptions. Unknown exceptions will be thrown as an instance of this typedefault CreateSubscriberResponse createSubscriber(CreateSubscriberRequest createSubscriberRequest) throws InternalErrorException, InvalidParameterException, CreationLimitExceededException, DuplicateRecordException, NotFoundException, SdkBaseException, SdkClientException, BudgetsException
createSubscriberRequest
- Request of CreateSubscriberInternalErrorException
- This exception is thrown on an unknown internal failure.InvalidParameterException
- This exception is thrown if any request is given an invalid parameter. E.g., if a required Date field is
null.CreationLimitExceededException
- The exception is thrown when customer tries to create a record (e.g. budget), but the number this record
already exceeds the limitation.DuplicateRecordException
- The exception is thrown when customer tries to create a record (e.g. budget) that already exists.NotFoundException
- This exception is thrown if a requested entity is not found. E.g., if a budget id doesn't exist for an
account ID.SdkBaseException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc)BudgetsException
- Base exception for all service exceptions. Unknown exceptions will be thrown as an instance of this typedefault DeleteBudgetResponse deleteBudget(DeleteBudgetRequest deleteBudgetRequest) throws InternalErrorException, InvalidParameterException, NotFoundException, SdkBaseException, SdkClientException, BudgetsException
deleteBudgetRequest
- Request of DeleteBudgetInternalErrorException
- This exception is thrown on an unknown internal failure.InvalidParameterException
- This exception is thrown if any request is given an invalid parameter. E.g., if a required Date field is
null.NotFoundException
- This exception is thrown if a requested entity is not found. E.g., if a budget id doesn't exist for an
account ID.SdkBaseException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc)BudgetsException
- Base exception for all service exceptions. Unknown exceptions will be thrown as an instance of this typedefault DeleteNotificationResponse deleteNotification(DeleteNotificationRequest deleteNotificationRequest) throws InvalidParameterException, InternalErrorException, NotFoundException, SdkBaseException, SdkClientException, BudgetsException
deleteNotificationRequest
- Request of DeleteNotificationInvalidParameterException
- This exception is thrown if any request is given an invalid parameter. E.g., if a required Date field is
null.InternalErrorException
- This exception is thrown on an unknown internal failure.NotFoundException
- This exception is thrown if a requested entity is not found. E.g., if a budget id doesn't exist for an
account ID.SdkBaseException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc)BudgetsException
- Base exception for all service exceptions. Unknown exceptions will be thrown as an instance of this typedefault DeleteSubscriberResponse deleteSubscriber(DeleteSubscriberRequest deleteSubscriberRequest) throws InternalErrorException, InvalidParameterException, NotFoundException, SdkBaseException, SdkClientException, BudgetsException
deleteSubscriberRequest
- Request of DeleteSubscriberInternalErrorException
- This exception is thrown on an unknown internal failure.InvalidParameterException
- This exception is thrown if any request is given an invalid parameter. E.g., if a required Date field is
null.NotFoundException
- This exception is thrown if a requested entity is not found. E.g., if a budget id doesn't exist for an
account ID.SdkBaseException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc)BudgetsException
- Base exception for all service exceptions. Unknown exceptions will be thrown as an instance of this typedefault DescribeBudgetResponse describeBudget(DescribeBudgetRequest describeBudgetRequest) throws InternalErrorException, InvalidParameterException, NotFoundException, SdkBaseException, SdkClientException, BudgetsException
describeBudgetRequest
- Request of DescribeBudgetInternalErrorException
- This exception is thrown on an unknown internal failure.InvalidParameterException
- This exception is thrown if any request is given an invalid parameter. E.g., if a required Date field is
null.NotFoundException
- This exception is thrown if a requested entity is not found. E.g., if a budget id doesn't exist for an
account ID.SdkBaseException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc)BudgetsException
- Base exception for all service exceptions. Unknown exceptions will be thrown as an instance of this typedefault DescribeBudgetsResponse describeBudgets(DescribeBudgetsRequest describeBudgetsRequest) throws InternalErrorException, InvalidParameterException, NotFoundException, InvalidNextTokenException, ExpiredNextTokenException, SdkBaseException, SdkClientException, BudgetsException
describeBudgetsRequest
- Request of DescribeBudgetsInternalErrorException
- This exception is thrown on an unknown internal failure.InvalidParameterException
- This exception is thrown if any request is given an invalid parameter. E.g., if a required Date field is
null.NotFoundException
- This exception is thrown if a requested entity is not found. E.g., if a budget id doesn't exist for an
account ID.InvalidNextTokenException
- This exception is thrown if paging token signature didn't match the token, or the paging token isn't for
this requestExpiredNextTokenException
- This exception is thrown if the paging token is expired - past its TTLSdkBaseException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc)BudgetsException
- Base exception for all service exceptions. Unknown exceptions will be thrown as an instance of this typedefault DescribeNotificationsForBudgetResponse describeNotificationsForBudget(DescribeNotificationsForBudgetRequest describeNotificationsForBudgetRequest) throws InternalErrorException, InvalidParameterException, NotFoundException, InvalidNextTokenException, ExpiredNextTokenException, SdkBaseException, SdkClientException, BudgetsException
describeNotificationsForBudgetRequest
- Request of DescribeNotificationsForBudgetInternalErrorException
- This exception is thrown on an unknown internal failure.InvalidParameterException
- This exception is thrown if any request is given an invalid parameter. E.g., if a required Date field is
null.NotFoundException
- This exception is thrown if a requested entity is not found. E.g., if a budget id doesn't exist for an
account ID.InvalidNextTokenException
- This exception is thrown if paging token signature didn't match the token, or the paging token isn't for
this requestExpiredNextTokenException
- This exception is thrown if the paging token is expired - past its TTLSdkBaseException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc)BudgetsException
- Base exception for all service exceptions. Unknown exceptions will be thrown as an instance of this typedefault DescribeSubscribersForNotificationResponse describeSubscribersForNotification(DescribeSubscribersForNotificationRequest describeSubscribersForNotificationRequest) throws InternalErrorException, NotFoundException, InvalidParameterException, InvalidNextTokenException, ExpiredNextTokenException, SdkBaseException, SdkClientException, BudgetsException
describeSubscribersForNotificationRequest
- Request of DescribeSubscribersForNotificationInternalErrorException
- This exception is thrown on an unknown internal failure.NotFoundException
- This exception is thrown if a requested entity is not found. E.g., if a budget id doesn't exist for an
account ID.InvalidParameterException
- This exception is thrown if any request is given an invalid parameter. E.g., if a required Date field is
null.InvalidNextTokenException
- This exception is thrown if paging token signature didn't match the token, or the paging token isn't for
this requestExpiredNextTokenException
- This exception is thrown if the paging token is expired - past its TTLSdkBaseException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc)BudgetsException
- Base exception for all service exceptions. Unknown exceptions will be thrown as an instance of this typedefault UpdateBudgetResponse updateBudget(UpdateBudgetRequest updateBudgetRequest) throws InternalErrorException, InvalidParameterException, NotFoundException, SdkBaseException, SdkClientException, BudgetsException
updateBudgetRequest
- Request of UpdateBudgetInternalErrorException
- This exception is thrown on an unknown internal failure.InvalidParameterException
- This exception is thrown if any request is given an invalid parameter. E.g., if a required Date field is
null.NotFoundException
- This exception is thrown if a requested entity is not found. E.g., if a budget id doesn't exist for an
account ID.SdkBaseException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc)BudgetsException
- Base exception for all service exceptions. Unknown exceptions will be thrown as an instance of this typedefault UpdateNotificationResponse updateNotification(UpdateNotificationRequest updateNotificationRequest) throws InternalErrorException, InvalidParameterException, NotFoundException, SdkBaseException, SdkClientException, BudgetsException
updateNotificationRequest
- Request of UpdateNotificationInternalErrorException
- This exception is thrown on an unknown internal failure.InvalidParameterException
- This exception is thrown if any request is given an invalid parameter. E.g., if a required Date field is
null.NotFoundException
- This exception is thrown if a requested entity is not found. E.g., if a budget id doesn't exist for an
account ID.SdkBaseException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc)BudgetsException
- Base exception for all service exceptions. Unknown exceptions will be thrown as an instance of this typedefault UpdateSubscriberResponse updateSubscriber(UpdateSubscriberRequest updateSubscriberRequest) throws InternalErrorException, InvalidParameterException, NotFoundException, SdkBaseException, SdkClientException, BudgetsException
updateSubscriberRequest
- Request of UpdateSubscriberInternalErrorException
- This exception is thrown on an unknown internal failure.InvalidParameterException
- This exception is thrown if any request is given an invalid parameter. E.g., if a required Date field is
null.NotFoundException
- This exception is thrown if a requested entity is not found. E.g., if a budget id doesn't exist for an
account ID.SdkBaseException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc)BudgetsException
- Base exception for all service exceptions. Unknown exceptions will be thrown as an instance of this typestatic ServiceMetadata serviceMetadata()
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.