Class EmailChannelProperties
- java.lang.Object
-
- com.azure.resourcemanager.botservice.models.EmailChannelProperties
-
public final class EmailChannelProperties extends Object
The parameters to provide for the Email channel.
-
-
Constructor Summary
Constructors Constructor Description EmailChannelProperties()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
emailAddress()
Get the emailAddress property: The email address.boolean
isEnabled()
Get the isEnabled property: Whether this channel is enabled for the bot.String
password()
Get the password property: The password for the email address.void
validate()
Validates the instance.EmailChannelProperties
withEmailAddress(String emailAddress)
Set the emailAddress property: The email address.EmailChannelProperties
withIsEnabled(boolean isEnabled)
Set the isEnabled property: Whether this channel is enabled for the bot.EmailChannelProperties
withPassword(String password)
Set the password property: The password for the email address.
-
-
-
Method Detail
-
emailAddress
public String emailAddress()
Get the emailAddress property: The email address.- Returns:
- the emailAddress value.
-
withEmailAddress
public EmailChannelProperties withEmailAddress(String emailAddress)
Set the emailAddress property: The email address.- Parameters:
emailAddress
- the emailAddress value to set.- Returns:
- the EmailChannelProperties object itself.
-
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:
- the password value.
-
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:
password
- the password 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
public EmailChannelProperties withIsEnabled(boolean isEnabled)
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.
-
-