Class EmailClient
- java.lang.Object
-
- com.oracle.bmc.http.internal.BaseSyncClient
-
- com.oracle.bmc.email.EmailClient
-
- All Implemented Interfaces:
Email,AutoCloseable
@Generated(value="OracleSDKGenerator", comments="API Version: 20170907") public class EmailClient extends BaseSyncClient implements Email
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classEmailClient.BuilderBuilder class for this client.
-
Field Summary
Fields Modifier and Type Field Description StringclientCommonLibraryVersionCompatible SDK version, provided by the codegen.Optional<String>minimumClientCommonLibraryVersionFromClientMinimum compatible SDK version, maybe provided by the codegen.static ServiceSERVICEService instance for Email.
-
Constructor Summary
Constructors Constructor Description EmailClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator, RequestSignerFactory defaultRequestSignerFactory)Deprecated.Use thebuilderinstead.EmailClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator, RequestSignerFactory defaultRequestSignerFactory, List<ClientConfigurator> additionalClientConfigurators)Deprecated.Use thebuilderinstead.EmailClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator, RequestSignerFactory defaultRequestSignerFactory, List<ClientConfigurator> additionalClientConfigurators, String endpoint)Deprecated.Use thebuilderinstead.EmailClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator, RequestSignerFactory defaultRequestSignerFactory, Map<SigningStrategy,RequestSignerFactory> signingStrategyRequestSignerFactories, List<ClientConfigurator> additionalClientConfigurators, String endpoint)Deprecated.Use thebuilderinstead.EmailClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator, RequestSignerFactory defaultRequestSignerFactory, Map<SigningStrategy,RequestSignerFactory> signingStrategyRequestSignerFactories, List<ClientConfigurator> additionalClientConfigurators, String endpoint, ExecutorService executorService)Deprecated.Use thebuilderinstead.EmailClient(BasicAuthenticationDetailsProvider authenticationDetailsProvider)Deprecated.Use thebuilderinstead.EmailClient(BasicAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration)Deprecated.Use thebuilderinstead.EmailClient(BasicAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator)Deprecated.Use thebuilderinstead.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description AddEmailDomainLockResponseaddEmailDomainLock(AddEmailDomainLockRequest request)Adds a lock to a resource.AddReturnPathLockResponseaddReturnPathLock(AddReturnPathLockRequest request)Adds a lock to a resource.AddSenderLockResponseaddSenderLock(AddSenderLockRequest request)Adds a lock to a resource.static EmailClient.Builderbuilder()Create a builder for this client.ChangeEmailDomainCompartmentResponsechangeEmailDomainCompartment(ChangeEmailDomainCompartmentRequest request)Moves an email domain into a different compartment.ChangeSenderCompartmentResponsechangeSenderCompartment(ChangeSenderCompartmentRequest request)Moves a sender into a different compartment.voidclose()CreateDkimResponsecreateDkim(CreateDkimRequest request)Creates a new DKIM for an email domain.CreateEmailDomainResponsecreateEmailDomain(CreateEmailDomainRequest request)Creates a new email domain.CreateEmailReturnPathResponsecreateEmailReturnPath(CreateEmailReturnPathRequest request)Creates a new email return path.CreateSenderResponsecreateSender(CreateSenderRequest request)Creates a sender for a tenancy in a given compartment.CreateSuppressionResponsecreateSuppression(CreateSuppressionRequest request)Adds recipient email addresses to the suppression list for a tenancy.DeleteDkimResponsedeleteDkim(DeleteDkimRequest request)Deletes a DKIM.DeleteEmailDomainResponsedeleteEmailDomain(DeleteEmailDomainRequest request)Deletes an email domain.DeleteEmailReturnPathResponsedeleteEmailReturnPath(DeleteEmailReturnPathRequest request)Deletes an email return path.DeleteSenderResponsedeleteSender(DeleteSenderRequest request)Deletes an approved sender for a tenancy in a given compartment for a providedsenderId.DeleteSuppressionResponsedeleteSuppression(DeleteSuppressionRequest request)Removes a suppressed recipient email address from the suppression list for a tenancy in a given compartment for a providedsuppressionId.StringgetClientCommonLibraryVersion()protected ClientConfiguratorgetDefaultConfigurator()GetDkimResponsegetDkim(GetDkimRequest request)Retrieves the specified DKIM.GetEmailConfigurationResponsegetEmailConfiguration(GetEmailConfigurationRequest request)Returns email configuration associated with the specified compartment.GetEmailDomainResponsegetEmailDomain(GetEmailDomainRequest request)Retrieves the specified email domain.GetEmailReturnPathResponsegetEmailReturnPath(GetEmailReturnPathRequest request)Retrieves the specified email return path.StringgetEndpoint()Optional<String>getMinimumClientCommonLibraryVersionFromClient()EmailPaginatorsgetPaginators()Gets the pre-configured paginators available for list operations in this service which may return multiple pages of data.GetSenderResponsegetSender(GetSenderRequest request)Gets an approved sender for a givensenderId.GetSuppressionResponsegetSuppression(GetSuppressionRequest request)Gets the details of a suppressed recipient email address for a givensuppressionId.EmailWaitersgetWaiters()Gets the pre-configured waiters available for resources for this service.GetWorkRequestResponsegetWorkRequest(GetWorkRequestRequest request)Gets the status of the work request with the given ID.ListDkimsResponselistDkims(ListDkimsRequest request)Lists DKIMs for an email domain.ListEmailDomainsResponselistEmailDomains(ListEmailDomainsRequest request)Lists email domains in the specified compartment.ListEmailReturnPathsResponselistEmailReturnPaths(ListEmailReturnPathsRequest request)Lists email return paths in the specified compartment or emaildomain.ListSendersResponselistSenders(ListSendersRequest request)Gets a collection of approved sender email addresses and sender IDs.ListSuppressionsResponselistSuppressions(ListSuppressionsRequest request)Gets a list of suppressed recipient email addresses for a user.ListWorkRequestErrorsResponselistWorkRequestErrors(ListWorkRequestErrorsRequest request)Return a (paginated) list of errors for a given work request.ListWorkRequestLogsResponselistWorkRequestLogs(ListWorkRequestLogsRequest request)Return a (paginated) list of logs for a given work request.ListWorkRequestsResponselistWorkRequests(ListWorkRequestsRequest request)Lists the work requests in a compartment.voidpopulateServiceParametersInEndpoint(String endpoint, Map<String,Object> requiredParametersMap)Populate the parameters in the endpoint with its corresponding value and update the base endpoint.voidrefreshClient()Rebuild the backingHttpClient.RemoveEmailDomainLockResponseremoveEmailDomainLock(RemoveEmailDomainLockRequest request)Remove a lock to a resource.RemoveReturnPathLockResponseremoveReturnPathLock(RemoveReturnPathLockRequest request)Remove a lock to a resource.RemoveSenderLockResponseremoveSenderLock(RemoveSenderLockRequest request)Remove a lock to a resource.voidsetEndpoint(String endpoint)voidsetRegion(Region region)Sets the region to call (ex, Region.US_PHOENIX_1).voidsetRegion(String regionId)Sets the region to call (ex, ‘us-phoenix-1’).voidupdateBaseEndpoint(String endpoint)This method should be used for parameterized endpoint templates only.UpdateDkimResponseupdateDkim(UpdateDkimRequest request)Modifies a DKIM.UpdateEmailDomainResponseupdateEmailDomain(UpdateEmailDomainRequest request)Modifies an email domain.UpdateEmailReturnPathResponseupdateEmailReturnPath(UpdateEmailReturnPathRequest request)Modifies an email return path.UpdateSenderResponseupdateSender(UpdateSenderRequest request)Replaces the set of tags for a sender with the tags provided.voiduseRealmSpecificEndpointTemplate(boolean useOfRealmSpecificEndpointTemplateEnabled)This method should be used to enable or disable the use of realm-specific endpoint template.-
Methods inherited from class com.oracle.bmc.http.internal.BaseSyncClient
clientCall
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.lang.AutoCloseable
close
-
Methods inherited from interface com.oracle.bmc.email.Email
getEndpoint, refreshClient, setEndpoint, useRealmSpecificEndpointTemplate
-
-
-
-
Constructor Detail
-
EmailClient
@Deprecated public EmailClient(BasicAuthenticationDetailsProvider authenticationDetailsProvider)
Deprecated.Use thebuilderinstead.Create a new client instance.- Parameters:
authenticationDetailsProvider- The authentication details (seeEmailClient.Builder.build(com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider))
-
EmailClient
@Deprecated public EmailClient(BasicAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration)
Deprecated.Use thebuilderinstead.Create a new client instance.- Parameters:
authenticationDetailsProvider- The authentication details (seeEmailClient.Builder.build(com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider))configuration-ClientBuilderBase.configuration
-
EmailClient
@Deprecated public EmailClient(BasicAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator)
Deprecated.Use thebuilderinstead.Create a new client instance.- Parameters:
authenticationDetailsProvider- The authentication details (seeEmailClient.Builder.build(com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider))configuration-ClientBuilderBase.configurationclientConfigurator-ClientBuilderBase.clientConfigurator(com.oracle.bmc.http.ClientConfigurator)
-
EmailClient
@Deprecated public EmailClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator, RequestSignerFactory defaultRequestSignerFactory)
Deprecated.Use thebuilderinstead.Create a new client instance.- Parameters:
authenticationDetailsProvider- The authentication details (seeEmailClient.Builder.build(com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider))configuration-ClientBuilderBase.configurationclientConfigurator-ClientBuilderBase.clientConfigurator(com.oracle.bmc.http.ClientConfigurator)defaultRequestSignerFactory-ClientBuilderBase.requestSignerFactory
-
EmailClient
@Deprecated public EmailClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator, RequestSignerFactory defaultRequestSignerFactory, List<ClientConfigurator> additionalClientConfigurators)
Deprecated.Use thebuilderinstead.Create a new client instance.- Parameters:
authenticationDetailsProvider- The authentication details (seeEmailClient.Builder.build(com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider))configuration-ClientBuilderBase.configurationclientConfigurator-ClientBuilderBase.clientConfigurator(com.oracle.bmc.http.ClientConfigurator)defaultRequestSignerFactory-ClientBuilderBase.requestSignerFactoryadditionalClientConfigurators-ClientBuilderBase.additionalClientConfigurators
-
EmailClient
@Deprecated public EmailClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator, RequestSignerFactory defaultRequestSignerFactory, List<ClientConfigurator> additionalClientConfigurators, String endpoint)
Deprecated.Use thebuilderinstead.Create a new client instance.- Parameters:
authenticationDetailsProvider- The authentication details (seeEmailClient.Builder.build(com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider))configuration-ClientBuilderBase.configurationclientConfigurator-ClientBuilderBase.clientConfigurator(com.oracle.bmc.http.ClientConfigurator)defaultRequestSignerFactory-ClientBuilderBase.requestSignerFactoryadditionalClientConfigurators-ClientBuilderBase.additionalClientConfiguratorsendpoint-ClientBuilderBase.endpoint(java.lang.String)
-
EmailClient
@Deprecated public EmailClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator, RequestSignerFactory defaultRequestSignerFactory, Map<SigningStrategy,RequestSignerFactory> signingStrategyRequestSignerFactories, List<ClientConfigurator> additionalClientConfigurators, String endpoint)
Deprecated.Use thebuilderinstead.Create a new client instance.- Parameters:
authenticationDetailsProvider- The authentication details (seeEmailClient.Builder.build(com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider))configuration-ClientBuilderBase.configurationclientConfigurator-ClientBuilderBase.clientConfigurator(com.oracle.bmc.http.ClientConfigurator)defaultRequestSignerFactory-ClientBuilderBase.requestSignerFactoryadditionalClientConfigurators-ClientBuilderBase.additionalClientConfiguratorsendpoint-ClientBuilderBase.endpoint(java.lang.String)signingStrategyRequestSignerFactories-ClientBuilderBase.signingStrategyRequestSignerFactories
-
EmailClient
@Deprecated public EmailClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator, RequestSignerFactory defaultRequestSignerFactory, Map<SigningStrategy,RequestSignerFactory> signingStrategyRequestSignerFactories, List<ClientConfigurator> additionalClientConfigurators, String endpoint, ExecutorService executorService)
Deprecated.Use thebuilderinstead.Create a new client instance.- Parameters:
authenticationDetailsProvider- The authentication details (seeEmailClient.Builder.build(com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider))configuration-ClientBuilderBase.configurationclientConfigurator-ClientBuilderBase.clientConfigurator(com.oracle.bmc.http.ClientConfigurator)defaultRequestSignerFactory-ClientBuilderBase.requestSignerFactoryadditionalClientConfigurators-ClientBuilderBase.additionalClientConfiguratorsendpoint-ClientBuilderBase.endpoint(java.lang.String)signingStrategyRequestSignerFactories-ClientBuilderBase.signingStrategyRequestSignerFactoriesexecutorService-EmailClient.Builder.executorService
-
-
Method Detail
-
builder
public static EmailClient.Builder builder()
Create a builder for this client.- Returns:
- builder
-
setRegion
public void setRegion(Region region)
Description copied from interface:EmailSets the region to call (ex, Region.US_PHOENIX_1).Note, this will call
setEndpointafter resolving the endpoint. If the service is not available in this Region, however, an IllegalArgumentException will be raised.
-
setRegion
public void setRegion(String regionId)
Description copied from interface:EmailSets the region to call (ex, ‘us-phoenix-1’).Note, this will first try to map the region ID to a known Region and call
setRegion.If no known Region could be determined, it will create an endpoint based on the default endpoint format (
Region.formatDefaultRegionEndpoint(Service, String)and then callsetEndpoint.
-
addEmailDomainLock
public AddEmailDomainLockResponse addEmailDomainLock(AddEmailDomainLockRequest request)
Description copied from interface:EmailAdds a lock to a resource.- Specified by:
addEmailDomainLockin interfaceEmail- Parameters:
request- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
-
addReturnPathLock
public AddReturnPathLockResponse addReturnPathLock(AddReturnPathLockRequest request)
Description copied from interface:EmailAdds a lock to a resource.- Specified by:
addReturnPathLockin interfaceEmail- Parameters:
request- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
-
addSenderLock
public AddSenderLockResponse addSenderLock(AddSenderLockRequest request)
Description copied from interface:EmailAdds a lock to a resource.- Specified by:
addSenderLockin interfaceEmail- Parameters:
request- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
-
changeEmailDomainCompartment
public ChangeEmailDomainCompartmentResponse changeEmailDomainCompartment(ChangeEmailDomainCompartmentRequest request)
Description copied from interface:EmailMoves an email domain into a different compartment.When provided, If-Match is checked against ETag value of the resource. For information about moving resources between compartments, see Moving Resources to a Different Compartment.
*Note:** All DKIM objects associated with this email domain will also be moved into the provided compartment.
- Specified by:
changeEmailDomainCompartmentin interfaceEmail- Parameters:
request- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
-
changeSenderCompartment
public ChangeSenderCompartmentResponse changeSenderCompartment(ChangeSenderCompartmentRequest request)
Description copied from interface:EmailMoves a sender into a different compartment.When provided, If-Match is checked against ETag values of the resource.
- Specified by:
changeSenderCompartmentin interfaceEmail- Parameters:
request- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
-
createDkim
public CreateDkimResponse createDkim(CreateDkimRequest request)
Description copied from interface:EmailCreates a new DKIM for an email domain.This DKIM signs all approved senders in the tenancy that are in this email domain. Best security practices indicate to periodically rotate the DKIM that is doing the signing. When a second DKIM is applied, all senders seamlessly pick up the new key without interruption in signing.
- Specified by:
createDkimin interfaceEmail- Parameters:
request- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
-
createEmailDomain
public CreateEmailDomainResponse createEmailDomain(CreateEmailDomainRequest request)
Description copied from interface:EmailCreates a new email domain.Avoid entering confidential information.
- Specified by:
createEmailDomainin interfaceEmail- Parameters:
request- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
-
createEmailReturnPath
public CreateEmailReturnPathResponse createEmailReturnPath(CreateEmailReturnPathRequest request)
Description copied from interface:EmailCreates a new email return path.Avoid entering confidential information.
- Specified by:
createEmailReturnPathin interfaceEmail- Parameters:
request- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
-
createSender
public CreateSenderResponse createSender(CreateSenderRequest request)
Description copied from interface:EmailCreates a sender for a tenancy in a given compartment.- Specified by:
createSenderin interfaceEmail- Parameters:
request- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
-
createSuppression
public CreateSuppressionResponse createSuppression(CreateSuppressionRequest request)
Description copied from interface:EmailAdds recipient email addresses to the suppression list for a tenancy.Addresses added to the suppression list via the API are denoted as "MANUAL" in the
reasonfield. Note: All email addresses added to the suppression list are normalized to include only lowercase letters.- Specified by:
createSuppressionin interfaceEmail- Parameters:
request- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
-
deleteDkim
public DeleteDkimResponse deleteDkim(DeleteDkimRequest request)
Description copied from interface:EmailDeletes a DKIM.If this key is currently the active key for the email domain, deleting the key will stop signing the domain’s outgoing mail. DKIM keys are left in DELETING state for about a day to allow DKIM signatures on in-transit mail to be validated. Consider creating a new DKIM for this domain so the signing can be rotated to it instead of deletion.
- Specified by:
deleteDkimin interfaceEmail- Parameters:
request- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
-
deleteEmailDomain
public DeleteEmailDomainResponse deleteEmailDomain(DeleteEmailDomainRequest request)
Description copied from interface:EmailDeletes an email domain.- Specified by:
deleteEmailDomainin interfaceEmail- Parameters:
request- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
-
deleteEmailReturnPath
public DeleteEmailReturnPathResponse deleteEmailReturnPath(DeleteEmailReturnPathRequest request)
Description copied from interface:EmailDeletes an email return path.- Specified by:
deleteEmailReturnPathin interfaceEmail- Parameters:
request- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
-
deleteSender
public DeleteSenderResponse deleteSender(DeleteSenderRequest request)
Description copied from interface:EmailDeletes an approved sender for a tenancy in a given compartment for a providedsenderId.- Specified by:
deleteSenderin interfaceEmail- Parameters:
request- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
-
deleteSuppression
public DeleteSuppressionResponse deleteSuppression(DeleteSuppressionRequest request)
Description copied from interface:EmailRemoves a suppressed recipient email address from the suppression list for a tenancy in a given compartment for a providedsuppressionId.- Specified by:
deleteSuppressionin interfaceEmail- Parameters:
request- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
-
getDkim
public GetDkimResponse getDkim(GetDkimRequest request)
Description copied from interface:EmailRetrieves the specified DKIM.
-
getEmailConfiguration
public GetEmailConfigurationResponse getEmailConfiguration(GetEmailConfigurationRequest request)
Description copied from interface:EmailReturns email configuration associated with the specified compartment.- Specified by:
getEmailConfigurationin interfaceEmail- Parameters:
request- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
-
getEmailDomain
public GetEmailDomainResponse getEmailDomain(GetEmailDomainRequest request)
Description copied from interface:EmailRetrieves the specified email domain.- Specified by:
getEmailDomainin interfaceEmail- Parameters:
request- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
-
getEmailReturnPath
public GetEmailReturnPathResponse getEmailReturnPath(GetEmailReturnPathRequest request)
Description copied from interface:EmailRetrieves the specified email return path.- Specified by:
getEmailReturnPathin interfaceEmail- Parameters:
request- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
-
getSender
public GetSenderResponse getSender(GetSenderRequest request)
Description copied from interface:EmailGets an approved sender for a givensenderId.
-
getSuppression
public GetSuppressionResponse getSuppression(GetSuppressionRequest request)
Description copied from interface:EmailGets the details of a suppressed recipient email address for a givensuppressionId.Each suppression is given a unique OCID.
- Specified by:
getSuppressionin interfaceEmail- Parameters:
request- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
-
getWorkRequest
public GetWorkRequestResponse getWorkRequest(GetWorkRequestRequest request)
Description copied from interface:EmailGets the status of the work request with the given ID.- Specified by:
getWorkRequestin interfaceEmail- Parameters:
request- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
-
listDkims
public ListDkimsResponse listDkims(ListDkimsRequest request)
Description copied from interface:EmailLists DKIMs for an email domain.
-
listEmailDomains
public ListEmailDomainsResponse listEmailDomains(ListEmailDomainsRequest request)
Description copied from interface:EmailLists email domains in the specified compartment.- Specified by:
listEmailDomainsin interfaceEmail- Parameters:
request- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
-
listEmailReturnPaths
public ListEmailReturnPathsResponse listEmailReturnPaths(ListEmailReturnPathsRequest request)
Description copied from interface:EmailLists email return paths in the specified compartment or emaildomain.- Specified by:
listEmailReturnPathsin interfaceEmail- Parameters:
request- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
-
listSenders
public ListSendersResponse listSenders(ListSendersRequest request)
Description copied from interface:EmailGets a collection of approved sender email addresses and sender IDs.- Specified by:
listSendersin interfaceEmail- Parameters:
request- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
-
listSuppressions
public ListSuppressionsResponse listSuppressions(ListSuppressionsRequest request)
Description copied from interface:EmailGets a list of suppressed recipient email addresses for a user.The
compartmentIdfor suppressions must be a tenancy OCID. The returned list is sorted by creation time in descending order.- Specified by:
listSuppressionsin interfaceEmail- Parameters:
request- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
-
listWorkRequestErrors
public ListWorkRequestErrorsResponse listWorkRequestErrors(ListWorkRequestErrorsRequest request)
Description copied from interface:EmailReturn a (paginated) list of errors for a given work request.- Specified by:
listWorkRequestErrorsin interfaceEmail- Parameters:
request- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
-
listWorkRequestLogs
public ListWorkRequestLogsResponse listWorkRequestLogs(ListWorkRequestLogsRequest request)
Description copied from interface:EmailReturn a (paginated) list of logs for a given work request.- Specified by:
listWorkRequestLogsin interfaceEmail- Parameters:
request- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
-
listWorkRequests
public ListWorkRequestsResponse listWorkRequests(ListWorkRequestsRequest request)
Description copied from interface:EmailLists the work requests in a compartment.- Specified by:
listWorkRequestsin interfaceEmail- Parameters:
request- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
-
removeEmailDomainLock
public RemoveEmailDomainLockResponse removeEmailDomainLock(RemoveEmailDomainLockRequest request)
Description copied from interface:EmailRemove a lock to a resource.- Specified by:
removeEmailDomainLockin interfaceEmail- Parameters:
request- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
-
removeReturnPathLock
public RemoveReturnPathLockResponse removeReturnPathLock(RemoveReturnPathLockRequest request)
Description copied from interface:EmailRemove a lock to a resource.- Specified by:
removeReturnPathLockin interfaceEmail- Parameters:
request- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
-
removeSenderLock
public RemoveSenderLockResponse removeSenderLock(RemoveSenderLockRequest request)
Description copied from interface:EmailRemove a lock to a resource.- Specified by:
removeSenderLockin interfaceEmail- Parameters:
request- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
-
updateDkim
public UpdateDkimResponse updateDkim(UpdateDkimRequest request)
Description copied from interface:EmailModifies a DKIM.- Specified by:
updateDkimin interfaceEmail- Parameters:
request- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
-
updateEmailDomain
public UpdateEmailDomainResponse updateEmailDomain(UpdateEmailDomainRequest request)
Description copied from interface:EmailModifies an email domain.- Specified by:
updateEmailDomainin interfaceEmail- Parameters:
request- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
-
updateEmailReturnPath
public UpdateEmailReturnPathResponse updateEmailReturnPath(UpdateEmailReturnPathRequest request)
Description copied from interface:EmailModifies an email return path.- Specified by:
updateEmailReturnPathin interfaceEmail- Parameters:
request- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
-
updateSender
public UpdateSenderResponse updateSender(UpdateSenderRequest request)
Description copied from interface:EmailReplaces the set of tags for a sender with the tags provided.If either freeform or defined tags are omitted, the tags for that set remain the same. Each set must include the full set of tags for the sender, partial updates are not permitted. For more information about tagging, see Resource Tags.
- Specified by:
updateSenderin interfaceEmail- Parameters:
request- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
-
getWaiters
public EmailWaiters getWaiters()
Description copied from interface:EmailGets the pre-configured waiters available for resources for this service.- Specified by:
getWaitersin interfaceEmail- Returns:
- The service waiters.
-
getPaginators
public EmailPaginators getPaginators()
Description copied from interface:EmailGets the pre-configured paginators available for list operations in this service which may return multiple pages of data.These paginators provide an
Iterableinterface so that service responses, or resources/records, can be iterated through without having to manually deal with pagination and page tokens.- Specified by:
getPaginatorsin interfaceEmail- Returns:
- The service paginators.
-
getDefaultConfigurator
protected ClientConfigurator getDefaultConfigurator()
-
useRealmSpecificEndpointTemplate
public void useRealmSpecificEndpointTemplate(boolean useOfRealmSpecificEndpointTemplateEnabled)
This method should be used to enable or disable the use of realm-specific endpoint template.The default value is null. To enable the use of endpoint template defined for the realm in use, set the flag to true To disable the use of endpoint template defined for the realm in use, set the flag to false
- Parameters:
useOfRealmSpecificEndpointTemplateEnabled- This flag can be set to true or false to enable or disable the use of realm-specific endpoint template respectively
-
populateServiceParametersInEndpoint
public final void populateServiceParametersInEndpoint(String endpoint, Map<String,Object> requiredParametersMap)
Populate the parameters in the endpoint with its corresponding value and update the base endpoint.The value will be populated iff the parameter in endpoint is a required request path parameter or a required request query parameter. If not, the parameter in the endpoint will be ignored and left blank.
- Parameters:
endpoint- The endpoint template in userequiredParametersMap- Map of parameter name as key and value set in request path or query parameter as value
-
updateBaseEndpoint
public final void updateBaseEndpoint(String endpoint)
This method should be used for parameterized endpoint templates only.This does not include {region} and {secondLevelDomain} parameters.
- Parameters:
endpoint- The updated endpoint to use
-
setEndpoint
public final void setEndpoint(String endpoint)
-
getEndpoint
public final String getEndpoint()
-
refreshClient
public final void refreshClient()
Rebuild the backingHttpClient.This will call
ClientConfigurators again, and can be used to e.g. refresh the SSL certificate.
-
close
public final void close()
- Specified by:
closein interfaceAutoCloseable
-
getClientCommonLibraryVersion
public String getClientCommonLibraryVersion()
-
-