public class EmailConfigDiscoverOauthRequest extends DiscoverEmailConfigRequest
Constructor and Description |
---|
EmailConfigDiscoverOauthRequest() |
EmailConfigDiscoverOauthRequest(String address,
Boolean fastProcessing,
String login,
String clientId,
String clientSecret,
String refreshToken,
String requestUrl)
Initializes a new instance of the EmailConfigDiscoverOauthRequest
|
Modifier and Type | Method and Description |
---|---|
EmailConfigDiscoverOauthRequest |
clientId(String clientId)
Set clientId and return this.
|
EmailConfigDiscoverOauthRequest |
clientSecret(String clientSecret)
Set clientSecret and return this.
|
boolean |
equals(Object o) |
String |
getClientId()
OAuth client id.
|
String |
getClientSecret()
OAuth client secret.
|
String |
getRefreshToken()
OAuth refresh token.
|
String |
getRequestUrl()
The url to obtain access token.
|
int |
hashCode() |
EmailConfigDiscoverOauthRequest |
refreshToken(String refreshToken)
Set refreshToken and return this.
|
EmailConfigDiscoverOauthRequest |
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() |
address, fastProcessing, getAddress, getLogin, isFastProcessing, login, setAddress, setFastProcessing, setLogin
public EmailConfigDiscoverOauthRequest()
public EmailConfigDiscoverOauthRequest(String address, Boolean fastProcessing, String login, String clientId, String clientSecret, String refreshToken, String requestUrl)
address
- Email address to discover.fastProcessing
- Turns on fast processing. All discover systems will run in parallel. First discovered result will be returned.login
- Email account login. If not specified, address used as a login.clientId
- OAuth client id.clientSecret
- OAuth client secret.refreshToken
- OAuth refresh token.requestUrl
- The url to obtain access token. If not specified, will be discovered from email configuration.public EmailConfigDiscoverOauthRequest clientId(String clientId)
clientId
- OAuth client id.public String getClientId()
public void setClientId(String clientId)
clientId
- OAuth client id.public EmailConfigDiscoverOauthRequest clientSecret(String clientSecret)
clientSecret
- OAuth client secret.public String getClientSecret()
public void setClientSecret(String clientSecret)
clientSecret
- OAuth client secret.public EmailConfigDiscoverOauthRequest refreshToken(String refreshToken)
refreshToken
- OAuth refresh token.public String getRefreshToken()
public void setRefreshToken(String refreshToken)
refreshToken
- OAuth refresh token.public EmailConfigDiscoverOauthRequest requestUrl(String requestUrl)
requestUrl
- The url to obtain access token. If not specified, will be discovered from email configuration.public String getRequestUrl()
public void setRequestUrl(String requestUrl)
requestUrl
- The url to obtain access token. If not specified, will be discovered from email configuration.public boolean equals(Object o)
equals
in class DiscoverEmailConfigRequest
public int hashCode()
hashCode
in class DiscoverEmailConfigRequest
public String toString()
toString
in class DiscoverEmailConfigRequest
Copyright © 2020. All rights reserved.