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 StringValue for looking up the service's metadata from theServiceMetadataProvider.static final String -
Method Summary
Modifier and TypeMethodDescriptiondefault AssociateContractResponseassociateContract(Consumer<AssociateContractRequest.Builder> associateContractRequest) Private Pricing contracts let eligible payer accounts manage private pricing agreements with Amazon Web Services.default AssociateContractResponseassociateContract(AssociateContractRequest associateContractRequest) Private Pricing contracts let eligible payer accounts manage private pricing agreements with Amazon Web Services.default AssociateSourceViewsResponseassociateSourceViews(Consumer<AssociateSourceViewsRequest.Builder> associateSourceViewsRequest) Associates one or more source billing views with an existing billing view.default AssociateSourceViewsResponseassociateSourceViews(AssociateSourceViewsRequest associateSourceViewsRequest) Associates one or more source billing views with an existing billing view.static BillingClientBuilderbuilder()Create a builder that can be used to configure and create aBillingClient.cancelContractualInvestmentAttestation(Consumer<CancelContractualInvestmentAttestationRequest.Builder> cancelContractualInvestmentAttestationRequest) Cancels a contractual investment attestation.cancelContractualInvestmentAttestation(CancelContractualInvestmentAttestationRequest cancelContractualInvestmentAttestationRequest) Cancels a contractual investment attestation.static BillingClientcreate()Create aBillingClientwith the region loaded from theDefaultAwsRegionProviderChainand credentials loaded from theDefaultCredentialsProvider.default CreateBillingViewResponsecreateBillingView(Consumer<CreateBillingViewRequest.Builder> createBillingViewRequest) Creates a billing view with the specified billing view attributes.default CreateBillingViewResponsecreateBillingView(CreateBillingViewRequest createBillingViewRequest) Creates a billing view with the specified billing view attributes.createContractualInvestmentAttestation(Consumer<CreateContractualInvestmentAttestationRequest.Builder> createContractualInvestmentAttestationRequest) Creates an attestation that claims an investment award for a completed milestone or outcome within a private pricing contract.createContractualInvestmentAttestation(CreateContractualInvestmentAttestationRequest createContractualInvestmentAttestationRequest) Creates an attestation that claims an investment award for a completed milestone or outcome within a private pricing contract.default DeleteBillingViewResponsedeleteBillingView(Consumer<DeleteBillingViewRequest.Builder> deleteBillingViewRequest) Deletes the specified billing view.default DeleteBillingViewResponsedeleteBillingView(DeleteBillingViewRequest deleteBillingViewRequest) Deletes the specified billing view.default DisassociateContractResponsedisassociateContract(Consumer<DisassociateContractRequest.Builder> disassociateContractRequest) Removes the association between a private pricing contract and your Amazon Web Services account.default DisassociateContractResponsedisassociateContract(DisassociateContractRequest disassociateContractRequest) Removes the association between a private pricing contract and your Amazon Web Services account.default DisassociateSourceViewsResponsedisassociateSourceViews(Consumer<DisassociateSourceViewsRequest.Builder> disassociateSourceViewsRequest) Removes the association between one or more source billing views and an existing billing view.default DisassociateSourceViewsResponsedisassociateSourceViews(DisassociateSourceViewsRequest disassociateSourceViewsRequest) Removes the association between one or more source billing views and an existing billing view.default GetBillingPreferencesResponsegetBillingPreferences(Consumer<GetBillingPreferencesRequest.Builder> getBillingPreferencesRequest) Retrieves billing preferences for the specified feature.default GetBillingPreferencesResponsegetBillingPreferences(GetBillingPreferencesRequest getBillingPreferencesRequest) Retrieves billing preferences for the specified feature.default GetBillingViewResponsegetBillingView(Consumer<GetBillingViewRequest.Builder> getBillingViewRequest) Returns the metadata associated to the specified billing view ARN.default GetBillingViewResponsegetBillingView(GetBillingViewRequest getBillingViewRequest) Returns the metadata associated to the specified billing view ARN.default GetContractInformationResponsegetContractInformation(Consumer<GetContractInformationRequest.Builder> getContractInformationRequest) Returns information about a specific private pricing contract, including its term (duration), eligible payer accounts, investment accounts, and legal entities.default GetContractInformationResponsegetContractInformation(GetContractInformationRequest getContractInformationRequest) Returns information about a specific private pricing contract, including its term (duration), eligible payer accounts, investment accounts, and legal entities.getCreditAllocationHistory(Consumer<GetCreditAllocationHistoryRequest.Builder> getCreditAllocationHistoryRequest) Returns the per-billing-month allocation history for credits applied to an Amazon Web Services account's bills.getCreditAllocationHistory(GetCreditAllocationHistoryRequest getCreditAllocationHistoryRequest) Returns the per-billing-month allocation history for credits applied to an Amazon Web Services account's bills.getCreditAllocationHistoryPaginator(Consumer<GetCreditAllocationHistoryRequest.Builder> getCreditAllocationHistoryRequest) This is a variant ofgetCreditAllocationHistory(software.amazon.awssdk.services.billing.model.GetCreditAllocationHistoryRequest)operation.getCreditAllocationHistoryPaginator(GetCreditAllocationHistoryRequest getCreditAllocationHistoryRequest) This is a variant ofgetCreditAllocationHistory(software.amazon.awssdk.services.billing.model.GetCreditAllocationHistoryRequest)operation.default GetCreditsResponsegetCredits(Consumer<GetCreditsRequest.Builder> getCreditsRequest) Returns the list of Amazon Web Services account credits for the specified account.default GetCreditsResponsegetCredits(GetCreditsRequest getCreditsRequest) Returns the list of Amazon Web Services account credits for the specified account.getEnterpriseSupportChargeSummary(Consumer<GetEnterpriseSupportChargeSummaryRequest.Builder> getEnterpriseSupportChargeSummaryRequest) Returns a summary of Enterprise Support data aggregated across all accounts in the Enterprise Support profile.getEnterpriseSupportChargeSummary(GetEnterpriseSupportChargeSummaryRequest getEnterpriseSupportChargeSummaryRequest) Returns a summary of Enterprise Support data aggregated across all accounts in the Enterprise Support profile.getEnterpriseSupportContractDetails(Consumer<GetEnterpriseSupportContractDetailsRequest.Builder> getEnterpriseSupportContractDetailsRequest) Returns Enterprise Support contract details.getEnterpriseSupportContractDetails(GetEnterpriseSupportContractDetailsRequest getEnterpriseSupportContractDetailsRequest) Returns Enterprise Support contract details.default GetResourcePolicyResponsegetResourcePolicy(Consumer<GetResourcePolicyRequest.Builder> getResourcePolicyRequest) Returns the resource-based policy document attached to the resource inJSONformat.default GetResourcePolicyResponsegetResourcePolicy(GetResourcePolicyRequest getResourcePolicyRequest) Returns the resource-based policy document attached to the resource inJSONformat.default ListBillingViewsResponselistBillingViews(Consumer<ListBillingViewsRequest.Builder> listBillingViewsRequest) Lists the billing views available for a given time period.default ListBillingViewsResponselistBillingViews(ListBillingViewsRequest listBillingViewsRequest) Lists the billing views available for a given time period.default ListBillingViewSegmentsResponselistBillingViewSegments(Consumer<ListBillingViewSegmentsRequest.Builder> listBillingViewSegmentsRequest) Lists the segments of a billing view over a given time period.default ListBillingViewSegmentsResponselistBillingViewSegments(ListBillingViewSegmentsRequest listBillingViewSegmentsRequest) Lists the segments of a billing view over a given time period.default ListBillingViewSegmentsIterablelistBillingViewSegmentsPaginator(Consumer<ListBillingViewSegmentsRequest.Builder> listBillingViewSegmentsRequest) This is a variant oflistBillingViewSegments(software.amazon.awssdk.services.billing.model.ListBillingViewSegmentsRequest)operation.default ListBillingViewSegmentsIterablelistBillingViewSegmentsPaginator(ListBillingViewSegmentsRequest listBillingViewSegmentsRequest) This is a variant oflistBillingViewSegments(software.amazon.awssdk.services.billing.model.ListBillingViewSegmentsRequest)operation.default ListBillingViewsIterablelistBillingViewsPaginator(Consumer<ListBillingViewsRequest.Builder> listBillingViewsRequest) This is a variant oflistBillingViews(software.amazon.awssdk.services.billing.model.ListBillingViewsRequest)operation.default ListBillingViewsIterablelistBillingViewsPaginator(ListBillingViewsRequest listBillingViewsRequest) This is a variant oflistBillingViews(software.amazon.awssdk.services.billing.model.ListBillingViewsRequest)operation.listBusinessSupportAccountCharges(Consumer<ListBusinessSupportAccountChargesRequest.Builder> listBusinessSupportAccountChargesRequest) Returns Business Support charges broken down at the linked account level for a given billing month.listBusinessSupportAccountCharges(ListBusinessSupportAccountChargesRequest listBusinessSupportAccountChargesRequest) Returns Business Support charges broken down at the linked account level for a given billing month.listBusinessSupportAccountChargesPaginator(Consumer<ListBusinessSupportAccountChargesRequest.Builder> listBusinessSupportAccountChargesRequest) This is a variant oflistBusinessSupportAccountCharges(software.amazon.awssdk.services.billing.model.ListBusinessSupportAccountChargesRequest)operation.listBusinessSupportAccountChargesPaginator(ListBusinessSupportAccountChargesRequest listBusinessSupportAccountChargesRequest) This is a variant oflistBusinessSupportAccountCharges(software.amazon.awssdk.services.billing.model.ListBusinessSupportAccountChargesRequest)operation.listBusinessSupportSubscriptionHistory(Consumer<ListBusinessSupportSubscriptionHistoryRequest.Builder> listBusinessSupportSubscriptionHistoryRequest) Returns the history of Business Support subscription contracts across accounts.listBusinessSupportSubscriptionHistory(ListBusinessSupportSubscriptionHistoryRequest listBusinessSupportSubscriptionHistoryRequest) Returns the history of Business Support subscription contracts across accounts.listBusinessSupportSubscriptionHistoryPaginator(Consumer<ListBusinessSupportSubscriptionHistoryRequest.Builder> listBusinessSupportSubscriptionHistoryRequest) listBusinessSupportSubscriptionHistoryPaginator(ListBusinessSupportSubscriptionHistoryRequest listBusinessSupportSubscriptionHistoryRequest) default ListContractsResponselistContracts(Consumer<ListContractsRequest.Builder> listContractsRequest) Lists the private pricing contracts that your Amazon Web Services account is an eligible payer account of.default ListContractsResponselistContracts(ListContractsRequest listContractsRequest) Lists the private pricing contracts that your Amazon Web Services account is an eligible payer account of.default ListContractsIterablelistContractsPaginator(Consumer<ListContractsRequest.Builder> listContractsRequest) This is a variant oflistContracts(software.amazon.awssdk.services.billing.model.ListContractsRequest)operation.default ListContractsIterablelistContractsPaginator(ListContractsRequest listContractsRequest) This is a variant oflistContracts(software.amazon.awssdk.services.billing.model.ListContractsRequest)operation.listContractualInvestmentAttestations(Consumer<ListContractualInvestmentAttestationsRequest.Builder> listContractualInvestmentAttestationsRequest) Lists the investment attestations submitted under a specific private pricing contract.listContractualInvestmentAttestations(ListContractualInvestmentAttestationsRequest listContractualInvestmentAttestationsRequest) Lists the investment attestations submitted under a specific private pricing contract.listContractualInvestmentAttestationsPaginator(Consumer<ListContractualInvestmentAttestationsRequest.Builder> listContractualInvestmentAttestationsRequest) listContractualInvestmentAttestationsPaginator(ListContractualInvestmentAttestationsRequest listContractualInvestmentAttestationsRequest) listContractualInvestments(Consumer<ListContractualInvestmentsRequest.Builder> listContractualInvestmentsRequest) Lists the investments within a specific investment summary.listContractualInvestments(ListContractualInvestmentsRequest listContractualInvestmentsRequest) Lists the investments within a specific investment summary.listContractualInvestmentsPaginator(Consumer<ListContractualInvestmentsRequest.Builder> listContractualInvestmentsRequest) This is a variant oflistContractualInvestments(software.amazon.awssdk.services.billing.model.ListContractualInvestmentsRequest)operation.listContractualInvestmentsPaginator(ListContractualInvestmentsRequest listContractualInvestmentsRequest) This is a variant oflistContractualInvestments(software.amazon.awssdk.services.billing.model.ListContractualInvestmentsRequest)operation.listContractualInvestmentSummaries(Consumer<ListContractualInvestmentSummariesRequest.Builder> listContractualInvestmentSummariesRequest) Lists the investment summaries within a specific private pricing contract.listContractualInvestmentSummaries(ListContractualInvestmentSummariesRequest listContractualInvestmentSummariesRequest) Lists the investment summaries within a specific private pricing contract.listContractualInvestmentSummariesPaginator(Consumer<ListContractualInvestmentSummariesRequest.Builder> listContractualInvestmentSummariesRequest) This is a variant oflistContractualInvestmentSummaries(software.amazon.awssdk.services.billing.model.ListContractualInvestmentSummariesRequest)operation.listContractualInvestmentSummariesPaginator(ListContractualInvestmentSummariesRequest listContractualInvestmentSummariesRequest) This is a variant oflistContractualInvestmentSummaries(software.amazon.awssdk.services.billing.model.ListContractualInvestmentSummariesRequest)operation.listEnterpriseSupportLinkedAccountCharges(Consumer<ListEnterpriseSupportLinkedAccountChargesRequest.Builder> listEnterpriseSupportLinkedAccountChargesRequest) Returns Support-eligible spend broken down at linked account level.listEnterpriseSupportLinkedAccountCharges(ListEnterpriseSupportLinkedAccountChargesRequest listEnterpriseSupportLinkedAccountChargesRequest) Returns Support-eligible spend broken down at linked account level.listEnterpriseSupportLinkedAccountChargesPaginator(Consumer<ListEnterpriseSupportLinkedAccountChargesRequest.Builder> listEnterpriseSupportLinkedAccountChargesRequest) listEnterpriseSupportLinkedAccountChargesPaginator(ListEnterpriseSupportLinkedAccountChargesRequest listEnterpriseSupportLinkedAccountChargesRequest) 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 ListTagsForResourceResponselistTagsForResource(Consumer<ListTagsForResourceRequest.Builder> listTagsForResourceRequest) Lists tags associated with the billing view resource.default ListTagsForResourceResponselistTagsForResource(ListTagsForResourceRequest listTagsForResourceRequest) Lists tags associated with the billing view resource.default RedeemCreditsResponseredeemCredits(Consumer<RedeemCreditsRequest.Builder> redeemCreditsRequest) Redeems an Amazon Web Services promotional credit code on behalf of the calling account.default RedeemCreditsResponseredeemCredits(RedeemCreditsRequest redeemCreditsRequest) Redeems an Amazon Web Services promotional credit code on behalf of the calling account.The SDK service client configuration exposes client settings to the user, e.g., ClientOverrideConfigurationstatic ServiceMetadatadefault TagResourceResponsetagResource(Consumer<TagResourceRequest.Builder> tagResourceRequest) An API operation for adding one or more tags (key-value pairs) to a resource.default TagResourceResponsetagResource(TagResourceRequest tagResourceRequest) An API operation for adding one or more tags (key-value pairs) to a resource.default UntagResourceResponseuntagResource(Consumer<UntagResourceRequest.Builder> untagResourceRequest) Removes one or more tags from a resource.default UntagResourceResponseuntagResource(UntagResourceRequest untagResourceRequest) Removes one or more tags from a resource.default UpdateBillingPreferencesResponseupdateBillingPreferences(Consumer<UpdateBillingPreferencesRequest.Builder> updateBillingPreferencesRequest) Updates billing preferences for the specified feature.default UpdateBillingPreferencesResponseupdateBillingPreferences(UpdateBillingPreferencesRequest updateBillingPreferencesRequest) Updates billing preferences for the specified feature.default UpdateBillingViewResponseupdateBillingView(Consumer<UpdateBillingViewRequest.Builder> updateBillingViewRequest) An API to update the attributes of the billing view.default UpdateBillingViewResponseupdateBillingView(UpdateBillingViewRequest updateBillingViewRequest) An API to update the attributes of the billing view.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
-
associateContract
default AssociateContractResponse associateContract(AssociateContractRequest associateContractRequest) throws ThrottlingException, ResourceNotFoundException, AccessDeniedException, ConflictException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, BillingException Private Pricing contracts let eligible payer accounts manage private pricing agreements with Amazon Web Services. This operation associates a private pricing contract with the caller's Amazon Web Services account. The caller must be a payer (management) account listed on the contract. This operation is idempotent, so retrying a request that already succeeded is safe.
- Parameters:
associateContractRequest-- Returns:
- Result of the AssociateContract operation returned by the service.
- See Also:
-
associateContract
default AssociateContractResponse associateContract(Consumer<AssociateContractRequest.Builder> associateContractRequest) throws ThrottlingException, ResourceNotFoundException, AccessDeniedException, ConflictException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, BillingException Private Pricing contracts let eligible payer accounts manage private pricing agreements with Amazon Web Services. This operation associates a private pricing contract with the caller's Amazon Web Services account. The caller must be a payer (management) account listed on the contract. This operation is idempotent, so retrying a request that already succeeded is safe.
This is a convenience which creates an instance of the
AssociateContractRequest.Builderavoiding the need to create one manually viaAssociateContractRequest.builder()- Parameters:
associateContractRequest- AConsumerthat will call methods onAssociateContractRequest.Builderto create a request.- Returns:
- Result of the AssociateContract operation returned by the service.
- See Also:
-
associateSourceViews
default AssociateSourceViewsResponse associateSourceViews(AssociateSourceViewsRequest associateSourceViewsRequest) throws BillingViewHealthStatusException, ServiceQuotaExceededException, ThrottlingException, ResourceNotFoundException, AccessDeniedException, ConflictException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, BillingException Associates one or more source billing views with an existing billing view. This allows creating aggregate billing views that combine data from multiple sources.
- Parameters:
associateSourceViewsRequest-- Returns:
- Result of the AssociateSourceViews operation returned by the service.
- See Also:
-
associateSourceViews
default AssociateSourceViewsResponse associateSourceViews(Consumer<AssociateSourceViewsRequest.Builder> associateSourceViewsRequest) throws BillingViewHealthStatusException, ServiceQuotaExceededException, ThrottlingException, ResourceNotFoundException, AccessDeniedException, ConflictException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, BillingException Associates one or more source billing views with an existing billing view. This allows creating aggregate billing views that combine data from multiple sources.
This is a convenience which creates an instance of the
AssociateSourceViewsRequest.Builderavoiding the need to create one manually viaAssociateSourceViewsRequest.builder()- Parameters:
associateSourceViewsRequest- AConsumerthat will call methods onAssociateSourceViewsRequest.Builderto create a request.- Returns:
- Result of the AssociateSourceViews operation returned by the service.
- See Also:
-
cancelContractualInvestmentAttestation
default CancelContractualInvestmentAttestationResponse cancelContractualInvestmentAttestation(CancelContractualInvestmentAttestationRequest cancelContractualInvestmentAttestationRequest) throws ThrottlingException, ResourceNotFoundException, AccessDeniedException, ConflictException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, BillingException Cancels a contractual investment attestation. This operation is idempotent, so retrying is safe. You can cancel an attestation only while it is still pending (its
isCancellablevalue istrue).- Parameters:
cancelContractualInvestmentAttestationRequest-- Returns:
- Result of the CancelContractualInvestmentAttestation operation returned by the service.
- See Also:
-
cancelContractualInvestmentAttestation
default CancelContractualInvestmentAttestationResponse cancelContractualInvestmentAttestation(Consumer<CancelContractualInvestmentAttestationRequest.Builder> cancelContractualInvestmentAttestationRequest) throws ThrottlingException, ResourceNotFoundException, AccessDeniedException, ConflictException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, BillingException Cancels a contractual investment attestation. This operation is idempotent, so retrying is safe. You can cancel an attestation only while it is still pending (its
isCancellablevalue istrue).
This is a convenience which creates an instance of the
CancelContractualInvestmentAttestationRequest.Builderavoiding the need to create one manually viaCancelContractualInvestmentAttestationRequest.builder()- Parameters:
cancelContractualInvestmentAttestationRequest- AConsumerthat will call methods onCancelContractualInvestmentAttestationRequest.Builderto create a request.- Returns:
- Result of the CancelContractualInvestmentAttestation operation returned by the service.
- See Also:
-
createBillingView
default CreateBillingViewResponse createBillingView(CreateBillingViewRequest createBillingViewRequest) throws BillingViewHealthStatusException, ServiceQuotaExceededException, ThrottlingException, ResourceNotFoundException, 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 BillingViewHealthStatusException, ServiceQuotaExceededException, ThrottlingException, ResourceNotFoundException, 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.Builderavoiding the need to create one manually viaCreateBillingViewRequest.builder()- Parameters:
createBillingViewRequest- AConsumerthat will call methods onCreateBillingViewRequest.Builderto create a request.- Returns:
- Result of the CreateBillingView operation returned by the service.
- See Also:
-
createContractualInvestmentAttestation
default CreateContractualInvestmentAttestationResponse createContractualInvestmentAttestation(CreateContractualInvestmentAttestationRequest createContractualInvestmentAttestationRequest) throws ThrottlingException, ResourceNotFoundException, AccessDeniedException, ConflictException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, BillingException Creates an attestation that claims an investment award for a completed milestone or outcome within a private pricing contract. Supply a
clientTokento make the request idempotent so a safe retry does not create a duplicate attestation. This operation starts an asynchronous review and returns anattestationIdwhile the attestation is pending.- Parameters:
createContractualInvestmentAttestationRequest-- Returns:
- Result of the CreateContractualInvestmentAttestation operation returned by the service.
- See Also:
-
createContractualInvestmentAttestation
default CreateContractualInvestmentAttestationResponse createContractualInvestmentAttestation(Consumer<CreateContractualInvestmentAttestationRequest.Builder> createContractualInvestmentAttestationRequest) throws ThrottlingException, ResourceNotFoundException, AccessDeniedException, ConflictException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, BillingException Creates an attestation that claims an investment award for a completed milestone or outcome within a private pricing contract. Supply a
clientTokento make the request idempotent so a safe retry does not create a duplicate attestation. This operation starts an asynchronous review and returns anattestationIdwhile the attestation is pending.
This is a convenience which creates an instance of the
CreateContractualInvestmentAttestationRequest.Builderavoiding the need to create one manually viaCreateContractualInvestmentAttestationRequest.builder()- Parameters:
createContractualInvestmentAttestationRequest- AConsumerthat will call methods onCreateContractualInvestmentAttestationRequest.Builderto create a request.- Returns:
- Result of the CreateContractualInvestmentAttestation 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.Builderavoiding the need to create one manually viaDeleteBillingViewRequest.builder()- Parameters:
deleteBillingViewRequest- AConsumerthat will call methods onDeleteBillingViewRequest.Builderto create a request.- Returns:
- Result of the DeleteBillingView operation returned by the service.
- See Also:
-
disassociateContract
default DisassociateContractResponse disassociateContract(DisassociateContractRequest disassociateContractRequest) throws ThrottlingException, ResourceNotFoundException, AccessDeniedException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, BillingException Removes the association between a private pricing contract and your Amazon Web Services account. The account must have been associated with the contract previously. This operation is idempotent, so retrying is safe.
- Parameters:
disassociateContractRequest-- Returns:
- Result of the DisassociateContract operation returned by the service.
- See Also:
-
disassociateContract
default DisassociateContractResponse disassociateContract(Consumer<DisassociateContractRequest.Builder> disassociateContractRequest) throws ThrottlingException, ResourceNotFoundException, AccessDeniedException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, BillingException Removes the association between a private pricing contract and your Amazon Web Services account. The account must have been associated with the contract previously. This operation is idempotent, so retrying is safe.
This is a convenience which creates an instance of the
DisassociateContractRequest.Builderavoiding the need to create one manually viaDisassociateContractRequest.builder()- Parameters:
disassociateContractRequest- AConsumerthat will call methods onDisassociateContractRequest.Builderto create a request.- Returns:
- Result of the DisassociateContract operation returned by the service.
- See Also:
-
disassociateSourceViews
default DisassociateSourceViewsResponse disassociateSourceViews(DisassociateSourceViewsRequest disassociateSourceViewsRequest) throws BillingViewHealthStatusException, ThrottlingException, ResourceNotFoundException, AccessDeniedException, ConflictException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, BillingException Removes the association between one or more source billing views and an existing billing view. This allows modifying the composition of aggregate billing views.
- Parameters:
disassociateSourceViewsRequest-- Returns:
- Result of the DisassociateSourceViews operation returned by the service.
- See Also:
-
disassociateSourceViews
default DisassociateSourceViewsResponse disassociateSourceViews(Consumer<DisassociateSourceViewsRequest.Builder> disassociateSourceViewsRequest) throws BillingViewHealthStatusException, ThrottlingException, ResourceNotFoundException, AccessDeniedException, ConflictException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, BillingException Removes the association between one or more source billing views and an existing billing view. This allows modifying the composition of aggregate billing views.
This is a convenience which creates an instance of the
DisassociateSourceViewsRequest.Builderavoiding the need to create one manually viaDisassociateSourceViewsRequest.builder()- Parameters:
disassociateSourceViewsRequest- AConsumerthat will call methods onDisassociateSourceViewsRequest.Builderto create a request.- Returns:
- Result of the DisassociateSourceViews operation returned by the service.
- See Also:
-
getBillingPreferences
default GetBillingPreferencesResponse getBillingPreferences(GetBillingPreferencesRequest getBillingPreferencesRequest) throws ThrottlingException, AccessDeniedException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, BillingException Retrieves billing preferences for the specified feature. Each feature controls a distinct billing capability: which accounts can share Reserved Instances or credits, whether billing alerts are enabled, the historical record of sharing changes, and per-credit options.
- Parameters:
getBillingPreferencesRequest-- Returns:
- Result of the GetBillingPreferences operation returned by the service.
- See Also:
-
getBillingPreferences
default GetBillingPreferencesResponse getBillingPreferences(Consumer<GetBillingPreferencesRequest.Builder> getBillingPreferencesRequest) throws ThrottlingException, AccessDeniedException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, BillingException Retrieves billing preferences for the specified feature. Each feature controls a distinct billing capability: which accounts can share Reserved Instances or credits, whether billing alerts are enabled, the historical record of sharing changes, and per-credit options.
This is a convenience which creates an instance of the
GetBillingPreferencesRequest.Builderavoiding the need to create one manually viaGetBillingPreferencesRequest.builder()- Parameters:
getBillingPreferencesRequest- AConsumerthat will call methods onGetBillingPreferencesRequest.Builderto create a request.- Returns:
- Result of the GetBillingPreferences 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.Builderavoiding the need to create one manually viaGetBillingViewRequest.builder()- Parameters:
getBillingViewRequest- AConsumerthat will call methods onGetBillingViewRequest.Builderto create a request.- Returns:
- Result of the GetBillingView operation returned by the service.
- See Also:
-
getContractInformation
default GetContractInformationResponse getContractInformation(GetContractInformationRequest getContractInformationRequest) throws ThrottlingException, ResourceNotFoundException, AccessDeniedException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, BillingException Returns information about a specific private pricing contract, including its term (duration), eligible payer accounts, investment accounts, and legal entities. This operation is read-only.
- Parameters:
getContractInformationRequest-- Returns:
- Result of the GetContractInformation operation returned by the service.
- See Also:
-
getContractInformation
default GetContractInformationResponse getContractInformation(Consumer<GetContractInformationRequest.Builder> getContractInformationRequest) throws ThrottlingException, ResourceNotFoundException, AccessDeniedException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, BillingException Returns information about a specific private pricing contract, including its term (duration), eligible payer accounts, investment accounts, and legal entities. This operation is read-only.
This is a convenience which creates an instance of the
GetContractInformationRequest.Builderavoiding the need to create one manually viaGetContractInformationRequest.builder()- Parameters:
getContractInformationRequest- AConsumerthat will call methods onGetContractInformationRequest.Builderto create a request.- Returns:
- Result of the GetContractInformation operation returned by the service.
- See Also:
-
getCreditAllocationHistory
default GetCreditAllocationHistoryResponse getCreditAllocationHistory(GetCreditAllocationHistoryRequest getCreditAllocationHistoryRequest) throws ThrottlingException, AccessDeniedException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, BillingException Returns the per-billing-month allocation history for credits applied to an Amazon Web Services account's bills. Traverses the consolidated billing family to capture cross-account credit applications. Supports pagination and optional filtering to a single credit.
- Parameters:
getCreditAllocationHistoryRequest-- Returns:
- Result of the GetCreditAllocationHistory operation returned by the service.
- See Also:
-
getCreditAllocationHistory
default GetCreditAllocationHistoryResponse getCreditAllocationHistory(Consumer<GetCreditAllocationHistoryRequest.Builder> getCreditAllocationHistoryRequest) throws ThrottlingException, AccessDeniedException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, BillingException Returns the per-billing-month allocation history for credits applied to an Amazon Web Services account's bills. Traverses the consolidated billing family to capture cross-account credit applications. Supports pagination and optional filtering to a single credit.
This is a convenience which creates an instance of the
GetCreditAllocationHistoryRequest.Builderavoiding the need to create one manually viaGetCreditAllocationHistoryRequest.builder()- Parameters:
getCreditAllocationHistoryRequest- AConsumerthat will call methods onGetCreditAllocationHistoryRequest.Builderto create a request.- Returns:
- Result of the GetCreditAllocationHistory operation returned by the service.
- See Also:
-
getCreditAllocationHistoryPaginator
default GetCreditAllocationHistoryIterable getCreditAllocationHistoryPaginator(GetCreditAllocationHistoryRequest getCreditAllocationHistoryRequest) throws ThrottlingException, AccessDeniedException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, BillingException This is a variant of
getCreditAllocationHistory(software.amazon.awssdk.services.billing.model.GetCreditAllocationHistoryRequest)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.billing.paginators.GetCreditAllocationHistoryIterable responses = client.getCreditAllocationHistoryPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.billing.paginators.GetCreditAllocationHistoryIterable responses = client .getCreditAllocationHistoryPaginator(request); for (software.amazon.awssdk.services.billing.model.GetCreditAllocationHistoryResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.billing.paginators.GetCreditAllocationHistoryIterable responses = client.getCreditAllocationHistoryPaginator(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
getCreditAllocationHistory(software.amazon.awssdk.services.billing.model.GetCreditAllocationHistoryRequest)operation.- Parameters:
getCreditAllocationHistoryRequest-- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
getCreditAllocationHistoryPaginator
default GetCreditAllocationHistoryIterable getCreditAllocationHistoryPaginator(Consumer<GetCreditAllocationHistoryRequest.Builder> getCreditAllocationHistoryRequest) throws ThrottlingException, AccessDeniedException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, BillingException This is a variant of
getCreditAllocationHistory(software.amazon.awssdk.services.billing.model.GetCreditAllocationHistoryRequest)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.billing.paginators.GetCreditAllocationHistoryIterable responses = client.getCreditAllocationHistoryPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.billing.paginators.GetCreditAllocationHistoryIterable responses = client .getCreditAllocationHistoryPaginator(request); for (software.amazon.awssdk.services.billing.model.GetCreditAllocationHistoryResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.billing.paginators.GetCreditAllocationHistoryIterable responses = client.getCreditAllocationHistoryPaginator(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
getCreditAllocationHistory(software.amazon.awssdk.services.billing.model.GetCreditAllocationHistoryRequest)operation.
This is a convenience which creates an instance of the
GetCreditAllocationHistoryRequest.Builderavoiding the need to create one manually viaGetCreditAllocationHistoryRequest.builder()- Parameters:
getCreditAllocationHistoryRequest- AConsumerthat will call methods onGetCreditAllocationHistoryRequest.Builderto create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
getCredits
default GetCreditsResponse getCredits(GetCreditsRequest getCreditsRequest) throws ThrottlingException, AccessDeniedException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, BillingException Returns the list of Amazon Web Services account credits for the specified account. Each credit includes its identifier, type, monetary amounts, applicable products, expiration, sharing configuration, and current enabled status.
When the caller is the management account of a consolidated billing family and
payerAccountFlagistrue, the response aggregates credits across the entire family. Otherwise, the response includes only credits owned by the account specified inaccountId.- Parameters:
getCreditsRequest-- Returns:
- Result of the GetCredits operation returned by the service.
- See Also:
-
getCredits
default GetCreditsResponse getCredits(Consumer<GetCreditsRequest.Builder> getCreditsRequest) throws ThrottlingException, AccessDeniedException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, BillingException Returns the list of Amazon Web Services account credits for the specified account. Each credit includes its identifier, type, monetary amounts, applicable products, expiration, sharing configuration, and current enabled status.
When the caller is the management account of a consolidated billing family and
payerAccountFlagistrue, the response aggregates credits across the entire family. Otherwise, the response includes only credits owned by the account specified inaccountId.
This is a convenience which creates an instance of the
GetCreditsRequest.Builderavoiding the need to create one manually viaGetCreditsRequest.builder()- Parameters:
getCreditsRequest- AConsumerthat will call methods onGetCreditsRequest.Builderto create a request.- Returns:
- Result of the GetCredits operation returned by the service.
- See Also:
-
getEnterpriseSupportChargeSummary
default GetEnterpriseSupportChargeSummaryResponse getEnterpriseSupportChargeSummary(GetEnterpriseSupportChargeSummaryRequest getEnterpriseSupportChargeSummaryRequest) throws ThrottlingException, ResourceNotFoundException, AccessDeniedException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, BillingException Returns a summary of Enterprise Support data aggregated across all accounts in the Enterprise Support profile.
- Parameters:
getEnterpriseSupportChargeSummaryRequest- The request structure for GetEnterpriseSupportChargeSummary.- Returns:
- Result of the GetEnterpriseSupportChargeSummary operation returned by the service.
- See Also:
-
getEnterpriseSupportChargeSummary
default GetEnterpriseSupportChargeSummaryResponse getEnterpriseSupportChargeSummary(Consumer<GetEnterpriseSupportChargeSummaryRequest.Builder> getEnterpriseSupportChargeSummaryRequest) throws ThrottlingException, ResourceNotFoundException, AccessDeniedException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, BillingException Returns a summary of Enterprise Support data aggregated across all accounts in the Enterprise Support profile.
This is a convenience which creates an instance of the
GetEnterpriseSupportChargeSummaryRequest.Builderavoiding the need to create one manually viaGetEnterpriseSupportChargeSummaryRequest.builder()- Parameters:
getEnterpriseSupportChargeSummaryRequest- AConsumerthat will call methods onGetEnterpriseSupportChargeSummaryRequest.Builderto create a request. The request structure for GetEnterpriseSupportChargeSummary.- Returns:
- Result of the GetEnterpriseSupportChargeSummary operation returned by the service.
- See Also:
-
getEnterpriseSupportContractDetails
default GetEnterpriseSupportContractDetailsResponse getEnterpriseSupportContractDetails(GetEnterpriseSupportContractDetailsRequest getEnterpriseSupportContractDetailsRequest) throws ThrottlingException, ResourceNotFoundException, AccessDeniedException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, BillingException Returns Enterprise Support contract details.
- Parameters:
getEnterpriseSupportContractDetailsRequest- The request structure for GetEnterpriseSupportContractDetails.- Returns:
- Result of the GetEnterpriseSupportContractDetails operation returned by the service.
- See Also:
-
getEnterpriseSupportContractDetails
default GetEnterpriseSupportContractDetailsResponse getEnterpriseSupportContractDetails(Consumer<GetEnterpriseSupportContractDetailsRequest.Builder> getEnterpriseSupportContractDetailsRequest) throws ThrottlingException, ResourceNotFoundException, AccessDeniedException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, BillingException Returns Enterprise Support contract details.
This is a convenience which creates an instance of the
GetEnterpriseSupportContractDetailsRequest.Builderavoiding the need to create one manually viaGetEnterpriseSupportContractDetailsRequest.builder()- Parameters:
getEnterpriseSupportContractDetailsRequest- AConsumerthat will call methods onGetEnterpriseSupportContractDetailsRequest.Builderto create a request. The request structure for GetEnterpriseSupportContractDetails.- Returns:
- Result of the GetEnterpriseSupportContractDetails 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
JSONformat.- 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
JSONformat.
This is a convenience which creates an instance of the
GetResourcePolicyRequest.Builderavoiding the need to create one manually viaGetResourcePolicyRequest.builder()- Parameters:
getResourcePolicyRequest- AConsumerthat will call methods onGetResourcePolicyRequest.Builderto create a request.- Returns:
- Result of the GetResourcePolicy operation returned by the service.
- See Also:
-
listBillingViewSegments
default ListBillingViewSegmentsResponse listBillingViewSegments(ListBillingViewSegmentsRequest listBillingViewSegmentsRequest) throws BillingViewHealthStatusException, ThrottlingException, ResourceNotFoundException, AccessDeniedException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, BillingException Lists the segments of a billing view over a given time period. Each segment identifies the billing domain (
PRO_FORMAorBILLABLE) and the account relationships that apply during its time range.If you don't provide an
arn, the response includes segments for the caller'sPRIMARYbilling view.If a mid-period change occurs, the response includes multiple segments, each with its own time range. The response omits hidden segments, so the segments it returns might not cover the entire requested time period.
- Parameters:
listBillingViewSegmentsRequest-- Returns:
- Result of the ListBillingViewSegments operation returned by the service.
- See Also:
-
listBillingViewSegments
default ListBillingViewSegmentsResponse listBillingViewSegments(Consumer<ListBillingViewSegmentsRequest.Builder> listBillingViewSegmentsRequest) throws BillingViewHealthStatusException, ThrottlingException, ResourceNotFoundException, AccessDeniedException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, BillingException Lists the segments of a billing view over a given time period. Each segment identifies the billing domain (
PRO_FORMAorBILLABLE) and the account relationships that apply during its time range.If you don't provide an
arn, the response includes segments for the caller'sPRIMARYbilling view.If a mid-period change occurs, the response includes multiple segments, each with its own time range. The response omits hidden segments, so the segments it returns might not cover the entire requested time period.
This is a convenience which creates an instance of the
ListBillingViewSegmentsRequest.Builderavoiding the need to create one manually viaListBillingViewSegmentsRequest.builder()- Parameters:
listBillingViewSegmentsRequest- AConsumerthat will call methods onListBillingViewSegmentsRequest.Builderto create a request.- Returns:
- Result of the ListBillingViewSegments operation returned by the service.
- See Also:
-
listBillingViewSegmentsPaginator
default ListBillingViewSegmentsIterable listBillingViewSegmentsPaginator(ListBillingViewSegmentsRequest listBillingViewSegmentsRequest) throws BillingViewHealthStatusException, ThrottlingException, ResourceNotFoundException, AccessDeniedException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, BillingException This is a variant of
listBillingViewSegments(software.amazon.awssdk.services.billing.model.ListBillingViewSegmentsRequest)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.billing.paginators.ListBillingViewSegmentsIterable responses = client.listBillingViewSegmentsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.billing.paginators.ListBillingViewSegmentsIterable responses = client .listBillingViewSegmentsPaginator(request); for (software.amazon.awssdk.services.billing.model.ListBillingViewSegmentsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.billing.paginators.ListBillingViewSegmentsIterable responses = client.listBillingViewSegmentsPaginator(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
listBillingViewSegments(software.amazon.awssdk.services.billing.model.ListBillingViewSegmentsRequest)operation.- Parameters:
listBillingViewSegmentsRequest-- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listBillingViewSegmentsPaginator
default ListBillingViewSegmentsIterable listBillingViewSegmentsPaginator(Consumer<ListBillingViewSegmentsRequest.Builder> listBillingViewSegmentsRequest) throws BillingViewHealthStatusException, ThrottlingException, ResourceNotFoundException, AccessDeniedException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, BillingException This is a variant of
listBillingViewSegments(software.amazon.awssdk.services.billing.model.ListBillingViewSegmentsRequest)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.billing.paginators.ListBillingViewSegmentsIterable responses = client.listBillingViewSegmentsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.billing.paginators.ListBillingViewSegmentsIterable responses = client .listBillingViewSegmentsPaginator(request); for (software.amazon.awssdk.services.billing.model.ListBillingViewSegmentsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.billing.paginators.ListBillingViewSegmentsIterable responses = client.listBillingViewSegmentsPaginator(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
listBillingViewSegments(software.amazon.awssdk.services.billing.model.ListBillingViewSegmentsRequest)operation.
This is a convenience which creates an instance of the
ListBillingViewSegmentsRequest.Builderavoiding the need to create one manually viaListBillingViewSegmentsRequest.builder()- Parameters:
listBillingViewSegmentsRequest- AConsumerthat will call methods onListBillingViewSegmentsRequest.Builderto create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- 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
PRIMARYbilling view that represents the billing data available by default. Accounts that use Billing Conductor also haveBILLING_GROUPbilling 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
PRIMARYbilling view that represents the billing data available by default. Accounts that use Billing Conductor also haveBILLING_GROUPbilling views representing pro forma costs associated with each created billing group.
This is a convenience which creates an instance of the
ListBillingViewsRequest.Builderavoiding the need to create one manually viaListBillingViewsRequest.builder()- Parameters:
listBillingViewsRequest- AConsumerthat will call methods onListBillingViewsRequest.Builderto 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 Stream
2) Using For loopsoftware.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 Stream
2) Using For loopsoftware.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.Builderavoiding the need to create one manually viaListBillingViewsRequest.builder()- Parameters:
listBillingViewsRequest- AConsumerthat will call methods onListBillingViewsRequest.Builderto create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listBusinessSupportAccountCharges
default ListBusinessSupportAccountChargesResponse listBusinessSupportAccountCharges(ListBusinessSupportAccountChargesRequest listBusinessSupportAccountChargesRequest) throws ThrottlingException, ResourceNotFoundException, AccessDeniedException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, BillingException Returns Business Support charges broken down at the linked account level for a given billing month.
- Parameters:
listBusinessSupportAccountChargesRequest- Contains the billing month and optional filters used to retrieve Business Support charges broken down by linked account.- Returns:
- Result of the ListBusinessSupportAccountCharges operation returned by the service.
- See Also:
-
listBusinessSupportAccountCharges
default ListBusinessSupportAccountChargesResponse listBusinessSupportAccountCharges(Consumer<ListBusinessSupportAccountChargesRequest.Builder> listBusinessSupportAccountChargesRequest) throws ThrottlingException, ResourceNotFoundException, AccessDeniedException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, BillingException Returns Business Support charges broken down at the linked account level for a given billing month.
This is a convenience which creates an instance of the
ListBusinessSupportAccountChargesRequest.Builderavoiding the need to create one manually viaListBusinessSupportAccountChargesRequest.builder()- Parameters:
listBusinessSupportAccountChargesRequest- AConsumerthat will call methods onListBusinessSupportAccountChargesRequest.Builderto create a request. Contains the billing month and optional filters used to retrieve Business Support charges broken down by linked account.- Returns:
- Result of the ListBusinessSupportAccountCharges operation returned by the service.
- See Also:
-
listBusinessSupportAccountChargesPaginator
default ListBusinessSupportAccountChargesIterable listBusinessSupportAccountChargesPaginator(ListBusinessSupportAccountChargesRequest listBusinessSupportAccountChargesRequest) throws ThrottlingException, ResourceNotFoundException, AccessDeniedException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, BillingException This is a variant of
listBusinessSupportAccountCharges(software.amazon.awssdk.services.billing.model.ListBusinessSupportAccountChargesRequest)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.billing.paginators.ListBusinessSupportAccountChargesIterable responses = client.listBusinessSupportAccountChargesPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.billing.paginators.ListBusinessSupportAccountChargesIterable responses = client .listBusinessSupportAccountChargesPaginator(request); for (software.amazon.awssdk.services.billing.model.ListBusinessSupportAccountChargesResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.billing.paginators.ListBusinessSupportAccountChargesIterable responses = client.listBusinessSupportAccountChargesPaginator(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
listBusinessSupportAccountCharges(software.amazon.awssdk.services.billing.model.ListBusinessSupportAccountChargesRequest)operation.- Parameters:
listBusinessSupportAccountChargesRequest- Contains the billing month and optional filters used to retrieve Business Support charges broken down by linked account.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listBusinessSupportAccountChargesPaginator
default ListBusinessSupportAccountChargesIterable listBusinessSupportAccountChargesPaginator(Consumer<ListBusinessSupportAccountChargesRequest.Builder> listBusinessSupportAccountChargesRequest) throws ThrottlingException, ResourceNotFoundException, AccessDeniedException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, BillingException This is a variant of
listBusinessSupportAccountCharges(software.amazon.awssdk.services.billing.model.ListBusinessSupportAccountChargesRequest)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.billing.paginators.ListBusinessSupportAccountChargesIterable responses = client.listBusinessSupportAccountChargesPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.billing.paginators.ListBusinessSupportAccountChargesIterable responses = client .listBusinessSupportAccountChargesPaginator(request); for (software.amazon.awssdk.services.billing.model.ListBusinessSupportAccountChargesResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.billing.paginators.ListBusinessSupportAccountChargesIterable responses = client.listBusinessSupportAccountChargesPaginator(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
listBusinessSupportAccountCharges(software.amazon.awssdk.services.billing.model.ListBusinessSupportAccountChargesRequest)operation.
This is a convenience which creates an instance of the
ListBusinessSupportAccountChargesRequest.Builderavoiding the need to create one manually viaListBusinessSupportAccountChargesRequest.builder()- Parameters:
listBusinessSupportAccountChargesRequest- AConsumerthat will call methods onListBusinessSupportAccountChargesRequest.Builderto create a request. Contains the billing month and optional filters used to retrieve Business Support charges broken down by linked account.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listBusinessSupportSubscriptionHistory
default ListBusinessSupportSubscriptionHistoryResponse listBusinessSupportSubscriptionHistory(ListBusinessSupportSubscriptionHistoryRequest listBusinessSupportSubscriptionHistoryRequest) throws ThrottlingException, ResourceNotFoundException, AccessDeniedException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, BillingException Returns the history of Business Support subscription contracts across accounts.
- Parameters:
listBusinessSupportSubscriptionHistoryRequest- Contains the optional filters used to retrieve the history of Business Support subscription contracts across accounts.- Returns:
- Result of the ListBusinessSupportSubscriptionHistory operation returned by the service.
- See Also:
-
listBusinessSupportSubscriptionHistory
default ListBusinessSupportSubscriptionHistoryResponse listBusinessSupportSubscriptionHistory(Consumer<ListBusinessSupportSubscriptionHistoryRequest.Builder> listBusinessSupportSubscriptionHistoryRequest) throws ThrottlingException, ResourceNotFoundException, AccessDeniedException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, BillingException Returns the history of Business Support subscription contracts across accounts.
This is a convenience which creates an instance of the
ListBusinessSupportSubscriptionHistoryRequest.Builderavoiding the need to create one manually viaListBusinessSupportSubscriptionHistoryRequest.builder()- Parameters:
listBusinessSupportSubscriptionHistoryRequest- AConsumerthat will call methods onListBusinessSupportSubscriptionHistoryRequest.Builderto create a request. Contains the optional filters used to retrieve the history of Business Support subscription contracts across accounts.- Returns:
- Result of the ListBusinessSupportSubscriptionHistory operation returned by the service.
- See Also:
-
listBusinessSupportSubscriptionHistoryPaginator
default ListBusinessSupportSubscriptionHistoryIterable listBusinessSupportSubscriptionHistoryPaginator(ListBusinessSupportSubscriptionHistoryRequest listBusinessSupportSubscriptionHistoryRequest) throws ThrottlingException, ResourceNotFoundException, AccessDeniedException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, BillingException This is a variant of
listBusinessSupportSubscriptionHistory(software.amazon.awssdk.services.billing.model.ListBusinessSupportSubscriptionHistoryRequest)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.billing.paginators.ListBusinessSupportSubscriptionHistoryIterable responses = client.listBusinessSupportSubscriptionHistoryPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.billing.paginators.ListBusinessSupportSubscriptionHistoryIterable responses = client .listBusinessSupportSubscriptionHistoryPaginator(request); for (software.amazon.awssdk.services.billing.model.ListBusinessSupportSubscriptionHistoryResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.billing.paginators.ListBusinessSupportSubscriptionHistoryIterable responses = client.listBusinessSupportSubscriptionHistoryPaginator(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
listBusinessSupportSubscriptionHistory(software.amazon.awssdk.services.billing.model.ListBusinessSupportSubscriptionHistoryRequest)operation.- Parameters:
listBusinessSupportSubscriptionHistoryRequest- Contains the optional filters used to retrieve the history of Business Support subscription contracts across accounts.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listBusinessSupportSubscriptionHistoryPaginator
default ListBusinessSupportSubscriptionHistoryIterable listBusinessSupportSubscriptionHistoryPaginator(Consumer<ListBusinessSupportSubscriptionHistoryRequest.Builder> listBusinessSupportSubscriptionHistoryRequest) throws ThrottlingException, ResourceNotFoundException, AccessDeniedException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, BillingException This is a variant of
listBusinessSupportSubscriptionHistory(software.amazon.awssdk.services.billing.model.ListBusinessSupportSubscriptionHistoryRequest)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.billing.paginators.ListBusinessSupportSubscriptionHistoryIterable responses = client.listBusinessSupportSubscriptionHistoryPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.billing.paginators.ListBusinessSupportSubscriptionHistoryIterable responses = client .listBusinessSupportSubscriptionHistoryPaginator(request); for (software.amazon.awssdk.services.billing.model.ListBusinessSupportSubscriptionHistoryResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.billing.paginators.ListBusinessSupportSubscriptionHistoryIterable responses = client.listBusinessSupportSubscriptionHistoryPaginator(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
listBusinessSupportSubscriptionHistory(software.amazon.awssdk.services.billing.model.ListBusinessSupportSubscriptionHistoryRequest)operation.
This is a convenience which creates an instance of the
ListBusinessSupportSubscriptionHistoryRequest.Builderavoiding the need to create one manually viaListBusinessSupportSubscriptionHistoryRequest.builder()- Parameters:
listBusinessSupportSubscriptionHistoryRequest- AConsumerthat will call methods onListBusinessSupportSubscriptionHistoryRequest.Builderto create a request. Contains the optional filters used to retrieve the history of Business Support subscription contracts across accounts.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listContracts
default ListContractsResponse listContracts(ListContractsRequest listContractsRequest) throws ThrottlingException, AccessDeniedException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, BillingException Lists the private pricing contracts that your Amazon Web Services account is an eligible payer account of. This operation is read-only and paginated.
- Parameters:
listContractsRequest-- Returns:
- Result of the ListContracts operation returned by the service.
- See Also:
-
listContracts
default ListContractsResponse listContracts(Consumer<ListContractsRequest.Builder> listContractsRequest) throws ThrottlingException, AccessDeniedException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, BillingException Lists the private pricing contracts that your Amazon Web Services account is an eligible payer account of. This operation is read-only and paginated.
This is a convenience which creates an instance of the
ListContractsRequest.Builderavoiding the need to create one manually viaListContractsRequest.builder()- Parameters:
listContractsRequest- AConsumerthat will call methods onListContractsRequest.Builderto create a request.- Returns:
- Result of the ListContracts operation returned by the service.
- See Also:
-
listContractsPaginator
default ListContractsIterable listContractsPaginator(ListContractsRequest listContractsRequest) throws ThrottlingException, AccessDeniedException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, BillingException This is a variant of
listContracts(software.amazon.awssdk.services.billing.model.ListContractsRequest)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.billing.paginators.ListContractsIterable responses = client.listContractsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.billing.paginators.ListContractsIterable responses = client.listContractsPaginator(request); for (software.amazon.awssdk.services.billing.model.ListContractsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.billing.paginators.ListContractsIterable responses = client.listContractsPaginator(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
listContracts(software.amazon.awssdk.services.billing.model.ListContractsRequest)operation.- Parameters:
listContractsRequest-- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listContractsPaginator
default ListContractsIterable listContractsPaginator(Consumer<ListContractsRequest.Builder> listContractsRequest) throws ThrottlingException, AccessDeniedException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, BillingException This is a variant of
listContracts(software.amazon.awssdk.services.billing.model.ListContractsRequest)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.billing.paginators.ListContractsIterable responses = client.listContractsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.billing.paginators.ListContractsIterable responses = client.listContractsPaginator(request); for (software.amazon.awssdk.services.billing.model.ListContractsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.billing.paginators.ListContractsIterable responses = client.listContractsPaginator(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
listContracts(software.amazon.awssdk.services.billing.model.ListContractsRequest)operation.
This is a convenience which creates an instance of the
ListContractsRequest.Builderavoiding the need to create one manually viaListContractsRequest.builder()- Parameters:
listContractsRequest- AConsumerthat will call methods onListContractsRequest.Builderto create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listContractualInvestmentAttestations
default ListContractualInvestmentAttestationsResponse listContractualInvestmentAttestations(ListContractualInvestmentAttestationsRequest listContractualInvestmentAttestationsRequest) throws ThrottlingException, ResourceNotFoundException, AccessDeniedException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, BillingException Lists the investment attestations submitted under a specific private pricing contract. Use this operation to track attestation status, including the terminal statuses
DISBURSED,REJECTED, andCANCELLED. This operation is read-only and paginated.- Parameters:
listContractualInvestmentAttestationsRequest-- Returns:
- Result of the ListContractualInvestmentAttestations operation returned by the service.
- See Also:
-
listContractualInvestmentAttestations
default ListContractualInvestmentAttestationsResponse listContractualInvestmentAttestations(Consumer<ListContractualInvestmentAttestationsRequest.Builder> listContractualInvestmentAttestationsRequest) throws ThrottlingException, ResourceNotFoundException, AccessDeniedException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, BillingException Lists the investment attestations submitted under a specific private pricing contract. Use this operation to track attestation status, including the terminal statuses
DISBURSED,REJECTED, andCANCELLED. This operation is read-only and paginated.
This is a convenience which creates an instance of the
ListContractualInvestmentAttestationsRequest.Builderavoiding the need to create one manually viaListContractualInvestmentAttestationsRequest.builder()- Parameters:
listContractualInvestmentAttestationsRequest- AConsumerthat will call methods onListContractualInvestmentAttestationsRequest.Builderto create a request.- Returns:
- Result of the ListContractualInvestmentAttestations operation returned by the service.
- See Also:
-
listContractualInvestmentAttestationsPaginator
default ListContractualInvestmentAttestationsIterable listContractualInvestmentAttestationsPaginator(ListContractualInvestmentAttestationsRequest listContractualInvestmentAttestationsRequest) throws ThrottlingException, ResourceNotFoundException, AccessDeniedException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, BillingException This is a variant of
listContractualInvestmentAttestations(software.amazon.awssdk.services.billing.model.ListContractualInvestmentAttestationsRequest)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.billing.paginators.ListContractualInvestmentAttestationsIterable responses = client.listContractualInvestmentAttestationsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.billing.paginators.ListContractualInvestmentAttestationsIterable responses = client .listContractualInvestmentAttestationsPaginator(request); for (software.amazon.awssdk.services.billing.model.ListContractualInvestmentAttestationsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.billing.paginators.ListContractualInvestmentAttestationsIterable responses = client.listContractualInvestmentAttestationsPaginator(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
listContractualInvestmentAttestations(software.amazon.awssdk.services.billing.model.ListContractualInvestmentAttestationsRequest)operation.- Parameters:
listContractualInvestmentAttestationsRequest-- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listContractualInvestmentAttestationsPaginator
default ListContractualInvestmentAttestationsIterable listContractualInvestmentAttestationsPaginator(Consumer<ListContractualInvestmentAttestationsRequest.Builder> listContractualInvestmentAttestationsRequest) throws ThrottlingException, ResourceNotFoundException, AccessDeniedException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, BillingException This is a variant of
listContractualInvestmentAttestations(software.amazon.awssdk.services.billing.model.ListContractualInvestmentAttestationsRequest)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.billing.paginators.ListContractualInvestmentAttestationsIterable responses = client.listContractualInvestmentAttestationsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.billing.paginators.ListContractualInvestmentAttestationsIterable responses = client .listContractualInvestmentAttestationsPaginator(request); for (software.amazon.awssdk.services.billing.model.ListContractualInvestmentAttestationsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.billing.paginators.ListContractualInvestmentAttestationsIterable responses = client.listContractualInvestmentAttestationsPaginator(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
listContractualInvestmentAttestations(software.amazon.awssdk.services.billing.model.ListContractualInvestmentAttestationsRequest)operation.
This is a convenience which creates an instance of the
ListContractualInvestmentAttestationsRequest.Builderavoiding the need to create one manually viaListContractualInvestmentAttestationsRequest.builder()- Parameters:
listContractualInvestmentAttestationsRequest- AConsumerthat will call methods onListContractualInvestmentAttestationsRequest.Builderto create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listContractualInvestmentSummaries
default ListContractualInvestmentSummariesResponse listContractualInvestmentSummaries(ListContractualInvestmentSummariesRequest listContractualInvestmentSummariesRequest) throws ThrottlingException, ResourceNotFoundException, AccessDeniedException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, BillingException Lists the investment summaries within a specific private pricing contract. This operation is read-only and paginated.
- Parameters:
listContractualInvestmentSummariesRequest-- Returns:
- Result of the ListContractualInvestmentSummaries operation returned by the service.
- See Also:
-
listContractualInvestmentSummaries
default ListContractualInvestmentSummariesResponse listContractualInvestmentSummaries(Consumer<ListContractualInvestmentSummariesRequest.Builder> listContractualInvestmentSummariesRequest) throws ThrottlingException, ResourceNotFoundException, AccessDeniedException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, BillingException Lists the investment summaries within a specific private pricing contract. This operation is read-only and paginated.
This is a convenience which creates an instance of the
ListContractualInvestmentSummariesRequest.Builderavoiding the need to create one manually viaListContractualInvestmentSummariesRequest.builder()- Parameters:
listContractualInvestmentSummariesRequest- AConsumerthat will call methods onListContractualInvestmentSummariesRequest.Builderto create a request.- Returns:
- Result of the ListContractualInvestmentSummaries operation returned by the service.
- See Also:
-
listContractualInvestmentSummariesPaginator
default ListContractualInvestmentSummariesIterable listContractualInvestmentSummariesPaginator(ListContractualInvestmentSummariesRequest listContractualInvestmentSummariesRequest) throws ThrottlingException, ResourceNotFoundException, AccessDeniedException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, BillingException This is a variant of
listContractualInvestmentSummaries(software.amazon.awssdk.services.billing.model.ListContractualInvestmentSummariesRequest)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.billing.paginators.ListContractualInvestmentSummariesIterable responses = client.listContractualInvestmentSummariesPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.billing.paginators.ListContractualInvestmentSummariesIterable responses = client .listContractualInvestmentSummariesPaginator(request); for (software.amazon.awssdk.services.billing.model.ListContractualInvestmentSummariesResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.billing.paginators.ListContractualInvestmentSummariesIterable responses = client.listContractualInvestmentSummariesPaginator(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
listContractualInvestmentSummaries(software.amazon.awssdk.services.billing.model.ListContractualInvestmentSummariesRequest)operation.- Parameters:
listContractualInvestmentSummariesRequest-- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listContractualInvestmentSummariesPaginator
default ListContractualInvestmentSummariesIterable listContractualInvestmentSummariesPaginator(Consumer<ListContractualInvestmentSummariesRequest.Builder> listContractualInvestmentSummariesRequest) throws ThrottlingException, ResourceNotFoundException, AccessDeniedException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, BillingException This is a variant of
listContractualInvestmentSummaries(software.amazon.awssdk.services.billing.model.ListContractualInvestmentSummariesRequest)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.billing.paginators.ListContractualInvestmentSummariesIterable responses = client.listContractualInvestmentSummariesPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.billing.paginators.ListContractualInvestmentSummariesIterable responses = client .listContractualInvestmentSummariesPaginator(request); for (software.amazon.awssdk.services.billing.model.ListContractualInvestmentSummariesResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.billing.paginators.ListContractualInvestmentSummariesIterable responses = client.listContractualInvestmentSummariesPaginator(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
listContractualInvestmentSummaries(software.amazon.awssdk.services.billing.model.ListContractualInvestmentSummariesRequest)operation.
This is a convenience which creates an instance of the
ListContractualInvestmentSummariesRequest.Builderavoiding the need to create one manually viaListContractualInvestmentSummariesRequest.builder()- Parameters:
listContractualInvestmentSummariesRequest- AConsumerthat will call methods onListContractualInvestmentSummariesRequest.Builderto create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listContractualInvestments
default ListContractualInvestmentsResponse listContractualInvestments(ListContractualInvestmentsRequest listContractualInvestmentsRequest) throws ThrottlingException, ResourceNotFoundException, AccessDeniedException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, BillingException Lists the investments within a specific investment summary. This operation is read-only and paginated.
- Parameters:
listContractualInvestmentsRequest-- Returns:
- Result of the ListContractualInvestments operation returned by the service.
- See Also:
-
listContractualInvestments
default ListContractualInvestmentsResponse listContractualInvestments(Consumer<ListContractualInvestmentsRequest.Builder> listContractualInvestmentsRequest) throws ThrottlingException, ResourceNotFoundException, AccessDeniedException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, BillingException Lists the investments within a specific investment summary. This operation is read-only and paginated.
This is a convenience which creates an instance of the
ListContractualInvestmentsRequest.Builderavoiding the need to create one manually viaListContractualInvestmentsRequest.builder()- Parameters:
listContractualInvestmentsRequest- AConsumerthat will call methods onListContractualInvestmentsRequest.Builderto create a request.- Returns:
- Result of the ListContractualInvestments operation returned by the service.
- See Also:
-
listContractualInvestmentsPaginator
default ListContractualInvestmentsIterable listContractualInvestmentsPaginator(ListContractualInvestmentsRequest listContractualInvestmentsRequest) throws ThrottlingException, ResourceNotFoundException, AccessDeniedException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, BillingException This is a variant of
listContractualInvestments(software.amazon.awssdk.services.billing.model.ListContractualInvestmentsRequest)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.billing.paginators.ListContractualInvestmentsIterable responses = client.listContractualInvestmentsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.billing.paginators.ListContractualInvestmentsIterable responses = client .listContractualInvestmentsPaginator(request); for (software.amazon.awssdk.services.billing.model.ListContractualInvestmentsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.billing.paginators.ListContractualInvestmentsIterable responses = client.listContractualInvestmentsPaginator(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
listContractualInvestments(software.amazon.awssdk.services.billing.model.ListContractualInvestmentsRequest)operation.- Parameters:
listContractualInvestmentsRequest-- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listContractualInvestmentsPaginator
default ListContractualInvestmentsIterable listContractualInvestmentsPaginator(Consumer<ListContractualInvestmentsRequest.Builder> listContractualInvestmentsRequest) throws ThrottlingException, ResourceNotFoundException, AccessDeniedException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, BillingException This is a variant of
listContractualInvestments(software.amazon.awssdk.services.billing.model.ListContractualInvestmentsRequest)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.billing.paginators.ListContractualInvestmentsIterable responses = client.listContractualInvestmentsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.billing.paginators.ListContractualInvestmentsIterable responses = client .listContractualInvestmentsPaginator(request); for (software.amazon.awssdk.services.billing.model.ListContractualInvestmentsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.billing.paginators.ListContractualInvestmentsIterable responses = client.listContractualInvestmentsPaginator(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
listContractualInvestments(software.amazon.awssdk.services.billing.model.ListContractualInvestmentsRequest)operation.
This is a convenience which creates an instance of the
ListContractualInvestmentsRequest.Builderavoiding the need to create one manually viaListContractualInvestmentsRequest.builder()- Parameters:
listContractualInvestmentsRequest- AConsumerthat will call methods onListContractualInvestmentsRequest.Builderto create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listEnterpriseSupportLinkedAccountCharges
default ListEnterpriseSupportLinkedAccountChargesResponse listEnterpriseSupportLinkedAccountCharges(ListEnterpriseSupportLinkedAccountChargesRequest listEnterpriseSupportLinkedAccountChargesRequest) throws ThrottlingException, ResourceNotFoundException, AccessDeniedException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, BillingException Returns Support-eligible spend broken down at linked account level.
- Parameters:
listEnterpriseSupportLinkedAccountChargesRequest- The request structure for ListEnterpriseSupportLinkedAccountCharges.- Returns:
- Result of the ListEnterpriseSupportLinkedAccountCharges operation returned by the service.
- See Also:
-
listEnterpriseSupportLinkedAccountCharges
default ListEnterpriseSupportLinkedAccountChargesResponse listEnterpriseSupportLinkedAccountCharges(Consumer<ListEnterpriseSupportLinkedAccountChargesRequest.Builder> listEnterpriseSupportLinkedAccountChargesRequest) throws ThrottlingException, ResourceNotFoundException, AccessDeniedException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, BillingException Returns Support-eligible spend broken down at linked account level.
This is a convenience which creates an instance of the
ListEnterpriseSupportLinkedAccountChargesRequest.Builderavoiding the need to create one manually viaListEnterpriseSupportLinkedAccountChargesRequest.builder()- Parameters:
listEnterpriseSupportLinkedAccountChargesRequest- AConsumerthat will call methods onListEnterpriseSupportLinkedAccountChargesRequest.Builderto create a request. The request structure for ListEnterpriseSupportLinkedAccountCharges.- Returns:
- Result of the ListEnterpriseSupportLinkedAccountCharges operation returned by the service.
- See Also:
-
listEnterpriseSupportLinkedAccountChargesPaginator
default ListEnterpriseSupportLinkedAccountChargesIterable listEnterpriseSupportLinkedAccountChargesPaginator(ListEnterpriseSupportLinkedAccountChargesRequest listEnterpriseSupportLinkedAccountChargesRequest) throws ThrottlingException, ResourceNotFoundException, AccessDeniedException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, BillingException This is a variant of
listEnterpriseSupportLinkedAccountCharges(software.amazon.awssdk.services.billing.model.ListEnterpriseSupportLinkedAccountChargesRequest)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.billing.paginators.ListEnterpriseSupportLinkedAccountChargesIterable responses = client.listEnterpriseSupportLinkedAccountChargesPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.billing.paginators.ListEnterpriseSupportLinkedAccountChargesIterable responses = client .listEnterpriseSupportLinkedAccountChargesPaginator(request); for (software.amazon.awssdk.services.billing.model.ListEnterpriseSupportLinkedAccountChargesResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.billing.paginators.ListEnterpriseSupportLinkedAccountChargesIterable responses = client.listEnterpriseSupportLinkedAccountChargesPaginator(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
listEnterpriseSupportLinkedAccountCharges(software.amazon.awssdk.services.billing.model.ListEnterpriseSupportLinkedAccountChargesRequest)operation.- Parameters:
listEnterpriseSupportLinkedAccountChargesRequest- The request structure for ListEnterpriseSupportLinkedAccountCharges.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listEnterpriseSupportLinkedAccountChargesPaginator
default ListEnterpriseSupportLinkedAccountChargesIterable listEnterpriseSupportLinkedAccountChargesPaginator(Consumer<ListEnterpriseSupportLinkedAccountChargesRequest.Builder> listEnterpriseSupportLinkedAccountChargesRequest) throws ThrottlingException, ResourceNotFoundException, AccessDeniedException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, BillingException This is a variant of
listEnterpriseSupportLinkedAccountCharges(software.amazon.awssdk.services.billing.model.ListEnterpriseSupportLinkedAccountChargesRequest)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.billing.paginators.ListEnterpriseSupportLinkedAccountChargesIterable responses = client.listEnterpriseSupportLinkedAccountChargesPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.billing.paginators.ListEnterpriseSupportLinkedAccountChargesIterable responses = client .listEnterpriseSupportLinkedAccountChargesPaginator(request); for (software.amazon.awssdk.services.billing.model.ListEnterpriseSupportLinkedAccountChargesResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.billing.paginators.ListEnterpriseSupportLinkedAccountChargesIterable responses = client.listEnterpriseSupportLinkedAccountChargesPaginator(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
listEnterpriseSupportLinkedAccountCharges(software.amazon.awssdk.services.billing.model.ListEnterpriseSupportLinkedAccountChargesRequest)operation.
This is a convenience which creates an instance of the
ListEnterpriseSupportLinkedAccountChargesRequest.Builderavoiding the need to create one manually viaListEnterpriseSupportLinkedAccountChargesRequest.builder()- Parameters:
listEnterpriseSupportLinkedAccountChargesRequest- AConsumerthat will call methods onListEnterpriseSupportLinkedAccountChargesRequest.Builderto create a request. The request structure for ListEnterpriseSupportLinkedAccountCharges.- 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.Builderavoiding the need to create one manually viaListSourceViewsForBillingViewRequest.builder()- Parameters:
listSourceViewsForBillingViewRequest- AConsumerthat will call methods onListSourceViewsForBillingViewRequest.Builderto 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 Stream
2) Using For loopsoftware.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 Stream
2) Using For loopsoftware.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.Builderavoiding the need to create one manually viaListSourceViewsForBillingViewRequest.builder()- Parameters:
listSourceViewsForBillingViewRequest- AConsumerthat will call methods onListSourceViewsForBillingViewRequest.Builderto 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.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.
- See Also:
-
redeemCredits
default RedeemCreditsResponse redeemCredits(RedeemCreditsRequest redeemCreditsRequest) throws ThrottlingException, AccessDeniedException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, BillingException Redeems an Amazon Web Services promotional credit code on behalf of the calling account. On success, a new credit is added to the account's credit ledger with the amount, validity period, and applicable products defined by the promotion. The credit is then automatically applied to subsequent bills according to the standard credit application order.
- Parameters:
redeemCreditsRequest-- Returns:
- Result of the RedeemCredits operation returned by the service.
- See Also:
-
redeemCredits
default RedeemCreditsResponse redeemCredits(Consumer<RedeemCreditsRequest.Builder> redeemCreditsRequest) throws ThrottlingException, AccessDeniedException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, BillingException Redeems an Amazon Web Services promotional credit code on behalf of the calling account. On success, a new credit is added to the account's credit ledger with the amount, validity period, and applicable products defined by the promotion. The credit is then automatically applied to subsequent bills according to the standard credit application order.
This is a convenience which creates an instance of the
RedeemCreditsRequest.Builderavoiding the need to create one manually viaRedeemCreditsRequest.builder()- Parameters:
redeemCreditsRequest- AConsumerthat will call methods onRedeemCreditsRequest.Builderto create a request.- Returns:
- Result of the RedeemCredits 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.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.
- 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.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.
- See Also:
-
updateBillingPreferences
default UpdateBillingPreferencesResponse updateBillingPreferences(UpdateBillingPreferencesRequest updateBillingPreferencesRequest) throws ThrottlingException, AccessDeniedException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, BillingException Updates billing preferences for the specified feature. Each feature targets a distinct billing capability and has its own set of supported keys. The action sets the value for each provided key; keys not present in the request are unchanged.
Sharing keys (
RI_SHARING,CREDIT_SHARING,CREDIT_LEVEL_SHARING, and sharing keys underCREDIT_PREFERENCE_OPTIONS) may only be set by the management account of a consolidated billing family. Thecredit/{creditId}/statuskey may be set by member accounts for credits they own, or by the management account for any credit in the family.- Parameters:
updateBillingPreferencesRequest-- Returns:
- Result of the UpdateBillingPreferences operation returned by the service.
- See Also:
-
updateBillingPreferences
default UpdateBillingPreferencesResponse updateBillingPreferences(Consumer<UpdateBillingPreferencesRequest.Builder> updateBillingPreferencesRequest) throws ThrottlingException, AccessDeniedException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, BillingException Updates billing preferences for the specified feature. Each feature targets a distinct billing capability and has its own set of supported keys. The action sets the value for each provided key; keys not present in the request are unchanged.
Sharing keys (
RI_SHARING,CREDIT_SHARING,CREDIT_LEVEL_SHARING, and sharing keys underCREDIT_PREFERENCE_OPTIONS) may only be set by the management account of a consolidated billing family. Thecredit/{creditId}/statuskey may be set by member accounts for credits they own, or by the management account for any credit in the family.
This is a convenience which creates an instance of the
UpdateBillingPreferencesRequest.Builderavoiding the need to create one manually viaUpdateBillingPreferencesRequest.builder()- Parameters:
updateBillingPreferencesRequest- AConsumerthat will call methods onUpdateBillingPreferencesRequest.Builderto create a request.- Returns:
- Result of the UpdateBillingPreferences operation returned by the service.
- See Also:
-
updateBillingView
default UpdateBillingViewResponse updateBillingView(UpdateBillingViewRequest updateBillingViewRequest) throws BillingViewHealthStatusException, 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 BillingViewHealthStatusException, 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.Builderavoiding the need to create one manually viaUpdateBillingViewRequest.builder()- Parameters:
updateBillingViewRequest- AConsumerthat will call methods onUpdateBillingViewRequest.Builderto create a request.- Returns:
- Result of the UpdateBillingView operation returned by the service.
- See Also:
-
create
Create aBillingClientwith the region loaded from theDefaultAwsRegionProviderChainand credentials loaded from theDefaultCredentialsProvider. -
builder
Create a builder that can be used to configure and create aBillingClient. -
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
-