类 SesClient
- java.lang.Object
-
- com.baidubce.AbstractBceClient
-
- com.baidubce.services.ses.SesClientSupport
-
- com.baidubce.services.ses.SesClient
-
public class SesClient extends SesClientSupport
The entrance class for all client access to the API of SES(Baidu email Service).All of the API method of SES is includes in this class.
-
-
字段概要
-
从类继承的字段 com.baidubce.services.ses.SesClientSupport
DEFAULT_EMAIL_PATTERN, logger, SES_HANDLERS
-
从类继承的字段 com.baidubce.AbstractBceClient
config, DEFAULT_CONTENT_TYPE, DEFAULT_ENCODING, DEFAULT_SERVICE_DOMAIN, URL_PREFIX
-
-
构造器概要
构造器 构造器 说明 SesClient()Constructs a newSesClientinstance with default settings.SesClient(SesClientConfiguration config)Constructs a newSesClientinstance with the specified configuration.
-
方法概要
-
从类继承的方法 com.baidubce.services.ses.SesClientSupport
assertListNotNullOrEmpty, assertStringArrayNotNullOrEmpty, assertStringNotNullOrEmpty, checkIsEmail, checkIsInteger, createRequest, fillRequestPayload, getBASE64EncoderStrFromInputStream
-
从类继承的方法 com.baidubce.AbstractBceClient
computeBktVirEndpoint, computeServiceId, getBktVirEndpoint, getClient, getEndpoint, getServiceId, invokeHttpClient, isRegionSupported, setClient, shutdown
-
-
-
-
构造器详细资料
-
SesClient
public SesClient()
Constructs a newSesClientinstance with default settings.
-
SesClient
public SesClient(SesClientConfiguration config)
Constructs a newSesClientinstance with the specified configuration.- 参数:
config- the specified configuration, default inherit super classcom.baidubce.BceClientConfiguration
-
-
方法详细资料
-
verifyEmail
public void verifyEmail(String emailAddress)
-
verifyEmail
public void verifyEmail(VerifyEmailRequest request)
Verify email address- 参数:
request- The request object includes the URL address to verify, refer tocom.baidubce.services.ses.model.VerifyEmailRequest- 另请参阅:
VerifyEmailRequest
-
listVerifiedEmail
public ListVerifiedEmailResponse listVerifiedEmail()
-
listVerifiedEmail
public ListVerifiedEmailResponse listVerifiedEmail(SesRequest request)
Get the list of verified email address- 参数:
request- The request object which it'scredentialscan be override- 返回:
- The response object includes the detail of verified email address, refer to
com.baidubce.services.ses.model.ListVerifiedEmailResponse - 另请参阅:
ListVerifiedEmailResponse
-
getVerifiedEmail
public GetVerifiedEmailResponse getVerifiedEmail(String emailAddress)
-
getVerifiedEmail
public GetVerifiedEmailResponse getVerifiedEmail(GetVerifiedEmailRequest request)
Get the detail of verified email address- 参数:
request- The request object includes email address to get- 返回:
- The response object includes the detail of verified email address, refer to
com.baidubce.services.ses.model.GetVerifiedEmailResponse - 另请参阅:
GetVerifiedEmailRequest,GetVerifiedEmailResponse
-
deleteVerifiedEmail
public void deleteVerifiedEmail(String emailAddress)
-
deleteVerifiedEmail
public void deleteVerifiedEmail(DeleteVerifiedEmailRequest request)
Delete verified email address- 参数:
request- The request object includes the email address to delete, refer tocom.baidubce.services.ses.model.DeleteVerifiedEmailRequest- 另请参阅:
DeleteVerifiedEmailRequest
-
verifyDomain
public VerifyDomainResponse verifyDomain(String domainName)
-
verifyDomain
public VerifyDomainResponse verifyDomain(VerifyDomainRequest request)
Verify the domainWhen this API is called successfully, it will return a token which is used to verify domain. You should put the token into DSN setting as a TXT record, then SES can finish verifying automatically.
- 参数:
request- The request object which includes the domain to verify- 另请参阅:
VerifyDomainRequest
-
verifyDKIM
public VerifyDKIMResponse verifyDKIM(String domainName)
-
verifyDKIM
public VerifyDKIMResponse verifyDKIM(VerifyDKIMRequest request)
Verify the DKIMWhen this API is called successfully, it will return a group of tokens,you should use this tokens to create DSN CNAME records, then SES can finish verifying automatically.
- 参数:
request- The request object which includes the DKIM to verify- 返回:
- The response object includes a group of tokens
- 另请参阅:
VerifyDKIMRequest,VerifyDKIMResponse
-
disableDKIM
public void disableDKIM(String domainName)
-
disableDKIM
public void disableDKIM(EnableDKIMRequest request)
Disable the DKIMDisable or enable DKIM the specifical email or domain, if enabled then SES will add DKIM for all the email about the email and domain.
- 参数:
request- The request object which includes domain to disable- 另请参阅:
EnableDKIMRequest
-
enableDKIM
public void enableDKIM(String domainName)
-
enableDKIM
public void enableDKIM(EnableDKIMRequest request)
Enable the DKIMDisable or enable DKIM the specifical email or domain, if enabled then SES will add DKIM for all the email about the email and domain.
- 参数:
request- The request object which includes domain to enable
-
listVerifiedDomain
public ListVerifiedDomainResponse listVerifiedDomain()
-
listVerifiedDomain
public ListVerifiedDomainResponse listVerifiedDomain(SesRequest request)
Get the list of verified domain- 参数:
request- The request object which it'scredentialscan be override- 返回:
- The response object which includes the detail of verified domain
- 另请参阅:
ListVerifiedDomainResponse
-
getVerifiedDomain
public GetVerifiedDomainResponse getVerifiedDomain(String domainName)
-
getVerifiedDomain
public GetVerifiedDomainResponse getVerifiedDomain(GetVerifiedDomainRequest request)
Get the detail of specifical verified domain- 参数:
request- The request object which includes the domain to get- 返回:
- The response object which includes the detail of verified domain
- 另请参阅:
GetVerifiedDomainResponse
-
deleteVerifiedDomain
public void deleteVerifiedDomain(String domainName)
-
deleteVerifiedDomain
public void deleteVerifiedDomain(DeleteVerifiedDomainRequest request)
Delete the domain- 参数:
request- The request object which includes the domain to delete- 另请参阅:
DeleteVerifiedDomainRequest
-
sendEmail
public SendEmailResponse sendEmail(String from, String[] toAddr, String subject, String body, File... attachmentFiles)
Send email.Simple to send email without display name, all optional parameters use system default value.
- 参数:
from- The sender, which is requiredtoAddr- The receive, which is requiredsubject- The title of the email, which is requiredbody- The content of the email, which is requiredattachmentFiles- The array of attachment file. If you need send attachment then set it, it's optional parameters- 另请参阅:
sendEmail(com.baidubce.services.ses.model.SendEmailRequest request)
-
sendEmail
public SendEmailResponse sendEmail(String from, String displayName, String[] toAddr, String subject, String body, File... attachmentFiles)
Send email.Simple to send email, all optional parameters use system default value.
- 参数:
from- The sender, which is requireddisplayName- The display name of sender, which can be custom by the users themselvestoAddr- The receive, which is requiredsubject- The title of the email, which is requiredbody- The content of the email, which is requiredattachmentFiles- The array of attachment file. If you need send attachment then set it, it's optional parameters- 另请参阅:
sendEmail(com.baidubce.services.ses.model.SendEmailRequest request)
-
sendEmail
public SendEmailResponse sendEmail(String from, String displayName, String[] toAddr, String[] ccAddr, String[] bccAddr, String subject, String body, File... attachmentFiles)
Send email.Simple to send email, partly optional parameters use system default value.
- 参数:
from- The sender, which is requireddisplayName- The display name of sender, which can be custom by the users themselvestoAddr- The receive, which is requiredccAddr- The CC, which is optionalbccAddr- The BCC which is optionalsubject- The title of the email, which is requiredbody- The content of the email, which is requiredattachmentFiles- The array of attachment file. If you need send attachment then set it, it's optional parameters- 另请参阅:
sendEmail(com.baidubce.services.ses.model.SendEmailRequest request)
-
sendEmail
public SendEmailResponse sendEmail(String from, String displayName, String returnPath, String replyTo, String[] toAddr, String[] ccAddr, String[] bccAddr, String subject, String body, int priority, int charset, File... attachmentFiles)
Send email.Full to send email, all optional parameters need you set.
- 参数:
from- The sender, which is requireddisplayName- The display name of sender, which can be custom by the users themselvesreturnPath- Optional parametersreplyTo- Optional parameterstoAddr- The receive, which is requiredccAddr- The CC, which is optionalbccAddr- The BCC which is optionalsubject- The title of the email, which is requiredbody- The content of the email, which is requiredpriority- The priority of the email, which is Optionalcharset- The charset of the email, which is OptionalattachmentFiles- The array of attachment file. If you need send attachment then set it, it's optional parameters- 另请参阅:
sendEmail(com.baidubce.services.ses.model.SendEmailRequest request)
-
sendEmail
public SendEmailResponse sendEmail(SendEmailRequest request)
Send emailThis method allow you to construct request object by yourself.
- 参数:
request- The request object which includes the parameters of sending mail, you can see detail from classcom.baidubce.services.ses.model.SendEmailRequest- 另请参阅:
SendEmailRequest
-
setFeedback
public void setFeedback(SetFeedbackRequest request)
Set feedback- 参数:
request- The request object which includes the feedback information to set- 另请参阅:
SetFeedbackRequest
-
getFeedback
public GetFeedbackResponse getFeedback()
-
getFeedback
public GetFeedbackResponse getFeedback(SesRequest request)
Get feedback- 参数:
request- The request object which it'scredentialscan be override- 返回:
- The response object which includes the feedback information
- 另请参阅:
GetFeedbackResponse
-
getQuota
public GetQuotaResponse getQuota()
-
getQuota
public GetQuotaResponse getQuota(SesRequest request)
Get quota- 参数:
request- The request object which it'scredentialscan be override- 返回:
- The response object which includes the detail of quota
- 另请参阅:
GetQuotaResponse
-
setQuota
public void setQuota(SetQuotaRequest request)
Set quota- 参数:
request- The request object which includes the information of quota to set- 另请参阅:
SetQuotaRequest
-
listRecipientBlacklist
public ListRecipientBlacklistResponse listRecipientBlacklist()
-
listRecipientBlacklist
public ListRecipientBlacklistResponse listRecipientBlacklist(SesRequest request)
Get the list of blacklist- 参数:
request- The request object which it'scredentialscan be override- 返回:
- The response which includes the detail of blacklist
- 另请参阅:
ListRecipientBlacklistResponse
-
isInRecipientBlacklist
public IsInRecipientBlacklistResponse isInRecipientBlacklist(String emailAddress)
-
isInRecipientBlacklist
public IsInRecipientBlacklistResponse isInRecipientBlacklist(IsInRecipientBlacklistRequest request)
Query the special receiver is in blacklist or not- 参数:
request- The request object which includes the special receiver- 返回:
- The response result which includes the result of receiver in blacklist or not
- 另请参阅:
IsInRecipientBlacklistResponse
-
getFailedReason
public GetFailedReasonResponse getFailedReason()
-
getFailedReason
public GetFailedReasonResponse getFailedReason(SesRequest request)
Query the failed reason- 参数:
request- The request object which it'scredentialscan be override- 返回:
- The response which includes the detail of failed reason
- 另请参阅:
GetFailedReasonResponse
-
-