EmailChannelProperties Class
- java.
lang. Object - com.
azure. resourcemanager. botservice. models. EmailChannelProperties
- com.
Implements
public final class EmailChannelProperties
implements JsonSerializable<EmailChannelProperties>
The parameters to provide for the Email channel.
Constructor Summary
| Constructor | Description |
|---|---|
| EmailChannelProperties() |
Creates an instance of Email |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
Email |
authMethod()
Get the auth |
| String |
emailAddress()
Get the email |
|
static
Email |
fromJson(JsonReader jsonReader)
Reads an instance of Email |
| boolean |
isEnabled()
Get the is |
| String |
magicCode()
Get the magic |
| String |
password()
Get the password property: The password for the email address. |
|
Json |
toJson(JsonWriter jsonWriter) |
| void |
validate()
Validates the instance. |
|
Email |
withAuthMethod(EmailChannelAuthMethod authMethod)
Set the auth |
|
Email |
withEmailAddress(String emailAddress)
Set the email |
|
Email |
withIsEnabled(boolean isEnabled)
Set the is |
|
Email |
withMagicCode(String magicCode)
Set the magic |
|
Email |
withPassword(String password)
Set the password property: The password for the email address. |
Methods inherited from java.lang.Object
Constructor Details
EmailChannelProperties
public EmailChannelProperties()
Creates an instance of EmailChannelProperties class.
Method Details
authMethod
public EmailChannelAuthMethod authMethod()
Get the authMethod property: Email channel auth method. 0 Password (Default); 1 Graph.
Returns:
emailAddress
public String emailAddress()
Get the emailAddress property: The email address.
Returns:
fromJson
public static EmailChannelProperties fromJson(JsonReader jsonReader)
Reads an instance of EmailChannelProperties from the JsonReader.
Parameters:
Returns:
Throws:
isEnabled
public boolean isEnabled()
Get the isEnabled property: Whether this channel is enabled for the bot.
Returns:
magicCode
public String magicCode()
Get the magicCode property: The magic code for setting up the modern authentication.
Returns:
password
public String password()
Get the password property: The password for the email address. Value only returned through POST to the action Channel List API, otherwise empty.
Returns:
toJson
validate
public void validate()
Validates the instance.
withAuthMethod
public EmailChannelProperties withAuthMethod(EmailChannelAuthMethod authMethod)
Set the authMethod property: Email channel auth method. 0 Password (Default); 1 Graph.
Parameters:
Returns:
withEmailAddress
public EmailChannelProperties withEmailAddress(String emailAddress)
Set the emailAddress property: The email address.
Parameters:
Returns:
withIsEnabled
public EmailChannelProperties withIsEnabled(boolean isEnabled)
Set the isEnabled property: Whether this channel is enabled for the bot.
Parameters:
Returns:
withMagicCode
public EmailChannelProperties withMagicCode(String magicCode)
Set the magicCode property: The magic code for setting up the modern authentication.
Parameters:
Returns:
withPassword
public EmailChannelProperties withPassword(String password)
Set the password property: The password for the email address. Value only returned through POST to the action Channel List API, otherwise empty.
Parameters:
Returns: