Interface PartnerCentralBenefitsClient
- All Superinterfaces:
AutoCloseable,AwsClient,SdkAutoCloseable,SdkClient
builder() method.
AWS Partner Central Benefits Service provides APIs for managing partner benefits, applications, and allocations within the AWS Partner Network ecosystem.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringValue for looking up the service's metadata from theServiceMetadataProvider.static final String -
Method Summary
Modifier and TypeMethodDescriptiondefault AmendBenefitApplicationResponseamendBenefitApplication(Consumer<AmendBenefitApplicationRequest.Builder> amendBenefitApplicationRequest) Modifies an existing benefit application by applying amendments to specific fields while maintaining revision control.default AmendBenefitApplicationResponseamendBenefitApplication(AmendBenefitApplicationRequest amendBenefitApplicationRequest) Modifies an existing benefit application by applying amendments to specific fields while maintaining revision control.associateBenefitApplicationResource(Consumer<AssociateBenefitApplicationResourceRequest.Builder> associateBenefitApplicationResourceRequest) Links an AWS resource to an existing benefit application for tracking and management purposes.associateBenefitApplicationResource(AssociateBenefitApplicationResourceRequest associateBenefitApplicationResourceRequest) Links an AWS resource to an existing benefit application for tracking and management purposes.builder()Create a builder that can be used to configure and create aPartnerCentralBenefitsClient.default CancelBenefitApplicationResponsecancelBenefitApplication(Consumer<CancelBenefitApplicationRequest.Builder> cancelBenefitApplicationRequest) Cancels a benefit application that is currently in progress, preventing further processing.default CancelBenefitApplicationResponsecancelBenefitApplication(CancelBenefitApplicationRequest cancelBenefitApplicationRequest) Cancels a benefit application that is currently in progress, preventing further processing.static PartnerCentralBenefitsClientcreate()Create aPartnerCentralBenefitsClientwith the region loaded from theDefaultAwsRegionProviderChainand credentials loaded from theDefaultCredentialsProvider.default CreateBenefitApplicationResponsecreateBenefitApplication(Consumer<CreateBenefitApplicationRequest.Builder> createBenefitApplicationRequest) Creates a new benefit application for a partner to request access to AWS benefits and programs.default CreateBenefitApplicationResponsecreateBenefitApplication(CreateBenefitApplicationRequest createBenefitApplicationRequest) Creates a new benefit application for a partner to request access to AWS benefits and programs.disassociateBenefitApplicationResource(Consumer<DisassociateBenefitApplicationResourceRequest.Builder> disassociateBenefitApplicationResourceRequest) Removes the association between an AWS resource and a benefit application.disassociateBenefitApplicationResource(DisassociateBenefitApplicationResourceRequest disassociateBenefitApplicationResourceRequest) Removes the association between an AWS resource and a benefit application.default GetBenefitResponsegetBenefit(Consumer<GetBenefitRequest.Builder> getBenefitRequest) Retrieves detailed information about a specific benefit available in the partner catalog.default GetBenefitResponsegetBenefit(GetBenefitRequest getBenefitRequest) Retrieves detailed information about a specific benefit available in the partner catalog.default GetBenefitAllocationResponsegetBenefitAllocation(Consumer<GetBenefitAllocationRequest.Builder> getBenefitAllocationRequest) Retrieves detailed information about a specific benefit allocation that has been granted to a partner.default GetBenefitAllocationResponsegetBenefitAllocation(GetBenefitAllocationRequest getBenefitAllocationRequest) Retrieves detailed information about a specific benefit allocation that has been granted to a partner.default GetBenefitApplicationResponsegetBenefitApplication(Consumer<GetBenefitApplicationRequest.Builder> getBenefitApplicationRequest) Retrieves detailed information about a specific benefit application.default GetBenefitApplicationResponsegetBenefitApplication(GetBenefitApplicationRequest getBenefitApplicationRequest) Retrieves detailed information about a specific benefit application.default ListBenefitAllocationsResponselistBenefitAllocations(Consumer<ListBenefitAllocationsRequest.Builder> listBenefitAllocationsRequest) Retrieves a paginated list of benefit allocations based on specified filter criteria.default ListBenefitAllocationsResponselistBenefitAllocations(ListBenefitAllocationsRequest listBenefitAllocationsRequest) Retrieves a paginated list of benefit allocations based on specified filter criteria.default ListBenefitAllocationsIterablelistBenefitAllocationsPaginator(Consumer<ListBenefitAllocationsRequest.Builder> listBenefitAllocationsRequest) This is a variant oflistBenefitAllocations(software.amazon.awssdk.services.partnercentralbenefits.model.ListBenefitAllocationsRequest)operation.default ListBenefitAllocationsIterablelistBenefitAllocationsPaginator(ListBenefitAllocationsRequest listBenefitAllocationsRequest) This is a variant oflistBenefitAllocations(software.amazon.awssdk.services.partnercentralbenefits.model.ListBenefitAllocationsRequest)operation.default ListBenefitApplicationsResponselistBenefitApplications(Consumer<ListBenefitApplicationsRequest.Builder> listBenefitApplicationsRequest) Retrieves a paginated list of benefit applications based on specified filter criteria.default ListBenefitApplicationsResponselistBenefitApplications(ListBenefitApplicationsRequest listBenefitApplicationsRequest) Retrieves a paginated list of benefit applications based on specified filter criteria.default ListBenefitApplicationsIterablelistBenefitApplicationsPaginator(Consumer<ListBenefitApplicationsRequest.Builder> listBenefitApplicationsRequest) This is a variant oflistBenefitApplications(software.amazon.awssdk.services.partnercentralbenefits.model.ListBenefitApplicationsRequest)operation.default ListBenefitApplicationsIterablelistBenefitApplicationsPaginator(ListBenefitApplicationsRequest listBenefitApplicationsRequest) This is a variant oflistBenefitApplications(software.amazon.awssdk.services.partnercentralbenefits.model.ListBenefitApplicationsRequest)operation.default ListBenefitsResponselistBenefits(Consumer<ListBenefitsRequest.Builder> listBenefitsRequest) Retrieves a paginated list of available benefits based on specified filter criteria.default ListBenefitsResponselistBenefits(ListBenefitsRequest listBenefitsRequest) Retrieves a paginated list of available benefits based on specified filter criteria.default ListBenefitsIterablelistBenefitsPaginator(Consumer<ListBenefitsRequest.Builder> listBenefitsRequest) This is a variant oflistBenefits(software.amazon.awssdk.services.partnercentralbenefits.model.ListBenefitsRequest)operation.default ListBenefitsIterablelistBenefitsPaginator(ListBenefitsRequest listBenefitsRequest) This is a variant oflistBenefits(software.amazon.awssdk.services.partnercentralbenefits.model.ListBenefitsRequest)operation.default ListTagsForResourceResponselistTagsForResource(Consumer<ListTagsForResourceRequest.Builder> listTagsForResourceRequest) Retrieves all tags associated with a specific resource.default ListTagsForResourceResponselistTagsForResource(ListTagsForResourceRequest listTagsForResourceRequest) Retrieves all tags associated with a specific resource.default RecallBenefitApplicationResponserecallBenefitApplication(Consumer<RecallBenefitApplicationRequest.Builder> recallBenefitApplicationRequest) Recalls a submitted benefit application, returning it to draft status for further modifications.default RecallBenefitApplicationResponserecallBenefitApplication(RecallBenefitApplicationRequest recallBenefitApplicationRequest) Recalls a submitted benefit application, returning it to draft status for further modifications.The SDK service client configuration exposes client settings to the user, e.g., ClientOverrideConfigurationstatic ServiceMetadatadefault SubmitBenefitApplicationResponsesubmitBenefitApplication(Consumer<SubmitBenefitApplicationRequest.Builder> submitBenefitApplicationRequest) Submits a benefit application for review and processing by AWS.default SubmitBenefitApplicationResponsesubmitBenefitApplication(SubmitBenefitApplicationRequest submitBenefitApplicationRequest) Submits a benefit application for review and processing by AWS.default TagResourceResponsetagResource(Consumer<TagResourceRequest.Builder> tagResourceRequest) Adds or updates tags for a specified resource.default TagResourceResponsetagResource(TagResourceRequest tagResourceRequest) Adds or updates tags for a specified resource.default UntagResourceResponseuntagResource(Consumer<UntagResourceRequest.Builder> untagResourceRequest) Removes specified tags from a resource.default UntagResourceResponseuntagResource(UntagResourceRequest untagResourceRequest) Removes specified tags from a resource.default UpdateBenefitApplicationResponseupdateBenefitApplication(Consumer<UpdateBenefitApplicationRequest.Builder> updateBenefitApplicationRequest) Updates an existing benefit application with new information while maintaining revision control.default UpdateBenefitApplicationResponseupdateBenefitApplication(UpdateBenefitApplicationRequest updateBenefitApplicationRequest) Updates an existing benefit application with new information while maintaining revision control.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
-
amendBenefitApplication
default AmendBenefitApplicationResponse amendBenefitApplication(AmendBenefitApplicationRequest amendBenefitApplicationRequest) throws ValidationException, AccessDeniedException, InternalServerException, ConflictException, ThrottlingException, ResourceNotFoundException, AwsServiceException, SdkClientException, PartnerCentralBenefitsException Modifies an existing benefit application by applying amendments to specific fields while maintaining revision control.
- Parameters:
amendBenefitApplicationRequest-- Returns:
- Result of the AmendBenefitApplication operation returned by the service.
- See Also:
-
amendBenefitApplication
default AmendBenefitApplicationResponse amendBenefitApplication(Consumer<AmendBenefitApplicationRequest.Builder> amendBenefitApplicationRequest) throws ValidationException, AccessDeniedException, InternalServerException, ConflictException, ThrottlingException, ResourceNotFoundException, AwsServiceException, SdkClientException, PartnerCentralBenefitsException Modifies an existing benefit application by applying amendments to specific fields while maintaining revision control.
This is a convenience which creates an instance of the
AmendBenefitApplicationRequest.Builderavoiding the need to create one manually viaAmendBenefitApplicationRequest.builder()- Parameters:
amendBenefitApplicationRequest- AConsumerthat will call methods onAmendBenefitApplicationRequest.Builderto create a request.- Returns:
- Result of the AmendBenefitApplication operation returned by the service.
- See Also:
-
associateBenefitApplicationResource
default AssociateBenefitApplicationResourceResponse associateBenefitApplicationResource(AssociateBenefitApplicationResourceRequest associateBenefitApplicationResourceRequest) throws ValidationException, AccessDeniedException, InternalServerException, ConflictException, ThrottlingException, ResourceNotFoundException, AwsServiceException, SdkClientException, PartnerCentralBenefitsException Links an AWS resource to an existing benefit application for tracking and management purposes.
- Parameters:
associateBenefitApplicationResourceRequest-- Returns:
- Result of the AssociateBenefitApplicationResource operation returned by the service.
- See Also:
-
associateBenefitApplicationResource
default AssociateBenefitApplicationResourceResponse associateBenefitApplicationResource(Consumer<AssociateBenefitApplicationResourceRequest.Builder> associateBenefitApplicationResourceRequest) throws ValidationException, AccessDeniedException, InternalServerException, ConflictException, ThrottlingException, ResourceNotFoundException, AwsServiceException, SdkClientException, PartnerCentralBenefitsException Links an AWS resource to an existing benefit application for tracking and management purposes.
This is a convenience which creates an instance of the
AssociateBenefitApplicationResourceRequest.Builderavoiding the need to create one manually viaAssociateBenefitApplicationResourceRequest.builder()- Parameters:
associateBenefitApplicationResourceRequest- AConsumerthat will call methods onAssociateBenefitApplicationResourceRequest.Builderto create a request.- Returns:
- Result of the AssociateBenefitApplicationResource operation returned by the service.
- See Also:
-
cancelBenefitApplication
default CancelBenefitApplicationResponse cancelBenefitApplication(CancelBenefitApplicationRequest cancelBenefitApplicationRequest) throws ValidationException, AccessDeniedException, InternalServerException, ConflictException, ResourceNotFoundException, ThrottlingException, AwsServiceException, SdkClientException, PartnerCentralBenefitsException Cancels a benefit application that is currently in progress, preventing further processing.
- Parameters:
cancelBenefitApplicationRequest-- Returns:
- Result of the CancelBenefitApplication operation returned by the service.
- See Also:
-
cancelBenefitApplication
default CancelBenefitApplicationResponse cancelBenefitApplication(Consumer<CancelBenefitApplicationRequest.Builder> cancelBenefitApplicationRequest) throws ValidationException, AccessDeniedException, InternalServerException, ConflictException, ResourceNotFoundException, ThrottlingException, AwsServiceException, SdkClientException, PartnerCentralBenefitsException Cancels a benefit application that is currently in progress, preventing further processing.
This is a convenience which creates an instance of the
CancelBenefitApplicationRequest.Builderavoiding the need to create one manually viaCancelBenefitApplicationRequest.builder()- Parameters:
cancelBenefitApplicationRequest- AConsumerthat will call methods onCancelBenefitApplicationRequest.Builderto create a request.- Returns:
- Result of the CancelBenefitApplication operation returned by the service.
- See Also:
-
createBenefitApplication
default CreateBenefitApplicationResponse createBenefitApplication(CreateBenefitApplicationRequest createBenefitApplicationRequest) throws ValidationException, AccessDeniedException, InternalServerException, ConflictException, ThrottlingException, ResourceNotFoundException, AwsServiceException, SdkClientException, PartnerCentralBenefitsException Creates a new benefit application for a partner to request access to AWS benefits and programs.
- Parameters:
createBenefitApplicationRequest-- Returns:
- Result of the CreateBenefitApplication operation returned by the service.
- See Also:
-
createBenefitApplication
default CreateBenefitApplicationResponse createBenefitApplication(Consumer<CreateBenefitApplicationRequest.Builder> createBenefitApplicationRequest) throws ValidationException, AccessDeniedException, InternalServerException, ConflictException, ThrottlingException, ResourceNotFoundException, AwsServiceException, SdkClientException, PartnerCentralBenefitsException Creates a new benefit application for a partner to request access to AWS benefits and programs.
This is a convenience which creates an instance of the
CreateBenefitApplicationRequest.Builderavoiding the need to create one manually viaCreateBenefitApplicationRequest.builder()- Parameters:
createBenefitApplicationRequest- AConsumerthat will call methods onCreateBenefitApplicationRequest.Builderto create a request.- Returns:
- Result of the CreateBenefitApplication operation returned by the service.
- See Also:
-
disassociateBenefitApplicationResource
default DisassociateBenefitApplicationResourceResponse disassociateBenefitApplicationResource(DisassociateBenefitApplicationResourceRequest disassociateBenefitApplicationResourceRequest) throws ValidationException, AccessDeniedException, InternalServerException, ConflictException, ThrottlingException, ResourceNotFoundException, AwsServiceException, SdkClientException, PartnerCentralBenefitsException Removes the association between an AWS resource and a benefit application.
- Parameters:
disassociateBenefitApplicationResourceRequest-- Returns:
- Result of the DisassociateBenefitApplicationResource operation returned by the service.
- See Also:
-
disassociateBenefitApplicationResource
default DisassociateBenefitApplicationResourceResponse disassociateBenefitApplicationResource(Consumer<DisassociateBenefitApplicationResourceRequest.Builder> disassociateBenefitApplicationResourceRequest) throws ValidationException, AccessDeniedException, InternalServerException, ConflictException, ThrottlingException, ResourceNotFoundException, AwsServiceException, SdkClientException, PartnerCentralBenefitsException Removes the association between an AWS resource and a benefit application.
This is a convenience which creates an instance of the
DisassociateBenefitApplicationResourceRequest.Builderavoiding the need to create one manually viaDisassociateBenefitApplicationResourceRequest.builder()- Parameters:
disassociateBenefitApplicationResourceRequest- AConsumerthat will call methods onDisassociateBenefitApplicationResourceRequest.Builderto create a request.- Returns:
- Result of the DisassociateBenefitApplicationResource operation returned by the service.
- See Also:
-
getBenefit
default GetBenefitResponse getBenefit(GetBenefitRequest getBenefitRequest) throws ValidationException, AccessDeniedException, InternalServerException, ThrottlingException, ResourceNotFoundException, AwsServiceException, SdkClientException, PartnerCentralBenefitsException Retrieves detailed information about a specific benefit available in the partner catalog.
- Parameters:
getBenefitRequest-- Returns:
- Result of the GetBenefit operation returned by the service.
- See Also:
-
getBenefit
default GetBenefitResponse getBenefit(Consumer<GetBenefitRequest.Builder> getBenefitRequest) throws ValidationException, AccessDeniedException, InternalServerException, ThrottlingException, ResourceNotFoundException, AwsServiceException, SdkClientException, PartnerCentralBenefitsException Retrieves detailed information about a specific benefit available in the partner catalog.
This is a convenience which creates an instance of the
GetBenefitRequest.Builderavoiding the need to create one manually viaGetBenefitRequest.builder()- Parameters:
getBenefitRequest- AConsumerthat will call methods onGetBenefitRequest.Builderto create a request.- Returns:
- Result of the GetBenefit operation returned by the service.
- See Also:
-
getBenefitAllocation
default GetBenefitAllocationResponse getBenefitAllocation(GetBenefitAllocationRequest getBenefitAllocationRequest) throws AccessDeniedException, ValidationException, InternalServerException, ResourceNotFoundException, ThrottlingException, AwsServiceException, SdkClientException, PartnerCentralBenefitsException Retrieves detailed information about a specific benefit allocation that has been granted to a partner.
- Parameters:
getBenefitAllocationRequest-- Returns:
- Result of the GetBenefitAllocation operation returned by the service.
- See Also:
-
getBenefitAllocation
default GetBenefitAllocationResponse getBenefitAllocation(Consumer<GetBenefitAllocationRequest.Builder> getBenefitAllocationRequest) throws AccessDeniedException, ValidationException, InternalServerException, ResourceNotFoundException, ThrottlingException, AwsServiceException, SdkClientException, PartnerCentralBenefitsException Retrieves detailed information about a specific benefit allocation that has been granted to a partner.
This is a convenience which creates an instance of the
GetBenefitAllocationRequest.Builderavoiding the need to create one manually viaGetBenefitAllocationRequest.builder()- Parameters:
getBenefitAllocationRequest- AConsumerthat will call methods onGetBenefitAllocationRequest.Builderto create a request.- Returns:
- Result of the GetBenefitAllocation operation returned by the service.
- See Also:
-
getBenefitApplication
default GetBenefitApplicationResponse getBenefitApplication(GetBenefitApplicationRequest getBenefitApplicationRequest) throws ValidationException, AccessDeniedException, InternalServerException, ConflictException, ResourceNotFoundException, ThrottlingException, AwsServiceException, SdkClientException, PartnerCentralBenefitsException Retrieves detailed information about a specific benefit application.
- Parameters:
getBenefitApplicationRequest-- Returns:
- Result of the GetBenefitApplication operation returned by the service.
- See Also:
-
getBenefitApplication
default GetBenefitApplicationResponse getBenefitApplication(Consumer<GetBenefitApplicationRequest.Builder> getBenefitApplicationRequest) throws ValidationException, AccessDeniedException, InternalServerException, ConflictException, ResourceNotFoundException, ThrottlingException, AwsServiceException, SdkClientException, PartnerCentralBenefitsException Retrieves detailed information about a specific benefit application.
This is a convenience which creates an instance of the
GetBenefitApplicationRequest.Builderavoiding the need to create one manually viaGetBenefitApplicationRequest.builder()- Parameters:
getBenefitApplicationRequest- AConsumerthat will call methods onGetBenefitApplicationRequest.Builderto create a request.- Returns:
- Result of the GetBenefitApplication operation returned by the service.
- See Also:
-
listBenefitAllocations
default ListBenefitAllocationsResponse listBenefitAllocations(ListBenefitAllocationsRequest listBenefitAllocationsRequest) throws AccessDeniedException, ValidationException, InternalServerException, ResourceNotFoundException, ThrottlingException, AwsServiceException, SdkClientException, PartnerCentralBenefitsException Retrieves a paginated list of benefit allocations based on specified filter criteria.
- Parameters:
listBenefitAllocationsRequest-- Returns:
- Result of the ListBenefitAllocations operation returned by the service.
- See Also:
-
listBenefitAllocations
default ListBenefitAllocationsResponse listBenefitAllocations(Consumer<ListBenefitAllocationsRequest.Builder> listBenefitAllocationsRequest) throws AccessDeniedException, ValidationException, InternalServerException, ResourceNotFoundException, ThrottlingException, AwsServiceException, SdkClientException, PartnerCentralBenefitsException Retrieves a paginated list of benefit allocations based on specified filter criteria.
This is a convenience which creates an instance of the
ListBenefitAllocationsRequest.Builderavoiding the need to create one manually viaListBenefitAllocationsRequest.builder()- Parameters:
listBenefitAllocationsRequest- AConsumerthat will call methods onListBenefitAllocationsRequest.Builderto create a request.- Returns:
- Result of the ListBenefitAllocations operation returned by the service.
- See Also:
-
listBenefitAllocationsPaginator
default ListBenefitAllocationsIterable listBenefitAllocationsPaginator(ListBenefitAllocationsRequest listBenefitAllocationsRequest) throws AccessDeniedException, ValidationException, InternalServerException, ResourceNotFoundException, ThrottlingException, AwsServiceException, SdkClientException, PartnerCentralBenefitsException This is a variant of
listBenefitAllocations(software.amazon.awssdk.services.partnercentralbenefits.model.ListBenefitAllocationsRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.partnercentralbenefits.paginators.ListBenefitAllocationsIterable responses = client.listBenefitAllocationsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.partnercentralbenefits.paginators.ListBenefitAllocationsIterable responses = client .listBenefitAllocationsPaginator(request); for (software.amazon.awssdk.services.partnercentralbenefits.model.ListBenefitAllocationsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.partnercentralbenefits.paginators.ListBenefitAllocationsIterable responses = client.listBenefitAllocationsPaginator(request); responses.iterator().forEachRemaining(....);Please notice that the configuration of MaxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listBenefitAllocations(software.amazon.awssdk.services.partnercentralbenefits.model.ListBenefitAllocationsRequest)operation.- Parameters:
listBenefitAllocationsRequest-- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listBenefitAllocationsPaginator
default ListBenefitAllocationsIterable listBenefitAllocationsPaginator(Consumer<ListBenefitAllocationsRequest.Builder> listBenefitAllocationsRequest) throws AccessDeniedException, ValidationException, InternalServerException, ResourceNotFoundException, ThrottlingException, AwsServiceException, SdkClientException, PartnerCentralBenefitsException This is a variant of
listBenefitAllocations(software.amazon.awssdk.services.partnercentralbenefits.model.ListBenefitAllocationsRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.partnercentralbenefits.paginators.ListBenefitAllocationsIterable responses = client.listBenefitAllocationsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.partnercentralbenefits.paginators.ListBenefitAllocationsIterable responses = client .listBenefitAllocationsPaginator(request); for (software.amazon.awssdk.services.partnercentralbenefits.model.ListBenefitAllocationsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.partnercentralbenefits.paginators.ListBenefitAllocationsIterable responses = client.listBenefitAllocationsPaginator(request); responses.iterator().forEachRemaining(....);Please notice that the configuration of MaxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listBenefitAllocations(software.amazon.awssdk.services.partnercentralbenefits.model.ListBenefitAllocationsRequest)operation.
This is a convenience which creates an instance of the
ListBenefitAllocationsRequest.Builderavoiding the need to create one manually viaListBenefitAllocationsRequest.builder()- Parameters:
listBenefitAllocationsRequest- AConsumerthat will call methods onListBenefitAllocationsRequest.Builderto create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listBenefitApplications
default ListBenefitApplicationsResponse listBenefitApplications(ListBenefitApplicationsRequest listBenefitApplicationsRequest) throws ValidationException, AccessDeniedException, InternalServerException, ThrottlingException, ResourceNotFoundException, AwsServiceException, SdkClientException, PartnerCentralBenefitsException Retrieves a paginated list of benefit applications based on specified filter criteria.
- Parameters:
listBenefitApplicationsRequest-- Returns:
- Result of the ListBenefitApplications operation returned by the service.
- See Also:
-
listBenefitApplications
default ListBenefitApplicationsResponse listBenefitApplications(Consumer<ListBenefitApplicationsRequest.Builder> listBenefitApplicationsRequest) throws ValidationException, AccessDeniedException, InternalServerException, ThrottlingException, ResourceNotFoundException, AwsServiceException, SdkClientException, PartnerCentralBenefitsException Retrieves a paginated list of benefit applications based on specified filter criteria.
This is a convenience which creates an instance of the
ListBenefitApplicationsRequest.Builderavoiding the need to create one manually viaListBenefitApplicationsRequest.builder()- Parameters:
listBenefitApplicationsRequest- AConsumerthat will call methods onListBenefitApplicationsRequest.Builderto create a request.- Returns:
- Result of the ListBenefitApplications operation returned by the service.
- See Also:
-
listBenefitApplicationsPaginator
default ListBenefitApplicationsIterable listBenefitApplicationsPaginator(ListBenefitApplicationsRequest listBenefitApplicationsRequest) throws ValidationException, AccessDeniedException, InternalServerException, ThrottlingException, ResourceNotFoundException, AwsServiceException, SdkClientException, PartnerCentralBenefitsException This is a variant of
listBenefitApplications(software.amazon.awssdk.services.partnercentralbenefits.model.ListBenefitApplicationsRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.partnercentralbenefits.paginators.ListBenefitApplicationsIterable responses = client.listBenefitApplicationsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.partnercentralbenefits.paginators.ListBenefitApplicationsIterable responses = client .listBenefitApplicationsPaginator(request); for (software.amazon.awssdk.services.partnercentralbenefits.model.ListBenefitApplicationsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.partnercentralbenefits.paginators.ListBenefitApplicationsIterable responses = client.listBenefitApplicationsPaginator(request); responses.iterator().forEachRemaining(....);Please notice that the configuration of MaxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listBenefitApplications(software.amazon.awssdk.services.partnercentralbenefits.model.ListBenefitApplicationsRequest)operation.- Parameters:
listBenefitApplicationsRequest-- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listBenefitApplicationsPaginator
default ListBenefitApplicationsIterable listBenefitApplicationsPaginator(Consumer<ListBenefitApplicationsRequest.Builder> listBenefitApplicationsRequest) throws ValidationException, AccessDeniedException, InternalServerException, ThrottlingException, ResourceNotFoundException, AwsServiceException, SdkClientException, PartnerCentralBenefitsException This is a variant of
listBenefitApplications(software.amazon.awssdk.services.partnercentralbenefits.model.ListBenefitApplicationsRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.partnercentralbenefits.paginators.ListBenefitApplicationsIterable responses = client.listBenefitApplicationsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.partnercentralbenefits.paginators.ListBenefitApplicationsIterable responses = client .listBenefitApplicationsPaginator(request); for (software.amazon.awssdk.services.partnercentralbenefits.model.ListBenefitApplicationsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.partnercentralbenefits.paginators.ListBenefitApplicationsIterable responses = client.listBenefitApplicationsPaginator(request); responses.iterator().forEachRemaining(....);Please notice that the configuration of MaxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listBenefitApplications(software.amazon.awssdk.services.partnercentralbenefits.model.ListBenefitApplicationsRequest)operation.
This is a convenience which creates an instance of the
ListBenefitApplicationsRequest.Builderavoiding the need to create one manually viaListBenefitApplicationsRequest.builder()- Parameters:
listBenefitApplicationsRequest- AConsumerthat will call methods onListBenefitApplicationsRequest.Builderto create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listBenefits
default ListBenefitsResponse listBenefits(ListBenefitsRequest listBenefitsRequest) throws ValidationException, AccessDeniedException, InternalServerException, ThrottlingException, ResourceNotFoundException, AwsServiceException, SdkClientException, PartnerCentralBenefitsException Retrieves a paginated list of available benefits based on specified filter criteria.
- Parameters:
listBenefitsRequest-- Returns:
- Result of the ListBenefits operation returned by the service.
- See Also:
-
listBenefits
default ListBenefitsResponse listBenefits(Consumer<ListBenefitsRequest.Builder> listBenefitsRequest) throws ValidationException, AccessDeniedException, InternalServerException, ThrottlingException, ResourceNotFoundException, AwsServiceException, SdkClientException, PartnerCentralBenefitsException Retrieves a paginated list of available benefits based on specified filter criteria.
This is a convenience which creates an instance of the
ListBenefitsRequest.Builderavoiding the need to create one manually viaListBenefitsRequest.builder()- Parameters:
listBenefitsRequest- AConsumerthat will call methods onListBenefitsRequest.Builderto create a request.- Returns:
- Result of the ListBenefits operation returned by the service.
- See Also:
-
listBenefitsPaginator
default ListBenefitsIterable listBenefitsPaginator(ListBenefitsRequest listBenefitsRequest) throws ValidationException, AccessDeniedException, InternalServerException, ThrottlingException, ResourceNotFoundException, AwsServiceException, SdkClientException, PartnerCentralBenefitsException This is a variant of
listBenefits(software.amazon.awssdk.services.partnercentralbenefits.model.ListBenefitsRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.partnercentralbenefits.paginators.ListBenefitsIterable responses = client.listBenefitsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.partnercentralbenefits.paginators.ListBenefitsIterable responses = client .listBenefitsPaginator(request); for (software.amazon.awssdk.services.partnercentralbenefits.model.ListBenefitsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.partnercentralbenefits.paginators.ListBenefitsIterable responses = client.listBenefitsPaginator(request); responses.iterator().forEachRemaining(....);Please notice that the configuration of MaxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listBenefits(software.amazon.awssdk.services.partnercentralbenefits.model.ListBenefitsRequest)operation.- Parameters:
listBenefitsRequest-- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listBenefitsPaginator
default ListBenefitsIterable listBenefitsPaginator(Consumer<ListBenefitsRequest.Builder> listBenefitsRequest) throws ValidationException, AccessDeniedException, InternalServerException, ThrottlingException, ResourceNotFoundException, AwsServiceException, SdkClientException, PartnerCentralBenefitsException This is a variant of
listBenefits(software.amazon.awssdk.services.partnercentralbenefits.model.ListBenefitsRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.partnercentralbenefits.paginators.ListBenefitsIterable responses = client.listBenefitsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.partnercentralbenefits.paginators.ListBenefitsIterable responses = client .listBenefitsPaginator(request); for (software.amazon.awssdk.services.partnercentralbenefits.model.ListBenefitsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.partnercentralbenefits.paginators.ListBenefitsIterable responses = client.listBenefitsPaginator(request); responses.iterator().forEachRemaining(....);Please notice that the configuration of MaxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listBenefits(software.amazon.awssdk.services.partnercentralbenefits.model.ListBenefitsRequest)operation.
This is a convenience which creates an instance of the
ListBenefitsRequest.Builderavoiding the need to create one manually viaListBenefitsRequest.builder()- Parameters:
listBenefitsRequest- AConsumerthat will call methods onListBenefitsRequest.Builderto create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listTagsForResource
default ListTagsForResourceResponse listTagsForResource(ListTagsForResourceRequest listTagsForResourceRequest) throws AccessDeniedException, ValidationException, InternalServerException, ThrottlingException, ResourceNotFoundException, AwsServiceException, SdkClientException, PartnerCentralBenefitsException Retrieves all tags associated with a specific resource.
- Parameters:
listTagsForResourceRequest-- Returns:
- Result of the ListTagsForResource operation returned by the service.
- See Also:
-
listTagsForResource
default ListTagsForResourceResponse listTagsForResource(Consumer<ListTagsForResourceRequest.Builder> listTagsForResourceRequest) throws AccessDeniedException, ValidationException, InternalServerException, ThrottlingException, ResourceNotFoundException, AwsServiceException, SdkClientException, PartnerCentralBenefitsException Retrieves all tags associated with a specific resource.
This is a convenience which creates an instance of the
ListTagsForResourceRequest.Builderavoiding the need to create one manually viaListTagsForResourceRequest.builder()- Parameters:
listTagsForResourceRequest- AConsumerthat will call methods onListTagsForResourceRequest.Builderto create a request.- Returns:
- Result of the ListTagsForResource operation returned by the service.
- See Also:
-
recallBenefitApplication
default RecallBenefitApplicationResponse recallBenefitApplication(RecallBenefitApplicationRequest recallBenefitApplicationRequest) throws ValidationException, AccessDeniedException, InternalServerException, ConflictException, ThrottlingException, ResourceNotFoundException, AwsServiceException, SdkClientException, PartnerCentralBenefitsException Recalls a submitted benefit application, returning it to draft status for further modifications.
- Parameters:
recallBenefitApplicationRequest-- Returns:
- Result of the RecallBenefitApplication operation returned by the service.
- See Also:
-
recallBenefitApplication
default RecallBenefitApplicationResponse recallBenefitApplication(Consumer<RecallBenefitApplicationRequest.Builder> recallBenefitApplicationRequest) throws ValidationException, AccessDeniedException, InternalServerException, ConflictException, ThrottlingException, ResourceNotFoundException, AwsServiceException, SdkClientException, PartnerCentralBenefitsException Recalls a submitted benefit application, returning it to draft status for further modifications.
This is a convenience which creates an instance of the
RecallBenefitApplicationRequest.Builderavoiding the need to create one manually viaRecallBenefitApplicationRequest.builder()- Parameters:
recallBenefitApplicationRequest- AConsumerthat will call methods onRecallBenefitApplicationRequest.Builderto create a request.- Returns:
- Result of the RecallBenefitApplication operation returned by the service.
- See Also:
-
submitBenefitApplication
default SubmitBenefitApplicationResponse submitBenefitApplication(SubmitBenefitApplicationRequest submitBenefitApplicationRequest) throws AccessDeniedException, ValidationException, InternalServerException, ConflictException, ResourceNotFoundException, ThrottlingException, AwsServiceException, SdkClientException, PartnerCentralBenefitsException Submits a benefit application for review and processing by AWS.
- Parameters:
submitBenefitApplicationRequest-- Returns:
- Result of the SubmitBenefitApplication operation returned by the service.
- See Also:
-
submitBenefitApplication
default SubmitBenefitApplicationResponse submitBenefitApplication(Consumer<SubmitBenefitApplicationRequest.Builder> submitBenefitApplicationRequest) throws AccessDeniedException, ValidationException, InternalServerException, ConflictException, ResourceNotFoundException, ThrottlingException, AwsServiceException, SdkClientException, PartnerCentralBenefitsException Submits a benefit application for review and processing by AWS.
This is a convenience which creates an instance of the
SubmitBenefitApplicationRequest.Builderavoiding the need to create one manually viaSubmitBenefitApplicationRequest.builder()- Parameters:
submitBenefitApplicationRequest- AConsumerthat will call methods onSubmitBenefitApplicationRequest.Builderto create a request.- Returns:
- Result of the SubmitBenefitApplication operation returned by the service.
- See Also:
-
tagResource
default TagResourceResponse tagResource(TagResourceRequest tagResourceRequest) throws AccessDeniedException, ValidationException, InternalServerException, ConflictException, ServiceQuotaExceededException, ResourceNotFoundException, ThrottlingException, AwsServiceException, SdkClientException, PartnerCentralBenefitsException Adds or updates tags for a specified resource.
- Parameters:
tagResourceRequest-- Returns:
- Result of the TagResource operation returned by the service.
- See Also:
-
tagResource
default TagResourceResponse tagResource(Consumer<TagResourceRequest.Builder> tagResourceRequest) throws AccessDeniedException, ValidationException, InternalServerException, ConflictException, ServiceQuotaExceededException, ResourceNotFoundException, ThrottlingException, AwsServiceException, SdkClientException, PartnerCentralBenefitsException Adds or updates tags for a specified resource.
This is a convenience which creates an instance of the
TagResourceRequest.Builderavoiding the need to create one manually viaTagResourceRequest.builder()- Parameters:
tagResourceRequest- AConsumerthat will call methods onTagResourceRequest.Builderto create a request.- Returns:
- Result of the TagResource operation returned by the service.
- See Also:
-
untagResource
default UntagResourceResponse untagResource(UntagResourceRequest untagResourceRequest) throws AccessDeniedException, ValidationException, InternalServerException, ConflictException, ServiceQuotaExceededException, ResourceNotFoundException, ThrottlingException, AwsServiceException, SdkClientException, PartnerCentralBenefitsException Removes specified tags from a resource.
- Parameters:
untagResourceRequest-- Returns:
- Result of the UntagResource operation returned by the service.
- See Also:
-
untagResource
default UntagResourceResponse untagResource(Consumer<UntagResourceRequest.Builder> untagResourceRequest) throws AccessDeniedException, ValidationException, InternalServerException, ConflictException, ServiceQuotaExceededException, ResourceNotFoundException, ThrottlingException, AwsServiceException, SdkClientException, PartnerCentralBenefitsException Removes specified tags 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:
- Result of the UntagResource operation returned by the service.
- See Also:
-
updateBenefitApplication
default UpdateBenefitApplicationResponse updateBenefitApplication(UpdateBenefitApplicationRequest updateBenefitApplicationRequest) throws ValidationException, AccessDeniedException, InternalServerException, ConflictException, ResourceNotFoundException, ThrottlingException, AwsServiceException, SdkClientException, PartnerCentralBenefitsException Updates an existing benefit application with new information while maintaining revision control.
- Parameters:
updateBenefitApplicationRequest-- Returns:
- Result of the UpdateBenefitApplication operation returned by the service.
- See Also:
-
updateBenefitApplication
default UpdateBenefitApplicationResponse updateBenefitApplication(Consumer<UpdateBenefitApplicationRequest.Builder> updateBenefitApplicationRequest) throws ValidationException, AccessDeniedException, InternalServerException, ConflictException, ResourceNotFoundException, ThrottlingException, AwsServiceException, SdkClientException, PartnerCentralBenefitsException Updates an existing benefit application with new information while maintaining revision control.
This is a convenience which creates an instance of the
UpdateBenefitApplicationRequest.Builderavoiding the need to create one manually viaUpdateBenefitApplicationRequest.builder()- Parameters:
updateBenefitApplicationRequest- AConsumerthat will call methods onUpdateBenefitApplicationRequest.Builderto create a request.- Returns:
- Result of the UpdateBenefitApplication operation returned by the service.
- See Also:
-
create
Create aPartnerCentralBenefitsClientwith the region loaded from theDefaultAwsRegionProviderChainand credentials loaded from theDefaultCredentialsProvider. -
builder
Create a builder that can be used to configure and create aPartnerCentralBenefitsClient. -
serviceMetadata
-
serviceClientConfiguration
Description copied from interface:SdkClientThe SDK service client configuration exposes client settings to the user, e.g., ClientOverrideConfiguration- Specified by:
serviceClientConfigurationin interfaceAwsClient- Specified by:
serviceClientConfigurationin interfaceSdkClient- Returns:
- SdkServiceClientConfiguration
-