Share via


MsTeamsChannelProperties Class

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

Implements

public final class MsTeamsChannelProperties
implements JsonSerializable<MsTeamsChannelProperties>

The parameters to provide for the Microsoft Teams channel.

Constructor Summary

Constructor Description
MsTeamsChannelProperties()

Creates an instance of MsTeamsChannelProperties class.

Method Summary

Modifier and Type Method and Description
Boolean acceptedTerms()

Get the acceptedTerms property: Whether this channel accepted terms.

String callingWebhook()

Get the callingWebhook property: Webhook for Microsoft Teams channel calls.

String deploymentEnvironment()

Get the deploymentEnvironment property: Deployment environment for Microsoft Teams channel calls.

Boolean enableCalling()

Get the enableCalling property: Enable calling for Microsoft Teams channel.

static MsTeamsChannelProperties fromJson(JsonReader jsonReader)

Reads an instance of MsTeamsChannelProperties from the JsonReader.

String incomingCallRoute()

Get the incomingCallRoute property: Webhook for Microsoft Teams channel calls.

boolean isEnabled()

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

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

MsTeamsChannelProperties withAcceptedTerms(Boolean acceptedTerms)

Set the acceptedTerms property: Whether this channel accepted terms.

MsTeamsChannelProperties withCallingWebhook(String callingWebhook)

Set the callingWebhook property: Webhook for Microsoft Teams channel calls.

MsTeamsChannelProperties withDeploymentEnvironment(String deploymentEnvironment)

Set the deploymentEnvironment property: Deployment environment for Microsoft Teams channel calls.

MsTeamsChannelProperties withEnableCalling(Boolean enableCalling)

Set the enableCalling property: Enable calling for Microsoft Teams channel.

MsTeamsChannelProperties withIncomingCallRoute(String incomingCallRoute)

Set the incomingCallRoute property: Webhook for Microsoft Teams channel calls.

MsTeamsChannelProperties withIsEnabled(boolean isEnabled)

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

Methods inherited from java.lang.Object

Constructor Details

MsTeamsChannelProperties

public MsTeamsChannelProperties()

Creates an instance of MsTeamsChannelProperties class.

Method Details

acceptedTerms

public Boolean acceptedTerms()

Get the acceptedTerms property: Whether this channel accepted terms.

Returns:

the acceptedTerms value.

callingWebhook

public String callingWebhook()

Get the callingWebhook property: Webhook for Microsoft Teams channel calls.

Returns:

the callingWebhook value.

deploymentEnvironment

public String deploymentEnvironment()

Get the deploymentEnvironment property: Deployment environment for Microsoft Teams channel calls.

Returns:

the deploymentEnvironment value.

enableCalling

public Boolean enableCalling()

Get the enableCalling property: Enable calling for Microsoft Teams channel.

Returns:

the enableCalling value.

fromJson

public static MsTeamsChannelProperties fromJson(JsonReader jsonReader)

Reads an instance of MsTeamsChannelProperties from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

incomingCallRoute

public String incomingCallRoute()

Get the incomingCallRoute property: Webhook for Microsoft Teams channel calls.

Returns:

the incomingCallRoute value.

isEnabled

public boolean isEnabled()

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

Returns:

the isEnabled value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withAcceptedTerms

public MsTeamsChannelProperties withAcceptedTerms(Boolean acceptedTerms)

Set the acceptedTerms property: Whether this channel accepted terms.

Parameters:

acceptedTerms - the acceptedTerms value to set.

Returns:

the MsTeamsChannelProperties object itself.

withCallingWebhook

public MsTeamsChannelProperties withCallingWebhook(String callingWebhook)

Set the callingWebhook property: Webhook for Microsoft Teams channel calls.

Parameters:

callingWebhook - the callingWebhook value to set.

Returns:

the MsTeamsChannelProperties object itself.

withDeploymentEnvironment

public MsTeamsChannelProperties withDeploymentEnvironment(String deploymentEnvironment)

Set the deploymentEnvironment property: Deployment environment for Microsoft Teams channel calls.

Parameters:

deploymentEnvironment - the deploymentEnvironment value to set.

Returns:

the MsTeamsChannelProperties object itself.

withEnableCalling

public MsTeamsChannelProperties withEnableCalling(Boolean enableCalling)

Set the enableCalling property: Enable calling for Microsoft Teams channel.

Parameters:

enableCalling - the enableCalling value to set.

Returns:

the MsTeamsChannelProperties object itself.

withIncomingCallRoute

public MsTeamsChannelProperties withIncomingCallRoute(String incomingCallRoute)

Set the incomingCallRoute property: Webhook for Microsoft Teams channel calls.

Parameters:

incomingCallRoute - the incomingCallRoute value to set.

Returns:

the MsTeamsChannelProperties object itself.

withIsEnabled

public MsTeamsChannelProperties withIsEnabled(boolean isEnabled)

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

Parameters:

isEnabled - the isEnabled value to set.

Returns:

the MsTeamsChannelProperties object itself.

Applies to