Share via


SlackChannel Class

public final class SlackChannel
extends Channel

Slack channel definition.

Constructor Summary

Constructor Description
SlackChannel()

Creates an instance of SlackChannel class.

Method Summary

Modifier and Type Method and Description
String channelName()

Get the channelName property: The channel name.

static SlackChannel fromJson(JsonReader jsonReader)

Reads an instance of SlackChannel from the JsonReader.

SlackChannelProperties properties()

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

String provisioningState()

Get the provisioningState property: Provisioning state of the resource.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

SlackChannel withEtag(String etag)

Set the etag property: Entity Tag of the resource.

SlackChannel withLocation(String location)

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

SlackChannel withProperties(SlackChannelProperties properties)

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

Methods inherited from Channel

Methods inherited from java.lang.Object

Constructor Details

SlackChannel

public SlackChannel()

Creates an instance of SlackChannel class.

Method Details

channelName

public String channelName()

Get the channelName property: The channel name.

Overrides:

SlackChannel.channelName()

Returns:

the channelName value.

fromJson

public static SlackChannel fromJson(JsonReader jsonReader)

Reads an instance of SlackChannel from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

properties

public SlackChannelProperties properties()

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

Returns:

the properties value.

provisioningState

public String provisioningState()

Get the provisioningState property: Provisioning state of the resource.

Overrides:

SlackChannel.provisioningState()

Returns:

the provisioningState value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

SlackChannel.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

Overrides:

SlackChannel.validate()

withEtag

public SlackChannel withEtag(String etag)

Set the etag property: Entity Tag of the resource.

Overrides:

SlackChannel.withEtag(String etag)

Parameters:

etag

withLocation

public SlackChannel withLocation(String location)

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

Overrides:

SlackChannel.withLocation(String location)

Parameters:

location

withProperties

public SlackChannel withProperties(SlackChannelProperties properties)

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

Parameters:

properties - the properties value to set.

Returns:

the SlackChannel object itself.

Applies to