Interface PartnerCentralChannelClient
- All Superinterfaces:
AutoCloseable,AwsClient,SdkAutoCloseable,SdkClient
builder()
method.
AWS Partner Central Channel service for managing partner relationships, handshakes, and program management accounts.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringValue for looking up the service's metadata from theServiceMetadataProvider.static final String -
Method Summary
Modifier and TypeMethodDescriptiondefault AcceptChannelHandshakeResponseacceptChannelHandshake(Consumer<AcceptChannelHandshakeRequest.Builder> acceptChannelHandshakeRequest) Accepts a pending channel handshake request from another AWS account.default AcceptChannelHandshakeResponseacceptChannelHandshake(AcceptChannelHandshakeRequest acceptChannelHandshakeRequest) Accepts a pending channel handshake request from another AWS account.builder()Create a builder that can be used to configure and create aPartnerCentralChannelClient.default CancelChannelHandshakeResponsecancelChannelHandshake(Consumer<CancelChannelHandshakeRequest.Builder> cancelChannelHandshakeRequest) Cancels a pending channel handshake request.default CancelChannelHandshakeResponsecancelChannelHandshake(CancelChannelHandshakeRequest cancelChannelHandshakeRequest) Cancels a pending channel handshake request.static PartnerCentralChannelClientcreate()Create aPartnerCentralChannelClientwith the region loaded from theDefaultAwsRegionProviderChainand credentials loaded from theDefaultCredentialsProvider.default CreateChannelHandshakeResponsecreateChannelHandshake(Consumer<CreateChannelHandshakeRequest.Builder> createChannelHandshakeRequest) Creates a new channel handshake request to establish a partnership with another AWS account.default CreateChannelHandshakeResponsecreateChannelHandshake(CreateChannelHandshakeRequest createChannelHandshakeRequest) Creates a new channel handshake request to establish a partnership with another AWS account.createProgramManagementAccount(Consumer<CreateProgramManagementAccountRequest.Builder> createProgramManagementAccountRequest) Creates a new program management account for managing partner relationships.createProgramManagementAccount(CreateProgramManagementAccountRequest createProgramManagementAccountRequest) Creates a new program management account for managing partner relationships.default CreateRelationshipResponsecreateRelationship(Consumer<CreateRelationshipRequest.Builder> createRelationshipRequest) Creates a new partner relationship between accounts.default CreateRelationshipResponsecreateRelationship(CreateRelationshipRequest createRelationshipRequest) Creates a new partner relationship between accounts.deleteProgramManagementAccount(Consumer<DeleteProgramManagementAccountRequest.Builder> deleteProgramManagementAccountRequest) Deletes a program management account.deleteProgramManagementAccount(DeleteProgramManagementAccountRequest deleteProgramManagementAccountRequest) Deletes a program management account.default DeleteRelationshipResponsedeleteRelationship(Consumer<DeleteRelationshipRequest.Builder> deleteRelationshipRequest) Deletes a partner relationship.default DeleteRelationshipResponsedeleteRelationship(DeleteRelationshipRequest deleteRelationshipRequest) Deletes a partner relationship.default GetRelationshipResponsegetRelationship(Consumer<GetRelationshipRequest.Builder> getRelationshipRequest) Retrieves details of a specific partner relationship.default GetRelationshipResponsegetRelationship(GetRelationshipRequest getRelationshipRequest) Retrieves details of a specific partner relationship.default ListChannelHandshakesResponselistChannelHandshakes(Consumer<ListChannelHandshakesRequest.Builder> listChannelHandshakesRequest) Lists channel handshakes based on specified criteria.default ListChannelHandshakesResponselistChannelHandshakes(ListChannelHandshakesRequest listChannelHandshakesRequest) Lists channel handshakes based on specified criteria.default ListChannelHandshakesIterablelistChannelHandshakesPaginator(Consumer<ListChannelHandshakesRequest.Builder> listChannelHandshakesRequest) This is a variant oflistChannelHandshakes(software.amazon.awssdk.services.partnercentralchannel.model.ListChannelHandshakesRequest)operation.default ListChannelHandshakesIterablelistChannelHandshakesPaginator(ListChannelHandshakesRequest listChannelHandshakesRequest) This is a variant oflistChannelHandshakes(software.amazon.awssdk.services.partnercentralchannel.model.ListChannelHandshakesRequest)operation.listProgramManagementAccounts(Consumer<ListProgramManagementAccountsRequest.Builder> listProgramManagementAccountsRequest) Lists program management accounts based on specified criteria.listProgramManagementAccounts(ListProgramManagementAccountsRequest listProgramManagementAccountsRequest) Lists program management accounts based on specified criteria.listProgramManagementAccountsPaginator(Consumer<ListProgramManagementAccountsRequest.Builder> listProgramManagementAccountsRequest) This is a variant oflistProgramManagementAccounts(software.amazon.awssdk.services.partnercentralchannel.model.ListProgramManagementAccountsRequest)operation.listProgramManagementAccountsPaginator(ListProgramManagementAccountsRequest listProgramManagementAccountsRequest) This is a variant oflistProgramManagementAccounts(software.amazon.awssdk.services.partnercentralchannel.model.ListProgramManagementAccountsRequest)operation.default ListRelationshipsResponselistRelationships(Consumer<ListRelationshipsRequest.Builder> listRelationshipsRequest) Lists partner relationships based on specified criteria.default ListRelationshipsResponselistRelationships(ListRelationshipsRequest listRelationshipsRequest) Lists partner relationships based on specified criteria.default ListRelationshipsIterablelistRelationshipsPaginator(Consumer<ListRelationshipsRequest.Builder> listRelationshipsRequest) This is a variant oflistRelationships(software.amazon.awssdk.services.partnercentralchannel.model.ListRelationshipsRequest)operation.default ListRelationshipsIterablelistRelationshipsPaginator(ListRelationshipsRequest listRelationshipsRequest) This is a variant oflistRelationships(software.amazon.awssdk.services.partnercentralchannel.model.ListRelationshipsRequest)operation.default ListTagsForResourceResponselistTagsForResource(Consumer<ListTagsForResourceRequest.Builder> listTagsForResourceRequest) Lists tags associated with a specific resource.default ListTagsForResourceResponselistTagsForResource(ListTagsForResourceRequest listTagsForResourceRequest) Lists tags associated with a specific resource.default RejectChannelHandshakeResponserejectChannelHandshake(Consumer<RejectChannelHandshakeRequest.Builder> rejectChannelHandshakeRequest) Rejects a pending channel handshake request.default RejectChannelHandshakeResponserejectChannelHandshake(RejectChannelHandshakeRequest rejectChannelHandshakeRequest) Rejects a pending channel handshake request.The SDK service client configuration exposes client settings to the user, e.g., ClientOverrideConfigurationstatic ServiceMetadatadefault 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 tags from a specified resource.default UntagResourceResponseuntagResource(UntagResourceRequest untagResourceRequest) Removes tags from a specified resource.updateProgramManagementAccount(Consumer<UpdateProgramManagementAccountRequest.Builder> updateProgramManagementAccountRequest) Updates the properties of a program management account.updateProgramManagementAccount(UpdateProgramManagementAccountRequest updateProgramManagementAccountRequest) Updates the properties of a program management account.default UpdateRelationshipResponseupdateRelationship(Consumer<UpdateRelationshipRequest.Builder> updateRelationshipRequest) Updates the properties of a partner relationship.default UpdateRelationshipResponseupdateRelationship(UpdateRelationshipRequest updateRelationshipRequest) Updates the properties of a partner relationship.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
-
acceptChannelHandshake
default AcceptChannelHandshakeResponse acceptChannelHandshake(AcceptChannelHandshakeRequest acceptChannelHandshakeRequest) throws ResourceNotFoundException, InternalServerException, ValidationException, ThrottlingException, AccessDeniedException, AwsServiceException, SdkClientException, PartnerCentralChannelException Accepts a pending channel handshake request from another AWS account.
- Parameters:
acceptChannelHandshakeRequest-- Returns:
- Result of the AcceptChannelHandshake operation returned by the service.
- See Also:
-
acceptChannelHandshake
default AcceptChannelHandshakeResponse acceptChannelHandshake(Consumer<AcceptChannelHandshakeRequest.Builder> acceptChannelHandshakeRequest) throws ResourceNotFoundException, InternalServerException, ValidationException, ThrottlingException, AccessDeniedException, AwsServiceException, SdkClientException, PartnerCentralChannelException Accepts a pending channel handshake request from another AWS account.
This is a convenience which creates an instance of the
AcceptChannelHandshakeRequest.Builderavoiding the need to create one manually viaAcceptChannelHandshakeRequest.builder()- Parameters:
acceptChannelHandshakeRequest- AConsumerthat will call methods onAcceptChannelHandshakeRequest.Builderto create a request.- Returns:
- Result of the AcceptChannelHandshake operation returned by the service.
- See Also:
-
cancelChannelHandshake
default CancelChannelHandshakeResponse cancelChannelHandshake(CancelChannelHandshakeRequest cancelChannelHandshakeRequest) throws ResourceNotFoundException, InternalServerException, ValidationException, ThrottlingException, AccessDeniedException, AwsServiceException, SdkClientException, PartnerCentralChannelException Cancels a pending channel handshake request.
- Parameters:
cancelChannelHandshakeRequest-- Returns:
- Result of the CancelChannelHandshake operation returned by the service.
- See Also:
-
cancelChannelHandshake
default CancelChannelHandshakeResponse cancelChannelHandshake(Consumer<CancelChannelHandshakeRequest.Builder> cancelChannelHandshakeRequest) throws ResourceNotFoundException, InternalServerException, ValidationException, ThrottlingException, AccessDeniedException, AwsServiceException, SdkClientException, PartnerCentralChannelException Cancels a pending channel handshake request.
This is a convenience which creates an instance of the
CancelChannelHandshakeRequest.Builderavoiding the need to create one manually viaCancelChannelHandshakeRequest.builder()- Parameters:
cancelChannelHandshakeRequest- AConsumerthat will call methods onCancelChannelHandshakeRequest.Builderto create a request.- Returns:
- Result of the CancelChannelHandshake operation returned by the service.
- See Also:
-
createChannelHandshake
default CreateChannelHandshakeResponse createChannelHandshake(CreateChannelHandshakeRequest createChannelHandshakeRequest) throws ResourceNotFoundException, InternalServerException, ValidationException, ThrottlingException, AccessDeniedException, ConflictException, ServiceQuotaExceededException, AwsServiceException, SdkClientException, PartnerCentralChannelException Creates a new channel handshake request to establish a partnership with another AWS account.
- Parameters:
createChannelHandshakeRequest-- Returns:
- Result of the CreateChannelHandshake operation returned by the service.
- See Also:
-
createChannelHandshake
default CreateChannelHandshakeResponse createChannelHandshake(Consumer<CreateChannelHandshakeRequest.Builder> createChannelHandshakeRequest) throws ResourceNotFoundException, InternalServerException, ValidationException, ThrottlingException, AccessDeniedException, ConflictException, ServiceQuotaExceededException, AwsServiceException, SdkClientException, PartnerCentralChannelException Creates a new channel handshake request to establish a partnership with another AWS account.
This is a convenience which creates an instance of the
CreateChannelHandshakeRequest.Builderavoiding the need to create one manually viaCreateChannelHandshakeRequest.builder()- Parameters:
createChannelHandshakeRequest- AConsumerthat will call methods onCreateChannelHandshakeRequest.Builderto create a request.- Returns:
- Result of the CreateChannelHandshake operation returned by the service.
- See Also:
-
createProgramManagementAccount
default CreateProgramManagementAccountResponse createProgramManagementAccount(CreateProgramManagementAccountRequest createProgramManagementAccountRequest) throws ResourceNotFoundException, InternalServerException, ValidationException, ThrottlingException, AccessDeniedException, ConflictException, ServiceQuotaExceededException, AwsServiceException, SdkClientException, PartnerCentralChannelException Creates a new program management account for managing partner relationships.
- Parameters:
createProgramManagementAccountRequest-- Returns:
- Result of the CreateProgramManagementAccount operation returned by the service.
- See Also:
-
createProgramManagementAccount
default CreateProgramManagementAccountResponse createProgramManagementAccount(Consumer<CreateProgramManagementAccountRequest.Builder> createProgramManagementAccountRequest) throws ResourceNotFoundException, InternalServerException, ValidationException, ThrottlingException, AccessDeniedException, ConflictException, ServiceQuotaExceededException, AwsServiceException, SdkClientException, PartnerCentralChannelException Creates a new program management account for managing partner relationships.
This is a convenience which creates an instance of the
CreateProgramManagementAccountRequest.Builderavoiding the need to create one manually viaCreateProgramManagementAccountRequest.builder()- Parameters:
createProgramManagementAccountRequest- AConsumerthat will call methods onCreateProgramManagementAccountRequest.Builderto create a request.- Returns:
- Result of the CreateProgramManagementAccount operation returned by the service.
- See Also:
-
createRelationship
default CreateRelationshipResponse createRelationship(CreateRelationshipRequest createRelationshipRequest) throws ResourceNotFoundException, InternalServerException, ValidationException, ThrottlingException, AccessDeniedException, ConflictException, ServiceQuotaExceededException, AwsServiceException, SdkClientException, PartnerCentralChannelException Creates a new partner relationship between accounts.
- Parameters:
createRelationshipRequest-- Returns:
- Result of the CreateRelationship operation returned by the service.
- See Also:
-
createRelationship
default CreateRelationshipResponse createRelationship(Consumer<CreateRelationshipRequest.Builder> createRelationshipRequest) throws ResourceNotFoundException, InternalServerException, ValidationException, ThrottlingException, AccessDeniedException, ConflictException, ServiceQuotaExceededException, AwsServiceException, SdkClientException, PartnerCentralChannelException Creates a new partner relationship between accounts.
This is a convenience which creates an instance of the
CreateRelationshipRequest.Builderavoiding the need to create one manually viaCreateRelationshipRequest.builder()- Parameters:
createRelationshipRequest- AConsumerthat will call methods onCreateRelationshipRequest.Builderto create a request.- Returns:
- Result of the CreateRelationship operation returned by the service.
- See Also:
-
deleteProgramManagementAccount
default DeleteProgramManagementAccountResponse deleteProgramManagementAccount(DeleteProgramManagementAccountRequest deleteProgramManagementAccountRequest) throws ResourceNotFoundException, InternalServerException, ValidationException, ThrottlingException, AccessDeniedException, ConflictException, AwsServiceException, SdkClientException, PartnerCentralChannelException Deletes a program management account.
- Parameters:
deleteProgramManagementAccountRequest-- Returns:
- Result of the DeleteProgramManagementAccount operation returned by the service.
- See Also:
-
deleteProgramManagementAccount
default DeleteProgramManagementAccountResponse deleteProgramManagementAccount(Consumer<DeleteProgramManagementAccountRequest.Builder> deleteProgramManagementAccountRequest) throws ResourceNotFoundException, InternalServerException, ValidationException, ThrottlingException, AccessDeniedException, ConflictException, AwsServiceException, SdkClientException, PartnerCentralChannelException Deletes a program management account.
This is a convenience which creates an instance of the
DeleteProgramManagementAccountRequest.Builderavoiding the need to create one manually viaDeleteProgramManagementAccountRequest.builder()- Parameters:
deleteProgramManagementAccountRequest- AConsumerthat will call methods onDeleteProgramManagementAccountRequest.Builderto create a request.- Returns:
- Result of the DeleteProgramManagementAccount operation returned by the service.
- See Also:
-
deleteRelationship
default DeleteRelationshipResponse deleteRelationship(DeleteRelationshipRequest deleteRelationshipRequest) throws ResourceNotFoundException, InternalServerException, ValidationException, ThrottlingException, AccessDeniedException, ConflictException, AwsServiceException, SdkClientException, PartnerCentralChannelException Deletes a partner relationship.
- Parameters:
deleteRelationshipRequest-- Returns:
- Result of the DeleteRelationship operation returned by the service.
- See Also:
-
deleteRelationship
default DeleteRelationshipResponse deleteRelationship(Consumer<DeleteRelationshipRequest.Builder> deleteRelationshipRequest) throws ResourceNotFoundException, InternalServerException, ValidationException, ThrottlingException, AccessDeniedException, ConflictException, AwsServiceException, SdkClientException, PartnerCentralChannelException Deletes a partner relationship.
This is a convenience which creates an instance of the
DeleteRelationshipRequest.Builderavoiding the need to create one manually viaDeleteRelationshipRequest.builder()- Parameters:
deleteRelationshipRequest- AConsumerthat will call methods onDeleteRelationshipRequest.Builderto create a request.- Returns:
- Result of the DeleteRelationship operation returned by the service.
- See Also:
-
getRelationship
default GetRelationshipResponse getRelationship(GetRelationshipRequest getRelationshipRequest) throws ResourceNotFoundException, InternalServerException, ValidationException, ThrottlingException, AccessDeniedException, AwsServiceException, SdkClientException, PartnerCentralChannelException Retrieves details of a specific partner relationship.
- Parameters:
getRelationshipRequest-- Returns:
- Result of the GetRelationship operation returned by the service.
- See Also:
-
getRelationship
default GetRelationshipResponse getRelationship(Consumer<GetRelationshipRequest.Builder> getRelationshipRequest) throws ResourceNotFoundException, InternalServerException, ValidationException, ThrottlingException, AccessDeniedException, AwsServiceException, SdkClientException, PartnerCentralChannelException Retrieves details of a specific partner relationship.
This is a convenience which creates an instance of the
GetRelationshipRequest.Builderavoiding the need to create one manually viaGetRelationshipRequest.builder()- Parameters:
getRelationshipRequest- AConsumerthat will call methods onGetRelationshipRequest.Builderto create a request.- Returns:
- Result of the GetRelationship operation returned by the service.
- See Also:
-
listChannelHandshakes
default ListChannelHandshakesResponse listChannelHandshakes(ListChannelHandshakesRequest listChannelHandshakesRequest) throws ResourceNotFoundException, InternalServerException, ValidationException, ThrottlingException, AccessDeniedException, AwsServiceException, SdkClientException, PartnerCentralChannelException Lists channel handshakes based on specified criteria.
- Parameters:
listChannelHandshakesRequest-- Returns:
- Result of the ListChannelHandshakes operation returned by the service.
- See Also:
-
listChannelHandshakes
default ListChannelHandshakesResponse listChannelHandshakes(Consumer<ListChannelHandshakesRequest.Builder> listChannelHandshakesRequest) throws ResourceNotFoundException, InternalServerException, ValidationException, ThrottlingException, AccessDeniedException, AwsServiceException, SdkClientException, PartnerCentralChannelException Lists channel handshakes based on specified criteria.
This is a convenience which creates an instance of the
ListChannelHandshakesRequest.Builderavoiding the need to create one manually viaListChannelHandshakesRequest.builder()- Parameters:
listChannelHandshakesRequest- AConsumerthat will call methods onListChannelHandshakesRequest.Builderto create a request.- Returns:
- Result of the ListChannelHandshakes operation returned by the service.
- See Also:
-
listChannelHandshakesPaginator
default ListChannelHandshakesIterable listChannelHandshakesPaginator(ListChannelHandshakesRequest listChannelHandshakesRequest) throws ResourceNotFoundException, InternalServerException, ValidationException, ThrottlingException, AccessDeniedException, AwsServiceException, SdkClientException, PartnerCentralChannelException This is a variant of
listChannelHandshakes(software.amazon.awssdk.services.partnercentralchannel.model.ListChannelHandshakesRequest)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.partnercentralchannel.paginators.ListChannelHandshakesIterable responses = client.listChannelHandshakesPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.partnercentralchannel.paginators.ListChannelHandshakesIterable responses = client .listChannelHandshakesPaginator(request); for (software.amazon.awssdk.services.partnercentralchannel.model.ListChannelHandshakesResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.partnercentralchannel.paginators.ListChannelHandshakesIterable responses = client.listChannelHandshakesPaginator(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
listChannelHandshakes(software.amazon.awssdk.services.partnercentralchannel.model.ListChannelHandshakesRequest)operation.- Parameters:
listChannelHandshakesRequest-- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listChannelHandshakesPaginator
default ListChannelHandshakesIterable listChannelHandshakesPaginator(Consumer<ListChannelHandshakesRequest.Builder> listChannelHandshakesRequest) throws ResourceNotFoundException, InternalServerException, ValidationException, ThrottlingException, AccessDeniedException, AwsServiceException, SdkClientException, PartnerCentralChannelException This is a variant of
listChannelHandshakes(software.amazon.awssdk.services.partnercentralchannel.model.ListChannelHandshakesRequest)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.partnercentralchannel.paginators.ListChannelHandshakesIterable responses = client.listChannelHandshakesPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.partnercentralchannel.paginators.ListChannelHandshakesIterable responses = client .listChannelHandshakesPaginator(request); for (software.amazon.awssdk.services.partnercentralchannel.model.ListChannelHandshakesResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.partnercentralchannel.paginators.ListChannelHandshakesIterable responses = client.listChannelHandshakesPaginator(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
listChannelHandshakes(software.amazon.awssdk.services.partnercentralchannel.model.ListChannelHandshakesRequest)operation.
This is a convenience which creates an instance of the
ListChannelHandshakesRequest.Builderavoiding the need to create one manually viaListChannelHandshakesRequest.builder()- Parameters:
listChannelHandshakesRequest- AConsumerthat will call methods onListChannelHandshakesRequest.Builderto create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listProgramManagementAccounts
default ListProgramManagementAccountsResponse listProgramManagementAccounts(ListProgramManagementAccountsRequest listProgramManagementAccountsRequest) throws ResourceNotFoundException, InternalServerException, ValidationException, ThrottlingException, AccessDeniedException, AwsServiceException, SdkClientException, PartnerCentralChannelException Lists program management accounts based on specified criteria.
- Parameters:
listProgramManagementAccountsRequest-- Returns:
- Result of the ListProgramManagementAccounts operation returned by the service.
- See Also:
-
listProgramManagementAccounts
default ListProgramManagementAccountsResponse listProgramManagementAccounts(Consumer<ListProgramManagementAccountsRequest.Builder> listProgramManagementAccountsRequest) throws ResourceNotFoundException, InternalServerException, ValidationException, ThrottlingException, AccessDeniedException, AwsServiceException, SdkClientException, PartnerCentralChannelException Lists program management accounts based on specified criteria.
This is a convenience which creates an instance of the
ListProgramManagementAccountsRequest.Builderavoiding the need to create one manually viaListProgramManagementAccountsRequest.builder()- Parameters:
listProgramManagementAccountsRequest- AConsumerthat will call methods onListProgramManagementAccountsRequest.Builderto create a request.- Returns:
- Result of the ListProgramManagementAccounts operation returned by the service.
- See Also:
-
listProgramManagementAccountsPaginator
default ListProgramManagementAccountsIterable listProgramManagementAccountsPaginator(ListProgramManagementAccountsRequest listProgramManagementAccountsRequest) throws ResourceNotFoundException, InternalServerException, ValidationException, ThrottlingException, AccessDeniedException, AwsServiceException, SdkClientException, PartnerCentralChannelException This is a variant of
listProgramManagementAccounts(software.amazon.awssdk.services.partnercentralchannel.model.ListProgramManagementAccountsRequest)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.partnercentralchannel.paginators.ListProgramManagementAccountsIterable responses = client.listProgramManagementAccountsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.partnercentralchannel.paginators.ListProgramManagementAccountsIterable responses = client .listProgramManagementAccountsPaginator(request); for (software.amazon.awssdk.services.partnercentralchannel.model.ListProgramManagementAccountsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.partnercentralchannel.paginators.ListProgramManagementAccountsIterable responses = client.listProgramManagementAccountsPaginator(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
listProgramManagementAccounts(software.amazon.awssdk.services.partnercentralchannel.model.ListProgramManagementAccountsRequest)operation.- Parameters:
listProgramManagementAccountsRequest-- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listProgramManagementAccountsPaginator
default ListProgramManagementAccountsIterable listProgramManagementAccountsPaginator(Consumer<ListProgramManagementAccountsRequest.Builder> listProgramManagementAccountsRequest) throws ResourceNotFoundException, InternalServerException, ValidationException, ThrottlingException, AccessDeniedException, AwsServiceException, SdkClientException, PartnerCentralChannelException This is a variant of
listProgramManagementAccounts(software.amazon.awssdk.services.partnercentralchannel.model.ListProgramManagementAccountsRequest)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.partnercentralchannel.paginators.ListProgramManagementAccountsIterable responses = client.listProgramManagementAccountsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.partnercentralchannel.paginators.ListProgramManagementAccountsIterable responses = client .listProgramManagementAccountsPaginator(request); for (software.amazon.awssdk.services.partnercentralchannel.model.ListProgramManagementAccountsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.partnercentralchannel.paginators.ListProgramManagementAccountsIterable responses = client.listProgramManagementAccountsPaginator(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
listProgramManagementAccounts(software.amazon.awssdk.services.partnercentralchannel.model.ListProgramManagementAccountsRequest)operation.
This is a convenience which creates an instance of the
ListProgramManagementAccountsRequest.Builderavoiding the need to create one manually viaListProgramManagementAccountsRequest.builder()- Parameters:
listProgramManagementAccountsRequest- AConsumerthat will call methods onListProgramManagementAccountsRequest.Builderto create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listRelationships
default ListRelationshipsResponse listRelationships(ListRelationshipsRequest listRelationshipsRequest) throws ResourceNotFoundException, InternalServerException, ValidationException, ThrottlingException, AccessDeniedException, AwsServiceException, SdkClientException, PartnerCentralChannelException Lists partner relationships based on specified criteria.
- Parameters:
listRelationshipsRequest-- Returns:
- Result of the ListRelationships operation returned by the service.
- See Also:
-
listRelationships
default ListRelationshipsResponse listRelationships(Consumer<ListRelationshipsRequest.Builder> listRelationshipsRequest) throws ResourceNotFoundException, InternalServerException, ValidationException, ThrottlingException, AccessDeniedException, AwsServiceException, SdkClientException, PartnerCentralChannelException Lists partner relationships based on specified criteria.
This is a convenience which creates an instance of the
ListRelationshipsRequest.Builderavoiding the need to create one manually viaListRelationshipsRequest.builder()- Parameters:
listRelationshipsRequest- AConsumerthat will call methods onListRelationshipsRequest.Builderto create a request.- Returns:
- Result of the ListRelationships operation returned by the service.
- See Also:
-
listRelationshipsPaginator
default ListRelationshipsIterable listRelationshipsPaginator(ListRelationshipsRequest listRelationshipsRequest) throws ResourceNotFoundException, InternalServerException, ValidationException, ThrottlingException, AccessDeniedException, AwsServiceException, SdkClientException, PartnerCentralChannelException This is a variant of
listRelationships(software.amazon.awssdk.services.partnercentralchannel.model.ListRelationshipsRequest)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.partnercentralchannel.paginators.ListRelationshipsIterable responses = client.listRelationshipsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.partnercentralchannel.paginators.ListRelationshipsIterable responses = client .listRelationshipsPaginator(request); for (software.amazon.awssdk.services.partnercentralchannel.model.ListRelationshipsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.partnercentralchannel.paginators.ListRelationshipsIterable responses = client.listRelationshipsPaginator(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
listRelationships(software.amazon.awssdk.services.partnercentralchannel.model.ListRelationshipsRequest)operation.- Parameters:
listRelationshipsRequest-- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listRelationshipsPaginator
default ListRelationshipsIterable listRelationshipsPaginator(Consumer<ListRelationshipsRequest.Builder> listRelationshipsRequest) throws ResourceNotFoundException, InternalServerException, ValidationException, ThrottlingException, AccessDeniedException, AwsServiceException, SdkClientException, PartnerCentralChannelException This is a variant of
listRelationships(software.amazon.awssdk.services.partnercentralchannel.model.ListRelationshipsRequest)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.partnercentralchannel.paginators.ListRelationshipsIterable responses = client.listRelationshipsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.partnercentralchannel.paginators.ListRelationshipsIterable responses = client .listRelationshipsPaginator(request); for (software.amazon.awssdk.services.partnercentralchannel.model.ListRelationshipsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.partnercentralchannel.paginators.ListRelationshipsIterable responses = client.listRelationshipsPaginator(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
listRelationships(software.amazon.awssdk.services.partnercentralchannel.model.ListRelationshipsRequest)operation.
This is a convenience which creates an instance of the
ListRelationshipsRequest.Builderavoiding the need to create one manually viaListRelationshipsRequest.builder()- Parameters:
listRelationshipsRequest- AConsumerthat will call methods onListRelationshipsRequest.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 ResourceNotFoundException, InternalServerException, ValidationException, ThrottlingException, AccessDeniedException, AwsServiceException, SdkClientException, PartnerCentralChannelException Lists 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 ResourceNotFoundException, InternalServerException, ValidationException, ThrottlingException, AccessDeniedException, AwsServiceException, SdkClientException, PartnerCentralChannelException Lists 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:
-
rejectChannelHandshake
default RejectChannelHandshakeResponse rejectChannelHandshake(RejectChannelHandshakeRequest rejectChannelHandshakeRequest) throws ResourceNotFoundException, InternalServerException, ValidationException, ThrottlingException, AccessDeniedException, AwsServiceException, SdkClientException, PartnerCentralChannelException Rejects a pending channel handshake request.
- Parameters:
rejectChannelHandshakeRequest-- Returns:
- Result of the RejectChannelHandshake operation returned by the service.
- See Also:
-
rejectChannelHandshake
default RejectChannelHandshakeResponse rejectChannelHandshake(Consumer<RejectChannelHandshakeRequest.Builder> rejectChannelHandshakeRequest) throws ResourceNotFoundException, InternalServerException, ValidationException, ThrottlingException, AccessDeniedException, AwsServiceException, SdkClientException, PartnerCentralChannelException Rejects a pending channel handshake request.
This is a convenience which creates an instance of the
RejectChannelHandshakeRequest.Builderavoiding the need to create one manually viaRejectChannelHandshakeRequest.builder()- Parameters:
rejectChannelHandshakeRequest- AConsumerthat will call methods onRejectChannelHandshakeRequest.Builderto create a request.- Returns:
- Result of the RejectChannelHandshake operation returned by the service.
- See Also:
-
tagResource
default TagResourceResponse tagResource(TagResourceRequest tagResourceRequest) throws ResourceNotFoundException, InternalServerException, ValidationException, ThrottlingException, AccessDeniedException, ConflictException, AwsServiceException, SdkClientException, PartnerCentralChannelException 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 ResourceNotFoundException, InternalServerException, ValidationException, ThrottlingException, AccessDeniedException, ConflictException, AwsServiceException, SdkClientException, PartnerCentralChannelException 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 ResourceNotFoundException, InternalServerException, ValidationException, ThrottlingException, AccessDeniedException, ConflictException, AwsServiceException, SdkClientException, PartnerCentralChannelException Removes tags from a specified resource.
- Parameters:
untagResourceRequest-- Returns:
- Result of the UntagResource operation returned by the service.
- See Also:
-
untagResource
default UntagResourceResponse untagResource(Consumer<UntagResourceRequest.Builder> untagResourceRequest) throws ResourceNotFoundException, InternalServerException, ValidationException, ThrottlingException, AccessDeniedException, ConflictException, AwsServiceException, SdkClientException, PartnerCentralChannelException Removes tags from a specified 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:
-
updateProgramManagementAccount
default UpdateProgramManagementAccountResponse updateProgramManagementAccount(UpdateProgramManagementAccountRequest updateProgramManagementAccountRequest) throws ResourceNotFoundException, InternalServerException, ValidationException, ThrottlingException, AccessDeniedException, ConflictException, AwsServiceException, SdkClientException, PartnerCentralChannelException Updates the properties of a program management account.
- Parameters:
updateProgramManagementAccountRequest-- Returns:
- Result of the UpdateProgramManagementAccount operation returned by the service.
- See Also:
-
updateProgramManagementAccount
default UpdateProgramManagementAccountResponse updateProgramManagementAccount(Consumer<UpdateProgramManagementAccountRequest.Builder> updateProgramManagementAccountRequest) throws ResourceNotFoundException, InternalServerException, ValidationException, ThrottlingException, AccessDeniedException, ConflictException, AwsServiceException, SdkClientException, PartnerCentralChannelException Updates the properties of a program management account.
This is a convenience which creates an instance of the
UpdateProgramManagementAccountRequest.Builderavoiding the need to create one manually viaUpdateProgramManagementAccountRequest.builder()- Parameters:
updateProgramManagementAccountRequest- AConsumerthat will call methods onUpdateProgramManagementAccountRequest.Builderto create a request.- Returns:
- Result of the UpdateProgramManagementAccount operation returned by the service.
- See Also:
-
updateRelationship
default UpdateRelationshipResponse updateRelationship(UpdateRelationshipRequest updateRelationshipRequest) throws ResourceNotFoundException, InternalServerException, ValidationException, ThrottlingException, AccessDeniedException, ConflictException, AwsServiceException, SdkClientException, PartnerCentralChannelException Updates the properties of a partner relationship.
- Parameters:
updateRelationshipRequest-- Returns:
- Result of the UpdateRelationship operation returned by the service.
- See Also:
-
updateRelationship
default UpdateRelationshipResponse updateRelationship(Consumer<UpdateRelationshipRequest.Builder> updateRelationshipRequest) throws ResourceNotFoundException, InternalServerException, ValidationException, ThrottlingException, AccessDeniedException, ConflictException, AwsServiceException, SdkClientException, PartnerCentralChannelException Updates the properties of a partner relationship.
This is a convenience which creates an instance of the
UpdateRelationshipRequest.Builderavoiding the need to create one manually viaUpdateRelationshipRequest.builder()- Parameters:
updateRelationshipRequest- AConsumerthat will call methods onUpdateRelationshipRequest.Builderto create a request.- Returns:
- Result of the UpdateRelationship operation returned by the service.
- See Also:
-
create
Create aPartnerCentralChannelClientwith the region loaded from theDefaultAwsRegionProviderChainand credentials loaded from theDefaultCredentialsProvider. -
builder
Create a builder that can be used to configure and create aPartnerCentralChannelClient. -
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
-