EmailChannelProperties Class

  • java.lang.Object
    • com.azure.resourcemanager.botservice.models.EmailChannelProperties

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 EmailChannelProperties class.

Method Summary

Modifier and Type Method and Description
EmailChannelAuthMethod authMethod()

Get the authMethod property: Email channel auth method.

String emailAddress()

Get the emailAddress property: The email address.

static EmailChannelProperties fromJson(JsonReader jsonReader)

Reads an instance of EmailChannelProperties from the JsonReader.

boolean isEnabled()

Get the isEnabled property: Whether this channel is enabled for the bot.

String magicCode()

Get the magicCode property: The magic code for setting up the modern authentication.

String password()

Get the password property: The password for the email address.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

EmailChannelProperties withAuthMethod(EmailChannelAuthMethod authMethod)

Set the authMethod property: Email channel auth method.

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 withMagicCode(String magicCode)

Set the magicCode property: The magic code for setting up the modern authentication.

EmailChannelProperties 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:

the authMethod value.

emailAddress

public String emailAddress()

Get the emailAddress property: The email address.

Returns:

the emailAddress value.

fromJson

public static EmailChannelProperties fromJson(JsonReader jsonReader)

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:

IOException

- If the deserialized JSON object was missing any required properties.

isEnabled

public boolean isEnabled()

Get the isEnabled property: Whether this channel is enabled for the bot.

Returns:

the isEnabled value.

magicCode

public String magicCode()

Get the magicCode property: The magic code for setting up the modern authentication.

Returns:

the magicCode value.

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.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

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:

authMethod - the authMethod value to set.

Returns:

the EmailChannelProperties object itself.

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.

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.

withMagicCode

public EmailChannelProperties withMagicCode(String magicCode)

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.

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.

Applies to