public class DiscoverEmailConfigOauth extends DiscoverEmailConfigRq
Constructor and Description |
---|
DiscoverEmailConfigOauth() |
DiscoverEmailConfigOauth(String address,
Boolean fastProcessing,
String login,
String clientId,
String clientSecret,
String refreshToken,
String requestUrl)
Initializes a new instance of the DiscoverEmailConfigOauth
|
Modifier and Type | Method and Description |
---|---|
DiscoverEmailConfigOauth |
clientId(String clientId)
Set clientId and return this.
|
DiscoverEmailConfigOauth |
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() |
DiscoverEmailConfigOauth |
refreshToken(String refreshToken)
Set refreshToken and return this.
|
DiscoverEmailConfigOauth |
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 DiscoverEmailConfigOauth()
public DiscoverEmailConfigOauth(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 DiscoverEmailConfigOauth clientId(String clientId)
clientId
- OAuth client id.public String getClientId()
public void setClientId(String clientId)
clientId
- OAuth client id.public DiscoverEmailConfigOauth clientSecret(String clientSecret)
clientSecret
- OAuth client secret.public String getClientSecret()
public void setClientSecret(String clientSecret)
clientSecret
- OAuth client secret.public DiscoverEmailConfigOauth refreshToken(String refreshToken)
refreshToken
- OAuth refresh token.public String getRefreshToken()
public void setRefreshToken(String refreshToken)
refreshToken
- OAuth refresh token.public DiscoverEmailConfigOauth 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 DiscoverEmailConfigRq
public int hashCode()
hashCode
in class DiscoverEmailConfigRq
public String toString()
toString
in class DiscoverEmailConfigRq
Copyright © 2020. All rights reserved.