Class Channel
java.lang.Object
com.azure.resourcemanager.botservice.models.Channel
- All Implemented Interfaces:
com.azure.json.JsonSerializable<Channel>
- Direct Known Subclasses:
AcsChatChannel,AlexaChannel,DirectLineChannel,DirectLineSpeechChannel,EmailChannel,FacebookChannel,KikChannel,LineChannel,M365Extensions,MsTeamsChannel,Omnichannel,OutlookChannel,SearchAssistant,SkypeChannel,SlackChannel,SmsChannel,TelegramChannel,TelephonyChannel,WebChatChannel
Channel definition.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the channelName property: The channel name.etag()Get the etag property: Entity Tag of the resource.static ChannelfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of Channel from the JsonReader.location()Get the location property: Specifies the location of the resource.Get the provisioningState property: Provisioning state of the resource.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.Set the etag property: Entity Tag of the resource.withLocation(String location) Set the location property: Specifies the location of the resource.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
Channel
public Channel()Creates an instance of Channel class.
-
-
Method Details
-
channelName
Get the channelName property: The channel name.- Returns:
- the channelName value.
-
etag
Get the etag property: Entity Tag of the resource.- Returns:
- the etag value.
-
withEtag
Set the etag property: Entity Tag of the resource.- Parameters:
etag- the etag value to set.- Returns:
- the Channel object itself.
-
provisioningState
Get the provisioningState property: Provisioning state of the resource.- Returns:
- the provisioningState value.
-
location
Get the location property: Specifies the location of the resource.- Returns:
- the location value.
-
withLocation
Set the location property: Specifies the location of the resource.- Parameters:
location- the location value to set.- Returns:
- the Channel object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<Channel>- Throws:
IOException
-
fromJson
Reads an instance of Channel from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of Channel 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 Channel.
-