public class SaveOAuthEmailAccountRequest extends EmailAccountRequest
Constructor and Description |
---|
SaveOAuthEmailAccountRequest() |
SaveOAuthEmailAccountRequest(String host,
Integer port,
String login,
String securityOptions,
String protocolType,
String description,
StorageFileLocation storageFile,
String clientId,
String clientSecret,
String refreshToken,
String requestUrl)
Initializes a new instance of the SaveOAuthEmailAccountRequest
|
Modifier and Type | Method and Description |
---|---|
SaveOAuthEmailAccountRequest |
clientId(String clientId)
Set clientId and return this.
|
SaveOAuthEmailAccountRequest |
clientSecret(String clientSecret)
Set clientSecret and return this.
|
boolean |
equals(Object o) |
String |
getClientId()
OAuth client identifier
|
String |
getClientSecret()
OAuth client secret
|
String |
getRefreshToken()
OAuth refresh token
|
String |
getRequestUrl()
The url to obtain access token.
|
int |
hashCode() |
SaveOAuthEmailAccountRequest |
refreshToken(String refreshToken)
Set refreshToken and return this.
|
SaveOAuthEmailAccountRequest |
requestUrl(String requestUrl)
Set requestUrl and return this.
|
void |
setClientId(String clientId)
Set clientId.
|
void |
setClientSecret(String clientSecret)
Set clientSecret.
|
void |
setRefreshToken(String refreshToken)
Set refreshToken.
|
void |
setRequestUrl(String requestUrl)
Set requestUrl.
|
String |
toString() |
description, getDescription, getHost, getLogin, getPort, getProtocolType, getSecurityOptions, getStorageFile, host, login, port, protocolType, securityOptions, setDescription, setHost, setLogin, setPort, setProtocolType, setSecurityOptions, setStorageFile, storageFile
public SaveOAuthEmailAccountRequest()
public SaveOAuthEmailAccountRequest(String host, Integer port, String login, String securityOptions, String protocolType, String description, StorageFileLocation storageFile, String clientId, String clientSecret, String refreshToken, String requestUrl)
host
- Email account hostport
- Email account portlogin
- Email account loginsecurityOptions
- Email account security mode Enum, available values: None, SSLExplicit, SSLImplicit, SSLAuto, AutoprotocolType
- Type of connection protocol. Enum, available values: IMAP, POP3, SMTP, EWS, WebDavdescription
- Email account descriptionstorageFile
- A storage file location info to store email accountclientId
- OAuth client identifierclientSecret
- OAuth client secretrefreshToken
- OAuth refresh tokenrequestUrl
- The url to obtain access token. If not specified, will try to discover from email account host.public SaveOAuthEmailAccountRequest clientId(String clientId)
clientId
- OAuth client identifierpublic String getClientId()
public void setClientId(String clientId)
clientId
- OAuth client identifierpublic SaveOAuthEmailAccountRequest clientSecret(String clientSecret)
clientSecret
- OAuth client secretpublic String getClientSecret()
public void setClientSecret(String clientSecret)
clientSecret
- OAuth client secretpublic SaveOAuthEmailAccountRequest refreshToken(String refreshToken)
refreshToken
- OAuth refresh tokenpublic String getRefreshToken()
public void setRefreshToken(String refreshToken)
refreshToken
- OAuth refresh tokenpublic SaveOAuthEmailAccountRequest requestUrl(String requestUrl)
requestUrl
- The url to obtain access token. If not specified, will try to discover from email account host.public String getRequestUrl()
public void setRequestUrl(String requestUrl)
requestUrl
- The url to obtain access token. If not specified, will try to discover from email account host.public boolean equals(Object o)
equals
in class EmailAccountRequest
public int hashCode()
hashCode
in class EmailAccountRequest
public String toString()
toString
in class EmailAccountRequest
Copyright © 2020. All rights reserved.