Interface BillingClient
- All Superinterfaces:
AutoCloseable
,AwsClient
,SdkAutoCloseable
,SdkClient
builder()
method.
You can use the Billing API to programatically list the billing views available to you for a given time period. A billing view represents a set of billing data.
The Billing API provides the following endpoint:
https://billing.us-east-1.api.aws
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
Value for looking up the service's metadata from theServiceMetadataProvider
.static final String
-
Method Summary
Modifier and TypeMethodDescriptionstatic BillingClientBuilder
builder()
Create a builder that can be used to configure and create aBillingClient
.static BillingClient
create()
Create aBillingClient
with the region loaded from theDefaultAwsRegionProviderChain
and credentials loaded from theDefaultCredentialsProvider
.default CreateBillingViewResponse
createBillingView
(Consumer<CreateBillingViewRequest.Builder> createBillingViewRequest) Creates a billing view with the specified billing view attributes.default CreateBillingViewResponse
createBillingView
(CreateBillingViewRequest createBillingViewRequest) Creates a billing view with the specified billing view attributes.default DeleteBillingViewResponse
deleteBillingView
(Consumer<DeleteBillingViewRequest.Builder> deleteBillingViewRequest) Deletes the specified billing view.default DeleteBillingViewResponse
deleteBillingView
(DeleteBillingViewRequest deleteBillingViewRequest) Deletes the specified billing view.default GetBillingViewResponse
getBillingView
(Consumer<GetBillingViewRequest.Builder> getBillingViewRequest) Returns the metadata associated to the specified billing view ARN.default GetBillingViewResponse
getBillingView
(GetBillingViewRequest getBillingViewRequest) Returns the metadata associated to the specified billing view ARN.default GetResourcePolicyResponse
getResourcePolicy
(Consumer<GetResourcePolicyRequest.Builder> getResourcePolicyRequest) Returns the resource-based policy document attached to the resource inJSON
format.default GetResourcePolicyResponse
getResourcePolicy
(GetResourcePolicyRequest getResourcePolicyRequest) Returns the resource-based policy document attached to the resource inJSON
format.default ListBillingViewsResponse
listBillingViews
(Consumer<ListBillingViewsRequest.Builder> listBillingViewsRequest) Lists the billing views available for a given time period.default ListBillingViewsResponse
listBillingViews
(ListBillingViewsRequest listBillingViewsRequest) Lists the billing views available for a given time period.default ListBillingViewsIterable
listBillingViewsPaginator
(Consumer<ListBillingViewsRequest.Builder> listBillingViewsRequest) This is a variant oflistBillingViews(software.amazon.awssdk.services.billing.model.ListBillingViewsRequest)
operation.default ListBillingViewsIterable
listBillingViewsPaginator
(ListBillingViewsRequest listBillingViewsRequest) This is a variant oflistBillingViews(software.amazon.awssdk.services.billing.model.ListBillingViewsRequest)
operation.listSourceViewsForBillingView
(Consumer<ListSourceViewsForBillingViewRequest.Builder> listSourceViewsForBillingViewRequest) Lists the source views (managed Amazon Web Services billing views) associated with the billing view.listSourceViewsForBillingView
(ListSourceViewsForBillingViewRequest listSourceViewsForBillingViewRequest) Lists the source views (managed Amazon Web Services billing views) associated with the billing view.listSourceViewsForBillingViewPaginator
(Consumer<ListSourceViewsForBillingViewRequest.Builder> listSourceViewsForBillingViewRequest) This is a variant oflistSourceViewsForBillingView(software.amazon.awssdk.services.billing.model.ListSourceViewsForBillingViewRequest)
operation.listSourceViewsForBillingViewPaginator
(ListSourceViewsForBillingViewRequest listSourceViewsForBillingViewRequest) This is a variant oflistSourceViewsForBillingView(software.amazon.awssdk.services.billing.model.ListSourceViewsForBillingViewRequest)
operation.default ListTagsForResourceResponse
listTagsForResource
(Consumer<ListTagsForResourceRequest.Builder> listTagsForResourceRequest) Lists tags associated with the billing view resource.default ListTagsForResourceResponse
listTagsForResource
(ListTagsForResourceRequest listTagsForResourceRequest) Lists tags associated with the billing view resource.The SDK service client configuration exposes client settings to the user, e.g., ClientOverrideConfigurationstatic ServiceMetadata
default TagResourceResponse
tagResource
(Consumer<TagResourceRequest.Builder> tagResourceRequest) An API operation for adding one or more tags (key-value pairs) to a resource.default TagResourceResponse
tagResource
(TagResourceRequest tagResourceRequest) An API operation for adding one or more tags (key-value pairs) to a resource.default UntagResourceResponse
untagResource
(Consumer<UntagResourceRequest.Builder> untagResourceRequest) Removes one or more tags from a resource.default UntagResourceResponse
untagResource
(UntagResourceRequest untagResourceRequest) Removes one or more tags from a resource.default UpdateBillingViewResponse
updateBillingView
(Consumer<UpdateBillingViewRequest.Builder> updateBillingViewRequest) An API to update the attributes of the billing view.default UpdateBillingViewResponse
updateBillingView
(UpdateBillingViewRequest updateBillingViewRequest) An API to update the attributes of the billing view.Methods inherited from interface software.amazon.awssdk.utils.SdkAutoCloseable
close
Methods inherited from interface software.amazon.awssdk.core.SdkClient
serviceName
-
Field Details
-
SERVICE_NAME
- See Also:
-
SERVICE_METADATA_ID
Value for looking up the service's metadata from theServiceMetadataProvider
.- See Also:
-
-
Method Details
-
createBillingView
default CreateBillingViewResponse createBillingView(CreateBillingViewRequest createBillingViewRequest) throws ServiceQuotaExceededException, ThrottlingException, AccessDeniedException, ConflictException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, BillingException Creates a billing view with the specified billing view attributes.
- Parameters:
createBillingViewRequest
-- Returns:
- Result of the CreateBillingView operation returned by the service.
- See Also:
-
createBillingView
default CreateBillingViewResponse createBillingView(Consumer<CreateBillingViewRequest.Builder> createBillingViewRequest) throws ServiceQuotaExceededException, ThrottlingException, AccessDeniedException, ConflictException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, BillingException Creates a billing view with the specified billing view attributes.
This is a convenience which creates an instance of the
CreateBillingViewRequest.Builder
avoiding the need to create one manually viaCreateBillingViewRequest.builder()
- Parameters:
createBillingViewRequest
- AConsumer
that will call methods onCreateBillingViewRequest.Builder
to create a request.- Returns:
- Result of the CreateBillingView operation returned by the service.
- See Also:
-
deleteBillingView
default DeleteBillingViewResponse deleteBillingView(DeleteBillingViewRequest deleteBillingViewRequest) throws ThrottlingException, AccessDeniedException, ConflictException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, BillingException Deletes the specified billing view.
- Parameters:
deleteBillingViewRequest
-- Returns:
- Result of the DeleteBillingView operation returned by the service.
- See Also:
-
deleteBillingView
default DeleteBillingViewResponse deleteBillingView(Consumer<DeleteBillingViewRequest.Builder> deleteBillingViewRequest) throws ThrottlingException, AccessDeniedException, ConflictException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, BillingException Deletes the specified billing view.
This is a convenience which creates an instance of the
DeleteBillingViewRequest.Builder
avoiding the need to create one manually viaDeleteBillingViewRequest.builder()
- Parameters:
deleteBillingViewRequest
- AConsumer
that will call methods onDeleteBillingViewRequest.Builder
to create a request.- Returns:
- Result of the DeleteBillingView operation returned by the service.
- See Also:
-
getBillingView
default GetBillingViewResponse getBillingView(GetBillingViewRequest getBillingViewRequest) throws ThrottlingException, ResourceNotFoundException, AccessDeniedException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, BillingException Returns the metadata associated to the specified billing view ARN.
- Parameters:
getBillingViewRequest
-- Returns:
- Result of the GetBillingView operation returned by the service.
- See Also:
-
getBillingView
default GetBillingViewResponse getBillingView(Consumer<GetBillingViewRequest.Builder> getBillingViewRequest) throws ThrottlingException, ResourceNotFoundException, AccessDeniedException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, BillingException Returns the metadata associated to the specified billing view ARN.
This is a convenience which creates an instance of the
GetBillingViewRequest.Builder
avoiding the need to create one manually viaGetBillingViewRequest.builder()
- Parameters:
getBillingViewRequest
- AConsumer
that will call methods onGetBillingViewRequest.Builder
to create a request.- Returns:
- Result of the GetBillingView operation returned by the service.
- See Also:
-
getResourcePolicy
default GetResourcePolicyResponse getResourcePolicy(GetResourcePolicyRequest getResourcePolicyRequest) throws ThrottlingException, ResourceNotFoundException, AccessDeniedException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, BillingException Returns the resource-based policy document attached to the resource in
JSON
format.- Parameters:
getResourcePolicyRequest
-- Returns:
- Result of the GetResourcePolicy operation returned by the service.
- See Also:
-
getResourcePolicy
default GetResourcePolicyResponse getResourcePolicy(Consumer<GetResourcePolicyRequest.Builder> getResourcePolicyRequest) throws ThrottlingException, ResourceNotFoundException, AccessDeniedException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, BillingException Returns the resource-based policy document attached to the resource in
JSON
format.
This is a convenience which creates an instance of the
GetResourcePolicyRequest.Builder
avoiding the need to create one manually viaGetResourcePolicyRequest.builder()
- Parameters:
getResourcePolicyRequest
- AConsumer
that will call methods onGetResourcePolicyRequest.Builder
to create a request.- Returns:
- Result of the GetResourcePolicy operation returned by the service.
- See Also:
-
listBillingViews
default ListBillingViewsResponse listBillingViews(ListBillingViewsRequest listBillingViewsRequest) throws ThrottlingException, AccessDeniedException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, BillingException Lists the billing views available for a given time period.
Every Amazon Web Services account has a unique
PRIMARY
billing view that represents the billing data available by default. Accounts that use Billing Conductor also haveBILLING_GROUP
billing views representing pro forma costs associated with each created billing group.- Parameters:
listBillingViewsRequest
-- Returns:
- Result of the ListBillingViews operation returned by the service.
- See Also:
-
listBillingViews
default ListBillingViewsResponse listBillingViews(Consumer<ListBillingViewsRequest.Builder> listBillingViewsRequest) throws ThrottlingException, AccessDeniedException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, BillingException Lists the billing views available for a given time period.
Every Amazon Web Services account has a unique
PRIMARY
billing view that represents the billing data available by default. Accounts that use Billing Conductor also haveBILLING_GROUP
billing views representing pro forma costs associated with each created billing group.
This is a convenience which creates an instance of the
ListBillingViewsRequest.Builder
avoiding the need to create one manually viaListBillingViewsRequest.builder()
- Parameters:
listBillingViewsRequest
- AConsumer
that will call methods onListBillingViewsRequest.Builder
to create a request.- Returns:
- Result of the ListBillingViews operation returned by the service.
- See Also:
-
listBillingViewsPaginator
default ListBillingViewsIterable listBillingViewsPaginator(ListBillingViewsRequest listBillingViewsRequest) throws ThrottlingException, AccessDeniedException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, BillingException This is a variant of
listBillingViews(software.amazon.awssdk.services.billing.model.ListBillingViewsRequest)
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 Streamsoftware.amazon.awssdk.services.billing.paginators.ListBillingViewsIterable responses = client.listBillingViewsPaginator(request); responses.stream().forEach(....);
{ @code software.amazon.awssdk.services.billing.paginators.ListBillingViewsIterable responses = client .listBillingViewsPaginator(request); for (software.amazon.awssdk.services.billing.model.ListBillingViewsResponse response : responses) { // do something; } }
3) Use iterator directlysoftware.amazon.awssdk.services.billing.paginators.ListBillingViewsIterable responses = client.listBillingViewsPaginator(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
listBillingViews(software.amazon.awssdk.services.billing.model.ListBillingViewsRequest)
operation.- Parameters:
listBillingViewsRequest
-- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listBillingViewsPaginator
default ListBillingViewsIterable listBillingViewsPaginator(Consumer<ListBillingViewsRequest.Builder> listBillingViewsRequest) throws ThrottlingException, AccessDeniedException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, BillingException This is a variant of
listBillingViews(software.amazon.awssdk.services.billing.model.ListBillingViewsRequest)
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 Streamsoftware.amazon.awssdk.services.billing.paginators.ListBillingViewsIterable responses = client.listBillingViewsPaginator(request); responses.stream().forEach(....);
{ @code software.amazon.awssdk.services.billing.paginators.ListBillingViewsIterable responses = client .listBillingViewsPaginator(request); for (software.amazon.awssdk.services.billing.model.ListBillingViewsResponse response : responses) { // do something; } }
3) Use iterator directlysoftware.amazon.awssdk.services.billing.paginators.ListBillingViewsIterable responses = client.listBillingViewsPaginator(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
listBillingViews(software.amazon.awssdk.services.billing.model.ListBillingViewsRequest)
operation.
This is a convenience which creates an instance of the
ListBillingViewsRequest.Builder
avoiding the need to create one manually viaListBillingViewsRequest.builder()
- Parameters:
listBillingViewsRequest
- AConsumer
that will call methods onListBillingViewsRequest.Builder
to create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listSourceViewsForBillingView
default ListSourceViewsForBillingViewResponse listSourceViewsForBillingView(ListSourceViewsForBillingViewRequest listSourceViewsForBillingViewRequest) throws ThrottlingException, ResourceNotFoundException, AccessDeniedException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, BillingException Lists the source views (managed Amazon Web Services billing views) associated with the billing view.
- Parameters:
listSourceViewsForBillingViewRequest
-- Returns:
- Result of the ListSourceViewsForBillingView operation returned by the service.
- See Also:
-
listSourceViewsForBillingView
default ListSourceViewsForBillingViewResponse listSourceViewsForBillingView(Consumer<ListSourceViewsForBillingViewRequest.Builder> listSourceViewsForBillingViewRequest) throws ThrottlingException, ResourceNotFoundException, AccessDeniedException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, BillingException Lists the source views (managed Amazon Web Services billing views) associated with the billing view.
This is a convenience which creates an instance of the
ListSourceViewsForBillingViewRequest.Builder
avoiding the need to create one manually viaListSourceViewsForBillingViewRequest.builder()
- Parameters:
listSourceViewsForBillingViewRequest
- AConsumer
that will call methods onListSourceViewsForBillingViewRequest.Builder
to create a request.- Returns:
- Result of the ListSourceViewsForBillingView operation returned by the service.
- See Also:
-
listSourceViewsForBillingViewPaginator
default ListSourceViewsForBillingViewIterable listSourceViewsForBillingViewPaginator(ListSourceViewsForBillingViewRequest listSourceViewsForBillingViewRequest) throws ThrottlingException, ResourceNotFoundException, AccessDeniedException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, BillingException This is a variant of
listSourceViewsForBillingView(software.amazon.awssdk.services.billing.model.ListSourceViewsForBillingViewRequest)
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 Streamsoftware.amazon.awssdk.services.billing.paginators.ListSourceViewsForBillingViewIterable responses = client.listSourceViewsForBillingViewPaginator(request); responses.stream().forEach(....);
{ @code software.amazon.awssdk.services.billing.paginators.ListSourceViewsForBillingViewIterable responses = client .listSourceViewsForBillingViewPaginator(request); for (software.amazon.awssdk.services.billing.model.ListSourceViewsForBillingViewResponse response : responses) { // do something; } }
3) Use iterator directlysoftware.amazon.awssdk.services.billing.paginators.ListSourceViewsForBillingViewIterable responses = client.listSourceViewsForBillingViewPaginator(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
listSourceViewsForBillingView(software.amazon.awssdk.services.billing.model.ListSourceViewsForBillingViewRequest)
operation.- Parameters:
listSourceViewsForBillingViewRequest
-- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listSourceViewsForBillingViewPaginator
default ListSourceViewsForBillingViewIterable listSourceViewsForBillingViewPaginator(Consumer<ListSourceViewsForBillingViewRequest.Builder> listSourceViewsForBillingViewRequest) throws ThrottlingException, ResourceNotFoundException, AccessDeniedException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, BillingException This is a variant of
listSourceViewsForBillingView(software.amazon.awssdk.services.billing.model.ListSourceViewsForBillingViewRequest)
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 Streamsoftware.amazon.awssdk.services.billing.paginators.ListSourceViewsForBillingViewIterable responses = client.listSourceViewsForBillingViewPaginator(request); responses.stream().forEach(....);
{ @code software.amazon.awssdk.services.billing.paginators.ListSourceViewsForBillingViewIterable responses = client .listSourceViewsForBillingViewPaginator(request); for (software.amazon.awssdk.services.billing.model.ListSourceViewsForBillingViewResponse response : responses) { // do something; } }
3) Use iterator directlysoftware.amazon.awssdk.services.billing.paginators.ListSourceViewsForBillingViewIterable responses = client.listSourceViewsForBillingViewPaginator(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
listSourceViewsForBillingView(software.amazon.awssdk.services.billing.model.ListSourceViewsForBillingViewRequest)
operation.
This is a convenience which creates an instance of the
ListSourceViewsForBillingViewRequest.Builder
avoiding the need to create one manually viaListSourceViewsForBillingViewRequest.builder()
- Parameters:
listSourceViewsForBillingViewRequest
- AConsumer
that will call methods onListSourceViewsForBillingViewRequest.Builder
to create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listTagsForResource
default ListTagsForResourceResponse listTagsForResource(ListTagsForResourceRequest listTagsForResourceRequest) throws ThrottlingException, ResourceNotFoundException, AccessDeniedException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, BillingException Lists tags associated with the billing view resource.
- Parameters:
listTagsForResourceRequest
-- Returns:
- Result of the ListTagsForResource operation returned by the service.
- See Also:
-
listTagsForResource
default ListTagsForResourceResponse listTagsForResource(Consumer<ListTagsForResourceRequest.Builder> listTagsForResourceRequest) throws ThrottlingException, ResourceNotFoundException, AccessDeniedException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, BillingException Lists tags associated with the billing view resource.
This is a convenience which creates an instance of the
ListTagsForResourceRequest.Builder
avoiding the need to create one manually viaListTagsForResourceRequest.builder()
- Parameters:
listTagsForResourceRequest
- AConsumer
that will call methods onListTagsForResourceRequest.Builder
to create a request.- Returns:
- Result of the ListTagsForResource operation returned by the service.
- See Also:
-
tagResource
default TagResourceResponse tagResource(TagResourceRequest tagResourceRequest) throws ThrottlingException, ResourceNotFoundException, AccessDeniedException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, BillingException An API operation for adding one or more tags (key-value pairs) to a resource.
- Parameters:
tagResourceRequest
-- Returns:
- Result of the TagResource operation returned by the service.
- See Also:
-
tagResource
default TagResourceResponse tagResource(Consumer<TagResourceRequest.Builder> tagResourceRequest) throws ThrottlingException, ResourceNotFoundException, AccessDeniedException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, BillingException An API operation for adding one or more tags (key-value pairs) to a resource.
This is a convenience which creates an instance of the
TagResourceRequest.Builder
avoiding the need to create one manually viaTagResourceRequest.builder()
- Parameters:
tagResourceRequest
- AConsumer
that will call methods onTagResourceRequest.Builder
to create a request.- Returns:
- Result of the TagResource operation returned by the service.
- See Also:
-
untagResource
default UntagResourceResponse untagResource(UntagResourceRequest untagResourceRequest) throws ThrottlingException, ResourceNotFoundException, AccessDeniedException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, BillingException Removes one or more tags from a resource. Specify only tag keys in your request. Don't specify the value.
- Parameters:
untagResourceRequest
-- Returns:
- Result of the UntagResource operation returned by the service.
- See Also:
-
untagResource
default UntagResourceResponse untagResource(Consumer<UntagResourceRequest.Builder> untagResourceRequest) throws ThrottlingException, ResourceNotFoundException, AccessDeniedException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, BillingException Removes one or more tags from a resource. Specify only tag keys in your request. Don't specify the value.
This is a convenience which creates an instance of the
UntagResourceRequest.Builder
avoiding the need to create one manually viaUntagResourceRequest.builder()
- Parameters:
untagResourceRequest
- AConsumer
that will call methods onUntagResourceRequest.Builder
to create a request.- Returns:
- Result of the UntagResource operation returned by the service.
- See Also:
-
updateBillingView
default UpdateBillingViewResponse updateBillingView(UpdateBillingViewRequest updateBillingViewRequest) throws ServiceQuotaExceededException, ThrottlingException, ResourceNotFoundException, AccessDeniedException, ConflictException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, BillingException An API to update the attributes of the billing view.
- Parameters:
updateBillingViewRequest
-- Returns:
- Result of the UpdateBillingView operation returned by the service.
- See Also:
-
updateBillingView
default UpdateBillingViewResponse updateBillingView(Consumer<UpdateBillingViewRequest.Builder> updateBillingViewRequest) throws ServiceQuotaExceededException, ThrottlingException, ResourceNotFoundException, AccessDeniedException, ConflictException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, BillingException An API to update the attributes of the billing view.
This is a convenience which creates an instance of the
UpdateBillingViewRequest.Builder
avoiding the need to create one manually viaUpdateBillingViewRequest.builder()
- Parameters:
updateBillingViewRequest
- AConsumer
that will call methods onUpdateBillingViewRequest.Builder
to create a request.- Returns:
- Result of the UpdateBillingView operation returned by the service.
- See Also:
-
create
Create aBillingClient
with the region loaded from theDefaultAwsRegionProviderChain
and credentials loaded from theDefaultCredentialsProvider
. -
builder
Create a builder that can be used to configure and create aBillingClient
. -
serviceMetadata
-
serviceClientConfiguration
Description copied from interface:SdkClient
The SDK service client configuration exposes client settings to the user, e.g., ClientOverrideConfiguration- Specified by:
serviceClientConfiguration
in interfaceAwsClient
- Specified by:
serviceClientConfiguration
in interfaceSdkClient
- Returns:
- SdkServiceClientConfiguration
-