Share via


Omnichannel Class

public final class Omnichannel
extends Channel

Omnichannel channel definition.

Constructor Summary

Constructor Description
Omnichannel()

Creates an instance of Omnichannel class.

Method Summary

Modifier and Type Method and Description
String channelName()

Get the channelName property: The channel name.

static Omnichannel fromJson(JsonReader jsonReader)

Reads an instance of Omnichannel from the JsonReader.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

Omnichannel withEtag(String etag)

Set the etag property: Entity Tag of the resource.

Omnichannel withLocation(String location)

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

Methods inherited from Channel

Methods inherited from java.lang.Object

Constructor Details

Omnichannel

public Omnichannel()

Creates an instance of Omnichannel class.

Method Details

channelName

public String channelName()

Get the channelName property: The channel name.

Overrides:

Omnichannel.channelName()

Returns:

the channelName value.

fromJson

public static Omnichannel fromJson(JsonReader jsonReader)

Reads an instance of Omnichannel from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

Omnichannel.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

Overrides:

Omnichannel.validate()

withEtag

public Omnichannel withEtag(String etag)

Set the etag property: Entity Tag of the resource.

Overrides:

Omnichannel.withEtag(String etag)

Parameters:

etag

withLocation

public Omnichannel withLocation(String location)

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

Overrides:

Omnichannel.withLocation(String location)

Parameters:

location

Applies to