Share via


SmsChannel Class

public final class SmsChannel
extends Channel

Sms channel definition.

Constructor Summary

Constructor Description
SmsChannel()

Creates an instance of SmsChannel class.

Method Summary

Modifier and Type Method and Description
String channelName()

Get the channelName property: The channel name.

static SmsChannel fromJson(JsonReader jsonReader)

Reads an instance of SmsChannel from the JsonReader.

SmsChannelProperties properties()

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

String provisioningState()

Get the provisioningState property: Provisioning state of the resource.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

SmsChannel withEtag(String etag)

Set the etag property: Entity Tag of the resource.

SmsChannel withLocation(String location)

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

SmsChannel withProperties(SmsChannelProperties properties)

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

Methods inherited from Channel

Methods inherited from java.lang.Object

Constructor Details

SmsChannel

public SmsChannel()

Creates an instance of SmsChannel class.

Method Details

channelName

public String channelName()

Get the channelName property: The channel name.

Overrides:

SmsChannel.channelName()

Returns:

the channelName value.

fromJson

public static SmsChannel fromJson(JsonReader jsonReader)

Reads an instance of SmsChannel from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of SmsChannel 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 SmsChannel.

properties

public SmsChannelProperties properties()

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

Returns:

the properties value.

provisioningState

public String provisioningState()

Get the provisioningState property: Provisioning state of the resource.

Overrides:

SmsChannel.provisioningState()

Returns:

the provisioningState value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

SmsChannel.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

Overrides:

SmsChannel.validate()

withEtag

public SmsChannel withEtag(String etag)

Set the etag property: Entity Tag of the resource.

Overrides:

SmsChannel.withEtag(String etag)

Parameters:

etag

withLocation

public SmsChannel withLocation(String location)

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

Overrides:

SmsChannel.withLocation(String location)

Parameters:

location

withProperties

public SmsChannel withProperties(SmsChannelProperties properties)

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

Parameters:

properties - the properties value to set.

Returns:

the SmsChannel object itself.

Applies to