Share via


KikChannel Class

public final class KikChannel
extends Channel

Kik channel definition.

Constructor Summary

Constructor Description
KikChannel()

Creates an instance of KikChannel class.

Method Summary

Modifier and Type Method and Description
String channelName()

Get the channelName property: The channel name.

static KikChannel fromJson(JsonReader jsonReader)

Reads an instance of KikChannel from the JsonReader.

KikChannelProperties properties()

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

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

KikChannel withEtag(String etag)

Set the etag property: Entity Tag of the resource.

KikChannel withLocation(String location)

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

KikChannel withProperties(KikChannelProperties properties)

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

Methods inherited from Channel

Methods inherited from java.lang.Object

Constructor Details

KikChannel

public KikChannel()

Creates an instance of KikChannel class.

Method Details

channelName

public String channelName()

Get the channelName property: The channel name.

Overrides:

KikChannel.channelName()

Returns:

the channelName value.

fromJson

public static KikChannel fromJson(JsonReader jsonReader)

Reads an instance of KikChannel from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

properties

public KikChannelProperties properties()

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

Returns:

the properties value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

KikChannel.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

Overrides:

KikChannel.validate()

withEtag

public KikChannel withEtag(String etag)

Set the etag property: Entity Tag of the resource.

Overrides:

KikChannel.withEtag(String etag)

Parameters:

etag

withLocation

public KikChannel withLocation(String location)

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

Overrides:

KikChannel.withLocation(String location)

Parameters:

location

withProperties

public KikChannel withProperties(KikChannelProperties properties)

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

Parameters:

properties - the properties value to set.

Returns:

the KikChannel object itself.

Applies to