Class MsTeamsChannelProperties
java.lang.Object
com.azure.resourcemanager.botservice.models.MsTeamsChannelProperties
- All Implemented Interfaces:
com.azure.json.JsonSerializable<MsTeamsChannelProperties>
public final class MsTeamsChannelProperties
extends Object
implements com.azure.json.JsonSerializable<MsTeamsChannelProperties>
The parameters to provide for the Microsoft Teams channel.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of MsTeamsChannelProperties class. -
Method Summary
Modifier and TypeMethodDescriptionGet the acceptedTerms property: Whether this channel accepted terms.Get the callingWebhook property: Webhook for Microsoft Teams channel calls.Get the deploymentEnvironment property: Deployment environment for Microsoft Teams channel calls.Get the enableCalling property: Enable calling for Microsoft Teams channel.static MsTeamsChannelPropertiesfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of MsTeamsChannelProperties from the JsonReader.Get the incomingCallRoute property: Webhook for Microsoft Teams channel calls.booleanGet the isEnabled property: Whether this channel is enabled for the bot.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withAcceptedTerms(Boolean acceptedTerms) Set the acceptedTerms property: Whether this channel accepted terms.withCallingWebhook(String callingWebhook) Set the callingWebhook property: Webhook for Microsoft Teams channel calls.withDeploymentEnvironment(String deploymentEnvironment) Set the deploymentEnvironment property: Deployment environment for Microsoft Teams channel calls.withEnableCalling(Boolean enableCalling) Set the enableCalling property: Enable calling for Microsoft Teams channel.withIncomingCallRoute(String incomingCallRoute) Set the incomingCallRoute property: Webhook for Microsoft Teams channel calls.withIsEnabled(boolean isEnabled) Set the isEnabled property: Whether this channel is enabled for the bot.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
-
MsTeamsChannelProperties
public MsTeamsChannelProperties()Creates an instance of MsTeamsChannelProperties class.
-
-
Method Details
-
enableCalling
Get the enableCalling property: Enable calling for Microsoft Teams channel.- Returns:
- the enableCalling value.
-
withEnableCalling
Set the enableCalling property: Enable calling for Microsoft Teams channel.- Parameters:
enableCalling- the enableCalling value to set.- Returns:
- the MsTeamsChannelProperties object itself.
-
callingWebhook
Get the callingWebhook property: Webhook for Microsoft Teams channel calls.- Returns:
- the callingWebhook value.
-
withCallingWebhook
Set the callingWebhook property: Webhook for Microsoft Teams channel calls.- Parameters:
callingWebhook- the callingWebhook value to set.- Returns:
- the MsTeamsChannelProperties object itself.
-
isEnabled
public boolean isEnabled()Get the isEnabled property: Whether this channel is enabled for the bot.- Returns:
- the isEnabled value.
-
withIsEnabled
Set the isEnabled property: Whether this channel is enabled for the bot.- Parameters:
isEnabled- the isEnabled value to set.- Returns:
- the MsTeamsChannelProperties object itself.
-
incomingCallRoute
Get the incomingCallRoute property: Webhook for Microsoft Teams channel calls.- Returns:
- the incomingCallRoute value.
-
withIncomingCallRoute
Set the incomingCallRoute property: Webhook for Microsoft Teams channel calls.- Parameters:
incomingCallRoute- the incomingCallRoute value to set.- Returns:
- the MsTeamsChannelProperties object itself.
-
deploymentEnvironment
Get the deploymentEnvironment property: Deployment environment for Microsoft Teams channel calls.- Returns:
- the deploymentEnvironment value.
-
withDeploymentEnvironment
Set the deploymentEnvironment property: Deployment environment for Microsoft Teams channel calls.- Parameters:
deploymentEnvironment- the deploymentEnvironment value to set.- Returns:
- the MsTeamsChannelProperties object itself.
-
acceptedTerms
Get the acceptedTerms property: Whether this channel accepted terms.- Returns:
- the acceptedTerms value.
-
withAcceptedTerms
Set the acceptedTerms property: Whether this channel accepted terms.- Parameters:
acceptedTerms- the acceptedTerms value to set.- Returns:
- the MsTeamsChannelProperties 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<MsTeamsChannelProperties>- Throws:
IOException
-
fromJson
public static MsTeamsChannelProperties fromJson(com.azure.json.JsonReader jsonReader) throws IOException 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:
IllegalStateException- If the deserialized JSON object was missing any required properties.IOException- If an error occurs while reading the MsTeamsChannelProperties.
-