Interface InvoicingAsyncClient
- All Superinterfaces:
AutoCloseable,AwsClient,SdkAutoCloseable,SdkClient
builder()
method.The asynchronous client performs non-blocking I/O when configured with any SdkAsyncHttpClient
supported in the SDK. However, full non-blocking is not guaranteed as the async client may perform blocking calls in
some cases such as credentials retrieval and endpoint discovery as part of the async API call.
Amazon Web Services Invoice Configuration
You can use Amazon Web Services Invoice Configuration APIs to programmatically create, update, delete, get, and list invoice units. You can also programmatically fetch the information of the invoice receiver. For example, business legal name, address, and invoicing contacts.
You can use Amazon Web Services Invoice Configuration to receive separate Amazon Web Services invoices based your organizational needs. By using Amazon Web Services Invoice Configuration, you can configure invoice units that are groups of Amazon Web Services accounts that represent your business entities, and receive separate invoices for each business entity. You can also assign a unique member or payer account as the invoice receiver for each invoice unit. As you create new accounts within your Organizations using Amazon Web Services Invoice Configuration APIs, you can automate the creation of new invoice units and subsequently automate the addition of new accounts to your invoice units.
Amazon Web Services Procurement Portal Preferences
You can use Amazon Web Services Procurement Portal Preferences APIs to programmatically create, update, delete, get, and list procurement portal connections and e-invoice delivery settings. You can also programmatically fetch and modify the status of procurement portal configurations. For example, SAP Business Network or Coupa connections, configure e-invoice delivery and purchase order retrieval features.
You can use Amazon Web Services Procurement Portal Preferences to connect e-invoice delivery to your procurement portals based on your organizational needs. By using Amazon Web Services Procurement Portal Preferences, you can configure connections to SAP Business Network and Coupa procurement portals that retrieve purchase orders and deliver Amazon Web Services invoices on the same day they are generated. You can also set up testing environments to validate invoice delivery without affecting live transactions, and manage contact information for portal setup and support.
Administrative users should understand that billing read-only policies will show all procurement portal connection details. Review your IAM policies to ensure appropriate access controls are in place for procurement portal preferences.
Amazon Web Services Invoice Management
You can use Amazon Web Services Invoice Management APIs to programmatically list invoice summaries and get invoice documents. You can also programmatically fetch invoice documents with S3 pre-signed URLs.
You can use Amazon Web Services Invoice Management to access invoice information based on your organizational needs. By using Amazon Web Services Invoice Management, you can retrieve paginated lists of invoice summaries that include invoice metadata such as invoice IDs, amounts, and currencies without downloading documents. You can also download invoice documents in PDF format using S3 pre-signed URLs with built-in expiration. As you manage invoices across your organization using Amazon Web Services Invoice Management APIs, you can create invoice retrieval processes and integrate invoice data into your financial systems.
Service endpoint
You can use the following endpoints for Amazon Web Services Invoice Configuration, Amazon Web Services Procurement Portal Preferences, and Amazon Web Services Invoice Management:
-
https://invoicing.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 TypeMethodDescriptionbatchGetInvoiceProfile(Consumer<BatchGetInvoiceProfileRequest.Builder> batchGetInvoiceProfileRequest) This gets the invoice profile associated with a set of accounts.batchGetInvoiceProfile(BatchGetInvoiceProfileRequest batchGetInvoiceProfileRequest) This gets the invoice profile associated with a set of accounts.static InvoicingAsyncClientBuilderbuilder()Create a builder that can be used to configure and create aInvoicingAsyncClient.static InvoicingAsyncClientcreate()Create aInvoicingAsyncClientwith the region loaded from theDefaultAwsRegionProviderChainand credentials loaded from theDefaultCredentialsProvider.createInvoiceUnit(Consumer<CreateInvoiceUnitRequest.Builder> createInvoiceUnitRequest) This creates a new invoice unit with the provided definition.createInvoiceUnit(CreateInvoiceUnitRequest createInvoiceUnitRequest) This creates a new invoice unit with the provided definition.createProcurementPortalPreference(Consumer<CreateProcurementPortalPreferenceRequest.Builder> createProcurementPortalPreferenceRequest) Creates a procurement portal preference configuration for e-invoice delivery and purchase order retrieval.createProcurementPortalPreference(CreateProcurementPortalPreferenceRequest createProcurementPortalPreferenceRequest) Creates a procurement portal preference configuration for e-invoice delivery and purchase order retrieval.deleteInvoiceUnit(Consumer<DeleteInvoiceUnitRequest.Builder> deleteInvoiceUnitRequest) This deletes an invoice unit with the provided invoice unit ARN.deleteInvoiceUnit(DeleteInvoiceUnitRequest deleteInvoiceUnitRequest) This deletes an invoice unit with the provided invoice unit ARN.deleteProcurementPortalPreference(Consumer<DeleteProcurementPortalPreferenceRequest.Builder> deleteProcurementPortalPreferenceRequest) Deletes an existing procurement portal preference.deleteProcurementPortalPreference(DeleteProcurementPortalPreferenceRequest deleteProcurementPortalPreferenceRequest) Deletes an existing procurement portal preference.default CompletableFuture<GetInvoicePdfResponse> getInvoicePDF(Consumer<GetInvoicePdfRequest.Builder> getInvoicePdfRequest) Returns a URL to download the invoice document and supplemental documents associated with an invoice.default CompletableFuture<GetInvoicePdfResponse> getInvoicePDF(GetInvoicePdfRequest getInvoicePdfRequest) Returns a URL to download the invoice document and supplemental documents associated with an invoice.default CompletableFuture<GetInvoiceUnitResponse> getInvoiceUnit(Consumer<GetInvoiceUnitRequest.Builder> getInvoiceUnitRequest) This retrieves the invoice unit definition.default CompletableFuture<GetInvoiceUnitResponse> getInvoiceUnit(GetInvoiceUnitRequest getInvoiceUnitRequest) This retrieves the invoice unit definition.getProcurementPortalPreference(Consumer<GetProcurementPortalPreferenceRequest.Builder> getProcurementPortalPreferenceRequest) Retrieves the details of a specific procurement portal preference configuration.getProcurementPortalPreference(GetProcurementPortalPreferenceRequest getProcurementPortalPreferenceRequest) Retrieves the details of a specific procurement portal preference configuration.listInvoiceSummaries(Consumer<ListInvoiceSummariesRequest.Builder> listInvoiceSummariesRequest) Retrieves your invoice details programmatically, without line item details.listInvoiceSummaries(ListInvoiceSummariesRequest listInvoiceSummariesRequest) Retrieves your invoice details programmatically, without line item details.default ListInvoiceSummariesPublisherlistInvoiceSummariesPaginator(Consumer<ListInvoiceSummariesRequest.Builder> listInvoiceSummariesRequest) This is a variant oflistInvoiceSummaries(software.amazon.awssdk.services.invoicing.model.ListInvoiceSummariesRequest)operation.default ListInvoiceSummariesPublisherlistInvoiceSummariesPaginator(ListInvoiceSummariesRequest listInvoiceSummariesRequest) This is a variant oflistInvoiceSummaries(software.amazon.awssdk.services.invoicing.model.ListInvoiceSummariesRequest)operation.listInvoiceUnits(Consumer<ListInvoiceUnitsRequest.Builder> listInvoiceUnitsRequest) This fetches a list of all invoice unit definitions for a given account, as of the providedAsOfdate.listInvoiceUnits(ListInvoiceUnitsRequest listInvoiceUnitsRequest) This fetches a list of all invoice unit definitions for a given account, as of the providedAsOfdate.default ListInvoiceUnitsPublisherlistInvoiceUnitsPaginator(Consumer<ListInvoiceUnitsRequest.Builder> listInvoiceUnitsRequest) This is a variant oflistInvoiceUnits(software.amazon.awssdk.services.invoicing.model.ListInvoiceUnitsRequest)operation.default ListInvoiceUnitsPublisherlistInvoiceUnitsPaginator(ListInvoiceUnitsRequest listInvoiceUnitsRequest) This is a variant oflistInvoiceUnits(software.amazon.awssdk.services.invoicing.model.ListInvoiceUnitsRequest)operation.listProcurementPortalPreferences(Consumer<ListProcurementPortalPreferencesRequest.Builder> listProcurementPortalPreferencesRequest) Retrieves a list of procurement portal preferences associated with the Amazon Web Services account.listProcurementPortalPreferences(ListProcurementPortalPreferencesRequest listProcurementPortalPreferencesRequest) Retrieves a list of procurement portal preferences associated with the Amazon Web Services account.listProcurementPortalPreferencesPaginator(Consumer<ListProcurementPortalPreferencesRequest.Builder> listProcurementPortalPreferencesRequest) This is a variant oflistProcurementPortalPreferences(software.amazon.awssdk.services.invoicing.model.ListProcurementPortalPreferencesRequest)operation.listProcurementPortalPreferencesPaginator(ListProcurementPortalPreferencesRequest listProcurementPortalPreferencesRequest) This is a variant oflistProcurementPortalPreferences(software.amazon.awssdk.services.invoicing.model.ListProcurementPortalPreferencesRequest)operation.listTagsForResource(Consumer<ListTagsForResourceRequest.Builder> listTagsForResourceRequest) Lists the tags for a resource.listTagsForResource(ListTagsForResourceRequest listTagsForResourceRequest) Lists the tags for a resource.putProcurementPortalPreference(Consumer<PutProcurementPortalPreferenceRequest.Builder> putProcurementPortalPreferenceRequest) Updates an existing procurement portal preference configuration.putProcurementPortalPreference(PutProcurementPortalPreferenceRequest putProcurementPortalPreferenceRequest) Updates an existing procurement portal preference configuration.The SDK service client configuration exposes client settings to the user, e.g., ClientOverrideConfigurationdefault CompletableFuture<TagResourceResponse> tagResource(Consumer<TagResourceRequest.Builder> tagResourceRequest) Adds a tag to a resource.default CompletableFuture<TagResourceResponse> tagResource(TagResourceRequest tagResourceRequest) Adds a tag to a resource.default CompletableFuture<UntagResourceResponse> untagResource(Consumer<UntagResourceRequest.Builder> untagResourceRequest) Removes a tag from a resource.default CompletableFuture<UntagResourceResponse> untagResource(UntagResourceRequest untagResourceRequest) Removes a tag from a resource.updateInvoiceUnit(Consumer<UpdateInvoiceUnitRequest.Builder> updateInvoiceUnitRequest) You can update the invoice unit configuration at any time, and Amazon Web Services will use the latest configuration at the end of the month.updateInvoiceUnit(UpdateInvoiceUnitRequest updateInvoiceUnitRequest) You can update the invoice unit configuration at any time, and Amazon Web Services will use the latest configuration at the end of the month.updateProcurementPortalPreferenceStatus(Consumer<UpdateProcurementPortalPreferenceStatusRequest.Builder> updateProcurementPortalPreferenceStatusRequest) Updates the status of a procurement portal preference, including the activation state of e-invoice delivery and purchase order retrieval features.updateProcurementPortalPreferenceStatus(UpdateProcurementPortalPreferenceStatusRequest updateProcurementPortalPreferenceStatusRequest) Updates the status of a procurement portal preference, including the activation state of e-invoice delivery and purchase order retrieval features.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
-
batchGetInvoiceProfile
default CompletableFuture<BatchGetInvoiceProfileResponse> batchGetInvoiceProfile(BatchGetInvoiceProfileRequest batchGetInvoiceProfileRequest) This gets the invoice profile associated with a set of accounts. The accounts must be linked accounts under the requester management account organization.
- Parameters:
batchGetInvoiceProfileRequest-- Returns:
- A Java Future containing the result of the BatchGetInvoiceProfile operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ResourceNotFoundException The resource could not be found.
- ValidationException The input fails to satisfy the constraints specified by an Amazon Web Services service.
- InternalServerException The processing request failed because of an unknown error, exception, or failure.
- ThrottlingException The request was denied due to request throttling.
- AccessDeniedException You don't have sufficient access to perform this action.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- InvoicingException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
batchGetInvoiceProfile
default CompletableFuture<BatchGetInvoiceProfileResponse> batchGetInvoiceProfile(Consumer<BatchGetInvoiceProfileRequest.Builder> batchGetInvoiceProfileRequest) This gets the invoice profile associated with a set of accounts. The accounts must be linked accounts under the requester management account organization.
This is a convenience which creates an instance of the
BatchGetInvoiceProfileRequest.Builderavoiding the need to create one manually viaBatchGetInvoiceProfileRequest.builder()- Parameters:
batchGetInvoiceProfileRequest- AConsumerthat will call methods onBatchGetInvoiceProfileRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the BatchGetInvoiceProfile operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ResourceNotFoundException The resource could not be found.
- ValidationException The input fails to satisfy the constraints specified by an Amazon Web Services service.
- InternalServerException The processing request failed because of an unknown error, exception, or failure.
- ThrottlingException The request was denied due to request throttling.
- AccessDeniedException You don't have sufficient access to perform this action.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- InvoicingException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
createInvoiceUnit
default CompletableFuture<CreateInvoiceUnitResponse> createInvoiceUnit(CreateInvoiceUnitRequest createInvoiceUnitRequest) This creates a new invoice unit with the provided definition.
- Parameters:
createInvoiceUnitRequest-- Returns:
- A Java Future containing the result of the CreateInvoiceUnit operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ValidationException The input fails to satisfy the constraints specified by an Amazon Web Services service.
- InternalServerException The processing request failed because of an unknown error, exception, or failure.
- ThrottlingException The request was denied due to request throttling.
- AccessDeniedException You don't have sufficient access to perform this action.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- InvoicingException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
createInvoiceUnit
default CompletableFuture<CreateInvoiceUnitResponse> createInvoiceUnit(Consumer<CreateInvoiceUnitRequest.Builder> createInvoiceUnitRequest) This creates a new invoice unit with the provided definition.
This is a convenience which creates an instance of the
CreateInvoiceUnitRequest.Builderavoiding the need to create one manually viaCreateInvoiceUnitRequest.builder()- Parameters:
createInvoiceUnitRequest- AConsumerthat will call methods onCreateInvoiceUnitRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the CreateInvoiceUnit operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ValidationException The input fails to satisfy the constraints specified by an Amazon Web Services service.
- InternalServerException The processing request failed because of an unknown error, exception, or failure.
- ThrottlingException The request was denied due to request throttling.
- AccessDeniedException You don't have sufficient access to perform this action.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- InvoicingException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
createProcurementPortalPreference
default CompletableFuture<CreateProcurementPortalPreferenceResponse> createProcurementPortalPreference(CreateProcurementPortalPreferenceRequest createProcurementPortalPreferenceRequest) Creates a procurement portal preference configuration for e-invoice delivery and purchase order retrieval. This preference defines how invoices are delivered to a procurement portal and how purchase orders are retrieved.
- Parameters:
createProcurementPortalPreferenceRequest-- Returns:
- A Java Future containing the result of the CreateProcurementPortalPreference operation returned by the
service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ConflictException The request could not be completed due to a conflict with the current state of the resource. This exception occurs when a concurrent modification is detected during an update operation, or when attempting to create a resource that already exists.
- ValidationException The input fails to satisfy the constraints specified by an Amazon Web Services service.
- InternalServerException The processing request failed because of an unknown error, exception, or failure.
- ServiceQuotaExceededException The request was rejected because it attempted to create resources beyond the current Amazon Web Services account limits. The error message describes the limit exceeded.
- ThrottlingException The request was denied due to request throttling.
- AccessDeniedException You don't have sufficient access to perform this action.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- InvoicingException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
createProcurementPortalPreference
default CompletableFuture<CreateProcurementPortalPreferenceResponse> createProcurementPortalPreference(Consumer<CreateProcurementPortalPreferenceRequest.Builder> createProcurementPortalPreferenceRequest) Creates a procurement portal preference configuration for e-invoice delivery and purchase order retrieval. This preference defines how invoices are delivered to a procurement portal and how purchase orders are retrieved.
This is a convenience which creates an instance of the
CreateProcurementPortalPreferenceRequest.Builderavoiding the need to create one manually viaCreateProcurementPortalPreferenceRequest.builder()- Parameters:
createProcurementPortalPreferenceRequest- AConsumerthat will call methods onCreateProcurementPortalPreferenceRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the CreateProcurementPortalPreference operation returned by the
service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ConflictException The request could not be completed due to a conflict with the current state of the resource. This exception occurs when a concurrent modification is detected during an update operation, or when attempting to create a resource that already exists.
- ValidationException The input fails to satisfy the constraints specified by an Amazon Web Services service.
- InternalServerException The processing request failed because of an unknown error, exception, or failure.
- ServiceQuotaExceededException The request was rejected because it attempted to create resources beyond the current Amazon Web Services account limits. The error message describes the limit exceeded.
- ThrottlingException The request was denied due to request throttling.
- AccessDeniedException You don't have sufficient access to perform this action.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- InvoicingException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
deleteInvoiceUnit
default CompletableFuture<DeleteInvoiceUnitResponse> deleteInvoiceUnit(DeleteInvoiceUnitRequest deleteInvoiceUnitRequest) This deletes an invoice unit with the provided invoice unit ARN.
- Parameters:
deleteInvoiceUnitRequest-- Returns:
- A Java Future containing the result of the DeleteInvoiceUnit operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ResourceNotFoundException The resource could not be found.
- ValidationException The input fails to satisfy the constraints specified by an Amazon Web Services service.
- InternalServerException The processing request failed because of an unknown error, exception, or failure.
- ThrottlingException The request was denied due to request throttling.
- AccessDeniedException You don't have sufficient access to perform this action.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- InvoicingException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
deleteInvoiceUnit
default CompletableFuture<DeleteInvoiceUnitResponse> deleteInvoiceUnit(Consumer<DeleteInvoiceUnitRequest.Builder> deleteInvoiceUnitRequest) This deletes an invoice unit with the provided invoice unit ARN.
This is a convenience which creates an instance of the
DeleteInvoiceUnitRequest.Builderavoiding the need to create one manually viaDeleteInvoiceUnitRequest.builder()- Parameters:
deleteInvoiceUnitRequest- AConsumerthat will call methods onDeleteInvoiceUnitRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the DeleteInvoiceUnit operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ResourceNotFoundException The resource could not be found.
- ValidationException The input fails to satisfy the constraints specified by an Amazon Web Services service.
- InternalServerException The processing request failed because of an unknown error, exception, or failure.
- ThrottlingException The request was denied due to request throttling.
- AccessDeniedException You don't have sufficient access to perform this action.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- InvoicingException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
deleteProcurementPortalPreference
default CompletableFuture<DeleteProcurementPortalPreferenceResponse> deleteProcurementPortalPreference(DeleteProcurementPortalPreferenceRequest deleteProcurementPortalPreferenceRequest) Deletes an existing procurement portal preference. This action cannot be undone. Active e-invoice delivery and PO retrieval configurations will be terminated.
- Parameters:
deleteProcurementPortalPreferenceRequest-- Returns:
- A Java Future containing the result of the DeleteProcurementPortalPreference operation returned by the
service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ResourceNotFoundException The resource could not be found.
- ValidationException The input fails to satisfy the constraints specified by an Amazon Web Services service.
- InternalServerException The processing request failed because of an unknown error, exception, or failure.
- ServiceQuotaExceededException The request was rejected because it attempted to create resources beyond the current Amazon Web Services account limits. The error message describes the limit exceeded.
- ThrottlingException The request was denied due to request throttling.
- AccessDeniedException You don't have sufficient access to perform this action.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- InvoicingException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
deleteProcurementPortalPreference
default CompletableFuture<DeleteProcurementPortalPreferenceResponse> deleteProcurementPortalPreference(Consumer<DeleteProcurementPortalPreferenceRequest.Builder> deleteProcurementPortalPreferenceRequest) Deletes an existing procurement portal preference. This action cannot be undone. Active e-invoice delivery and PO retrieval configurations will be terminated.
This is a convenience which creates an instance of the
DeleteProcurementPortalPreferenceRequest.Builderavoiding the need to create one manually viaDeleteProcurementPortalPreferenceRequest.builder()- Parameters:
deleteProcurementPortalPreferenceRequest- AConsumerthat will call methods onDeleteProcurementPortalPreferenceRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the DeleteProcurementPortalPreference operation returned by the
service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ResourceNotFoundException The resource could not be found.
- ValidationException The input fails to satisfy the constraints specified by an Amazon Web Services service.
- InternalServerException The processing request failed because of an unknown error, exception, or failure.
- ServiceQuotaExceededException The request was rejected because it attempted to create resources beyond the current Amazon Web Services account limits. The error message describes the limit exceeded.
- ThrottlingException The request was denied due to request throttling.
- AccessDeniedException You don't have sufficient access to perform this action.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- InvoicingException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
getInvoicePDF
default CompletableFuture<GetInvoicePdfResponse> getInvoicePDF(GetInvoicePdfRequest getInvoicePdfRequest) Returns a URL to download the invoice document and supplemental documents associated with an invoice. The URLs are pre-signed and have expiration time. For special cases like Brazil, where Amazon Web Services generated invoice identifiers and government provided identifiers do not match, use the Amazon Web Services generated invoice identifier when making API requests. To grant IAM permission to use this operation, the caller needs the
invoicing:GetInvoicePDFpolicy action.- Parameters:
getInvoicePdfRequest-- Returns:
- A Java Future containing the result of the GetInvoicePDF operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ResourceNotFoundException The resource could not be found.
- ValidationException The input fails to satisfy the constraints specified by an Amazon Web Services service.
- InternalServerException The processing request failed because of an unknown error, exception, or failure.
- ThrottlingException The request was denied due to request throttling.
- AccessDeniedException You don't have sufficient access to perform this action.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- InvoicingException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
getInvoicePDF
default CompletableFuture<GetInvoicePdfResponse> getInvoicePDF(Consumer<GetInvoicePdfRequest.Builder> getInvoicePdfRequest) Returns a URL to download the invoice document and supplemental documents associated with an invoice. The URLs are pre-signed and have expiration time. For special cases like Brazil, where Amazon Web Services generated invoice identifiers and government provided identifiers do not match, use the Amazon Web Services generated invoice identifier when making API requests. To grant IAM permission to use this operation, the caller needs the
invoicing:GetInvoicePDFpolicy action.
This is a convenience which creates an instance of the
GetInvoicePdfRequest.Builderavoiding the need to create one manually viaGetInvoicePdfRequest.builder()- Parameters:
getInvoicePdfRequest- AConsumerthat will call methods onGetInvoicePdfRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the GetInvoicePDF operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ResourceNotFoundException The resource could not be found.
- ValidationException The input fails to satisfy the constraints specified by an Amazon Web Services service.
- InternalServerException The processing request failed because of an unknown error, exception, or failure.
- ThrottlingException The request was denied due to request throttling.
- AccessDeniedException You don't have sufficient access to perform this action.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- InvoicingException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
getInvoiceUnit
default CompletableFuture<GetInvoiceUnitResponse> getInvoiceUnit(GetInvoiceUnitRequest getInvoiceUnitRequest) This retrieves the invoice unit definition.
- Parameters:
getInvoiceUnitRequest-- Returns:
- A Java Future containing the result of the GetInvoiceUnit operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ResourceNotFoundException The resource could not be found.
- ValidationException The input fails to satisfy the constraints specified by an Amazon Web Services service.
- InternalServerException The processing request failed because of an unknown error, exception, or failure.
- ThrottlingException The request was denied due to request throttling.
- AccessDeniedException You don't have sufficient access to perform this action.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- InvoicingException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
getInvoiceUnit
default CompletableFuture<GetInvoiceUnitResponse> getInvoiceUnit(Consumer<GetInvoiceUnitRequest.Builder> getInvoiceUnitRequest) This retrieves the invoice unit definition.
This is a convenience which creates an instance of the
GetInvoiceUnitRequest.Builderavoiding the need to create one manually viaGetInvoiceUnitRequest.builder()- Parameters:
getInvoiceUnitRequest- AConsumerthat will call methods onGetInvoiceUnitRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the GetInvoiceUnit operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ResourceNotFoundException The resource could not be found.
- ValidationException The input fails to satisfy the constraints specified by an Amazon Web Services service.
- InternalServerException The processing request failed because of an unknown error, exception, or failure.
- ThrottlingException The request was denied due to request throttling.
- AccessDeniedException You don't have sufficient access to perform this action.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- InvoicingException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
getProcurementPortalPreference
default CompletableFuture<GetProcurementPortalPreferenceResponse> getProcurementPortalPreference(GetProcurementPortalPreferenceRequest getProcurementPortalPreferenceRequest) Retrieves the details of a specific procurement portal preference configuration.
- Parameters:
getProcurementPortalPreferenceRequest-- Returns:
- A Java Future containing the result of the GetProcurementPortalPreference operation returned by the
service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ResourceNotFoundException The resource could not be found.
- ConflictException The request could not be completed due to a conflict with the current state of the resource. This exception occurs when a concurrent modification is detected during an update operation, or when attempting to create a resource that already exists.
- ValidationException The input fails to satisfy the constraints specified by an Amazon Web Services service.
- InternalServerException The processing request failed because of an unknown error, exception, or failure.
- ServiceQuotaExceededException The request was rejected because it attempted to create resources beyond the current Amazon Web Services account limits. The error message describes the limit exceeded.
- ThrottlingException The request was denied due to request throttling.
- AccessDeniedException You don't have sufficient access to perform this action.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- InvoicingException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
getProcurementPortalPreference
default CompletableFuture<GetProcurementPortalPreferenceResponse> getProcurementPortalPreference(Consumer<GetProcurementPortalPreferenceRequest.Builder> getProcurementPortalPreferenceRequest) Retrieves the details of a specific procurement portal preference configuration.
This is a convenience which creates an instance of the
GetProcurementPortalPreferenceRequest.Builderavoiding the need to create one manually viaGetProcurementPortalPreferenceRequest.builder()- Parameters:
getProcurementPortalPreferenceRequest- AConsumerthat will call methods onGetProcurementPortalPreferenceRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the GetProcurementPortalPreference operation returned by the
service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ResourceNotFoundException The resource could not be found.
- ConflictException The request could not be completed due to a conflict with the current state of the resource. This exception occurs when a concurrent modification is detected during an update operation, or when attempting to create a resource that already exists.
- ValidationException The input fails to satisfy the constraints specified by an Amazon Web Services service.
- InternalServerException The processing request failed because of an unknown error, exception, or failure.
- ServiceQuotaExceededException The request was rejected because it attempted to create resources beyond the current Amazon Web Services account limits. The error message describes the limit exceeded.
- ThrottlingException The request was denied due to request throttling.
- AccessDeniedException You don't have sufficient access to perform this action.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- InvoicingException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listInvoiceSummaries
default CompletableFuture<ListInvoiceSummariesResponse> listInvoiceSummaries(ListInvoiceSummariesRequest listInvoiceSummariesRequest) Retrieves your invoice details programmatically, without line item details.
- Parameters:
listInvoiceSummariesRequest-- Returns:
- A Java Future containing the result of the ListInvoiceSummaries operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ResourceNotFoundException The resource could not be found.
- ValidationException The input fails to satisfy the constraints specified by an Amazon Web Services service.
- InternalServerException The processing request failed because of an unknown error, exception, or failure.
- ThrottlingException The request was denied due to request throttling.
- AccessDeniedException You don't have sufficient access to perform this action.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- InvoicingException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listInvoiceSummaries
default CompletableFuture<ListInvoiceSummariesResponse> listInvoiceSummaries(Consumer<ListInvoiceSummariesRequest.Builder> listInvoiceSummariesRequest) Retrieves your invoice details programmatically, without line item details.
This is a convenience which creates an instance of the
ListInvoiceSummariesRequest.Builderavoiding the need to create one manually viaListInvoiceSummariesRequest.builder()- Parameters:
listInvoiceSummariesRequest- AConsumerthat will call methods onListInvoiceSummariesRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the ListInvoiceSummaries operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ResourceNotFoundException The resource could not be found.
- ValidationException The input fails to satisfy the constraints specified by an Amazon Web Services service.
- InternalServerException The processing request failed because of an unknown error, exception, or failure.
- ThrottlingException The request was denied due to request throttling.
- AccessDeniedException You don't have sufficient access to perform this action.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- InvoicingException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listInvoiceSummariesPaginator
default ListInvoiceSummariesPublisher listInvoiceSummariesPaginator(ListInvoiceSummariesRequest listInvoiceSummariesRequest) This is a variant of
listInvoiceSummaries(software.amazon.awssdk.services.invoicing.model.ListInvoiceSummariesRequest)operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe method will result in a newSubscriptioni.e., a new contract to stream data from the starting request.The following are few ways to use the response class:
1) Using the subscribe helper method
2) Using a custom subscribersoftware.amazon.awssdk.services.invoicing.paginators.ListInvoiceSummariesPublisher publisher = client.listInvoiceSummariesPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.software.amazon.awssdk.services.invoicing.paginators.ListInvoiceSummariesPublisher publisher = client.listInvoiceSummariesPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.invoicing.model.ListInvoiceSummariesResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.invoicing.model.ListInvoiceSummariesResponse response) { //... }; });Please notice that the configuration of MaxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listInvoiceSummaries(software.amazon.awssdk.services.invoicing.model.ListInvoiceSummariesRequest)operation.- Parameters:
listInvoiceSummariesRequest-- Returns:
- A custom publisher that can be subscribed to request a stream of response pages.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ResourceNotFoundException The resource could not be found.
- ValidationException The input fails to satisfy the constraints specified by an Amazon Web Services service.
- InternalServerException The processing request failed because of an unknown error, exception, or failure.
- ThrottlingException The request was denied due to request throttling.
- AccessDeniedException You don't have sufficient access to perform this action.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- InvoicingException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listInvoiceSummariesPaginator
default ListInvoiceSummariesPublisher listInvoiceSummariesPaginator(Consumer<ListInvoiceSummariesRequest.Builder> listInvoiceSummariesRequest) This is a variant of
listInvoiceSummaries(software.amazon.awssdk.services.invoicing.model.ListInvoiceSummariesRequest)operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe method will result in a newSubscriptioni.e., a new contract to stream data from the starting request.The following are few ways to use the response class:
1) Using the subscribe helper method
2) Using a custom subscribersoftware.amazon.awssdk.services.invoicing.paginators.ListInvoiceSummariesPublisher publisher = client.listInvoiceSummariesPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.software.amazon.awssdk.services.invoicing.paginators.ListInvoiceSummariesPublisher publisher = client.listInvoiceSummariesPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.invoicing.model.ListInvoiceSummariesResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.invoicing.model.ListInvoiceSummariesResponse response) { //... }; });Please notice that the configuration of MaxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listInvoiceSummaries(software.amazon.awssdk.services.invoicing.model.ListInvoiceSummariesRequest)operation.
This is a convenience which creates an instance of the
ListInvoiceSummariesRequest.Builderavoiding the need to create one manually viaListInvoiceSummariesRequest.builder()- Parameters:
listInvoiceSummariesRequest- AConsumerthat will call methods onListInvoiceSummariesRequest.Builderto create a request.- Returns:
- A custom publisher that can be subscribed to request a stream of response pages.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ResourceNotFoundException The resource could not be found.
- ValidationException The input fails to satisfy the constraints specified by an Amazon Web Services service.
- InternalServerException The processing request failed because of an unknown error, exception, or failure.
- ThrottlingException The request was denied due to request throttling.
- AccessDeniedException You don't have sufficient access to perform this action.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- InvoicingException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listInvoiceUnits
default CompletableFuture<ListInvoiceUnitsResponse> listInvoiceUnits(ListInvoiceUnitsRequest listInvoiceUnitsRequest) This fetches a list of all invoice unit definitions for a given account, as of the provided
AsOfdate.- Parameters:
listInvoiceUnitsRequest-- Returns:
- A Java Future containing the result of the ListInvoiceUnits operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ValidationException The input fails to satisfy the constraints specified by an Amazon Web Services service.
- InternalServerException The processing request failed because of an unknown error, exception, or failure.
- ThrottlingException The request was denied due to request throttling.
- AccessDeniedException You don't have sufficient access to perform this action.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- InvoicingException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listInvoiceUnits
default CompletableFuture<ListInvoiceUnitsResponse> listInvoiceUnits(Consumer<ListInvoiceUnitsRequest.Builder> listInvoiceUnitsRequest) This fetches a list of all invoice unit definitions for a given account, as of the provided
AsOfdate.
This is a convenience which creates an instance of the
ListInvoiceUnitsRequest.Builderavoiding the need to create one manually viaListInvoiceUnitsRequest.builder()- Parameters:
listInvoiceUnitsRequest- AConsumerthat will call methods onListInvoiceUnitsRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the ListInvoiceUnits operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ValidationException The input fails to satisfy the constraints specified by an Amazon Web Services service.
- InternalServerException The processing request failed because of an unknown error, exception, or failure.
- ThrottlingException The request was denied due to request throttling.
- AccessDeniedException You don't have sufficient access to perform this action.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- InvoicingException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listInvoiceUnitsPaginator
default ListInvoiceUnitsPublisher listInvoiceUnitsPaginator(ListInvoiceUnitsRequest listInvoiceUnitsRequest) This is a variant of
listInvoiceUnits(software.amazon.awssdk.services.invoicing.model.ListInvoiceUnitsRequest)operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe method will result in a newSubscriptioni.e., a new contract to stream data from the starting request.The following are few ways to use the response class:
1) Using the subscribe helper method
2) Using a custom subscribersoftware.amazon.awssdk.services.invoicing.paginators.ListInvoiceUnitsPublisher publisher = client.listInvoiceUnitsPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.software.amazon.awssdk.services.invoicing.paginators.ListInvoiceUnitsPublisher publisher = client.listInvoiceUnitsPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.invoicing.model.ListInvoiceUnitsResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.invoicing.model.ListInvoiceUnitsResponse response) { //... }; });Please notice that the configuration of MaxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listInvoiceUnits(software.amazon.awssdk.services.invoicing.model.ListInvoiceUnitsRequest)operation.- Parameters:
listInvoiceUnitsRequest-- Returns:
- A custom publisher that can be subscribed to request a stream of response pages.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ValidationException The input fails to satisfy the constraints specified by an Amazon Web Services service.
- InternalServerException The processing request failed because of an unknown error, exception, or failure.
- ThrottlingException The request was denied due to request throttling.
- AccessDeniedException You don't have sufficient access to perform this action.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- InvoicingException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listInvoiceUnitsPaginator
default ListInvoiceUnitsPublisher listInvoiceUnitsPaginator(Consumer<ListInvoiceUnitsRequest.Builder> listInvoiceUnitsRequest) This is a variant of
listInvoiceUnits(software.amazon.awssdk.services.invoicing.model.ListInvoiceUnitsRequest)operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe method will result in a newSubscriptioni.e., a new contract to stream data from the starting request.The following are few ways to use the response class:
1) Using the subscribe helper method
2) Using a custom subscribersoftware.amazon.awssdk.services.invoicing.paginators.ListInvoiceUnitsPublisher publisher = client.listInvoiceUnitsPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.software.amazon.awssdk.services.invoicing.paginators.ListInvoiceUnitsPublisher publisher = client.listInvoiceUnitsPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.invoicing.model.ListInvoiceUnitsResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.invoicing.model.ListInvoiceUnitsResponse response) { //... }; });Please notice that the configuration of MaxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listInvoiceUnits(software.amazon.awssdk.services.invoicing.model.ListInvoiceUnitsRequest)operation.
This is a convenience which creates an instance of the
ListInvoiceUnitsRequest.Builderavoiding the need to create one manually viaListInvoiceUnitsRequest.builder()- Parameters:
listInvoiceUnitsRequest- AConsumerthat will call methods onListInvoiceUnitsRequest.Builderto create a request.- Returns:
- A custom publisher that can be subscribed to request a stream of response pages.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ValidationException The input fails to satisfy the constraints specified by an Amazon Web Services service.
- InternalServerException The processing request failed because of an unknown error, exception, or failure.
- ThrottlingException The request was denied due to request throttling.
- AccessDeniedException You don't have sufficient access to perform this action.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- InvoicingException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listProcurementPortalPreferences
default CompletableFuture<ListProcurementPortalPreferencesResponse> listProcurementPortalPreferences(ListProcurementPortalPreferencesRequest listProcurementPortalPreferencesRequest) Retrieves a list of procurement portal preferences associated with the Amazon Web Services account.
- Parameters:
listProcurementPortalPreferencesRequest-- Returns:
- A Java Future containing the result of the ListProcurementPortalPreferences operation returned by the
service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ConflictException The request could not be completed due to a conflict with the current state of the resource. This exception occurs when a concurrent modification is detected during an update operation, or when attempting to create a resource that already exists.
- ValidationException The input fails to satisfy the constraints specified by an Amazon Web Services service.
- InternalServerException The processing request failed because of an unknown error, exception, or failure.
- ServiceQuotaExceededException The request was rejected because it attempted to create resources beyond the current Amazon Web Services account limits. The error message describes the limit exceeded.
- ThrottlingException The request was denied due to request throttling.
- AccessDeniedException You don't have sufficient access to perform this action.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- InvoicingException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listProcurementPortalPreferences
default CompletableFuture<ListProcurementPortalPreferencesResponse> listProcurementPortalPreferences(Consumer<ListProcurementPortalPreferencesRequest.Builder> listProcurementPortalPreferencesRequest) Retrieves a list of procurement portal preferences associated with the Amazon Web Services account.
This is a convenience which creates an instance of the
ListProcurementPortalPreferencesRequest.Builderavoiding the need to create one manually viaListProcurementPortalPreferencesRequest.builder()- Parameters:
listProcurementPortalPreferencesRequest- AConsumerthat will call methods onListProcurementPortalPreferencesRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the ListProcurementPortalPreferences operation returned by the
service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ConflictException The request could not be completed due to a conflict with the current state of the resource. This exception occurs when a concurrent modification is detected during an update operation, or when attempting to create a resource that already exists.
- ValidationException The input fails to satisfy the constraints specified by an Amazon Web Services service.
- InternalServerException The processing request failed because of an unknown error, exception, or failure.
- ServiceQuotaExceededException The request was rejected because it attempted to create resources beyond the current Amazon Web Services account limits. The error message describes the limit exceeded.
- ThrottlingException The request was denied due to request throttling.
- AccessDeniedException You don't have sufficient access to perform this action.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- InvoicingException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listProcurementPortalPreferencesPaginator
default ListProcurementPortalPreferencesPublisher listProcurementPortalPreferencesPaginator(ListProcurementPortalPreferencesRequest listProcurementPortalPreferencesRequest) This is a variant of
listProcurementPortalPreferences(software.amazon.awssdk.services.invoicing.model.ListProcurementPortalPreferencesRequest)operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe method will result in a newSubscriptioni.e., a new contract to stream data from the starting request.The following are few ways to use the response class:
1) Using the subscribe helper method
2) Using a custom subscribersoftware.amazon.awssdk.services.invoicing.paginators.ListProcurementPortalPreferencesPublisher publisher = client.listProcurementPortalPreferencesPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.software.amazon.awssdk.services.invoicing.paginators.ListProcurementPortalPreferencesPublisher publisher = client.listProcurementPortalPreferencesPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.invoicing.model.ListProcurementPortalPreferencesResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.invoicing.model.ListProcurementPortalPreferencesResponse response) { //... }; });Please notice that the configuration of MaxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listProcurementPortalPreferences(software.amazon.awssdk.services.invoicing.model.ListProcurementPortalPreferencesRequest)operation.- Parameters:
listProcurementPortalPreferencesRequest-- Returns:
- A custom publisher that can be subscribed to request a stream of response pages.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ConflictException The request could not be completed due to a conflict with the current state of the resource. This exception occurs when a concurrent modification is detected during an update operation, or when attempting to create a resource that already exists.
- ValidationException The input fails to satisfy the constraints specified by an Amazon Web Services service.
- InternalServerException The processing request failed because of an unknown error, exception, or failure.
- ServiceQuotaExceededException The request was rejected because it attempted to create resources beyond the current Amazon Web Services account limits. The error message describes the limit exceeded.
- ThrottlingException The request was denied due to request throttling.
- AccessDeniedException You don't have sufficient access to perform this action.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- InvoicingException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listProcurementPortalPreferencesPaginator
default ListProcurementPortalPreferencesPublisher listProcurementPortalPreferencesPaginator(Consumer<ListProcurementPortalPreferencesRequest.Builder> listProcurementPortalPreferencesRequest) This is a variant of
listProcurementPortalPreferences(software.amazon.awssdk.services.invoicing.model.ListProcurementPortalPreferencesRequest)operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe method will result in a newSubscriptioni.e., a new contract to stream data from the starting request.The following are few ways to use the response class:
1) Using the subscribe helper method
2) Using a custom subscribersoftware.amazon.awssdk.services.invoicing.paginators.ListProcurementPortalPreferencesPublisher publisher = client.listProcurementPortalPreferencesPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.software.amazon.awssdk.services.invoicing.paginators.ListProcurementPortalPreferencesPublisher publisher = client.listProcurementPortalPreferencesPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.invoicing.model.ListProcurementPortalPreferencesResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.invoicing.model.ListProcurementPortalPreferencesResponse response) { //... }; });Please notice that the configuration of MaxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listProcurementPortalPreferences(software.amazon.awssdk.services.invoicing.model.ListProcurementPortalPreferencesRequest)operation.
This is a convenience which creates an instance of the
ListProcurementPortalPreferencesRequest.Builderavoiding the need to create one manually viaListProcurementPortalPreferencesRequest.builder()- Parameters:
listProcurementPortalPreferencesRequest- AConsumerthat will call methods onListProcurementPortalPreferencesRequest.Builderto create a request.- Returns:
- A custom publisher that can be subscribed to request a stream of response pages.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ConflictException The request could not be completed due to a conflict with the current state of the resource. This exception occurs when a concurrent modification is detected during an update operation, or when attempting to create a resource that already exists.
- ValidationException The input fails to satisfy the constraints specified by an Amazon Web Services service.
- InternalServerException The processing request failed because of an unknown error, exception, or failure.
- ServiceQuotaExceededException The request was rejected because it attempted to create resources beyond the current Amazon Web Services account limits. The error message describes the limit exceeded.
- ThrottlingException The request was denied due to request throttling.
- AccessDeniedException You don't have sufficient access to perform this action.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- InvoicingException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listTagsForResource
default CompletableFuture<ListTagsForResourceResponse> listTagsForResource(ListTagsForResourceRequest listTagsForResourceRequest) Lists the tags for a resource.
- Parameters:
listTagsForResourceRequest-- Returns:
- A Java Future containing the result of the ListTagsForResource operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ResourceNotFoundException The resource could not be found.
- ValidationException The input fails to satisfy the constraints specified by an Amazon Web Services service.
- InternalServerException The processing request failed because of an unknown error, exception, or failure.
- ThrottlingException The request was denied due to request throttling.
- AccessDeniedException You don't have sufficient access to perform this action.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- InvoicingException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listTagsForResource
default CompletableFuture<ListTagsForResourceResponse> listTagsForResource(Consumer<ListTagsForResourceRequest.Builder> listTagsForResourceRequest) Lists the tags for a 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:
- A Java Future containing the result of the ListTagsForResource operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ResourceNotFoundException The resource could not be found.
- ValidationException The input fails to satisfy the constraints specified by an Amazon Web Services service.
- InternalServerException The processing request failed because of an unknown error, exception, or failure.
- ThrottlingException The request was denied due to request throttling.
- AccessDeniedException You don't have sufficient access to perform this action.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- InvoicingException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
putProcurementPortalPreference
default CompletableFuture<PutProcurementPortalPreferenceResponse> putProcurementPortalPreference(PutProcurementPortalPreferenceRequest putProcurementPortalPreferenceRequest) Updates an existing procurement portal preference configuration. This operation can modify settings for e-invoice delivery and purchase order retrieval.
- Parameters:
putProcurementPortalPreferenceRequest-- Returns:
- A Java Future containing the result of the PutProcurementPortalPreference operation returned by the
service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ResourceNotFoundException The resource could not be found.
- ConflictException The request could not be completed due to a conflict with the current state of the resource. This exception occurs when a concurrent modification is detected during an update operation, or when attempting to create a resource that already exists.
- ValidationException The input fails to satisfy the constraints specified by an Amazon Web Services service.
- InternalServerException The processing request failed because of an unknown error, exception, or failure.
- ServiceQuotaExceededException The request was rejected because it attempted to create resources beyond the current Amazon Web Services account limits. The error message describes the limit exceeded.
- ThrottlingException The request was denied due to request throttling.
- AccessDeniedException You don't have sufficient access to perform this action.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- InvoicingException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
putProcurementPortalPreference
default CompletableFuture<PutProcurementPortalPreferenceResponse> putProcurementPortalPreference(Consumer<PutProcurementPortalPreferenceRequest.Builder> putProcurementPortalPreferenceRequest) Updates an existing procurement portal preference configuration. This operation can modify settings for e-invoice delivery and purchase order retrieval.
This is a convenience which creates an instance of the
PutProcurementPortalPreferenceRequest.Builderavoiding the need to create one manually viaPutProcurementPortalPreferenceRequest.builder()- Parameters:
putProcurementPortalPreferenceRequest- AConsumerthat will call methods onPutProcurementPortalPreferenceRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the PutProcurementPortalPreference operation returned by the
service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ResourceNotFoundException The resource could not be found.
- ConflictException The request could not be completed due to a conflict with the current state of the resource. This exception occurs when a concurrent modification is detected during an update operation, or when attempting to create a resource that already exists.
- ValidationException The input fails to satisfy the constraints specified by an Amazon Web Services service.
- InternalServerException The processing request failed because of an unknown error, exception, or failure.
- ServiceQuotaExceededException The request was rejected because it attempted to create resources beyond the current Amazon Web Services account limits. The error message describes the limit exceeded.
- ThrottlingException The request was denied due to request throttling.
- AccessDeniedException You don't have sufficient access to perform this action.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- InvoicingException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
tagResource
Adds a tag to a resource.
- Parameters:
tagResourceRequest-- Returns:
- A Java Future containing the result of the TagResource operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ResourceNotFoundException The resource could not be found.
- ValidationException The input fails to satisfy the constraints specified by an Amazon Web Services service.
- InternalServerException The processing request failed because of an unknown error, exception, or failure.
- ServiceQuotaExceededException The request was rejected because it attempted to create resources beyond the current Amazon Web Services account limits. The error message describes the limit exceeded.
- ThrottlingException The request was denied due to request throttling.
- AccessDeniedException You don't have sufficient access to perform this action.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- InvoicingException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
tagResource
default CompletableFuture<TagResourceResponse> tagResource(Consumer<TagResourceRequest.Builder> tagResourceRequest) Adds a tag 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:
- A Java Future containing the result of the TagResource operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ResourceNotFoundException The resource could not be found.
- ValidationException The input fails to satisfy the constraints specified by an Amazon Web Services service.
- InternalServerException The processing request failed because of an unknown error, exception, or failure.
- ServiceQuotaExceededException The request was rejected because it attempted to create resources beyond the current Amazon Web Services account limits. The error message describes the limit exceeded.
- ThrottlingException The request was denied due to request throttling.
- AccessDeniedException You don't have sufficient access to perform this action.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- InvoicingException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
untagResource
default CompletableFuture<UntagResourceResponse> untagResource(UntagResourceRequest untagResourceRequest) Removes a tag from a resource.
- Parameters:
untagResourceRequest-- Returns:
- A Java Future containing the result of the UntagResource operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ResourceNotFoundException The resource could not be found.
- ValidationException The input fails to satisfy the constraints specified by an Amazon Web Services service.
- InternalServerException The processing request failed because of an unknown error, exception, or failure.
- ThrottlingException The request was denied due to request throttling.
- AccessDeniedException You don't have sufficient access to perform this action.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- InvoicingException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
untagResource
default CompletableFuture<UntagResourceResponse> untagResource(Consumer<UntagResourceRequest.Builder> untagResourceRequest) Removes a tag from a resource.
This is a convenience which creates an instance of the
UntagResourceRequest.Builderavoiding the need to create one manually viaUntagResourceRequest.builder()- Parameters:
untagResourceRequest- AConsumerthat will call methods onUntagResourceRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the UntagResource operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ResourceNotFoundException The resource could not be found.
- ValidationException The input fails to satisfy the constraints specified by an Amazon Web Services service.
- InternalServerException The processing request failed because of an unknown error, exception, or failure.
- ThrottlingException The request was denied due to request throttling.
- AccessDeniedException You don't have sufficient access to perform this action.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- InvoicingException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
updateInvoiceUnit
default CompletableFuture<UpdateInvoiceUnitResponse> updateInvoiceUnit(UpdateInvoiceUnitRequest updateInvoiceUnitRequest) You can update the invoice unit configuration at any time, and Amazon Web Services will use the latest configuration at the end of the month.
- Parameters:
updateInvoiceUnitRequest-- Returns:
- A Java Future containing the result of the UpdateInvoiceUnit operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ResourceNotFoundException The resource could not be found.
- ValidationException The input fails to satisfy the constraints specified by an Amazon Web Services service.
- InternalServerException The processing request failed because of an unknown error, exception, or failure.
- ThrottlingException The request was denied due to request throttling.
- AccessDeniedException You don't have sufficient access to perform this action.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- InvoicingException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
updateInvoiceUnit
default CompletableFuture<UpdateInvoiceUnitResponse> updateInvoiceUnit(Consumer<UpdateInvoiceUnitRequest.Builder> updateInvoiceUnitRequest) You can update the invoice unit configuration at any time, and Amazon Web Services will use the latest configuration at the end of the month.
This is a convenience which creates an instance of the
UpdateInvoiceUnitRequest.Builderavoiding the need to create one manually viaUpdateInvoiceUnitRequest.builder()- Parameters:
updateInvoiceUnitRequest- AConsumerthat will call methods onUpdateInvoiceUnitRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the UpdateInvoiceUnit operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ResourceNotFoundException The resource could not be found.
- ValidationException The input fails to satisfy the constraints specified by an Amazon Web Services service.
- InternalServerException The processing request failed because of an unknown error, exception, or failure.
- ThrottlingException The request was denied due to request throttling.
- AccessDeniedException You don't have sufficient access to perform this action.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- InvoicingException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
updateProcurementPortalPreferenceStatus
default CompletableFuture<UpdateProcurementPortalPreferenceStatusResponse> updateProcurementPortalPreferenceStatus(UpdateProcurementPortalPreferenceStatusRequest updateProcurementPortalPreferenceStatusRequest) Updates the status of a procurement portal preference, including the activation state of e-invoice delivery and purchase order retrieval features.
- Parameters:
updateProcurementPortalPreferenceStatusRequest-- Returns:
- A Java Future containing the result of the UpdateProcurementPortalPreferenceStatus operation returned by
the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ResourceNotFoundException The resource could not be found.
- ConflictException The request could not be completed due to a conflict with the current state of the resource. This exception occurs when a concurrent modification is detected during an update operation, or when attempting to create a resource that already exists.
- ValidationException The input fails to satisfy the constraints specified by an Amazon Web Services service.
- InternalServerException The processing request failed because of an unknown error, exception, or failure.
- ServiceQuotaExceededException The request was rejected because it attempted to create resources beyond the current Amazon Web Services account limits. The error message describes the limit exceeded.
- ThrottlingException The request was denied due to request throttling.
- AccessDeniedException You don't have sufficient access to perform this action.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- InvoicingException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
updateProcurementPortalPreferenceStatus
default CompletableFuture<UpdateProcurementPortalPreferenceStatusResponse> updateProcurementPortalPreferenceStatus(Consumer<UpdateProcurementPortalPreferenceStatusRequest.Builder> updateProcurementPortalPreferenceStatusRequest) Updates the status of a procurement portal preference, including the activation state of e-invoice delivery and purchase order retrieval features.
This is a convenience which creates an instance of the
UpdateProcurementPortalPreferenceStatusRequest.Builderavoiding the need to create one manually viaUpdateProcurementPortalPreferenceStatusRequest.builder()- Parameters:
updateProcurementPortalPreferenceStatusRequest- AConsumerthat will call methods onUpdateProcurementPortalPreferenceStatusRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the UpdateProcurementPortalPreferenceStatus operation returned by
the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ResourceNotFoundException The resource could not be found.
- ConflictException The request could not be completed due to a conflict with the current state of the resource. This exception occurs when a concurrent modification is detected during an update operation, or when attempting to create a resource that already exists.
- ValidationException The input fails to satisfy the constraints specified by an Amazon Web Services service.
- InternalServerException The processing request failed because of an unknown error, exception, or failure.
- ServiceQuotaExceededException The request was rejected because it attempted to create resources beyond the current Amazon Web Services account limits. The error message describes the limit exceeded.
- ThrottlingException The request was denied due to request throttling.
- AccessDeniedException You don't have sufficient access to perform this action.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- InvoicingException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
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
-
create
Create aInvoicingAsyncClientwith the region loaded from theDefaultAwsRegionProviderChainand credentials loaded from theDefaultCredentialsProvider. -
builder
Create a builder that can be used to configure and create aInvoicingAsyncClient.
-