
software.amazon.awssdk.services.mailmanager.MailManagerClient Maven / Gradle / Ivy
/*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
* the License. A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
* CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
* and limitations under the License.
*/
package software.amazon.awssdk.services.mailmanager;
import java.util.function.Consumer;
import software.amazon.awssdk.annotations.Generated;
import software.amazon.awssdk.annotations.SdkPublicApi;
import software.amazon.awssdk.annotations.ThreadSafe;
import software.amazon.awssdk.awscore.AwsClient;
import software.amazon.awssdk.awscore.exception.AwsServiceException;
import software.amazon.awssdk.core.exception.SdkClientException;
import software.amazon.awssdk.regions.ServiceMetadata;
import software.amazon.awssdk.services.mailmanager.model.AccessDeniedException;
import software.amazon.awssdk.services.mailmanager.model.ConflictException;
import software.amazon.awssdk.services.mailmanager.model.CreateAddonInstanceRequest;
import software.amazon.awssdk.services.mailmanager.model.CreateAddonInstanceResponse;
import software.amazon.awssdk.services.mailmanager.model.CreateAddonSubscriptionRequest;
import software.amazon.awssdk.services.mailmanager.model.CreateAddonSubscriptionResponse;
import software.amazon.awssdk.services.mailmanager.model.CreateArchiveRequest;
import software.amazon.awssdk.services.mailmanager.model.CreateArchiveResponse;
import software.amazon.awssdk.services.mailmanager.model.CreateIngressPointRequest;
import software.amazon.awssdk.services.mailmanager.model.CreateIngressPointResponse;
import software.amazon.awssdk.services.mailmanager.model.CreateRelayRequest;
import software.amazon.awssdk.services.mailmanager.model.CreateRelayResponse;
import software.amazon.awssdk.services.mailmanager.model.CreateRuleSetRequest;
import software.amazon.awssdk.services.mailmanager.model.CreateRuleSetResponse;
import software.amazon.awssdk.services.mailmanager.model.CreateTrafficPolicyRequest;
import software.amazon.awssdk.services.mailmanager.model.CreateTrafficPolicyResponse;
import software.amazon.awssdk.services.mailmanager.model.DeleteAddonInstanceRequest;
import software.amazon.awssdk.services.mailmanager.model.DeleteAddonInstanceResponse;
import software.amazon.awssdk.services.mailmanager.model.DeleteAddonSubscriptionRequest;
import software.amazon.awssdk.services.mailmanager.model.DeleteAddonSubscriptionResponse;
import software.amazon.awssdk.services.mailmanager.model.DeleteArchiveRequest;
import software.amazon.awssdk.services.mailmanager.model.DeleteArchiveResponse;
import software.amazon.awssdk.services.mailmanager.model.DeleteIngressPointRequest;
import software.amazon.awssdk.services.mailmanager.model.DeleteIngressPointResponse;
import software.amazon.awssdk.services.mailmanager.model.DeleteRelayRequest;
import software.amazon.awssdk.services.mailmanager.model.DeleteRelayResponse;
import software.amazon.awssdk.services.mailmanager.model.DeleteRuleSetRequest;
import software.amazon.awssdk.services.mailmanager.model.DeleteRuleSetResponse;
import software.amazon.awssdk.services.mailmanager.model.DeleteTrafficPolicyRequest;
import software.amazon.awssdk.services.mailmanager.model.DeleteTrafficPolicyResponse;
import software.amazon.awssdk.services.mailmanager.model.GetAddonInstanceRequest;
import software.amazon.awssdk.services.mailmanager.model.GetAddonInstanceResponse;
import software.amazon.awssdk.services.mailmanager.model.GetAddonSubscriptionRequest;
import software.amazon.awssdk.services.mailmanager.model.GetAddonSubscriptionResponse;
import software.amazon.awssdk.services.mailmanager.model.GetArchiveExportRequest;
import software.amazon.awssdk.services.mailmanager.model.GetArchiveExportResponse;
import software.amazon.awssdk.services.mailmanager.model.GetArchiveMessageContentRequest;
import software.amazon.awssdk.services.mailmanager.model.GetArchiveMessageContentResponse;
import software.amazon.awssdk.services.mailmanager.model.GetArchiveMessageRequest;
import software.amazon.awssdk.services.mailmanager.model.GetArchiveMessageResponse;
import software.amazon.awssdk.services.mailmanager.model.GetArchiveRequest;
import software.amazon.awssdk.services.mailmanager.model.GetArchiveResponse;
import software.amazon.awssdk.services.mailmanager.model.GetArchiveSearchRequest;
import software.amazon.awssdk.services.mailmanager.model.GetArchiveSearchResponse;
import software.amazon.awssdk.services.mailmanager.model.GetArchiveSearchResultsRequest;
import software.amazon.awssdk.services.mailmanager.model.GetArchiveSearchResultsResponse;
import software.amazon.awssdk.services.mailmanager.model.GetIngressPointRequest;
import software.amazon.awssdk.services.mailmanager.model.GetIngressPointResponse;
import software.amazon.awssdk.services.mailmanager.model.GetRelayRequest;
import software.amazon.awssdk.services.mailmanager.model.GetRelayResponse;
import software.amazon.awssdk.services.mailmanager.model.GetRuleSetRequest;
import software.amazon.awssdk.services.mailmanager.model.GetRuleSetResponse;
import software.amazon.awssdk.services.mailmanager.model.GetTrafficPolicyRequest;
import software.amazon.awssdk.services.mailmanager.model.GetTrafficPolicyResponse;
import software.amazon.awssdk.services.mailmanager.model.ListAddonInstancesRequest;
import software.amazon.awssdk.services.mailmanager.model.ListAddonInstancesResponse;
import software.amazon.awssdk.services.mailmanager.model.ListAddonSubscriptionsRequest;
import software.amazon.awssdk.services.mailmanager.model.ListAddonSubscriptionsResponse;
import software.amazon.awssdk.services.mailmanager.model.ListArchiveExportsRequest;
import software.amazon.awssdk.services.mailmanager.model.ListArchiveExportsResponse;
import software.amazon.awssdk.services.mailmanager.model.ListArchiveSearchesRequest;
import software.amazon.awssdk.services.mailmanager.model.ListArchiveSearchesResponse;
import software.amazon.awssdk.services.mailmanager.model.ListArchivesRequest;
import software.amazon.awssdk.services.mailmanager.model.ListArchivesResponse;
import software.amazon.awssdk.services.mailmanager.model.ListIngressPointsRequest;
import software.amazon.awssdk.services.mailmanager.model.ListIngressPointsResponse;
import software.amazon.awssdk.services.mailmanager.model.ListRelaysRequest;
import software.amazon.awssdk.services.mailmanager.model.ListRelaysResponse;
import software.amazon.awssdk.services.mailmanager.model.ListRuleSetsRequest;
import software.amazon.awssdk.services.mailmanager.model.ListRuleSetsResponse;
import software.amazon.awssdk.services.mailmanager.model.ListTagsForResourceRequest;
import software.amazon.awssdk.services.mailmanager.model.ListTagsForResourceResponse;
import software.amazon.awssdk.services.mailmanager.model.ListTrafficPoliciesRequest;
import software.amazon.awssdk.services.mailmanager.model.ListTrafficPoliciesResponse;
import software.amazon.awssdk.services.mailmanager.model.MailManagerException;
import software.amazon.awssdk.services.mailmanager.model.ResourceNotFoundException;
import software.amazon.awssdk.services.mailmanager.model.ServiceQuotaExceededException;
import software.amazon.awssdk.services.mailmanager.model.StartArchiveExportRequest;
import software.amazon.awssdk.services.mailmanager.model.StartArchiveExportResponse;
import software.amazon.awssdk.services.mailmanager.model.StartArchiveSearchRequest;
import software.amazon.awssdk.services.mailmanager.model.StartArchiveSearchResponse;
import software.amazon.awssdk.services.mailmanager.model.StopArchiveExportRequest;
import software.amazon.awssdk.services.mailmanager.model.StopArchiveExportResponse;
import software.amazon.awssdk.services.mailmanager.model.StopArchiveSearchRequest;
import software.amazon.awssdk.services.mailmanager.model.StopArchiveSearchResponse;
import software.amazon.awssdk.services.mailmanager.model.TagResourceRequest;
import software.amazon.awssdk.services.mailmanager.model.TagResourceResponse;
import software.amazon.awssdk.services.mailmanager.model.ThrottlingException;
import software.amazon.awssdk.services.mailmanager.model.UntagResourceRequest;
import software.amazon.awssdk.services.mailmanager.model.UntagResourceResponse;
import software.amazon.awssdk.services.mailmanager.model.UpdateArchiveRequest;
import software.amazon.awssdk.services.mailmanager.model.UpdateArchiveResponse;
import software.amazon.awssdk.services.mailmanager.model.UpdateIngressPointRequest;
import software.amazon.awssdk.services.mailmanager.model.UpdateIngressPointResponse;
import software.amazon.awssdk.services.mailmanager.model.UpdateRelayRequest;
import software.amazon.awssdk.services.mailmanager.model.UpdateRelayResponse;
import software.amazon.awssdk.services.mailmanager.model.UpdateRuleSetRequest;
import software.amazon.awssdk.services.mailmanager.model.UpdateRuleSetResponse;
import software.amazon.awssdk.services.mailmanager.model.UpdateTrafficPolicyRequest;
import software.amazon.awssdk.services.mailmanager.model.UpdateTrafficPolicyResponse;
import software.amazon.awssdk.services.mailmanager.model.ValidationException;
import software.amazon.awssdk.services.mailmanager.paginators.ListAddonInstancesIterable;
import software.amazon.awssdk.services.mailmanager.paginators.ListAddonSubscriptionsIterable;
import software.amazon.awssdk.services.mailmanager.paginators.ListArchiveExportsIterable;
import software.amazon.awssdk.services.mailmanager.paginators.ListArchiveSearchesIterable;
import software.amazon.awssdk.services.mailmanager.paginators.ListArchivesIterable;
import software.amazon.awssdk.services.mailmanager.paginators.ListIngressPointsIterable;
import software.amazon.awssdk.services.mailmanager.paginators.ListRelaysIterable;
import software.amazon.awssdk.services.mailmanager.paginators.ListRuleSetsIterable;
import software.amazon.awssdk.services.mailmanager.paginators.ListTrafficPoliciesIterable;
/**
* Service client for accessing MailManager. This can be created using the static {@link #builder()} method.
*
*
* Amazon SES Mail Manager API
*
* The Amazon SES Mail Manager API contains operations and data types that comprise the Mail Manager feature of Amazon Simple Email Service (SES).
*
*
* Mail Manager is a set of Amazon SES email gateway features designed to help you strengthen your organization's email
* infrastructure, simplify email workflow management, and streamline email compliance control. To learn more, see the
* Mail Manager chapter in the Amazon SES Developer
* Guide.
*
*
*/
@Generated("software.amazon.awssdk:codegen")
@SdkPublicApi
@ThreadSafe
public interface MailManagerClient extends AwsClient {
String SERVICE_NAME = "ses";
/**
* Value for looking up the service's metadata from the
* {@link software.amazon.awssdk.regions.ServiceMetadataProvider}.
*/
String SERVICE_METADATA_ID = "mail-manager";
/**
*
* Creates an Add On instance for the subscription indicated in the request. The resulting Amazon Resource Name
* (ARN) can be used in a conditional statement for a rule set or traffic policy.
*
*
* @param createAddonInstanceRequest
* @return Result of the CreateAddonInstance operation returned by the service.
* @throws ValidationException
* The request validation has failed. For details, see the accompanying error message.
* @throws ServiceQuotaExceededException
* Occurs when an operation exceeds a predefined service quota or limit.
* @throws ConflictException
* The request configuration has conflicts. For details, see the accompanying error message.
* @throws ResourceNotFoundException
* Occurs when a requested resource is not found.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws MailManagerException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample MailManagerClient.CreateAddonInstance
* @see AWS API Documentation
*/
default CreateAddonInstanceResponse createAddonInstance(CreateAddonInstanceRequest createAddonInstanceRequest)
throws ValidationException, ServiceQuotaExceededException, ConflictException, ResourceNotFoundException,
AwsServiceException, SdkClientException, MailManagerException {
throw new UnsupportedOperationException();
}
/**
*
* Creates an Add On instance for the subscription indicated in the request. The resulting Amazon Resource Name
* (ARN) can be used in a conditional statement for a rule set or traffic policy.
*
*
*
* This is a convenience which creates an instance of the {@link CreateAddonInstanceRequest.Builder} avoiding the
* need to create one manually via {@link CreateAddonInstanceRequest#builder()}
*
*
* @param createAddonInstanceRequest
* A {@link Consumer} that will call methods on
* {@link software.amazon.awssdk.services.mailmanager.model.CreateAddonInstanceRequest.Builder} to create a
* request.
* @return Result of the CreateAddonInstance operation returned by the service.
* @throws ValidationException
* The request validation has failed. For details, see the accompanying error message.
* @throws ServiceQuotaExceededException
* Occurs when an operation exceeds a predefined service quota or limit.
* @throws ConflictException
* The request configuration has conflicts. For details, see the accompanying error message.
* @throws ResourceNotFoundException
* Occurs when a requested resource is not found.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws MailManagerException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample MailManagerClient.CreateAddonInstance
* @see AWS API Documentation
*/
default CreateAddonInstanceResponse createAddonInstance(
Consumer createAddonInstanceRequest) throws ValidationException,
ServiceQuotaExceededException, ConflictException, ResourceNotFoundException, AwsServiceException, SdkClientException,
MailManagerException {
return createAddonInstance(CreateAddonInstanceRequest.builder().applyMutation(createAddonInstanceRequest).build());
}
/**
*
* Creates a subscription for an Add On representing the acceptance of its terms of use and additional pricing. The
* subscription can then be used to create an instance for use in rule sets or traffic policies.
*
*
* @param createAddonSubscriptionRequest
* @return Result of the CreateAddonSubscription operation returned by the service.
* @throws ValidationException
* The request validation has failed. For details, see the accompanying error message.
* @throws ServiceQuotaExceededException
* Occurs when an operation exceeds a predefined service quota or limit.
* @throws ConflictException
* The request configuration has conflicts. For details, see the accompanying error message.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws MailManagerException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample MailManagerClient.CreateAddonSubscription
* @see AWS API Documentation
*/
default CreateAddonSubscriptionResponse createAddonSubscription(CreateAddonSubscriptionRequest createAddonSubscriptionRequest)
throws ValidationException, ServiceQuotaExceededException, ConflictException, AwsServiceException,
SdkClientException, MailManagerException {
throw new UnsupportedOperationException();
}
/**
*
* Creates a subscription for an Add On representing the acceptance of its terms of use and additional pricing. The
* subscription can then be used to create an instance for use in rule sets or traffic policies.
*
*
*
* This is a convenience which creates an instance of the {@link CreateAddonSubscriptionRequest.Builder} avoiding
* the need to create one manually via {@link CreateAddonSubscriptionRequest#builder()}
*
*
* @param createAddonSubscriptionRequest
* A {@link Consumer} that will call methods on
* {@link software.amazon.awssdk.services.mailmanager.model.CreateAddonSubscriptionRequest.Builder} to create
* a request.
* @return Result of the CreateAddonSubscription operation returned by the service.
* @throws ValidationException
* The request validation has failed. For details, see the accompanying error message.
* @throws ServiceQuotaExceededException
* Occurs when an operation exceeds a predefined service quota or limit.
* @throws ConflictException
* The request configuration has conflicts. For details, see the accompanying error message.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws MailManagerException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample MailManagerClient.CreateAddonSubscription
* @see AWS API Documentation
*/
default CreateAddonSubscriptionResponse createAddonSubscription(
Consumer createAddonSubscriptionRequest) throws ValidationException,
ServiceQuotaExceededException, ConflictException, AwsServiceException, SdkClientException, MailManagerException {
return createAddonSubscription(CreateAddonSubscriptionRequest.builder().applyMutation(createAddonSubscriptionRequest)
.build());
}
/**
*
* Creates a new email archive resource for storing and retaining emails.
*
*
* @param createArchiveRequest
* The request to create a new email archive.
* @return Result of the CreateArchive operation returned by the service.
* @throws ValidationException
* The request validation has failed. For details, see the accompanying error message.
* @throws AccessDeniedException
* Occurs when a user is denied access to a specific resource or action.
* @throws ServiceQuotaExceededException
* Occurs when an operation exceeds a predefined service quota or limit.
* @throws ConflictException
* The request configuration has conflicts. For details, see the accompanying error message.
* @throws ThrottlingException
* Occurs when a service's request rate limit is exceeded, resulting in throttling of further requests.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws MailManagerException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample MailManagerClient.CreateArchive
* @see AWS API
* Documentation
*/
default CreateArchiveResponse createArchive(CreateArchiveRequest createArchiveRequest) throws ValidationException,
AccessDeniedException, ServiceQuotaExceededException, ConflictException, ThrottlingException, AwsServiceException,
SdkClientException, MailManagerException {
throw new UnsupportedOperationException();
}
/**
*
* Creates a new email archive resource for storing and retaining emails.
*
*
*
* This is a convenience which creates an instance of the {@link CreateArchiveRequest.Builder} avoiding the need to
* create one manually via {@link CreateArchiveRequest#builder()}
*
*
* @param createArchiveRequest
* A {@link Consumer} that will call methods on
* {@link software.amazon.awssdk.services.mailmanager.model.CreateArchiveRequest.Builder} to create a
* request. The request to create a new email archive.
* @return Result of the CreateArchive operation returned by the service.
* @throws ValidationException
* The request validation has failed. For details, see the accompanying error message.
* @throws AccessDeniedException
* Occurs when a user is denied access to a specific resource or action.
* @throws ServiceQuotaExceededException
* Occurs when an operation exceeds a predefined service quota or limit.
* @throws ConflictException
* The request configuration has conflicts. For details, see the accompanying error message.
* @throws ThrottlingException
* Occurs when a service's request rate limit is exceeded, resulting in throttling of further requests.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws MailManagerException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample MailManagerClient.CreateArchive
* @see AWS API
* Documentation
*/
default CreateArchiveResponse createArchive(Consumer createArchiveRequest)
throws ValidationException, AccessDeniedException, ServiceQuotaExceededException, ConflictException,
ThrottlingException, AwsServiceException, SdkClientException, MailManagerException {
return createArchive(CreateArchiveRequest.builder().applyMutation(createArchiveRequest).build());
}
/**
*
* Provision a new ingress endpoint resource.
*
*
* @param createIngressPointRequest
* @return Result of the CreateIngressPoint operation returned by the service.
* @throws ValidationException
* The request validation has failed. For details, see the accompanying error message.
* @throws ServiceQuotaExceededException
* Occurs when an operation exceeds a predefined service quota or limit.
* @throws ConflictException
* The request configuration has conflicts. For details, see the accompanying error message.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws MailManagerException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample MailManagerClient.CreateIngressPoint
* @see AWS API Documentation
*/
default CreateIngressPointResponse createIngressPoint(CreateIngressPointRequest createIngressPointRequest)
throws ValidationException, ServiceQuotaExceededException, ConflictException, AwsServiceException,
SdkClientException, MailManagerException {
throw new UnsupportedOperationException();
}
/**
*
* Provision a new ingress endpoint resource.
*
*
*
* This is a convenience which creates an instance of the {@link CreateIngressPointRequest.Builder} avoiding the
* need to create one manually via {@link CreateIngressPointRequest#builder()}
*
*
* @param createIngressPointRequest
* A {@link Consumer} that will call methods on
* {@link software.amazon.awssdk.services.mailmanager.model.CreateIngressPointRequest.Builder} to create a
* request.
* @return Result of the CreateIngressPoint operation returned by the service.
* @throws ValidationException
* The request validation has failed. For details, see the accompanying error message.
* @throws ServiceQuotaExceededException
* Occurs when an operation exceeds a predefined service quota or limit.
* @throws ConflictException
* The request configuration has conflicts. For details, see the accompanying error message.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws MailManagerException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample MailManagerClient.CreateIngressPoint
* @see AWS API Documentation
*/
default CreateIngressPointResponse createIngressPoint(Consumer createIngressPointRequest)
throws ValidationException, ServiceQuotaExceededException, ConflictException, AwsServiceException,
SdkClientException, MailManagerException {
return createIngressPoint(CreateIngressPointRequest.builder().applyMutation(createIngressPointRequest).build());
}
/**
*
* Creates a relay resource which can be used in rules to relay incoming emails to defined relay destinations.
*
*
* @param createRelayRequest
* @return Result of the CreateRelay operation returned by the service.
* @throws ValidationException
* The request validation has failed. For details, see the accompanying error message.
* @throws ServiceQuotaExceededException
* Occurs when an operation exceeds a predefined service quota or limit.
* @throws ConflictException
* The request configuration has conflicts. For details, see the accompanying error message.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws MailManagerException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample MailManagerClient.CreateRelay
* @see AWS API
* Documentation
*/
default CreateRelayResponse createRelay(CreateRelayRequest createRelayRequest) throws ValidationException,
ServiceQuotaExceededException, ConflictException, AwsServiceException, SdkClientException, MailManagerException {
throw new UnsupportedOperationException();
}
/**
*
* Creates a relay resource which can be used in rules to relay incoming emails to defined relay destinations.
*
*
*
* This is a convenience which creates an instance of the {@link CreateRelayRequest.Builder} avoiding the need to
* create one manually via {@link CreateRelayRequest#builder()}
*
*
* @param createRelayRequest
* A {@link Consumer} that will call methods on
* {@link software.amazon.awssdk.services.mailmanager.model.CreateRelayRequest.Builder} to create a request.
* @return Result of the CreateRelay operation returned by the service.
* @throws ValidationException
* The request validation has failed. For details, see the accompanying error message.
* @throws ServiceQuotaExceededException
* Occurs when an operation exceeds a predefined service quota or limit.
* @throws ConflictException
* The request configuration has conflicts. For details, see the accompanying error message.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws MailManagerException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample MailManagerClient.CreateRelay
* @see AWS API
* Documentation
*/
default CreateRelayResponse createRelay(Consumer createRelayRequest) throws ValidationException,
ServiceQuotaExceededException, ConflictException, AwsServiceException, SdkClientException, MailManagerException {
return createRelay(CreateRelayRequest.builder().applyMutation(createRelayRequest).build());
}
/**
*
* Provision a new rule set.
*
*
* @param createRuleSetRequest
* @return Result of the CreateRuleSet operation returned by the service.
* @throws ValidationException
* The request validation has failed. For details, see the accompanying error message.
* @throws ServiceQuotaExceededException
* Occurs when an operation exceeds a predefined service quota or limit.
* @throws ConflictException
* The request configuration has conflicts. For details, see the accompanying error message.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws MailManagerException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample MailManagerClient.CreateRuleSet
* @see AWS API
* Documentation
*/
default CreateRuleSetResponse createRuleSet(CreateRuleSetRequest createRuleSetRequest) throws ValidationException,
ServiceQuotaExceededException, ConflictException, AwsServiceException, SdkClientException, MailManagerException {
throw new UnsupportedOperationException();
}
/**
*
* Provision a new rule set.
*
*
*
* This is a convenience which creates an instance of the {@link CreateRuleSetRequest.Builder} avoiding the need to
* create one manually via {@link CreateRuleSetRequest#builder()}
*
*
* @param createRuleSetRequest
* A {@link Consumer} that will call methods on
* {@link software.amazon.awssdk.services.mailmanager.model.CreateRuleSetRequest.Builder} to create a
* request.
* @return Result of the CreateRuleSet operation returned by the service.
* @throws ValidationException
* The request validation has failed. For details, see the accompanying error message.
* @throws ServiceQuotaExceededException
* Occurs when an operation exceeds a predefined service quota or limit.
* @throws ConflictException
* The request configuration has conflicts. For details, see the accompanying error message.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws MailManagerException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample MailManagerClient.CreateRuleSet
* @see AWS API
* Documentation
*/
default CreateRuleSetResponse createRuleSet(Consumer createRuleSetRequest)
throws ValidationException, ServiceQuotaExceededException, ConflictException, AwsServiceException,
SdkClientException, MailManagerException {
return createRuleSet(CreateRuleSetRequest.builder().applyMutation(createRuleSetRequest).build());
}
/**
*
* Provision a new traffic policy resource.
*
*
* @param createTrafficPolicyRequest
* @return Result of the CreateTrafficPolicy operation returned by the service.
* @throws ValidationException
* The request validation has failed. For details, see the accompanying error message.
* @throws ServiceQuotaExceededException
* Occurs when an operation exceeds a predefined service quota or limit.
* @throws ConflictException
* The request configuration has conflicts. For details, see the accompanying error message.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws MailManagerException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample MailManagerClient.CreateTrafficPolicy
* @see AWS API Documentation
*/
default CreateTrafficPolicyResponse createTrafficPolicy(CreateTrafficPolicyRequest createTrafficPolicyRequest)
throws ValidationException, ServiceQuotaExceededException, ConflictException, AwsServiceException,
SdkClientException, MailManagerException {
throw new UnsupportedOperationException();
}
/**
*
* Provision a new traffic policy resource.
*
*
*
* This is a convenience which creates an instance of the {@link CreateTrafficPolicyRequest.Builder} avoiding the
* need to create one manually via {@link CreateTrafficPolicyRequest#builder()}
*
*
* @param createTrafficPolicyRequest
* A {@link Consumer} that will call methods on
* {@link software.amazon.awssdk.services.mailmanager.model.CreateTrafficPolicyRequest.Builder} to create a
* request.
* @return Result of the CreateTrafficPolicy operation returned by the service.
* @throws ValidationException
* The request validation has failed. For details, see the accompanying error message.
* @throws ServiceQuotaExceededException
* Occurs when an operation exceeds a predefined service quota or limit.
* @throws ConflictException
* The request configuration has conflicts. For details, see the accompanying error message.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws MailManagerException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample MailManagerClient.CreateTrafficPolicy
* @see AWS API Documentation
*/
default CreateTrafficPolicyResponse createTrafficPolicy(
Consumer createTrafficPolicyRequest) throws ValidationException,
ServiceQuotaExceededException, ConflictException, AwsServiceException, SdkClientException, MailManagerException {
return createTrafficPolicy(CreateTrafficPolicyRequest.builder().applyMutation(createTrafficPolicyRequest).build());
}
/**
*
* Deletes an Add On instance.
*
*
* @param deleteAddonInstanceRequest
* @return Result of the DeleteAddonInstance operation returned by the service.
* @throws ValidationException
* The request validation has failed. For details, see the accompanying error message.
* @throws ConflictException
* The request configuration has conflicts. For details, see the accompanying error message.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws MailManagerException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample MailManagerClient.DeleteAddonInstance
* @see AWS API Documentation
*/
default DeleteAddonInstanceResponse deleteAddonInstance(DeleteAddonInstanceRequest deleteAddonInstanceRequest)
throws ValidationException, ConflictException, AwsServiceException, SdkClientException, MailManagerException {
throw new UnsupportedOperationException();
}
/**
*
* Deletes an Add On instance.
*
*
*
* This is a convenience which creates an instance of the {@link DeleteAddonInstanceRequest.Builder} avoiding the
* need to create one manually via {@link DeleteAddonInstanceRequest#builder()}
*
*
* @param deleteAddonInstanceRequest
* A {@link Consumer} that will call methods on
* {@link software.amazon.awssdk.services.mailmanager.model.DeleteAddonInstanceRequest.Builder} to create a
* request.
* @return Result of the DeleteAddonInstance operation returned by the service.
* @throws ValidationException
* The request validation has failed. For details, see the accompanying error message.
* @throws ConflictException
* The request configuration has conflicts. For details, see the accompanying error message.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws MailManagerException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample MailManagerClient.DeleteAddonInstance
* @see AWS API Documentation
*/
default DeleteAddonInstanceResponse deleteAddonInstance(
Consumer deleteAddonInstanceRequest) throws ValidationException,
ConflictException, AwsServiceException, SdkClientException, MailManagerException {
return deleteAddonInstance(DeleteAddonInstanceRequest.builder().applyMutation(deleteAddonInstanceRequest).build());
}
/**
*
* Deletes an Add On subscription.
*
*
* @param deleteAddonSubscriptionRequest
* @return Result of the DeleteAddonSubscription operation returned by the service.
* @throws ValidationException
* The request validation has failed. For details, see the accompanying error message.
* @throws ConflictException
* The request configuration has conflicts. For details, see the accompanying error message.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws MailManagerException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample MailManagerClient.DeleteAddonSubscription
* @see AWS API Documentation
*/
default DeleteAddonSubscriptionResponse deleteAddonSubscription(DeleteAddonSubscriptionRequest deleteAddonSubscriptionRequest)
throws ValidationException, ConflictException, AwsServiceException, SdkClientException, MailManagerException {
throw new UnsupportedOperationException();
}
/**
*
* Deletes an Add On subscription.
*
*
*
* This is a convenience which creates an instance of the {@link DeleteAddonSubscriptionRequest.Builder} avoiding
* the need to create one manually via {@link DeleteAddonSubscriptionRequest#builder()}
*
*
* @param deleteAddonSubscriptionRequest
* A {@link Consumer} that will call methods on
* {@link software.amazon.awssdk.services.mailmanager.model.DeleteAddonSubscriptionRequest.Builder} to create
* a request.
* @return Result of the DeleteAddonSubscription operation returned by the service.
* @throws ValidationException
* The request validation has failed. For details, see the accompanying error message.
* @throws ConflictException
* The request configuration has conflicts. For details, see the accompanying error message.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws MailManagerException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample MailManagerClient.DeleteAddonSubscription
* @see AWS API Documentation
*/
default DeleteAddonSubscriptionResponse deleteAddonSubscription(
Consumer deleteAddonSubscriptionRequest) throws ValidationException,
ConflictException, AwsServiceException, SdkClientException, MailManagerException {
return deleteAddonSubscription(DeleteAddonSubscriptionRequest.builder().applyMutation(deleteAddonSubscriptionRequest)
.build());
}
/**
*
* Initiates deletion of an email archive. This changes the archive state to pending deletion. In this state, no new
* emails can be added, and existing archived emails become inaccessible (search, export, download). The archive and
* all of its contents will be permanently deleted 30 days after entering the pending deletion state, regardless of
* the configured retention period.
*
*
* @param deleteArchiveRequest
* The request to initiate deletion of an email archive.
* @return Result of the DeleteArchive operation returned by the service.
* @throws ValidationException
* The request validation has failed. For details, see the accompanying error message.
* @throws AccessDeniedException
* Occurs when a user is denied access to a specific resource or action.
* @throws ConflictException
* The request configuration has conflicts. For details, see the accompanying error message.
* @throws ThrottlingException
* Occurs when a service's request rate limit is exceeded, resulting in throttling of further requests.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws MailManagerException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample MailManagerClient.DeleteArchive
* @see AWS API
* Documentation
*/
default DeleteArchiveResponse deleteArchive(DeleteArchiveRequest deleteArchiveRequest) throws ValidationException,
AccessDeniedException, ConflictException, ThrottlingException, AwsServiceException, SdkClientException,
MailManagerException {
throw new UnsupportedOperationException();
}
/**
*
* Initiates deletion of an email archive. This changes the archive state to pending deletion. In this state, no new
* emails can be added, and existing archived emails become inaccessible (search, export, download). The archive and
* all of its contents will be permanently deleted 30 days after entering the pending deletion state, regardless of
* the configured retention period.
*
*
*
* This is a convenience which creates an instance of the {@link DeleteArchiveRequest.Builder} avoiding the need to
* create one manually via {@link DeleteArchiveRequest#builder()}
*
*
* @param deleteArchiveRequest
* A {@link Consumer} that will call methods on
* {@link software.amazon.awssdk.services.mailmanager.model.DeleteArchiveRequest.Builder} to create a
* request. The request to initiate deletion of an email archive.
* @return Result of the DeleteArchive operation returned by the service.
* @throws ValidationException
* The request validation has failed. For details, see the accompanying error message.
* @throws AccessDeniedException
* Occurs when a user is denied access to a specific resource or action.
* @throws ConflictException
* The request configuration has conflicts. For details, see the accompanying error message.
* @throws ThrottlingException
* Occurs when a service's request rate limit is exceeded, resulting in throttling of further requests.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws MailManagerException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample MailManagerClient.DeleteArchive
* @see AWS API
* Documentation
*/
default DeleteArchiveResponse deleteArchive(Consumer deleteArchiveRequest)
throws ValidationException, AccessDeniedException, ConflictException, ThrottlingException, AwsServiceException,
SdkClientException, MailManagerException {
return deleteArchive(DeleteArchiveRequest.builder().applyMutation(deleteArchiveRequest).build());
}
/**
*
* Delete an ingress endpoint resource.
*
*
* @param deleteIngressPointRequest
* @return Result of the DeleteIngressPoint operation returned by the service.
* @throws ValidationException
* The request validation has failed. For details, see the accompanying error message.
* @throws ConflictException
* The request configuration has conflicts. For details, see the accompanying error message.
* @throws ResourceNotFoundException
* Occurs when a requested resource is not found.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws MailManagerException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample MailManagerClient.DeleteIngressPoint
* @see AWS API Documentation
*/
default DeleteIngressPointResponse deleteIngressPoint(DeleteIngressPointRequest deleteIngressPointRequest)
throws ValidationException, ConflictException, ResourceNotFoundException, AwsServiceException, SdkClientException,
MailManagerException {
throw new UnsupportedOperationException();
}
/**
*
* Delete an ingress endpoint resource.
*
*
*
* This is a convenience which creates an instance of the {@link DeleteIngressPointRequest.Builder} avoiding the
* need to create one manually via {@link DeleteIngressPointRequest#builder()}
*
*
* @param deleteIngressPointRequest
* A {@link Consumer} that will call methods on
* {@link software.amazon.awssdk.services.mailmanager.model.DeleteIngressPointRequest.Builder} to create a
* request.
* @return Result of the DeleteIngressPoint operation returned by the service.
* @throws ValidationException
* The request validation has failed. For details, see the accompanying error message.
* @throws ConflictException
* The request configuration has conflicts. For details, see the accompanying error message.
* @throws ResourceNotFoundException
* Occurs when a requested resource is not found.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws MailManagerException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample MailManagerClient.DeleteIngressPoint
* @see AWS API Documentation
*/
default DeleteIngressPointResponse deleteIngressPoint(Consumer deleteIngressPointRequest)
throws ValidationException, ConflictException, ResourceNotFoundException, AwsServiceException, SdkClientException,
MailManagerException {
return deleteIngressPoint(DeleteIngressPointRequest.builder().applyMutation(deleteIngressPointRequest).build());
}
/**
*
* Deletes an existing relay resource.
*
*
* @param deleteRelayRequest
* @return Result of the DeleteRelay operation returned by the service.
* @throws ValidationException
* The request validation has failed. For details, see the accompanying error message.
* @throws ConflictException
* The request configuration has conflicts. For details, see the accompanying error message.
* @throws ResourceNotFoundException
* Occurs when a requested resource is not found.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws MailManagerException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample MailManagerClient.DeleteRelay
* @see AWS API
* Documentation
*/
default DeleteRelayResponse deleteRelay(DeleteRelayRequest deleteRelayRequest) throws ValidationException, ConflictException,
ResourceNotFoundException, AwsServiceException, SdkClientException, MailManagerException {
throw new UnsupportedOperationException();
}
/**
*
* Deletes an existing relay resource.
*
*
*
* This is a convenience which creates an instance of the {@link DeleteRelayRequest.Builder} avoiding the need to
* create one manually via {@link DeleteRelayRequest#builder()}
*
*
* @param deleteRelayRequest
* A {@link Consumer} that will call methods on
* {@link software.amazon.awssdk.services.mailmanager.model.DeleteRelayRequest.Builder} to create a request.
* @return Result of the DeleteRelay operation returned by the service.
* @throws ValidationException
* The request validation has failed. For details, see the accompanying error message.
* @throws ConflictException
* The request configuration has conflicts. For details, see the accompanying error message.
* @throws ResourceNotFoundException
* Occurs when a requested resource is not found.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws MailManagerException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample MailManagerClient.DeleteRelay
* @see AWS API
* Documentation
*/
default DeleteRelayResponse deleteRelay(Consumer deleteRelayRequest) throws ValidationException,
ConflictException, ResourceNotFoundException, AwsServiceException, SdkClientException, MailManagerException {
return deleteRelay(DeleteRelayRequest.builder().applyMutation(deleteRelayRequest).build());
}
/**
*
* Delete a rule set.
*
*
* @param deleteRuleSetRequest
* @return Result of the DeleteRuleSet operation returned by the service.
* @throws ValidationException
* The request validation has failed. For details, see the accompanying error message.
* @throws ConflictException
* The request configuration has conflicts. For details, see the accompanying error message.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws MailManagerException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample MailManagerClient.DeleteRuleSet
* @see AWS API
* Documentation
*/
default DeleteRuleSetResponse deleteRuleSet(DeleteRuleSetRequest deleteRuleSetRequest) throws ValidationException,
ConflictException, AwsServiceException, SdkClientException, MailManagerException {
throw new UnsupportedOperationException();
}
/**
*
* Delete a rule set.
*
*
*
* This is a convenience which creates an instance of the {@link DeleteRuleSetRequest.Builder} avoiding the need to
* create one manually via {@link DeleteRuleSetRequest#builder()}
*
*
* @param deleteRuleSetRequest
* A {@link Consumer} that will call methods on
* {@link software.amazon.awssdk.services.mailmanager.model.DeleteRuleSetRequest.Builder} to create a
* request.
* @return Result of the DeleteRuleSet operation returned by the service.
* @throws ValidationException
* The request validation has failed. For details, see the accompanying error message.
* @throws ConflictException
* The request configuration has conflicts. For details, see the accompanying error message.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws MailManagerException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample MailManagerClient.DeleteRuleSet
* @see AWS API
* Documentation
*/
default DeleteRuleSetResponse deleteRuleSet(Consumer deleteRuleSetRequest)
throws ValidationException, ConflictException, AwsServiceException, SdkClientException, MailManagerException {
return deleteRuleSet(DeleteRuleSetRequest.builder().applyMutation(deleteRuleSetRequest).build());
}
/**
*
* Delete a traffic policy resource.
*
*
* @param deleteTrafficPolicyRequest
* @return Result of the DeleteTrafficPolicy operation returned by the service.
* @throws ValidationException
* The request validation has failed. For details, see the accompanying error message.
* @throws ConflictException
* The request configuration has conflicts. For details, see the accompanying error message.
* @throws ResourceNotFoundException
* Occurs when a requested resource is not found.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws MailManagerException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample MailManagerClient.DeleteTrafficPolicy
* @see AWS API Documentation
*/
default DeleteTrafficPolicyResponse deleteTrafficPolicy(DeleteTrafficPolicyRequest deleteTrafficPolicyRequest)
throws ValidationException, ConflictException, ResourceNotFoundException, AwsServiceException, SdkClientException,
MailManagerException {
throw new UnsupportedOperationException();
}
/**
*
* Delete a traffic policy resource.
*
*
*
* This is a convenience which creates an instance of the {@link DeleteTrafficPolicyRequest.Builder} avoiding the
* need to create one manually via {@link DeleteTrafficPolicyRequest#builder()}
*
*
* @param deleteTrafficPolicyRequest
* A {@link Consumer} that will call methods on
* {@link software.amazon.awssdk.services.mailmanager.model.DeleteTrafficPolicyRequest.Builder} to create a
* request.
* @return Result of the DeleteTrafficPolicy operation returned by the service.
* @throws ValidationException
* The request validation has failed. For details, see the accompanying error message.
* @throws ConflictException
* The request configuration has conflicts. For details, see the accompanying error message.
* @throws ResourceNotFoundException
* Occurs when a requested resource is not found.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws MailManagerException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample MailManagerClient.DeleteTrafficPolicy
* @see AWS API Documentation
*/
default DeleteTrafficPolicyResponse deleteTrafficPolicy(
Consumer deleteTrafficPolicyRequest) throws ValidationException,
ConflictException, ResourceNotFoundException, AwsServiceException, SdkClientException, MailManagerException {
return deleteTrafficPolicy(DeleteTrafficPolicyRequest.builder().applyMutation(deleteTrafficPolicyRequest).build());
}
/**
*
* Gets detailed information about an Add On instance.
*
*
* @param getAddonInstanceRequest
* @return Result of the GetAddonInstance operation returned by the service.
* @throws ValidationException
* The request validation has failed. For details, see the accompanying error message.
* @throws ResourceNotFoundException
* Occurs when a requested resource is not found.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws MailManagerException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample MailManagerClient.GetAddonInstance
* @see AWS
* API Documentation
*/
default GetAddonInstanceResponse getAddonInstance(GetAddonInstanceRequest getAddonInstanceRequest)
throws ValidationException, ResourceNotFoundException, AwsServiceException, SdkClientException, MailManagerException {
throw new UnsupportedOperationException();
}
/**
*
* Gets detailed information about an Add On instance.
*
*
*
* This is a convenience which creates an instance of the {@link GetAddonInstanceRequest.Builder} avoiding the need
* to create one manually via {@link GetAddonInstanceRequest#builder()}
*
*
* @param getAddonInstanceRequest
* A {@link Consumer} that will call methods on
* {@link software.amazon.awssdk.services.mailmanager.model.GetAddonInstanceRequest.Builder} to create a
* request.
* @return Result of the GetAddonInstance operation returned by the service.
* @throws ValidationException
* The request validation has failed. For details, see the accompanying error message.
* @throws ResourceNotFoundException
* Occurs when a requested resource is not found.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws MailManagerException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample MailManagerClient.GetAddonInstance
* @see AWS
* API Documentation
*/
default GetAddonInstanceResponse getAddonInstance(Consumer getAddonInstanceRequest)
throws ValidationException, ResourceNotFoundException, AwsServiceException, SdkClientException, MailManagerException {
return getAddonInstance(GetAddonInstanceRequest.builder().applyMutation(getAddonInstanceRequest).build());
}
/**
*
* Gets detailed information about an Add On subscription.
*
*
* @param getAddonSubscriptionRequest
* @return Result of the GetAddonSubscription operation returned by the service.
* @throws ValidationException
* The request validation has failed. For details, see the accompanying error message.
* @throws ResourceNotFoundException
* Occurs when a requested resource is not found.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws MailManagerException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample MailManagerClient.GetAddonSubscription
* @see AWS API Documentation
*/
default GetAddonSubscriptionResponse getAddonSubscription(GetAddonSubscriptionRequest getAddonSubscriptionRequest)
throws ValidationException, ResourceNotFoundException, AwsServiceException, SdkClientException, MailManagerException {
throw new UnsupportedOperationException();
}
/**
*
* Gets detailed information about an Add On subscription.
*
*
*
* This is a convenience which creates an instance of the {@link GetAddonSubscriptionRequest.Builder} avoiding the
* need to create one manually via {@link GetAddonSubscriptionRequest#builder()}
*
*
* @param getAddonSubscriptionRequest
* A {@link Consumer} that will call methods on
* {@link software.amazon.awssdk.services.mailmanager.model.GetAddonSubscriptionRequest.Builder} to create a
* request.
* @return Result of the GetAddonSubscription operation returned by the service.
* @throws ValidationException
* The request validation has failed. For details, see the accompanying error message.
* @throws ResourceNotFoundException
* Occurs when a requested resource is not found.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws MailManagerException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample MailManagerClient.GetAddonSubscription
* @see AWS API Documentation
*/
default GetAddonSubscriptionResponse getAddonSubscription(
Consumer getAddonSubscriptionRequest) throws ValidationException,
ResourceNotFoundException, AwsServiceException, SdkClientException, MailManagerException {
return getAddonSubscription(GetAddonSubscriptionRequest.builder().applyMutation(getAddonSubscriptionRequest).build());
}
/**
*
* Retrieves the full details and current state of a specified email archive.
*
*
* @param getArchiveRequest
* The request to retrieve details of an email archive.
* @return Result of the GetArchive operation returned by the service.
* @throws ValidationException
* The request validation has failed. For details, see the accompanying error message.
* @throws AccessDeniedException
* Occurs when a user is denied access to a specific resource or action.
* @throws ResourceNotFoundException
* Occurs when a requested resource is not found.
* @throws ThrottlingException
* Occurs when a service's request rate limit is exceeded, resulting in throttling of further requests.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws MailManagerException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample MailManagerClient.GetArchive
* @see AWS API
* Documentation
*/
default GetArchiveResponse getArchive(GetArchiveRequest getArchiveRequest) throws ValidationException, AccessDeniedException,
ResourceNotFoundException, ThrottlingException, AwsServiceException, SdkClientException, MailManagerException {
throw new UnsupportedOperationException();
}
/**
*
* Retrieves the full details and current state of a specified email archive.
*
*
*
* This is a convenience which creates an instance of the {@link GetArchiveRequest.Builder} avoiding the need to
* create one manually via {@link GetArchiveRequest#builder()}
*
*
* @param getArchiveRequest
* A {@link Consumer} that will call methods on
* {@link software.amazon.awssdk.services.mailmanager.model.GetArchiveRequest.Builder} to create a request.
* The request to retrieve details of an email archive.
* @return Result of the GetArchive operation returned by the service.
* @throws ValidationException
* The request validation has failed. For details, see the accompanying error message.
* @throws AccessDeniedException
* Occurs when a user is denied access to a specific resource or action.
* @throws ResourceNotFoundException
* Occurs when a requested resource is not found.
* @throws ThrottlingException
* Occurs when a service's request rate limit is exceeded, resulting in throttling of further requests.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws MailManagerException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample MailManagerClient.GetArchive
* @see AWS API
* Documentation
*/
default GetArchiveResponse getArchive(Consumer getArchiveRequest) throws ValidationException,
AccessDeniedException, ResourceNotFoundException, ThrottlingException, AwsServiceException, SdkClientException,
MailManagerException {
return getArchive(GetArchiveRequest.builder().applyMutation(getArchiveRequest).build());
}
/**
*
* Retrieves the details and current status of a specific email archive export job.
*
*
* @param getArchiveExportRequest
* The request to retrieve details of a specific archive export job.
* @return Result of the GetArchiveExport operation returned by the service.
* @throws ValidationException
* The request validation has failed. For details, see the accompanying error message.
* @throws AccessDeniedException
* Occurs when a user is denied access to a specific resource or action.
* @throws ThrottlingException
* Occurs when a service's request rate limit is exceeded, resulting in throttling of further requests.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws MailManagerException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample MailManagerClient.GetArchiveExport
* @see AWS
* API Documentation
*/
default GetArchiveExportResponse getArchiveExport(GetArchiveExportRequest getArchiveExportRequest)
throws ValidationException, AccessDeniedException, ThrottlingException, AwsServiceException, SdkClientException,
MailManagerException {
throw new UnsupportedOperationException();
}
/**
*
* Retrieves the details and current status of a specific email archive export job.
*
*
*
* This is a convenience which creates an instance of the {@link GetArchiveExportRequest.Builder} avoiding the need
* to create one manually via {@link GetArchiveExportRequest#builder()}
*
*
* @param getArchiveExportRequest
* A {@link Consumer} that will call methods on
* {@link software.amazon.awssdk.services.mailmanager.model.GetArchiveExportRequest.Builder} to create a
* request. The request to retrieve details of a specific archive export job.
* @return Result of the GetArchiveExport operation returned by the service.
* @throws ValidationException
* The request validation has failed. For details, see the accompanying error message.
* @throws AccessDeniedException
* Occurs when a user is denied access to a specific resource or action.
* @throws ThrottlingException
* Occurs when a service's request rate limit is exceeded, resulting in throttling of further requests.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws MailManagerException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample MailManagerClient.GetArchiveExport
* @see AWS
* API Documentation
*/
default GetArchiveExportResponse getArchiveExport(Consumer getArchiveExportRequest)
throws ValidationException, AccessDeniedException, ThrottlingException, AwsServiceException, SdkClientException,
MailManagerException {
return getArchiveExport(GetArchiveExportRequest.builder().applyMutation(getArchiveExportRequest).build());
}
/**
*
* Returns a pre-signed URL that provides temporary download access to the specific email message stored in the
* archive.
*
*
* @param getArchiveMessageRequest
* The request to get details of a specific email message stored in an archive.
* @return Result of the GetArchiveMessage operation returned by the service.
* @throws ValidationException
* The request validation has failed. For details, see the accompanying error message.
* @throws AccessDeniedException
* Occurs when a user is denied access to a specific resource or action.
* @throws ThrottlingException
* Occurs when a service's request rate limit is exceeded, resulting in throttling of further requests.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws MailManagerException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample MailManagerClient.GetArchiveMessage
* @see AWS
* API Documentation
*/
default GetArchiveMessageResponse getArchiveMessage(GetArchiveMessageRequest getArchiveMessageRequest)
throws ValidationException, AccessDeniedException, ThrottlingException, AwsServiceException, SdkClientException,
MailManagerException {
throw new UnsupportedOperationException();
}
/**
*
* Returns a pre-signed URL that provides temporary download access to the specific email message stored in the
* archive.
*
*
*
* This is a convenience which creates an instance of the {@link GetArchiveMessageRequest.Builder} avoiding the need
* to create one manually via {@link GetArchiveMessageRequest#builder()}
*
*
* @param getArchiveMessageRequest
* A {@link Consumer} that will call methods on
* {@link software.amazon.awssdk.services.mailmanager.model.GetArchiveMessageRequest.Builder} to create a
* request. The request to get details of a specific email message stored in an archive.
* @return Result of the GetArchiveMessage operation returned by the service.
* @throws ValidationException
* The request validation has failed. For details, see the accompanying error message.
* @throws AccessDeniedException
* Occurs when a user is denied access to a specific resource or action.
* @throws ThrottlingException
* Occurs when a service's request rate limit is exceeded, resulting in throttling of further requests.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws MailManagerException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample MailManagerClient.GetArchiveMessage
* @see AWS
* API Documentation
*/
default GetArchiveMessageResponse getArchiveMessage(Consumer getArchiveMessageRequest)
throws ValidationException, AccessDeniedException, ThrottlingException, AwsServiceException, SdkClientException,
MailManagerException {
return getArchiveMessage(GetArchiveMessageRequest.builder().applyMutation(getArchiveMessageRequest).build());
}
/**
*
* Returns the textual content of a specific email message stored in the archive. Attachments are not included.
*
*
* @param getArchiveMessageContentRequest
* The request to get the textual content of a specific email message stored in an archive.
* @return Result of the GetArchiveMessageContent operation returned by the service.
* @throws ValidationException
* The request validation has failed. For details, see the accompanying error message.
* @throws AccessDeniedException
* Occurs when a user is denied access to a specific resource or action.
* @throws ThrottlingException
* Occurs when a service's request rate limit is exceeded, resulting in throttling of further requests.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws MailManagerException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample MailManagerClient.GetArchiveMessageContent
* @see AWS API Documentation
*/
default GetArchiveMessageContentResponse getArchiveMessageContent(
GetArchiveMessageContentRequest getArchiveMessageContentRequest) throws ValidationException, AccessDeniedException,
ThrottlingException, AwsServiceException, SdkClientException, MailManagerException {
throw new UnsupportedOperationException();
}
/**
*
* Returns the textual content of a specific email message stored in the archive. Attachments are not included.
*
*
*
* This is a convenience which creates an instance of the {@link GetArchiveMessageContentRequest.Builder} avoiding
* the need to create one manually via {@link GetArchiveMessageContentRequest#builder()}
*
*
* @param getArchiveMessageContentRequest
* A {@link Consumer} that will call methods on
* {@link software.amazon.awssdk.services.mailmanager.model.GetArchiveMessageContentRequest.Builder} to
* create a request. The request to get the textual content of a specific email message stored in an archive.
* @return Result of the GetArchiveMessageContent operation returned by the service.
* @throws ValidationException
* The request validation has failed. For details, see the accompanying error message.
* @throws AccessDeniedException
* Occurs when a user is denied access to a specific resource or action.
* @throws ThrottlingException
* Occurs when a service's request rate limit is exceeded, resulting in throttling of further requests.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws MailManagerException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample MailManagerClient.GetArchiveMessageContent
* @see AWS API Documentation
*/
default GetArchiveMessageContentResponse getArchiveMessageContent(
Consumer getArchiveMessageContentRequest) throws ValidationException,
AccessDeniedException, ThrottlingException, AwsServiceException, SdkClientException, MailManagerException {
return getArchiveMessageContent(GetArchiveMessageContentRequest.builder().applyMutation(getArchiveMessageContentRequest)
.build());
}
/**
*
* Retrieves the details and current status of a specific email archive search job.
*
*
* @param getArchiveSearchRequest
* The request to retrieve details of a specific archive search job.
* @return Result of the GetArchiveSearch operation returned by the service.
* @throws ValidationException
* The request validation has failed. For details, see the accompanying error message.
* @throws AccessDeniedException
* Occurs when a user is denied access to a specific resource or action.
* @throws ThrottlingException
* Occurs when a service's request rate limit is exceeded, resulting in throttling of further requests.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws MailManagerException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample MailManagerClient.GetArchiveSearch
* @see AWS
* API Documentation
*/
default GetArchiveSearchResponse getArchiveSearch(GetArchiveSearchRequest getArchiveSearchRequest)
throws ValidationException, AccessDeniedException, ThrottlingException, AwsServiceException, SdkClientException,
MailManagerException {
throw new UnsupportedOperationException();
}
/**
*
* Retrieves the details and current status of a specific email archive search job.
*
*
*
* This is a convenience which creates an instance of the {@link GetArchiveSearchRequest.Builder} avoiding the need
* to create one manually via {@link GetArchiveSearchRequest#builder()}
*
*
* @param getArchiveSearchRequest
* A {@link Consumer} that will call methods on
* {@link software.amazon.awssdk.services.mailmanager.model.GetArchiveSearchRequest.Builder} to create a
* request. The request to retrieve details of a specific archive search job.
* @return Result of the GetArchiveSearch operation returned by the service.
* @throws ValidationException
* The request validation has failed. For details, see the accompanying error message.
* @throws AccessDeniedException
* Occurs when a user is denied access to a specific resource or action.
* @throws ThrottlingException
* Occurs when a service's request rate limit is exceeded, resulting in throttling of further requests.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws MailManagerException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample MailManagerClient.GetArchiveSearch
* @see AWS
* API Documentation
*/
default GetArchiveSearchResponse getArchiveSearch(Consumer getArchiveSearchRequest)
throws ValidationException, AccessDeniedException, ThrottlingException, AwsServiceException, SdkClientException,
MailManagerException {
return getArchiveSearch(GetArchiveSearchRequest.builder().applyMutation(getArchiveSearchRequest).build());
}
/**
*
* Returns the results of a completed email archive search job.
*
*
* @param getArchiveSearchResultsRequest
* The request to retrieve results from a completed archive search job.
* @return Result of the GetArchiveSearchResults operation returned by the service.
* @throws ValidationException
* The request validation has failed. For details, see the accompanying error message.
* @throws AccessDeniedException
* Occurs when a user is denied access to a specific resource or action.
* @throws ConflictException
* The request configuration has conflicts. For details, see the accompanying error message.
* @throws ThrottlingException
* Occurs when a service's request rate limit is exceeded, resulting in throttling of further requests.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws MailManagerException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample MailManagerClient.GetArchiveSearchResults
* @see AWS API Documentation
*/
default GetArchiveSearchResultsResponse getArchiveSearchResults(GetArchiveSearchResultsRequest getArchiveSearchResultsRequest)
throws ValidationException, AccessDeniedException, ConflictException, ThrottlingException, AwsServiceException,
SdkClientException, MailManagerException {
throw new UnsupportedOperationException();
}
/**
*
* Returns the results of a completed email archive search job.
*
*
*
* This is a convenience which creates an instance of the {@link GetArchiveSearchResultsRequest.Builder} avoiding
* the need to create one manually via {@link GetArchiveSearchResultsRequest#builder()}
*
*
* @param getArchiveSearchResultsRequest
* A {@link Consumer} that will call methods on
* {@link software.amazon.awssdk.services.mailmanager.model.GetArchiveSearchResultsRequest.Builder} to create
* a request. The request to retrieve results from a completed archive search job.
* @return Result of the GetArchiveSearchResults operation returned by the service.
* @throws ValidationException
* The request validation has failed. For details, see the accompanying error message.
* @throws AccessDeniedException
* Occurs when a user is denied access to a specific resource or action.
* @throws ConflictException
* The request configuration has conflicts. For details, see the accompanying error message.
* @throws ThrottlingException
* Occurs when a service's request rate limit is exceeded, resulting in throttling of further requests.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws MailManagerException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample MailManagerClient.GetArchiveSearchResults
* @see AWS API Documentation
*/
default GetArchiveSearchResultsResponse getArchiveSearchResults(
Consumer getArchiveSearchResultsRequest) throws ValidationException,
AccessDeniedException, ConflictException, ThrottlingException, AwsServiceException, SdkClientException,
MailManagerException {
return getArchiveSearchResults(GetArchiveSearchResultsRequest.builder().applyMutation(getArchiveSearchResultsRequest)
.build());
}
/**
*
* Fetch ingress endpoint resource attributes.
*
*
* @param getIngressPointRequest
* @return Result of the GetIngressPoint operation returned by the service.
* @throws ValidationException
* The request validation has failed. For details, see the accompanying error message.
* @throws ResourceNotFoundException
* Occurs when a requested resource is not found.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws MailManagerException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample MailManagerClient.GetIngressPoint
* @see AWS
* API Documentation
*/
default GetIngressPointResponse getIngressPoint(GetIngressPointRequest getIngressPointRequest) throws ValidationException,
ResourceNotFoundException, AwsServiceException, SdkClientException, MailManagerException {
throw new UnsupportedOperationException();
}
/**
*
* Fetch ingress endpoint resource attributes.
*
*
*
* This is a convenience which creates an instance of the {@link GetIngressPointRequest.Builder} avoiding the need
* to create one manually via {@link GetIngressPointRequest#builder()}
*
*
* @param getIngressPointRequest
* A {@link Consumer} that will call methods on
* {@link software.amazon.awssdk.services.mailmanager.model.GetIngressPointRequest.Builder} to create a
* request.
* @return Result of the GetIngressPoint operation returned by the service.
* @throws ValidationException
* The request validation has failed. For details, see the accompanying error message.
* @throws ResourceNotFoundException
* Occurs when a requested resource is not found.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws MailManagerException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample MailManagerClient.GetIngressPoint
* @see AWS
* API Documentation
*/
default GetIngressPointResponse getIngressPoint(Consumer getIngressPointRequest)
throws ValidationException, ResourceNotFoundException, AwsServiceException, SdkClientException, MailManagerException {
return getIngressPoint(GetIngressPointRequest.builder().applyMutation(getIngressPointRequest).build());
}
/**
*
* Fetch the relay resource and it's attributes.
*
*
* @param getRelayRequest
* @return Result of the GetRelay operation returned by the service.
* @throws ValidationException
* The request validation has failed. For details, see the accompanying error message.
* @throws ResourceNotFoundException
* Occurs when a requested resource is not found.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws MailManagerException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample MailManagerClient.GetRelay
* @see AWS API
* Documentation
*/
default GetRelayResponse getRelay(GetRelayRequest getRelayRequest) throws ValidationException, ResourceNotFoundException,
AwsServiceException, SdkClientException, MailManagerException {
throw new UnsupportedOperationException();
}
/**
*
* Fetch the relay resource and it's attributes.
*
*
*
* This is a convenience which creates an instance of the {@link GetRelayRequest.Builder} avoiding the need to
* create one manually via {@link GetRelayRequest#builder()}
*
*
* @param getRelayRequest
* A {@link Consumer} that will call methods on
* {@link software.amazon.awssdk.services.mailmanager.model.GetRelayRequest.Builder} to create a request.
* @return Result of the GetRelay operation returned by the service.
* @throws ValidationException
* The request validation has failed. For details, see the accompanying error message.
* @throws ResourceNotFoundException
* Occurs when a requested resource is not found.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws MailManagerException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample MailManagerClient.GetRelay
* @see AWS API
* Documentation
*/
default GetRelayResponse getRelay(Consumer getRelayRequest) throws ValidationException,
ResourceNotFoundException, AwsServiceException, SdkClientException, MailManagerException {
return getRelay(GetRelayRequest.builder().applyMutation(getRelayRequest).build());
}
/**
*
* Fetch attributes of a rule set.
*
*
* @param getRuleSetRequest
* @return Result of the GetRuleSet operation returned by the service.
* @throws ValidationException
* The request validation has failed. For details, see the accompanying error message.
* @throws ResourceNotFoundException
* Occurs when a requested resource is not found.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws MailManagerException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample MailManagerClient.GetRuleSet
* @see AWS API
* Documentation
*/
default GetRuleSetResponse getRuleSet(GetRuleSetRequest getRuleSetRequest) throws ValidationException,
ResourceNotFoundException, AwsServiceException, SdkClientException, MailManagerException {
throw new UnsupportedOperationException();
}
/**
*
* Fetch attributes of a rule set.
*
*
*
* This is a convenience which creates an instance of the {@link GetRuleSetRequest.Builder} avoiding the need to
* create one manually via {@link GetRuleSetRequest#builder()}
*
*
* @param getRuleSetRequest
* A {@link Consumer} that will call methods on
* {@link software.amazon.awssdk.services.mailmanager.model.GetRuleSetRequest.Builder} to create a request.
* @return Result of the GetRuleSet operation returned by the service.
* @throws ValidationException
* The request validation has failed. For details, see the accompanying error message.
* @throws ResourceNotFoundException
* Occurs when a requested resource is not found.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws MailManagerException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample MailManagerClient.GetRuleSet
* @see AWS API
* Documentation
*/
default GetRuleSetResponse getRuleSet(Consumer getRuleSetRequest) throws ValidationException,
ResourceNotFoundException, AwsServiceException, SdkClientException, MailManagerException {
return getRuleSet(GetRuleSetRequest.builder().applyMutation(getRuleSetRequest).build());
}
/**
*
* Fetch attributes of a traffic policy resource.
*
*
* @param getTrafficPolicyRequest
* @return Result of the GetTrafficPolicy operation returned by the service.
* @throws ValidationException
* The request validation has failed. For details, see the accompanying error message.
* @throws ResourceNotFoundException
* Occurs when a requested resource is not found.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws MailManagerException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample MailManagerClient.GetTrafficPolicy
* @see AWS
* API Documentation
*/
default GetTrafficPolicyResponse getTrafficPolicy(GetTrafficPolicyRequest getTrafficPolicyRequest)
throws ValidationException, ResourceNotFoundException, AwsServiceException, SdkClientException, MailManagerException {
throw new UnsupportedOperationException();
}
/**
*
* Fetch attributes of a traffic policy resource.
*
*
*
* This is a convenience which creates an instance of the {@link GetTrafficPolicyRequest.Builder} avoiding the need
* to create one manually via {@link GetTrafficPolicyRequest#builder()}
*
*
* @param getTrafficPolicyRequest
* A {@link Consumer} that will call methods on
* {@link software.amazon.awssdk.services.mailmanager.model.GetTrafficPolicyRequest.Builder} to create a
* request.
* @return Result of the GetTrafficPolicy operation returned by the service.
* @throws ValidationException
* The request validation has failed. For details, see the accompanying error message.
* @throws ResourceNotFoundException
* Occurs when a requested resource is not found.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws MailManagerException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample MailManagerClient.GetTrafficPolicy
* @see AWS
* API Documentation
*/
default GetTrafficPolicyResponse getTrafficPolicy(Consumer getTrafficPolicyRequest)
throws ValidationException, ResourceNotFoundException, AwsServiceException, SdkClientException, MailManagerException {
return getTrafficPolicy(GetTrafficPolicyRequest.builder().applyMutation(getTrafficPolicyRequest).build());
}
/**
*
* Lists all Add On instances in your account.
*
*
* @param listAddonInstancesRequest
* @return Result of the ListAddonInstances operation returned by the service.
* @throws ValidationException
* The request validation has failed. For details, see the accompanying error message.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws MailManagerException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample MailManagerClient.ListAddonInstances
* @see AWS API Documentation
*/
default ListAddonInstancesResponse listAddonInstances(ListAddonInstancesRequest listAddonInstancesRequest)
throws ValidationException, AwsServiceException, SdkClientException, MailManagerException {
throw new UnsupportedOperationException();
}
/**
*
* Lists all Add On instances in your account.
*
*
*
* This is a convenience which creates an instance of the {@link ListAddonInstancesRequest.Builder} avoiding the
* need to create one manually via {@link ListAddonInstancesRequest#builder()}
*
*
* @param listAddonInstancesRequest
* A {@link Consumer} that will call methods on
* {@link software.amazon.awssdk.services.mailmanager.model.ListAddonInstancesRequest.Builder} to create a
* request.
* @return Result of the ListAddonInstances operation returned by the service.
* @throws ValidationException
* The request validation has failed. For details, see the accompanying error message.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws MailManagerException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample MailManagerClient.ListAddonInstances
* @see AWS API Documentation
*/
default ListAddonInstancesResponse listAddonInstances(Consumer listAddonInstancesRequest)
throws ValidationException, AwsServiceException, SdkClientException, MailManagerException {
return listAddonInstances(ListAddonInstancesRequest.builder().applyMutation(listAddonInstancesRequest).build());
}
/**
*
* This is a variant of
* {@link #listAddonInstances(software.amazon.awssdk.services.mailmanager.model.ListAddonInstancesRequest)}
* 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
*
*
* {@code
* software.amazon.awssdk.services.mailmanager.paginators.ListAddonInstancesIterable responses = client.listAddonInstancesPaginator(request);
* responses.stream().forEach(....);
* }
*
*
* 2) Using For loop
*
*
* {
* @code
* software.amazon.awssdk.services.mailmanager.paginators.ListAddonInstancesIterable responses = client
* .listAddonInstancesPaginator(request);
* for (software.amazon.awssdk.services.mailmanager.model.ListAddonInstancesResponse response : responses) {
* // do something;
* }
* }
*
*
* 3) Use iterator directly
*
*
* {@code
* software.amazon.awssdk.services.mailmanager.paginators.ListAddonInstancesIterable responses = client.listAddonInstancesPaginator(request);
* responses.iterator().forEachRemaining(....);
* }
*
*
* Please notice that the configuration of PageSize 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
* {@link #listAddonInstances(software.amazon.awssdk.services.mailmanager.model.ListAddonInstancesRequest)}
* operation.
*
*
* @param listAddonInstancesRequest
* @return A custom iterable that can be used to iterate through all the response pages.
* @throws ValidationException
* The request validation has failed. For details, see the accompanying error message.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws MailManagerException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample MailManagerClient.ListAddonInstances
* @see AWS API Documentation
*/
default ListAddonInstancesIterable listAddonInstancesPaginator(ListAddonInstancesRequest listAddonInstancesRequest)
throws ValidationException, AwsServiceException, SdkClientException, MailManagerException {
return new ListAddonInstancesIterable(this, listAddonInstancesRequest);
}
/**
*
* This is a variant of
* {@link #listAddonInstances(software.amazon.awssdk.services.mailmanager.model.ListAddonInstancesRequest)}
* 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
*
*
* {@code
* software.amazon.awssdk.services.mailmanager.paginators.ListAddonInstancesIterable responses = client.listAddonInstancesPaginator(request);
* responses.stream().forEach(....);
* }
*
*
* 2) Using For loop
*
*
* {
* @code
* software.amazon.awssdk.services.mailmanager.paginators.ListAddonInstancesIterable responses = client
* .listAddonInstancesPaginator(request);
* for (software.amazon.awssdk.services.mailmanager.model.ListAddonInstancesResponse response : responses) {
* // do something;
* }
* }
*
*
* 3) Use iterator directly
*
*
* {@code
* software.amazon.awssdk.services.mailmanager.paginators.ListAddonInstancesIterable responses = client.listAddonInstancesPaginator(request);
* responses.iterator().forEachRemaining(....);
* }
*
*
* Please notice that the configuration of PageSize 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
* {@link #listAddonInstances(software.amazon.awssdk.services.mailmanager.model.ListAddonInstancesRequest)}
* operation.
*
*
*
* This is a convenience which creates an instance of the {@link ListAddonInstancesRequest.Builder} avoiding the
* need to create one manually via {@link ListAddonInstancesRequest#builder()}
*
*
* @param listAddonInstancesRequest
* A {@link Consumer} that will call methods on
* {@link software.amazon.awssdk.services.mailmanager.model.ListAddonInstancesRequest.Builder} to create a
* request.
* @return A custom iterable that can be used to iterate through all the response pages.
* @throws ValidationException
* The request validation has failed. For details, see the accompanying error message.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws MailManagerException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample MailManagerClient.ListAddonInstances
* @see AWS API Documentation
*/
default ListAddonInstancesIterable listAddonInstancesPaginator(
Consumer listAddonInstancesRequest) throws ValidationException,
AwsServiceException, SdkClientException, MailManagerException {
return listAddonInstancesPaginator(ListAddonInstancesRequest.builder().applyMutation(listAddonInstancesRequest).build());
}
/**
*
* Lists all Add On subscriptions in your account.
*
*
* @param listAddonSubscriptionsRequest
* @return Result of the ListAddonSubscriptions operation returned by the service.
* @throws ValidationException
* The request validation has failed. For details, see the accompanying error message.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws MailManagerException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample MailManagerClient.ListAddonSubscriptions
* @see AWS API Documentation
*/
default ListAddonSubscriptionsResponse listAddonSubscriptions(ListAddonSubscriptionsRequest listAddonSubscriptionsRequest)
throws ValidationException, AwsServiceException, SdkClientException, MailManagerException {
throw new UnsupportedOperationException();
}
/**
*
* Lists all Add On subscriptions in your account.
*
*
*
* This is a convenience which creates an instance of the {@link ListAddonSubscriptionsRequest.Builder} avoiding the
* need to create one manually via {@link ListAddonSubscriptionsRequest#builder()}
*
*
* @param listAddonSubscriptionsRequest
* A {@link Consumer} that will call methods on
* {@link software.amazon.awssdk.services.mailmanager.model.ListAddonSubscriptionsRequest.Builder} to create
* a request.
* @return Result of the ListAddonSubscriptions operation returned by the service.
* @throws ValidationException
* The request validation has failed. For details, see the accompanying error message.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws MailManagerException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample MailManagerClient.ListAddonSubscriptions
* @see AWS API Documentation
*/
default ListAddonSubscriptionsResponse listAddonSubscriptions(
Consumer listAddonSubscriptionsRequest) throws ValidationException,
AwsServiceException, SdkClientException, MailManagerException {
return listAddonSubscriptions(ListAddonSubscriptionsRequest.builder().applyMutation(listAddonSubscriptionsRequest)
.build());
}
/**
*
* This is a variant of
* {@link #listAddonSubscriptions(software.amazon.awssdk.services.mailmanager.model.ListAddonSubscriptionsRequest)}
* 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
*
*
* {@code
* software.amazon.awssdk.services.mailmanager.paginators.ListAddonSubscriptionsIterable responses = client.listAddonSubscriptionsPaginator(request);
* responses.stream().forEach(....);
* }
*
*
* 2) Using For loop
*
*
* {
* @code
* software.amazon.awssdk.services.mailmanager.paginators.ListAddonSubscriptionsIterable responses = client
* .listAddonSubscriptionsPaginator(request);
* for (software.amazon.awssdk.services.mailmanager.model.ListAddonSubscriptionsResponse response : responses) {
* // do something;
* }
* }
*
*
* 3) Use iterator directly
*
*
* {@code
* software.amazon.awssdk.services.mailmanager.paginators.ListAddonSubscriptionsIterable responses = client.listAddonSubscriptionsPaginator(request);
* responses.iterator().forEachRemaining(....);
* }
*
*
* Please notice that the configuration of PageSize 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
* {@link #listAddonSubscriptions(software.amazon.awssdk.services.mailmanager.model.ListAddonSubscriptionsRequest)}
* operation.
*
*
* @param listAddonSubscriptionsRequest
* @return A custom iterable that can be used to iterate through all the response pages.
* @throws ValidationException
* The request validation has failed. For details, see the accompanying error message.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws MailManagerException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample MailManagerClient.ListAddonSubscriptions
* @see AWS API Documentation
*/
default ListAddonSubscriptionsIterable listAddonSubscriptionsPaginator(
ListAddonSubscriptionsRequest listAddonSubscriptionsRequest) throws ValidationException, AwsServiceException,
SdkClientException, MailManagerException {
return new ListAddonSubscriptionsIterable(this, listAddonSubscriptionsRequest);
}
/**
*
* This is a variant of
* {@link #listAddonSubscriptions(software.amazon.awssdk.services.mailmanager.model.ListAddonSubscriptionsRequest)}
* 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
*
*
* {@code
* software.amazon.awssdk.services.mailmanager.paginators.ListAddonSubscriptionsIterable responses = client.listAddonSubscriptionsPaginator(request);
* responses.stream().forEach(....);
* }
*
*
* 2) Using For loop
*
*
* {
* @code
* software.amazon.awssdk.services.mailmanager.paginators.ListAddonSubscriptionsIterable responses = client
* .listAddonSubscriptionsPaginator(request);
* for (software.amazon.awssdk.services.mailmanager.model.ListAddonSubscriptionsResponse response : responses) {
* // do something;
* }
* }
*
*
* 3) Use iterator directly
*
*
* {@code
* software.amazon.awssdk.services.mailmanager.paginators.ListAddonSubscriptionsIterable responses = client.listAddonSubscriptionsPaginator(request);
* responses.iterator().forEachRemaining(....);
* }
*
*
* Please notice that the configuration of PageSize 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
* {@link #listAddonSubscriptions(software.amazon.awssdk.services.mailmanager.model.ListAddonSubscriptionsRequest)}
* operation.
*
*
*
* This is a convenience which creates an instance of the {@link ListAddonSubscriptionsRequest.Builder} avoiding the
* need to create one manually via {@link ListAddonSubscriptionsRequest#builder()}
*
*
* @param listAddonSubscriptionsRequest
* A {@link Consumer} that will call methods on
* {@link software.amazon.awssdk.services.mailmanager.model.ListAddonSubscriptionsRequest.Builder} to create
* a request.
* @return A custom iterable that can be used to iterate through all the response pages.
* @throws ValidationException
* The request validation has failed. For details, see the accompanying error message.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws MailManagerException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample MailManagerClient.ListAddonSubscriptions
* @see AWS API Documentation
*/
default ListAddonSubscriptionsIterable listAddonSubscriptionsPaginator(
Consumer listAddonSubscriptionsRequest) throws ValidationException,
AwsServiceException, SdkClientException, MailManagerException {
return listAddonSubscriptionsPaginator(ListAddonSubscriptionsRequest.builder()
.applyMutation(listAddonSubscriptionsRequest).build());
}
/**
*
* Returns a list of email archive export jobs.
*
*
* @param listArchiveExportsRequest
* The request to list archive export jobs in your account.
* @return Result of the ListArchiveExports operation returned by the service.
* @throws ValidationException
* The request validation has failed. For details, see the accompanying error message.
* @throws AccessDeniedException
* Occurs when a user is denied access to a specific resource or action.
* @throws ResourceNotFoundException
* Occurs when a requested resource is not found.
* @throws ThrottlingException
* Occurs when a service's request rate limit is exceeded, resulting in throttling of further requests.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws MailManagerException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample MailManagerClient.ListArchiveExports
* @see AWS API Documentation
*/
default ListArchiveExportsResponse listArchiveExports(ListArchiveExportsRequest listArchiveExportsRequest)
throws ValidationException, AccessDeniedException, ResourceNotFoundException, ThrottlingException,
AwsServiceException, SdkClientException, MailManagerException {
throw new UnsupportedOperationException();
}
/**
*
* Returns a list of email archive export jobs.
*
*
*
* This is a convenience which creates an instance of the {@link ListArchiveExportsRequest.Builder} avoiding the
* need to create one manually via {@link ListArchiveExportsRequest#builder()}
*
*
* @param listArchiveExportsRequest
* A {@link Consumer} that will call methods on
* {@link software.amazon.awssdk.services.mailmanager.model.ListArchiveExportsRequest.Builder} to create a
* request. The request to list archive export jobs in your account.
* @return Result of the ListArchiveExports operation returned by the service.
* @throws ValidationException
* The request validation has failed. For details, see the accompanying error message.
* @throws AccessDeniedException
* Occurs when a user is denied access to a specific resource or action.
* @throws ResourceNotFoundException
* Occurs when a requested resource is not found.
* @throws ThrottlingException
* Occurs when a service's request rate limit is exceeded, resulting in throttling of further requests.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws MailManagerException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample MailManagerClient.ListArchiveExports
* @see AWS API Documentation
*/
default ListArchiveExportsResponse listArchiveExports(Consumer listArchiveExportsRequest)
throws ValidationException, AccessDeniedException, ResourceNotFoundException, ThrottlingException,
AwsServiceException, SdkClientException, MailManagerException {
return listArchiveExports(ListArchiveExportsRequest.builder().applyMutation(listArchiveExportsRequest).build());
}
/**
*
* This is a variant of
* {@link #listArchiveExports(software.amazon.awssdk.services.mailmanager.model.ListArchiveExportsRequest)}
* 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
*
*
* {@code
* software.amazon.awssdk.services.mailmanager.paginators.ListArchiveExportsIterable responses = client.listArchiveExportsPaginator(request);
* responses.stream().forEach(....);
* }
*
*
* 2) Using For loop
*
*
* {
* @code
* software.amazon.awssdk.services.mailmanager.paginators.ListArchiveExportsIterable responses = client
* .listArchiveExportsPaginator(request);
* for (software.amazon.awssdk.services.mailmanager.model.ListArchiveExportsResponse response : responses) {
* // do something;
* }
* }
*
*
* 3) Use iterator directly
*
*
* {@code
* software.amazon.awssdk.services.mailmanager.paginators.ListArchiveExportsIterable responses = client.listArchiveExportsPaginator(request);
* responses.iterator().forEachRemaining(....);
* }
*
*
* Please notice that the configuration of PageSize 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
* {@link #listArchiveExports(software.amazon.awssdk.services.mailmanager.model.ListArchiveExportsRequest)}
* operation.
*
*
* @param listArchiveExportsRequest
* The request to list archive export jobs in your account.
* @return A custom iterable that can be used to iterate through all the response pages.
* @throws ValidationException
* The request validation has failed. For details, see the accompanying error message.
* @throws AccessDeniedException
* Occurs when a user is denied access to a specific resource or action.
* @throws ResourceNotFoundException
* Occurs when a requested resource is not found.
* @throws ThrottlingException
* Occurs when a service's request rate limit is exceeded, resulting in throttling of further requests.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws MailManagerException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample MailManagerClient.ListArchiveExports
* @see AWS API Documentation
*/
default ListArchiveExportsIterable listArchiveExportsPaginator(ListArchiveExportsRequest listArchiveExportsRequest)
throws ValidationException, AccessDeniedException, ResourceNotFoundException, ThrottlingException,
AwsServiceException, SdkClientException, MailManagerException {
return new ListArchiveExportsIterable(this, listArchiveExportsRequest);
}
/**
*
* This is a variant of
* {@link #listArchiveExports(software.amazon.awssdk.services.mailmanager.model.ListArchiveExportsRequest)}
* 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
*
*
* {@code
* software.amazon.awssdk.services.mailmanager.paginators.ListArchiveExportsIterable responses = client.listArchiveExportsPaginator(request);
* responses.stream().forEach(....);
* }
*
*
* 2) Using For loop
*
*
* {
* @code
* software.amazon.awssdk.services.mailmanager.paginators.ListArchiveExportsIterable responses = client
* .listArchiveExportsPaginator(request);
* for (software.amazon.awssdk.services.mailmanager.model.ListArchiveExportsResponse response : responses) {
* // do something;
* }
* }
*
*
* 3) Use iterator directly
*
*
* {@code
* software.amazon.awssdk.services.mailmanager.paginators.ListArchiveExportsIterable responses = client.listArchiveExportsPaginator(request);
* responses.iterator().forEachRemaining(....);
* }
*
*
* Please notice that the configuration of PageSize 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
* {@link #listArchiveExports(software.amazon.awssdk.services.mailmanager.model.ListArchiveExportsRequest)}
* operation.
*
*
*
* This is a convenience which creates an instance of the {@link ListArchiveExportsRequest.Builder} avoiding the
* need to create one manually via {@link ListArchiveExportsRequest#builder()}
*
*
* @param listArchiveExportsRequest
* A {@link Consumer} that will call methods on
* {@link software.amazon.awssdk.services.mailmanager.model.ListArchiveExportsRequest.Builder} to create a
* request. The request to list archive export jobs in your account.
* @return A custom iterable that can be used to iterate through all the response pages.
* @throws ValidationException
* The request validation has failed. For details, see the accompanying error message.
* @throws AccessDeniedException
* Occurs when a user is denied access to a specific resource or action.
* @throws ResourceNotFoundException
* Occurs when a requested resource is not found.
* @throws ThrottlingException
* Occurs when a service's request rate limit is exceeded, resulting in throttling of further requests.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws MailManagerException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample MailManagerClient.ListArchiveExports
* @see AWS API Documentation
*/
default ListArchiveExportsIterable listArchiveExportsPaginator(
Consumer listArchiveExportsRequest) throws ValidationException,
AccessDeniedException, ResourceNotFoundException, ThrottlingException, AwsServiceException, SdkClientException,
MailManagerException {
return listArchiveExportsPaginator(ListArchiveExportsRequest.builder().applyMutation(listArchiveExportsRequest).build());
}
/**
*
* Returns a list of email archive search jobs.
*
*
* @param listArchiveSearchesRequest
* The request to list archive search jobs in your account.
* @return Result of the ListArchiveSearches operation returned by the service.
* @throws ValidationException
* The request validation has failed. For details, see the accompanying error message.
* @throws AccessDeniedException
* Occurs when a user is denied access to a specific resource or action.
* @throws ResourceNotFoundException
* Occurs when a requested resource is not found.
* @throws ThrottlingException
* Occurs when a service's request rate limit is exceeded, resulting in throttling of further requests.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws MailManagerException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample MailManagerClient.ListArchiveSearches
* @see AWS API Documentation
*/
default ListArchiveSearchesResponse listArchiveSearches(ListArchiveSearchesRequest listArchiveSearchesRequest)
throws ValidationException, AccessDeniedException, ResourceNotFoundException, ThrottlingException,
AwsServiceException, SdkClientException, MailManagerException {
throw new UnsupportedOperationException();
}
/**
*
* Returns a list of email archive search jobs.
*
*
*
* This is a convenience which creates an instance of the {@link ListArchiveSearchesRequest.Builder} avoiding the
* need to create one manually via {@link ListArchiveSearchesRequest#builder()}
*
*
* @param listArchiveSearchesRequest
* A {@link Consumer} that will call methods on
* {@link software.amazon.awssdk.services.mailmanager.model.ListArchiveSearchesRequest.Builder} to create a
* request. The request to list archive search jobs in your account.
* @return Result of the ListArchiveSearches operation returned by the service.
* @throws ValidationException
* The request validation has failed. For details, see the accompanying error message.
* @throws AccessDeniedException
* Occurs when a user is denied access to a specific resource or action.
* @throws ResourceNotFoundException
* Occurs when a requested resource is not found.
* @throws ThrottlingException
* Occurs when a service's request rate limit is exceeded, resulting in throttling of further requests.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws MailManagerException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample MailManagerClient.ListArchiveSearches
* @see AWS API Documentation
*/
default ListArchiveSearchesResponse listArchiveSearches(
Consumer listArchiveSearchesRequest) throws ValidationException,
AccessDeniedException, ResourceNotFoundException, ThrottlingException, AwsServiceException, SdkClientException,
MailManagerException {
return listArchiveSearches(ListArchiveSearchesRequest.builder().applyMutation(listArchiveSearchesRequest).build());
}
/**
*
* This is a variant of
* {@link #listArchiveSearches(software.amazon.awssdk.services.mailmanager.model.ListArchiveSearchesRequest)}
* 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
*
*
* {@code
* software.amazon.awssdk.services.mailmanager.paginators.ListArchiveSearchesIterable responses = client.listArchiveSearchesPaginator(request);
* responses.stream().forEach(....);
* }
*
*
* 2) Using For loop
*
*
* {
* @code
* software.amazon.awssdk.services.mailmanager.paginators.ListArchiveSearchesIterable responses = client
* .listArchiveSearchesPaginator(request);
* for (software.amazon.awssdk.services.mailmanager.model.ListArchiveSearchesResponse response : responses) {
* // do something;
* }
* }
*
*
* 3) Use iterator directly
*
*
* {@code
* software.amazon.awssdk.services.mailmanager.paginators.ListArchiveSearchesIterable responses = client.listArchiveSearchesPaginator(request);
* responses.iterator().forEachRemaining(....);
* }
*
*
* Please notice that the configuration of PageSize 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
* {@link #listArchiveSearches(software.amazon.awssdk.services.mailmanager.model.ListArchiveSearchesRequest)}
* operation.
*
*
* @param listArchiveSearchesRequest
* The request to list archive search jobs in your account.
* @return A custom iterable that can be used to iterate through all the response pages.
* @throws ValidationException
* The request validation has failed. For details, see the accompanying error message.
* @throws AccessDeniedException
* Occurs when a user is denied access to a specific resource or action.
* @throws ResourceNotFoundException
* Occurs when a requested resource is not found.
* @throws ThrottlingException
* Occurs when a service's request rate limit is exceeded, resulting in throttling of further requests.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws MailManagerException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample MailManagerClient.ListArchiveSearches
* @see AWS API Documentation
*/
default ListArchiveSearchesIterable listArchiveSearchesPaginator(ListArchiveSearchesRequest listArchiveSearchesRequest)
throws ValidationException, AccessDeniedException, ResourceNotFoundException, ThrottlingException,
AwsServiceException, SdkClientException, MailManagerException {
return new ListArchiveSearchesIterable(this, listArchiveSearchesRequest);
}
/**
*
* This is a variant of
* {@link #listArchiveSearches(software.amazon.awssdk.services.mailmanager.model.ListArchiveSearchesRequest)}
* 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
*
*
* {@code
* software.amazon.awssdk.services.mailmanager.paginators.ListArchiveSearchesIterable responses = client.listArchiveSearchesPaginator(request);
* responses.stream().forEach(....);
* }
*
*
* 2) Using For loop
*
*
* {
* @code
* software.amazon.awssdk.services.mailmanager.paginators.ListArchiveSearchesIterable responses = client
* .listArchiveSearchesPaginator(request);
* for (software.amazon.awssdk.services.mailmanager.model.ListArchiveSearchesResponse response : responses) {
* // do something;
* }
* }
*
*
* 3) Use iterator directly
*
*
* {@code
* software.amazon.awssdk.services.mailmanager.paginators.ListArchiveSearchesIterable responses = client.listArchiveSearchesPaginator(request);
* responses.iterator().forEachRemaining(....);
* }
*
*
* Please notice that the configuration of PageSize 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
* {@link #listArchiveSearches(software.amazon.awssdk.services.mailmanager.model.ListArchiveSearchesRequest)}
* operation.
*
*
*
* This is a convenience which creates an instance of the {@link ListArchiveSearchesRequest.Builder} avoiding the
* need to create one manually via {@link ListArchiveSearchesRequest#builder()}
*
*
* @param listArchiveSearchesRequest
* A {@link Consumer} that will call methods on
* {@link software.amazon.awssdk.services.mailmanager.model.ListArchiveSearchesRequest.Builder} to create a
* request. The request to list archive search jobs in your account.
* @return A custom iterable that can be used to iterate through all the response pages.
* @throws ValidationException
* The request validation has failed. For details, see the accompanying error message.
* @throws AccessDeniedException
* Occurs when a user is denied access to a specific resource or action.
* @throws ResourceNotFoundException
* Occurs when a requested resource is not found.
* @throws ThrottlingException
* Occurs when a service's request rate limit is exceeded, resulting in throttling of further requests.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws MailManagerException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample MailManagerClient.ListArchiveSearches
* @see AWS API Documentation
*/
default ListArchiveSearchesIterable listArchiveSearchesPaginator(
Consumer listArchiveSearchesRequest) throws ValidationException,
AccessDeniedException, ResourceNotFoundException, ThrottlingException, AwsServiceException, SdkClientException,
MailManagerException {
return listArchiveSearchesPaginator(ListArchiveSearchesRequest.builder().applyMutation(listArchiveSearchesRequest)
.build());
}
/**
*
* Returns a list of all email archives in your account.
*
*
* @param listArchivesRequest
* The request to list email archives in your account.
* @return Result of the ListArchives operation returned by the service.
* @throws ValidationException
* The request validation has failed. For details, see the accompanying error message.
* @throws AccessDeniedException
* Occurs when a user is denied access to a specific resource or action.
* @throws ThrottlingException
* Occurs when a service's request rate limit is exceeded, resulting in throttling of further requests.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws MailManagerException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample MailManagerClient.ListArchives
* @see AWS API
* Documentation
*/
default ListArchivesResponse listArchives(ListArchivesRequest listArchivesRequest) throws ValidationException,
AccessDeniedException, ThrottlingException, AwsServiceException, SdkClientException, MailManagerException {
throw new UnsupportedOperationException();
}
/**
*
* Returns a list of all email archives in your account.
*
*
*
* This is a convenience which creates an instance of the {@link ListArchivesRequest.Builder} avoiding the need to
* create one manually via {@link ListArchivesRequest#builder()}
*
*
* @param listArchivesRequest
* A {@link Consumer} that will call methods on
* {@link software.amazon.awssdk.services.mailmanager.model.ListArchivesRequest.Builder} to create a request.
* The request to list email archives in your account.
* @return Result of the ListArchives operation returned by the service.
* @throws ValidationException
* The request validation has failed. For details, see the accompanying error message.
* @throws AccessDeniedException
* Occurs when a user is denied access to a specific resource or action.
* @throws ThrottlingException
* Occurs when a service's request rate limit is exceeded, resulting in throttling of further requests.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws MailManagerException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample MailManagerClient.ListArchives
* @see AWS API
* Documentation
*/
default ListArchivesResponse listArchives(Consumer listArchivesRequest)
throws ValidationException, AccessDeniedException, ThrottlingException, AwsServiceException, SdkClientException,
MailManagerException {
return listArchives(ListArchivesRequest.builder().applyMutation(listArchivesRequest).build());
}
/**
*
* This is a variant of {@link #listArchives(software.amazon.awssdk.services.mailmanager.model.ListArchivesRequest)}
* 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
*
*
* {@code
* software.amazon.awssdk.services.mailmanager.paginators.ListArchivesIterable responses = client.listArchivesPaginator(request);
* responses.stream().forEach(....);
* }
*
*
* 2) Using For loop
*
*
* {
* @code
* software.amazon.awssdk.services.mailmanager.paginators.ListArchivesIterable responses = client.listArchivesPaginator(request);
* for (software.amazon.awssdk.services.mailmanager.model.ListArchivesResponse response : responses) {
* // do something;
* }
* }
*
*
* 3) Use iterator directly
*
*
* {@code
* software.amazon.awssdk.services.mailmanager.paginators.ListArchivesIterable responses = client.listArchivesPaginator(request);
* responses.iterator().forEachRemaining(....);
* }
*
*
* Please notice that the configuration of PageSize 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
* {@link #listArchives(software.amazon.awssdk.services.mailmanager.model.ListArchivesRequest)} operation.
*
*
* @param listArchivesRequest
* The request to list email archives in your account.
* @return A custom iterable that can be used to iterate through all the response pages.
* @throws ValidationException
* The request validation has failed. For details, see the accompanying error message.
* @throws AccessDeniedException
* Occurs when a user is denied access to a specific resource or action.
* @throws ThrottlingException
* Occurs when a service's request rate limit is exceeded, resulting in throttling of further requests.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws MailManagerException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample MailManagerClient.ListArchives
* @see AWS API
* Documentation
*/
default ListArchivesIterable listArchivesPaginator(ListArchivesRequest listArchivesRequest) throws ValidationException,
AccessDeniedException, ThrottlingException, AwsServiceException, SdkClientException, MailManagerException {
return new ListArchivesIterable(this, listArchivesRequest);
}
/**
*
* This is a variant of {@link #listArchives(software.amazon.awssdk.services.mailmanager.model.ListArchivesRequest)}
* 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
*
*
* {@code
* software.amazon.awssdk.services.mailmanager.paginators.ListArchivesIterable responses = client.listArchivesPaginator(request);
* responses.stream().forEach(....);
* }
*
*
* 2) Using For loop
*
*
* {
* @code
* software.amazon.awssdk.services.mailmanager.paginators.ListArchivesIterable responses = client.listArchivesPaginator(request);
* for (software.amazon.awssdk.services.mailmanager.model.ListArchivesResponse response : responses) {
* // do something;
* }
* }
*
*
* 3) Use iterator directly
*
*
* {@code
* software.amazon.awssdk.services.mailmanager.paginators.ListArchivesIterable responses = client.listArchivesPaginator(request);
* responses.iterator().forEachRemaining(....);
* }
*
*
* Please notice that the configuration of PageSize 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
* {@link #listArchives(software.amazon.awssdk.services.mailmanager.model.ListArchivesRequest)} operation.
*
*
*
* This is a convenience which creates an instance of the {@link ListArchivesRequest.Builder} avoiding the need to
* create one manually via {@link ListArchivesRequest#builder()}
*
*
* @param listArchivesRequest
* A {@link Consumer} that will call methods on
* {@link software.amazon.awssdk.services.mailmanager.model.ListArchivesRequest.Builder} to create a request.
* The request to list email archives in your account.
* @return A custom iterable that can be used to iterate through all the response pages.
* @throws ValidationException
* The request validation has failed. For details, see the accompanying error message.
* @throws AccessDeniedException
* Occurs when a user is denied access to a specific resource or action.
* @throws ThrottlingException
* Occurs when a service's request rate limit is exceeded, resulting in throttling of further requests.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws MailManagerException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample MailManagerClient.ListArchives
* @see AWS API
* Documentation
*/
default ListArchivesIterable listArchivesPaginator(Consumer listArchivesRequest)
throws ValidationException, AccessDeniedException, ThrottlingException, AwsServiceException, SdkClientException,
MailManagerException {
return listArchivesPaginator(ListArchivesRequest.builder().applyMutation(listArchivesRequest).build());
}
/**
*
* List all ingress endpoint resources.
*
*
* @param listIngressPointsRequest
* @return Result of the ListIngressPoints operation returned by the service.
* @throws ValidationException
* The request validation has failed. For details, see the accompanying error message.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws MailManagerException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample MailManagerClient.ListIngressPoints
* @see AWS
* API Documentation
*/
default ListIngressPointsResponse listIngressPoints(ListIngressPointsRequest listIngressPointsRequest)
throws ValidationException, AwsServiceException, SdkClientException, MailManagerException {
throw new UnsupportedOperationException();
}
/**
*
* List all ingress endpoint resources.
*
*
*
* This is a convenience which creates an instance of the {@link ListIngressPointsRequest.Builder} avoiding the need
* to create one manually via {@link ListIngressPointsRequest#builder()}
*
*
* @param listIngressPointsRequest
* A {@link Consumer} that will call methods on
* {@link software.amazon.awssdk.services.mailmanager.model.ListIngressPointsRequest.Builder} to create a
* request.
* @return Result of the ListIngressPoints operation returned by the service.
* @throws ValidationException
* The request validation has failed. For details, see the accompanying error message.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws MailManagerException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample MailManagerClient.ListIngressPoints
* @see AWS
* API Documentation
*/
default ListIngressPointsResponse listIngressPoints(Consumer listIngressPointsRequest)
throws ValidationException, AwsServiceException, SdkClientException, MailManagerException {
return listIngressPoints(ListIngressPointsRequest.builder().applyMutation(listIngressPointsRequest).build());
}
/**
*
* This is a variant of
* {@link #listIngressPoints(software.amazon.awssdk.services.mailmanager.model.ListIngressPointsRequest)} 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
*
*
* {@code
* software.amazon.awssdk.services.mailmanager.paginators.ListIngressPointsIterable responses = client.listIngressPointsPaginator(request);
* responses.stream().forEach(....);
* }
*
*
* 2) Using For loop
*
*
* {
* @code
* software.amazon.awssdk.services.mailmanager.paginators.ListIngressPointsIterable responses = client
* .listIngressPointsPaginator(request);
* for (software.amazon.awssdk.services.mailmanager.model.ListIngressPointsResponse response : responses) {
* // do something;
* }
* }
*
*
* 3) Use iterator directly
*
*
* {@code
* software.amazon.awssdk.services.mailmanager.paginators.ListIngressPointsIterable responses = client.listIngressPointsPaginator(request);
* responses.iterator().forEachRemaining(....);
* }
*
*
* Please notice that the configuration of PageSize 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
* {@link #listIngressPoints(software.amazon.awssdk.services.mailmanager.model.ListIngressPointsRequest)}
* operation.
*
*
* @param listIngressPointsRequest
* @return A custom iterable that can be used to iterate through all the response pages.
* @throws ValidationException
* The request validation has failed. For details, see the accompanying error message.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws MailManagerException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample MailManagerClient.ListIngressPoints
* @see AWS
* API Documentation
*/
default ListIngressPointsIterable listIngressPointsPaginator(ListIngressPointsRequest listIngressPointsRequest)
throws ValidationException, AwsServiceException, SdkClientException, MailManagerException {
return new ListIngressPointsIterable(this, listIngressPointsRequest);
}
/**
*
* This is a variant of
* {@link #listIngressPoints(software.amazon.awssdk.services.mailmanager.model.ListIngressPointsRequest)} 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
*
*
* {@code
* software.amazon.awssdk.services.mailmanager.paginators.ListIngressPointsIterable responses = client.listIngressPointsPaginator(request);
* responses.stream().forEach(....);
* }
*
*
* 2) Using For loop
*
*
* {
* @code
* software.amazon.awssdk.services.mailmanager.paginators.ListIngressPointsIterable responses = client
* .listIngressPointsPaginator(request);
* for (software.amazon.awssdk.services.mailmanager.model.ListIngressPointsResponse response : responses) {
* // do something;
* }
* }
*
*
* 3) Use iterator directly
*
*
* {@code
* software.amazon.awssdk.services.mailmanager.paginators.ListIngressPointsIterable responses = client.listIngressPointsPaginator(request);
* responses.iterator().forEachRemaining(....);
* }
*
*
* Please notice that the configuration of PageSize 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
* {@link #listIngressPoints(software.amazon.awssdk.services.mailmanager.model.ListIngressPointsRequest)}
* operation.
*
*
*
* This is a convenience which creates an instance of the {@link ListIngressPointsRequest.Builder} avoiding the need
* to create one manually via {@link ListIngressPointsRequest#builder()}
*
*
* @param listIngressPointsRequest
* A {@link Consumer} that will call methods on
* {@link software.amazon.awssdk.services.mailmanager.model.ListIngressPointsRequest.Builder} to create a
* request.
* @return A custom iterable that can be used to iterate through all the response pages.
* @throws ValidationException
* The request validation has failed. For details, see the accompanying error message.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws MailManagerException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample MailManagerClient.ListIngressPoints
* @see AWS
* API Documentation
*/
default ListIngressPointsIterable listIngressPointsPaginator(
Consumer listIngressPointsRequest) throws ValidationException, AwsServiceException,
SdkClientException, MailManagerException {
return listIngressPointsPaginator(ListIngressPointsRequest.builder().applyMutation(listIngressPointsRequest).build());
}
/**
*
* Lists all the existing relay resources.
*
*
* @param listRelaysRequest
* @return Result of the ListRelays operation returned by the service.
* @throws ValidationException
* The request validation has failed. For details, see the accompanying error message.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws MailManagerException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample MailManagerClient.ListRelays
* @see AWS API
* Documentation
*/
default ListRelaysResponse listRelays(ListRelaysRequest listRelaysRequest) throws ValidationException, AwsServiceException,
SdkClientException, MailManagerException {
throw new UnsupportedOperationException();
}
/**
*
* Lists all the existing relay resources.
*
*
*
* This is a convenience which creates an instance of the {@link ListRelaysRequest.Builder} avoiding the need to
* create one manually via {@link ListRelaysRequest#builder()}
*
*
* @param listRelaysRequest
* A {@link Consumer} that will call methods on
* {@link software.amazon.awssdk.services.mailmanager.model.ListRelaysRequest.Builder} to create a request.
* @return Result of the ListRelays operation returned by the service.
* @throws ValidationException
* The request validation has failed. For details, see the accompanying error message.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws MailManagerException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample MailManagerClient.ListRelays
* @see AWS API
* Documentation
*/
default ListRelaysResponse listRelays(Consumer listRelaysRequest) throws ValidationException,
AwsServiceException, SdkClientException, MailManagerException {
return listRelays(ListRelaysRequest.builder().applyMutation(listRelaysRequest).build());
}
/**
*
* This is a variant of {@link #listRelays(software.amazon.awssdk.services.mailmanager.model.ListRelaysRequest)}
* 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
*
*
* {@code
* software.amazon.awssdk.services.mailmanager.paginators.ListRelaysIterable responses = client.listRelaysPaginator(request);
* responses.stream().forEach(....);
* }
*
*
* 2) Using For loop
*
*
* {
* @code
* software.amazon.awssdk.services.mailmanager.paginators.ListRelaysIterable responses = client.listRelaysPaginator(request);
* for (software.amazon.awssdk.services.mailmanager.model.ListRelaysResponse response : responses) {
* // do something;
* }
* }
*
*
* 3) Use iterator directly
*
*
* {@code
* software.amazon.awssdk.services.mailmanager.paginators.ListRelaysIterable responses = client.listRelaysPaginator(request);
* responses.iterator().forEachRemaining(....);
* }
*
*
* Please notice that the configuration of PageSize 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
* {@link #listRelays(software.amazon.awssdk.services.mailmanager.model.ListRelaysRequest)} operation.
*
*
* @param listRelaysRequest
* @return A custom iterable that can be used to iterate through all the response pages.
* @throws ValidationException
* The request validation has failed. For details, see the accompanying error message.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws MailManagerException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample MailManagerClient.ListRelays
* @see AWS API
* Documentation
*/
default ListRelaysIterable listRelaysPaginator(ListRelaysRequest listRelaysRequest) throws ValidationException,
AwsServiceException, SdkClientException, MailManagerException {
return new ListRelaysIterable(this, listRelaysRequest);
}
/**
*
* This is a variant of {@link #listRelays(software.amazon.awssdk.services.mailmanager.model.ListRelaysRequest)}
* 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
*
*
* {@code
* software.amazon.awssdk.services.mailmanager.paginators.ListRelaysIterable responses = client.listRelaysPaginator(request);
* responses.stream().forEach(....);
* }
*
*
* 2) Using For loop
*
*
* {
* @code
* software.amazon.awssdk.services.mailmanager.paginators.ListRelaysIterable responses = client.listRelaysPaginator(request);
* for (software.amazon.awssdk.services.mailmanager.model.ListRelaysResponse response : responses) {
* // do something;
* }
* }
*
*
* 3) Use iterator directly
*
*
* {@code
* software.amazon.awssdk.services.mailmanager.paginators.ListRelaysIterable responses = client.listRelaysPaginator(request);
* responses.iterator().forEachRemaining(....);
* }
*
*
* Please notice that the configuration of PageSize 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
* {@link #listRelays(software.amazon.awssdk.services.mailmanager.model.ListRelaysRequest)} operation.
*
*
*
* This is a convenience which creates an instance of the {@link ListRelaysRequest.Builder} avoiding the need to
* create one manually via {@link ListRelaysRequest#builder()}
*
*
* @param listRelaysRequest
* A {@link Consumer} that will call methods on
* {@link software.amazon.awssdk.services.mailmanager.model.ListRelaysRequest.Builder} to create a request.
* @return A custom iterable that can be used to iterate through all the response pages.
* @throws ValidationException
* The request validation has failed. For details, see the accompanying error message.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws MailManagerException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample MailManagerClient.ListRelays
* @see AWS API
* Documentation
*/
default ListRelaysIterable listRelaysPaginator(Consumer listRelaysRequest)
throws ValidationException, AwsServiceException, SdkClientException, MailManagerException {
return listRelaysPaginator(ListRelaysRequest.builder().applyMutation(listRelaysRequest).build());
}
/**
*
* List rule sets for this account.
*
*
* @param listRuleSetsRequest
* @return Result of the ListRuleSets operation returned by the service.
* @throws ValidationException
* The request validation has failed. For details, see the accompanying error message.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws MailManagerException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample MailManagerClient.ListRuleSets
* @see AWS API
* Documentation
*/
default ListRuleSetsResponse listRuleSets(ListRuleSetsRequest listRuleSetsRequest) throws ValidationException,
AwsServiceException, SdkClientException, MailManagerException {
throw new UnsupportedOperationException();
}
/**
*
* List rule sets for this account.
*
*
*
* This is a convenience which creates an instance of the {@link ListRuleSetsRequest.Builder} avoiding the need to
* create one manually via {@link ListRuleSetsRequest#builder()}
*
*
* @param listRuleSetsRequest
* A {@link Consumer} that will call methods on
* {@link software.amazon.awssdk.services.mailmanager.model.ListRuleSetsRequest.Builder} to create a request.
* @return Result of the ListRuleSets operation returned by the service.
* @throws ValidationException
* The request validation has failed. For details, see the accompanying error message.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws MailManagerException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample MailManagerClient.ListRuleSets
* @see AWS API
* Documentation
*/
default ListRuleSetsResponse listRuleSets(Consumer listRuleSetsRequest)
throws ValidationException, AwsServiceException, SdkClientException, MailManagerException {
return listRuleSets(ListRuleSetsRequest.builder().applyMutation(listRuleSetsRequest).build());
}
/**
*
* This is a variant of {@link #listRuleSets(software.amazon.awssdk.services.mailmanager.model.ListRuleSetsRequest)}
* 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
*
*
* {@code
* software.amazon.awssdk.services.mailmanager.paginators.ListRuleSetsIterable responses = client.listRuleSetsPaginator(request);
* responses.stream().forEach(....);
* }
*
*
* 2) Using For loop
*
*
* {
* @code
* software.amazon.awssdk.services.mailmanager.paginators.ListRuleSetsIterable responses = client.listRuleSetsPaginator(request);
* for (software.amazon.awssdk.services.mailmanager.model.ListRuleSetsResponse response : responses) {
* // do something;
* }
* }
*
*
* 3) Use iterator directly
*
*
* {@code
* software.amazon.awssdk.services.mailmanager.paginators.ListRuleSetsIterable responses = client.listRuleSetsPaginator(request);
* responses.iterator().forEachRemaining(....);
* }
*
*
* Please notice that the configuration of PageSize 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
* {@link #listRuleSets(software.amazon.awssdk.services.mailmanager.model.ListRuleSetsRequest)} operation.
*
*
* @param listRuleSetsRequest
* @return A custom iterable that can be used to iterate through all the response pages.
* @throws ValidationException
* The request validation has failed. For details, see the accompanying error message.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws MailManagerException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample MailManagerClient.ListRuleSets
* @see AWS API
* Documentation
*/
default ListRuleSetsIterable listRuleSetsPaginator(ListRuleSetsRequest listRuleSetsRequest) throws ValidationException,
AwsServiceException, SdkClientException, MailManagerException {
return new ListRuleSetsIterable(this, listRuleSetsRequest);
}
/**
*
* This is a variant of {@link #listRuleSets(software.amazon.awssdk.services.mailmanager.model.ListRuleSetsRequest)}
* 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
*
*
* {@code
* software.amazon.awssdk.services.mailmanager.paginators.ListRuleSetsIterable responses = client.listRuleSetsPaginator(request);
* responses.stream().forEach(....);
* }
*
*
* 2) Using For loop
*
*
* {
* @code
* software.amazon.awssdk.services.mailmanager.paginators.ListRuleSetsIterable responses = client.listRuleSetsPaginator(request);
* for (software.amazon.awssdk.services.mailmanager.model.ListRuleSetsResponse response : responses) {
* // do something;
* }
* }
*
*
* 3) Use iterator directly
*
*
* {@code
* software.amazon.awssdk.services.mailmanager.paginators.ListRuleSetsIterable responses = client.listRuleSetsPaginator(request);
* responses.iterator().forEachRemaining(....);
* }
*
*
* Please notice that the configuration of PageSize 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
* {@link #listRuleSets(software.amazon.awssdk.services.mailmanager.model.ListRuleSetsRequest)} operation.
*
*
*
* This is a convenience which creates an instance of the {@link ListRuleSetsRequest.Builder} avoiding the need to
* create one manually via {@link ListRuleSetsRequest#builder()}
*
*
* @param listRuleSetsRequest
* A {@link Consumer} that will call methods on
* {@link software.amazon.awssdk.services.mailmanager.model.ListRuleSetsRequest.Builder} to create a request.
* @return A custom iterable that can be used to iterate through all the response pages.
* @throws ValidationException
* The request validation has failed. For details, see the accompanying error message.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws MailManagerException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample MailManagerClient.ListRuleSets
* @see AWS API
* Documentation
*/
default ListRuleSetsIterable listRuleSetsPaginator(Consumer listRuleSetsRequest)
throws ValidationException, AwsServiceException, SdkClientException, MailManagerException {
return listRuleSetsPaginator(ListRuleSetsRequest.builder().applyMutation(listRuleSetsRequest).build());
}
/**
*
* Retrieves the list of tags (keys and values) assigned to the resource.
*
*
* @param listTagsForResourceRequest
* @return Result of the ListTagsForResource operation returned by the service.
* @throws ValidationException
* The request validation has failed. For details, see the accompanying error message.
* @throws ResourceNotFoundException
* Occurs when a requested resource is not found.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws MailManagerException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample MailManagerClient.ListTagsForResource
* @see AWS API Documentation
*/
default ListTagsForResourceResponse listTagsForResource(ListTagsForResourceRequest listTagsForResourceRequest)
throws ValidationException, ResourceNotFoundException, AwsServiceException, SdkClientException, MailManagerException {
throw new UnsupportedOperationException();
}
/**
*
* Retrieves the list of tags (keys and values) assigned to the resource.
*
*
*
* This is a convenience which creates an instance of the {@link ListTagsForResourceRequest.Builder} avoiding the
* need to create one manually via {@link ListTagsForResourceRequest#builder()}
*
*
* @param listTagsForResourceRequest
* A {@link Consumer} that will call methods on
* {@link software.amazon.awssdk.services.mailmanager.model.ListTagsForResourceRequest.Builder} to create a
* request.
* @return Result of the ListTagsForResource operation returned by the service.
* @throws ValidationException
* The request validation has failed. For details, see the accompanying error message.
* @throws ResourceNotFoundException
* Occurs when a requested resource is not found.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws MailManagerException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample MailManagerClient.ListTagsForResource
* @see AWS API Documentation
*/
default ListTagsForResourceResponse listTagsForResource(
Consumer listTagsForResourceRequest) throws ValidationException,
ResourceNotFoundException, AwsServiceException, SdkClientException, MailManagerException {
return listTagsForResource(ListTagsForResourceRequest.builder().applyMutation(listTagsForResourceRequest).build());
}
/**
*
* List traffic policy resources.
*
*
* @param listTrafficPoliciesRequest
* @return Result of the ListTrafficPolicies operation returned by the service.
* @throws ValidationException
* The request validation has failed. For details, see the accompanying error message.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws MailManagerException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample MailManagerClient.ListTrafficPolicies
* @see AWS API Documentation
*/
default ListTrafficPoliciesResponse listTrafficPolicies(ListTrafficPoliciesRequest listTrafficPoliciesRequest)
throws ValidationException, AwsServiceException, SdkClientException, MailManagerException {
throw new UnsupportedOperationException();
}
/**
*
* List traffic policy resources.
*
*
*
* This is a convenience which creates an instance of the {@link ListTrafficPoliciesRequest.Builder} avoiding the
* need to create one manually via {@link ListTrafficPoliciesRequest#builder()}
*
*
* @param listTrafficPoliciesRequest
* A {@link Consumer} that will call methods on
* {@link software.amazon.awssdk.services.mailmanager.model.ListTrafficPoliciesRequest.Builder} to create a
* request.
* @return Result of the ListTrafficPolicies operation returned by the service.
* @throws ValidationException
* The request validation has failed. For details, see the accompanying error message.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws MailManagerException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample MailManagerClient.ListTrafficPolicies
* @see AWS API Documentation
*/
default ListTrafficPoliciesResponse listTrafficPolicies(
Consumer listTrafficPoliciesRequest) throws ValidationException,
AwsServiceException, SdkClientException, MailManagerException {
return listTrafficPolicies(ListTrafficPoliciesRequest.builder().applyMutation(listTrafficPoliciesRequest).build());
}
/**
*
* This is a variant of
* {@link #listTrafficPolicies(software.amazon.awssdk.services.mailmanager.model.ListTrafficPoliciesRequest)}
* 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
*
*
* {@code
* software.amazon.awssdk.services.mailmanager.paginators.ListTrafficPoliciesIterable responses = client.listTrafficPoliciesPaginator(request);
* responses.stream().forEach(....);
* }
*
*
* 2) Using For loop
*
*
* {
* @code
* software.amazon.awssdk.services.mailmanager.paginators.ListTrafficPoliciesIterable responses = client
* .listTrafficPoliciesPaginator(request);
* for (software.amazon.awssdk.services.mailmanager.model.ListTrafficPoliciesResponse response : responses) {
* // do something;
* }
* }
*
*
* 3) Use iterator directly
*
*
* {@code
* software.amazon.awssdk.services.mailmanager.paginators.ListTrafficPoliciesIterable responses = client.listTrafficPoliciesPaginator(request);
* responses.iterator().forEachRemaining(....);
* }
*
*
* Please notice that the configuration of PageSize 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
* {@link #listTrafficPolicies(software.amazon.awssdk.services.mailmanager.model.ListTrafficPoliciesRequest)}
* operation.
*
*
* @param listTrafficPoliciesRequest
* @return A custom iterable that can be used to iterate through all the response pages.
* @throws ValidationException
* The request validation has failed. For details, see the accompanying error message.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws MailManagerException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample MailManagerClient.ListTrafficPolicies
* @see AWS API Documentation
*/
default ListTrafficPoliciesIterable listTrafficPoliciesPaginator(ListTrafficPoliciesRequest listTrafficPoliciesRequest)
throws ValidationException, AwsServiceException, SdkClientException, MailManagerException {
return new ListTrafficPoliciesIterable(this, listTrafficPoliciesRequest);
}
/**
*
* This is a variant of
* {@link #listTrafficPolicies(software.amazon.awssdk.services.mailmanager.model.ListTrafficPoliciesRequest)}
* 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
*
*
* {@code
* software.amazon.awssdk.services.mailmanager.paginators.ListTrafficPoliciesIterable responses = client.listTrafficPoliciesPaginator(request);
* responses.stream().forEach(....);
* }
*
*
* 2) Using For loop
*
*
* {
* @code
* software.amazon.awssdk.services.mailmanager.paginators.ListTrafficPoliciesIterable responses = client
* .listTrafficPoliciesPaginator(request);
* for (software.amazon.awssdk.services.mailmanager.model.ListTrafficPoliciesResponse response : responses) {
* // do something;
* }
* }
*
*
* 3) Use iterator directly
*
*
* {@code
* software.amazon.awssdk.services.mailmanager.paginators.ListTrafficPoliciesIterable responses = client.listTrafficPoliciesPaginator(request);
* responses.iterator().forEachRemaining(....);
* }
*
*
* Please notice that the configuration of PageSize 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
* {@link #listTrafficPolicies(software.amazon.awssdk.services.mailmanager.model.ListTrafficPoliciesRequest)}
* operation.
*
*
*
* This is a convenience which creates an instance of the {@link ListTrafficPoliciesRequest.Builder} avoiding the
* need to create one manually via {@link ListTrafficPoliciesRequest#builder()}
*
*
* @param listTrafficPoliciesRequest
* A {@link Consumer} that will call methods on
* {@link software.amazon.awssdk.services.mailmanager.model.ListTrafficPoliciesRequest.Builder} to create a
* request.
* @return A custom iterable that can be used to iterate through all the response pages.
* @throws ValidationException
* The request validation has failed. For details, see the accompanying error message.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws MailManagerException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample MailManagerClient.ListTrafficPolicies
* @see AWS API Documentation
*/
default ListTrafficPoliciesIterable listTrafficPoliciesPaginator(
Consumer listTrafficPoliciesRequest) throws ValidationException,
AwsServiceException, SdkClientException, MailManagerException {
return listTrafficPoliciesPaginator(ListTrafficPoliciesRequest.builder().applyMutation(listTrafficPoliciesRequest)
.build());
}
/**
*
* Initiates an export of emails from the specified archive.
*
*
* @param startArchiveExportRequest
* The request to initiate an export of emails from an archive.
* @return Result of the StartArchiveExport operation returned by the service.
* @throws ValidationException
* The request validation has failed. For details, see the accompanying error message.
* @throws AccessDeniedException
* Occurs when a user is denied access to a specific resource or action.
* @throws ServiceQuotaExceededException
* Occurs when an operation exceeds a predefined service quota or limit.
* @throws ResourceNotFoundException
* Occurs when a requested resource is not found.
* @throws ThrottlingException
* Occurs when a service's request rate limit is exceeded, resulting in throttling of further requests.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws MailManagerException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample MailManagerClient.StartArchiveExport
* @see AWS API Documentation
*/
default StartArchiveExportResponse startArchiveExport(StartArchiveExportRequest startArchiveExportRequest)
throws ValidationException, AccessDeniedException, ServiceQuotaExceededException, ResourceNotFoundException,
ThrottlingException, AwsServiceException, SdkClientException, MailManagerException {
throw new UnsupportedOperationException();
}
/**
*
* Initiates an export of emails from the specified archive.
*
*
*
* This is a convenience which creates an instance of the {@link StartArchiveExportRequest.Builder} avoiding the
* need to create one manually via {@link StartArchiveExportRequest#builder()}
*
*
* @param startArchiveExportRequest
* A {@link Consumer} that will call methods on
* {@link software.amazon.awssdk.services.mailmanager.model.StartArchiveExportRequest.Builder} to create a
* request. The request to initiate an export of emails from an archive.
* @return Result of the StartArchiveExport operation returned by the service.
* @throws ValidationException
* The request validation has failed. For details, see the accompanying error message.
* @throws AccessDeniedException
* Occurs when a user is denied access to a specific resource or action.
* @throws ServiceQuotaExceededException
* Occurs when an operation exceeds a predefined service quota or limit.
* @throws ResourceNotFoundException
* Occurs when a requested resource is not found.
* @throws ThrottlingException
* Occurs when a service's request rate limit is exceeded, resulting in throttling of further requests.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws MailManagerException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample MailManagerClient.StartArchiveExport
* @see AWS API Documentation
*/
default StartArchiveExportResponse startArchiveExport(Consumer startArchiveExportRequest)
throws ValidationException, AccessDeniedException, ServiceQuotaExceededException, ResourceNotFoundException,
ThrottlingException, AwsServiceException, SdkClientException, MailManagerException {
return startArchiveExport(StartArchiveExportRequest.builder().applyMutation(startArchiveExportRequest).build());
}
/**
*
* Initiates a search across emails in the specified archive.
*
*
* @param startArchiveSearchRequest
* The request to initiate a search across emails in an archive.
* @return Result of the StartArchiveSearch operation returned by the service.
* @throws ValidationException
* The request validation has failed. For details, see the accompanying error message.
* @throws AccessDeniedException
* Occurs when a user is denied access to a specific resource or action.
* @throws ServiceQuotaExceededException
* Occurs when an operation exceeds a predefined service quota or limit.
* @throws ConflictException
* The request configuration has conflicts. For details, see the accompanying error message.
* @throws ResourceNotFoundException
* Occurs when a requested resource is not found.
* @throws ThrottlingException
* Occurs when a service's request rate limit is exceeded, resulting in throttling of further requests.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws MailManagerException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample MailManagerClient.StartArchiveSearch
* @see AWS API Documentation
*/
default StartArchiveSearchResponse startArchiveSearch(StartArchiveSearchRequest startArchiveSearchRequest)
throws ValidationException, AccessDeniedException, ServiceQuotaExceededException, ConflictException,
ResourceNotFoundException, ThrottlingException, AwsServiceException, SdkClientException, MailManagerException {
throw new UnsupportedOperationException();
}
/**
*
* Initiates a search across emails in the specified archive.
*
*
*
* This is a convenience which creates an instance of the {@link StartArchiveSearchRequest.Builder} avoiding the
* need to create one manually via {@link StartArchiveSearchRequest#builder()}
*
*
* @param startArchiveSearchRequest
* A {@link Consumer} that will call methods on
* {@link software.amazon.awssdk.services.mailmanager.model.StartArchiveSearchRequest.Builder} to create a
* request. The request to initiate a search across emails in an archive.
* @return Result of the StartArchiveSearch operation returned by the service.
* @throws ValidationException
* The request validation has failed. For details, see the accompanying error message.
* @throws AccessDeniedException
* Occurs when a user is denied access to a specific resource or action.
* @throws ServiceQuotaExceededException
* Occurs when an operation exceeds a predefined service quota or limit.
* @throws ConflictException
* The request configuration has conflicts. For details, see the accompanying error message.
* @throws ResourceNotFoundException
* Occurs when a requested resource is not found.
* @throws ThrottlingException
* Occurs when a service's request rate limit is exceeded, resulting in throttling of further requests.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws MailManagerException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample MailManagerClient.StartArchiveSearch
* @see AWS API Documentation
*/
default StartArchiveSearchResponse startArchiveSearch(Consumer startArchiveSearchRequest)
throws ValidationException, AccessDeniedException, ServiceQuotaExceededException, ConflictException,
ResourceNotFoundException, ThrottlingException, AwsServiceException, SdkClientException, MailManagerException {
return startArchiveSearch(StartArchiveSearchRequest.builder().applyMutation(startArchiveSearchRequest).build());
}
/**
*
* Stops an in-progress export of emails from an archive.
*
*
* @param stopArchiveExportRequest
* The request to stop an in-progress archive export job.
* @return Result of the StopArchiveExport operation returned by the service.
* @throws ValidationException
* The request validation has failed. For details, see the accompanying error message.
* @throws AccessDeniedException
* Occurs when a user is denied access to a specific resource or action.
* @throws ThrottlingException
* Occurs when a service's request rate limit is exceeded, resulting in throttling of further requests.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws MailManagerException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample MailManagerClient.StopArchiveExport
* @see AWS
* API Documentation
*/
default StopArchiveExportResponse stopArchiveExport(StopArchiveExportRequest stopArchiveExportRequest)
throws ValidationException, AccessDeniedException, ThrottlingException, AwsServiceException, SdkClientException,
MailManagerException {
throw new UnsupportedOperationException();
}
/**
*
* Stops an in-progress export of emails from an archive.
*
*
*
* This is a convenience which creates an instance of the {@link StopArchiveExportRequest.Builder} avoiding the need
* to create one manually via {@link StopArchiveExportRequest#builder()}
*
*
* @param stopArchiveExportRequest
* A {@link Consumer} that will call methods on
* {@link software.amazon.awssdk.services.mailmanager.model.StopArchiveExportRequest.Builder} to create a
* request. The request to stop an in-progress archive export job.
* @return Result of the StopArchiveExport operation returned by the service.
* @throws ValidationException
* The request validation has failed. For details, see the accompanying error message.
* @throws AccessDeniedException
* Occurs when a user is denied access to a specific resource or action.
* @throws ThrottlingException
* Occurs when a service's request rate limit is exceeded, resulting in throttling of further requests.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws MailManagerException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample MailManagerClient.StopArchiveExport
* @see AWS
* API Documentation
*/
default StopArchiveExportResponse stopArchiveExport(Consumer stopArchiveExportRequest)
throws ValidationException, AccessDeniedException, ThrottlingException, AwsServiceException, SdkClientException,
MailManagerException {
return stopArchiveExport(StopArchiveExportRequest.builder().applyMutation(stopArchiveExportRequest).build());
}
/**
*
* Stops an in-progress archive search job.
*
*
* @param stopArchiveSearchRequest
* The request to stop an in-progress archive search job.
* @return Result of the StopArchiveSearch operation returned by the service.
* @throws ValidationException
* The request validation has failed. For details, see the accompanying error message.
* @throws AccessDeniedException
* Occurs when a user is denied access to a specific resource or action.
* @throws ThrottlingException
* Occurs when a service's request rate limit is exceeded, resulting in throttling of further requests.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws MailManagerException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample MailManagerClient.StopArchiveSearch
* @see AWS
* API Documentation
*/
default StopArchiveSearchResponse stopArchiveSearch(StopArchiveSearchRequest stopArchiveSearchRequest)
throws ValidationException, AccessDeniedException, ThrottlingException, AwsServiceException, SdkClientException,
MailManagerException {
throw new UnsupportedOperationException();
}
/**
*
* Stops an in-progress archive search job.
*
*
*
* This is a convenience which creates an instance of the {@link StopArchiveSearchRequest.Builder} avoiding the need
* to create one manually via {@link StopArchiveSearchRequest#builder()}
*
*
* @param stopArchiveSearchRequest
* A {@link Consumer} that will call methods on
* {@link software.amazon.awssdk.services.mailmanager.model.StopArchiveSearchRequest.Builder} to create a
* request. The request to stop an in-progress archive search job.
* @return Result of the StopArchiveSearch operation returned by the service.
* @throws ValidationException
* The request validation has failed. For details, see the accompanying error message.
* @throws AccessDeniedException
* Occurs when a user is denied access to a specific resource or action.
* @throws ThrottlingException
* Occurs when a service's request rate limit is exceeded, resulting in throttling of further requests.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws MailManagerException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample MailManagerClient.StopArchiveSearch
* @see AWS
* API Documentation
*/
default StopArchiveSearchResponse stopArchiveSearch(Consumer stopArchiveSearchRequest)
throws ValidationException, AccessDeniedException, ThrottlingException, AwsServiceException, SdkClientException,
MailManagerException {
return stopArchiveSearch(StopArchiveSearchRequest.builder().applyMutation(stopArchiveSearchRequest).build());
}
/**
*
* Adds one or more tags (keys and values) to a specified resource.
*
*
* @param tagResourceRequest
* @return Result of the TagResource operation returned by the service.
* @throws ValidationException
* The request validation has failed. For details, see the accompanying error message.
* @throws ServiceQuotaExceededException
* Occurs when an operation exceeds a predefined service quota or limit.
* @throws ConflictException
* The request configuration has conflicts. For details, see the accompanying error message.
* @throws ResourceNotFoundException
* Occurs when a requested resource is not found.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws MailManagerException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample MailManagerClient.TagResource
* @see AWS API
* Documentation
*/
default TagResourceResponse tagResource(TagResourceRequest tagResourceRequest) throws ValidationException,
ServiceQuotaExceededException, ConflictException, ResourceNotFoundException, AwsServiceException, SdkClientException,
MailManagerException {
throw new UnsupportedOperationException();
}
/**
*
* Adds one or more tags (keys and values) to a specified resource.
*
*
*
* This is a convenience which creates an instance of the {@link TagResourceRequest.Builder} avoiding the need to
* create one manually via {@link TagResourceRequest#builder()}
*
*
* @param tagResourceRequest
* A {@link Consumer} that will call methods on
* {@link software.amazon.awssdk.services.mailmanager.model.TagResourceRequest.Builder} to create a request.
* @return Result of the TagResource operation returned by the service.
* @throws ValidationException
* The request validation has failed. For details, see the accompanying error message.
* @throws ServiceQuotaExceededException
* Occurs when an operation exceeds a predefined service quota or limit.
* @throws ConflictException
* The request configuration has conflicts. For details, see the accompanying error message.
* @throws ResourceNotFoundException
* Occurs when a requested resource is not found.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws MailManagerException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample MailManagerClient.TagResource
* @see AWS API
* Documentation
*/
default TagResourceResponse tagResource(Consumer tagResourceRequest) throws ValidationException,
ServiceQuotaExceededException, ConflictException, ResourceNotFoundException, AwsServiceException, SdkClientException,
MailManagerException {
return tagResource(TagResourceRequest.builder().applyMutation(tagResourceRequest).build());
}
/**
*
* Remove one or more tags (keys and values) from a specified resource.
*
*
* @param untagResourceRequest
* @return Result of the UntagResource operation returned by the service.
* @throws ValidationException
* The request validation has failed. For details, see the accompanying error message.
* @throws ConflictException
* The request configuration has conflicts. For details, see the accompanying error message.
* @throws ResourceNotFoundException
* Occurs when a requested resource is not found.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws MailManagerException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample MailManagerClient.UntagResource
* @see AWS API
* Documentation
*/
default UntagResourceResponse untagResource(UntagResourceRequest untagResourceRequest) throws ValidationException,
ConflictException, ResourceNotFoundException, AwsServiceException, SdkClientException, MailManagerException {
throw new UnsupportedOperationException();
}
/**
*
* Remove one or more tags (keys and values) from a specified resource.
*
*
*
* This is a convenience which creates an instance of the {@link UntagResourceRequest.Builder} avoiding the need to
* create one manually via {@link UntagResourceRequest#builder()}
*
*
* @param untagResourceRequest
* A {@link Consumer} that will call methods on
* {@link software.amazon.awssdk.services.mailmanager.model.UntagResourceRequest.Builder} to create a
* request.
* @return Result of the UntagResource operation returned by the service.
* @throws ValidationException
* The request validation has failed. For details, see the accompanying error message.
* @throws ConflictException
* The request configuration has conflicts. For details, see the accompanying error message.
* @throws ResourceNotFoundException
* Occurs when a requested resource is not found.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws MailManagerException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample MailManagerClient.UntagResource
* @see AWS API
* Documentation
*/
default UntagResourceResponse untagResource(Consumer untagResourceRequest)
throws ValidationException, ConflictException, ResourceNotFoundException, AwsServiceException, SdkClientException,
MailManagerException {
return untagResource(UntagResourceRequest.builder().applyMutation(untagResourceRequest).build());
}
/**
*
* Updates the attributes of an existing email archive.
*
*
* @param updateArchiveRequest
* The request to update properties of an existing email archive.
* @return Result of the UpdateArchive operation returned by the service.
* @throws ValidationException
* The request validation has failed. For details, see the accompanying error message.
* @throws AccessDeniedException
* Occurs when a user is denied access to a specific resource or action.
* @throws ServiceQuotaExceededException
* Occurs when an operation exceeds a predefined service quota or limit.
* @throws ConflictException
* The request configuration has conflicts. For details, see the accompanying error message.
* @throws ResourceNotFoundException
* Occurs when a requested resource is not found.
* @throws ThrottlingException
* Occurs when a service's request rate limit is exceeded, resulting in throttling of further requests.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws MailManagerException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample MailManagerClient.UpdateArchive
* @see AWS API
* Documentation
*/
default UpdateArchiveResponse updateArchive(UpdateArchiveRequest updateArchiveRequest) throws ValidationException,
AccessDeniedException, ServiceQuotaExceededException, ConflictException, ResourceNotFoundException,
ThrottlingException, AwsServiceException, SdkClientException, MailManagerException {
throw new UnsupportedOperationException();
}
/**
*
* Updates the attributes of an existing email archive.
*
*
*
* This is a convenience which creates an instance of the {@link UpdateArchiveRequest.Builder} avoiding the need to
* create one manually via {@link UpdateArchiveRequest#builder()}
*
*
* @param updateArchiveRequest
* A {@link Consumer} that will call methods on
* {@link software.amazon.awssdk.services.mailmanager.model.UpdateArchiveRequest.Builder} to create a
* request. The request to update properties of an existing email archive.
* @return Result of the UpdateArchive operation returned by the service.
* @throws ValidationException
* The request validation has failed. For details, see the accompanying error message.
* @throws AccessDeniedException
* Occurs when a user is denied access to a specific resource or action.
* @throws ServiceQuotaExceededException
* Occurs when an operation exceeds a predefined service quota or limit.
* @throws ConflictException
* The request configuration has conflicts. For details, see the accompanying error message.
* @throws ResourceNotFoundException
* Occurs when a requested resource is not found.
* @throws ThrottlingException
* Occurs when a service's request rate limit is exceeded, resulting in throttling of further requests.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws MailManagerException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample MailManagerClient.UpdateArchive
* @see AWS API
* Documentation
*/
default UpdateArchiveResponse updateArchive(Consumer updateArchiveRequest)
throws ValidationException, AccessDeniedException, ServiceQuotaExceededException, ConflictException,
ResourceNotFoundException, ThrottlingException, AwsServiceException, SdkClientException, MailManagerException {
return updateArchive(UpdateArchiveRequest.builder().applyMutation(updateArchiveRequest).build());
}
/**
*
* Update attributes of a provisioned ingress endpoint resource.
*
*
* @param updateIngressPointRequest
* @return Result of the UpdateIngressPoint operation returned by the service.
* @throws ValidationException
* The request validation has failed. For details, see the accompanying error message.
* @throws ConflictException
* The request configuration has conflicts. For details, see the accompanying error message.
* @throws ResourceNotFoundException
* Occurs when a requested resource is not found.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws MailManagerException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample MailManagerClient.UpdateIngressPoint
* @see AWS API Documentation
*/
default UpdateIngressPointResponse updateIngressPoint(UpdateIngressPointRequest updateIngressPointRequest)
throws ValidationException, ConflictException, ResourceNotFoundException, AwsServiceException, SdkClientException,
MailManagerException {
throw new UnsupportedOperationException();
}
/**
*
* Update attributes of a provisioned ingress endpoint resource.
*
*
*
* This is a convenience which creates an instance of the {@link UpdateIngressPointRequest.Builder} avoiding the
* need to create one manually via {@link UpdateIngressPointRequest#builder()}
*
*
* @param updateIngressPointRequest
* A {@link Consumer} that will call methods on
* {@link software.amazon.awssdk.services.mailmanager.model.UpdateIngressPointRequest.Builder} to create a
* request.
* @return Result of the UpdateIngressPoint operation returned by the service.
* @throws ValidationException
* The request validation has failed. For details, see the accompanying error message.
* @throws ConflictException
* The request configuration has conflicts. For details, see the accompanying error message.
* @throws ResourceNotFoundException
* Occurs when a requested resource is not found.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws MailManagerException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample MailManagerClient.UpdateIngressPoint
* @see AWS API Documentation
*/
default UpdateIngressPointResponse updateIngressPoint(Consumer updateIngressPointRequest)
throws ValidationException, ConflictException, ResourceNotFoundException, AwsServiceException, SdkClientException,
MailManagerException {
return updateIngressPoint(UpdateIngressPointRequest.builder().applyMutation(updateIngressPointRequest).build());
}
/**
*
* Updates the attributes of an existing relay resource.
*
*
* @param updateRelayRequest
* @return Result of the UpdateRelay operation returned by the service.
* @throws ValidationException
* The request validation has failed. For details, see the accompanying error message.
* @throws ConflictException
* The request configuration has conflicts. For details, see the accompanying error message.
* @throws ResourceNotFoundException
* Occurs when a requested resource is not found.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws MailManagerException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample MailManagerClient.UpdateRelay
* @see AWS API
* Documentation
*/
default UpdateRelayResponse updateRelay(UpdateRelayRequest updateRelayRequest) throws ValidationException, ConflictException,
ResourceNotFoundException, AwsServiceException, SdkClientException, MailManagerException {
throw new UnsupportedOperationException();
}
/**
*
* Updates the attributes of an existing relay resource.
*
*
*
* This is a convenience which creates an instance of the {@link UpdateRelayRequest.Builder} avoiding the need to
* create one manually via {@link UpdateRelayRequest#builder()}
*
*
* @param updateRelayRequest
* A {@link Consumer} that will call methods on
* {@link software.amazon.awssdk.services.mailmanager.model.UpdateRelayRequest.Builder} to create a request.
* @return Result of the UpdateRelay operation returned by the service.
* @throws ValidationException
* The request validation has failed. For details, see the accompanying error message.
* @throws ConflictException
* The request configuration has conflicts. For details, see the accompanying error message.
* @throws ResourceNotFoundException
* Occurs when a requested resource is not found.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws MailManagerException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample MailManagerClient.UpdateRelay
* @see AWS API
* Documentation
*/
default UpdateRelayResponse updateRelay(Consumer updateRelayRequest) throws ValidationException,
ConflictException, ResourceNotFoundException, AwsServiceException, SdkClientException, MailManagerException {
return updateRelay(UpdateRelayRequest.builder().applyMutation(updateRelayRequest).build());
}
/**
*
* Update attributes of an already provisioned rule set.
*
*
* @param updateRuleSetRequest
* @return Result of the UpdateRuleSet operation returned by the service.
* @throws ValidationException
* The request validation has failed. For details, see the accompanying error message.
* @throws ConflictException
* The request configuration has conflicts. For details, see the accompanying error message.
* @throws ResourceNotFoundException
* Occurs when a requested resource is not found.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws MailManagerException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample MailManagerClient.UpdateRuleSet
* @see AWS API
* Documentation
*/
default UpdateRuleSetResponse updateRuleSet(UpdateRuleSetRequest updateRuleSetRequest) throws ValidationException,
ConflictException, ResourceNotFoundException, AwsServiceException, SdkClientException, MailManagerException {
throw new UnsupportedOperationException();
}
/**
*
* Update attributes of an already provisioned rule set.
*
*
*
* This is a convenience which creates an instance of the {@link UpdateRuleSetRequest.Builder} avoiding the need to
* create one manually via {@link UpdateRuleSetRequest#builder()}
*
*
* @param updateRuleSetRequest
* A {@link Consumer} that will call methods on
* {@link software.amazon.awssdk.services.mailmanager.model.UpdateRuleSetRequest.Builder} to create a
* request.
* @return Result of the UpdateRuleSet operation returned by the service.
* @throws ValidationException
* The request validation has failed. For details, see the accompanying error message.
* @throws ConflictException
* The request configuration has conflicts. For details, see the accompanying error message.
* @throws ResourceNotFoundException
* Occurs when a requested resource is not found.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws MailManagerException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample MailManagerClient.UpdateRuleSet
* @see AWS API
* Documentation
*/
default UpdateRuleSetResponse updateRuleSet(Consumer updateRuleSetRequest)
throws ValidationException, ConflictException, ResourceNotFoundException, AwsServiceException, SdkClientException,
MailManagerException {
return updateRuleSet(UpdateRuleSetRequest.builder().applyMutation(updateRuleSetRequest).build());
}
/**
*
* Update attributes of an already provisioned traffic policy resource.
*
*
* @param updateTrafficPolicyRequest
* @return Result of the UpdateTrafficPolicy operation returned by the service.
* @throws ValidationException
* The request validation has failed. For details, see the accompanying error message.
* @throws ConflictException
* The request configuration has conflicts. For details, see the accompanying error message.
* @throws ResourceNotFoundException
* Occurs when a requested resource is not found.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws MailManagerException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample MailManagerClient.UpdateTrafficPolicy
* @see AWS API Documentation
*/
default UpdateTrafficPolicyResponse updateTrafficPolicy(UpdateTrafficPolicyRequest updateTrafficPolicyRequest)
throws ValidationException, ConflictException, ResourceNotFoundException, AwsServiceException, SdkClientException,
MailManagerException {
throw new UnsupportedOperationException();
}
/**
*
* Update attributes of an already provisioned traffic policy resource.
*
*
*
* This is a convenience which creates an instance of the {@link UpdateTrafficPolicyRequest.Builder} avoiding the
* need to create one manually via {@link UpdateTrafficPolicyRequest#builder()}
*
*
* @param updateTrafficPolicyRequest
* A {@link Consumer} that will call methods on
* {@link software.amazon.awssdk.services.mailmanager.model.UpdateTrafficPolicyRequest.Builder} to create a
* request.
* @return Result of the UpdateTrafficPolicy operation returned by the service.
* @throws ValidationException
* The request validation has failed. For details, see the accompanying error message.
* @throws ConflictException
* The request configuration has conflicts. For details, see the accompanying error message.
* @throws ResourceNotFoundException
* Occurs when a requested resource is not found.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws MailManagerException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample MailManagerClient.UpdateTrafficPolicy
* @see AWS API Documentation
*/
default UpdateTrafficPolicyResponse updateTrafficPolicy(
Consumer updateTrafficPolicyRequest) throws ValidationException,
ConflictException, ResourceNotFoundException, AwsServiceException, SdkClientException, MailManagerException {
return updateTrafficPolicy(UpdateTrafficPolicyRequest.builder().applyMutation(updateTrafficPolicyRequest).build());
}
/**
* Create a {@link MailManagerClient} with the region loaded from the
* {@link software.amazon.awssdk.regions.providers.DefaultAwsRegionProviderChain} and credentials loaded from the
* {@link software.amazon.awssdk.auth.credentials.DefaultCredentialsProvider}.
*/
static MailManagerClient create() {
return builder().build();
}
/**
* Create a builder that can be used to configure and create a {@link MailManagerClient}.
*/
static MailManagerClientBuilder builder() {
return new DefaultMailManagerClientBuilder();
}
static ServiceMetadata serviceMetadata() {
return ServiceMetadata.of(SERVICE_METADATA_ID);
}
@Override
default MailManagerServiceClientConfiguration serviceClientConfiguration() {
throw new UnsupportedOperationException();
}
}