Class EmailChannelProperties
java.lang.Object
com.azure.resourcemanager.botservice.models.EmailChannelProperties
- All Implemented Interfaces:
com.azure.json.JsonSerializable<EmailChannelProperties>
public final class EmailChannelProperties
extends Object
implements com.azure.json.JsonSerializable<EmailChannelProperties>
The parameters to provide for the Email channel.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of EmailChannelProperties class. -
Method Summary
Modifier and TypeMethodDescriptionGet the authMethod property: Email channel auth method. 0 Password (Default); 1 Graph.Get the emailAddress property: The email address.static EmailChannelPropertiesfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of EmailChannelProperties from the JsonReader.booleanGet the isEnabled property: Whether this channel is enabled for the bot.Get the magicCode property: The magic code for setting up the modern authentication.password()Get the password property: The password for the email address.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withAuthMethod(EmailChannelAuthMethod authMethod) Set the authMethod property: Email channel auth method. 0 Password (Default); 1 Graph.withEmailAddress(String emailAddress) Set the emailAddress property: The email address.withIsEnabled(boolean isEnabled) Set the isEnabled property: Whether this channel is enabled for the bot.withMagicCode(String magicCode) Set the magicCode property: The magic code for setting up the modern authentication.withPassword(String password) Set the password property: The password for the email address.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
EmailChannelProperties
public EmailChannelProperties()Creates an instance of EmailChannelProperties class.
-
-
Method Details
-
emailAddress
Get the emailAddress property: The email address.- Returns:
- the emailAddress value.
-
withEmailAddress
Set the emailAddress property: The email address.- Parameters:
emailAddress- the emailAddress value to set.- Returns:
- the EmailChannelProperties object itself.
-
authMethod
Get the authMethod property: Email channel auth method. 0 Password (Default); 1 Graph.- Returns:
- the authMethod value.
-
withAuthMethod
Set the authMethod property: Email channel auth method. 0 Password (Default); 1 Graph.- Parameters:
authMethod- the authMethod value to set.- Returns:
- the EmailChannelProperties object itself.
-
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:
- the password value.
-
withPassword
Set the password property: The password for the email address. Value only returned through POST to the action Channel List API, otherwise empty.- Parameters:
password- the password value to set.- Returns:
- the EmailChannelProperties object itself.
-
magicCode
Get the magicCode property: The magic code for setting up the modern authentication.- Returns:
- the magicCode value.
-
withMagicCode
Set the magicCode property: The magic code for setting up the modern authentication.- Parameters:
magicCode- the magicCode value to set.- Returns:
- the EmailChannelProperties object itself.
-
isEnabled
public boolean isEnabled()Get the isEnabled property: Whether this channel is enabled for the bot.- Returns:
- the isEnabled value.
-
withIsEnabled
Set the isEnabled property: Whether this channel is enabled for the bot.- Parameters:
isEnabled- the isEnabled value to set.- Returns:
- the EmailChannelProperties object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<EmailChannelProperties>- Throws:
IOException
-
fromJson
public static EmailChannelProperties fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of EmailChannelProperties from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of EmailChannelProperties if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IllegalStateException- If the deserialized JSON object was missing any required properties.IOException- If an error occurs while reading the EmailChannelProperties.
-