Share via


KikChannelProperties Class

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

Implements

public final class KikChannelProperties
implements JsonSerializable<KikChannelProperties>

The parameters to provide for the Kik channel.

Constructor Summary

Constructor Description
KikChannelProperties()

Creates an instance of KikChannelProperties class.

Method Summary

Modifier and Type Method and Description
String apiKey()

Get the apiKey property: Kik API key.

static KikChannelProperties fromJson(JsonReader jsonReader)

Reads an instance of KikChannelProperties from the JsonReader.

boolean isEnabled()

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

Boolean isValidated()

Get the isValidated property: Whether this channel is validated for the bot.

JsonWriter toJson(JsonWriter jsonWriter)
String username()

Get the username property: The Kik user name.

void validate()

Validates the instance.

KikChannelProperties withApiKey(String apiKey)

Set the apiKey property: Kik API key.

KikChannelProperties withIsEnabled(boolean isEnabled)

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

KikChannelProperties withIsValidated(Boolean isValidated)

Set the isValidated property: Whether this channel is validated for the bot.

KikChannelProperties withUsername(String username)

Set the username property: The Kik user name.

Methods inherited from java.lang.Object

Constructor Details

KikChannelProperties

public KikChannelProperties()

Creates an instance of KikChannelProperties class.

Method Details

apiKey

public String apiKey()

Get the apiKey property: Kik API key. Value only returned through POST to the action Channel List API, otherwise empty.

Returns:

the apiKey value.

fromJson

public static KikChannelProperties fromJson(JsonReader jsonReader)

Reads an instance of KikChannelProperties from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

isValidated

public Boolean isValidated()

Get the isValidated property: Whether this channel is validated for the bot.

Returns:

the isValidated value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

username

public String username()

Get the username property: The Kik user name.

Returns:

the username value.

validate

public void validate()

Validates the instance.

withApiKey

public KikChannelProperties withApiKey(String apiKey)

Set the apiKey property: Kik API key. Value only returned through POST to the action Channel List API, otherwise empty.

Parameters:

apiKey - the apiKey value to set.

Returns:

the KikChannelProperties object itself.

withIsEnabled

public KikChannelProperties withIsEnabled(boolean isEnabled)

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

Parameters:

isEnabled - the isEnabled value to set.

Returns:

the KikChannelProperties object itself.

withIsValidated

public KikChannelProperties withIsValidated(Boolean isValidated)

Set the isValidated property: Whether this channel is validated for the bot.

Parameters:

isValidated - the isValidated value to set.

Returns:

the KikChannelProperties object itself.

withUsername

public KikChannelProperties withUsername(String username)

Set the username property: The Kik user name.

Parameters:

username - the username value to set.

Returns:

the KikChannelProperties object itself.

Applies to