Share via


EmailChannel Class

public final class EmailChannel
extends Channel

Email channel definition.

Constructor Summary

Constructor Description
EmailChannel()

Creates an instance of EmailChannel class.

Method Summary

Modifier and Type Method and Description
String channelName()

Get the channelName property: The channel name.

static EmailChannel fromJson(JsonReader jsonReader)

Reads an instance of EmailChannel from the JsonReader.

EmailChannelProperties properties()

Get the properties property: The set of properties specific to email channel resource.

String provisioningState()

Get the provisioningState property: Provisioning state of the resource.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

EmailChannel withEtag(String etag)

Set the etag property: Entity Tag of the resource.

EmailChannel withLocation(String location)

Set the location property: Specifies the location of the resource.

EmailChannel withProperties(EmailChannelProperties properties)

Set the properties property: The set of properties specific to email channel resource.

Methods inherited from Channel

Methods inherited from java.lang.Object

Constructor Details

EmailChannel

public EmailChannel()

Creates an instance of EmailChannel class.

Method Details

channelName

public String channelName()

Get the channelName property: The channel name.

Overrides:

EmailChannel.channelName()

Returns:

the channelName value.

fromJson

public static EmailChannel fromJson(JsonReader jsonReader)

Reads an instance of EmailChannel from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of EmailChannel if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If an error occurs while reading the EmailChannel.

properties

public EmailChannelProperties properties()

Get the properties property: The set of properties specific to email channel resource.

Returns:

the properties value.

provisioningState

public String provisioningState()

Get the provisioningState property: Provisioning state of the resource.

Overrides:

EmailChannel.provisioningState()

Returns:

the provisioningState value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

EmailChannel.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

Overrides:

EmailChannel.validate()

withEtag

public EmailChannel withEtag(String etag)

Set the etag property: Entity Tag of the resource.

Overrides:

EmailChannel.withEtag(String etag)

Parameters:

etag

withLocation

public EmailChannel withLocation(String location)

Set the location property: Specifies the location of the resource.

Overrides:

EmailChannel.withLocation(String location)

Parameters:

location

withProperties

public EmailChannel withProperties(EmailChannelProperties properties)

Set the properties property: The set of properties specific to email channel resource.

Parameters:

properties - the properties value to set.

Returns:

the EmailChannel object itself.

Applies to