Class ConnectionSettingParameter
java.lang.Object
com.azure.resourcemanager.botservice.models.ConnectionSettingParameter
- All Implemented Interfaces:
com.azure.json.JsonSerializable<ConnectionSettingParameter>
public final class ConnectionSettingParameter
extends Object
implements com.azure.json.JsonSerializable<ConnectionSettingParameter>
Extra Parameter in a Connection Setting Properties to indicate service provider specific properties.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of ConnectionSettingParameter class. -
Method Summary
Modifier and TypeMethodDescriptionstatic ConnectionSettingParameterfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of ConnectionSettingParameter from the JsonReader.key()Get the key property: Key for the Connection Setting Parameter.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.value()Get the value property: Value associated with the Connection Setting Parameter.Set the key property: Key for the Connection Setting Parameter.Set the value property: Value associated with the Connection Setting Parameter.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
-
ConnectionSettingParameter
public ConnectionSettingParameter()Creates an instance of ConnectionSettingParameter class.
-
-
Method Details
-
key
Get the key property: Key for the Connection Setting Parameter.- Returns:
- the key value.
-
withKey
Set the key property: Key for the Connection Setting Parameter.- Parameters:
key- the key value to set.- Returns:
- the ConnectionSettingParameter object itself.
-
value
Get the value property: Value associated with the Connection Setting Parameter.- Returns:
- the value value.
-
withValue
Set the value property: Value associated with the Connection Setting Parameter.- Parameters:
value- the value value to set.- Returns:
- the ConnectionSettingParameter 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<ConnectionSettingParameter>- Throws:
IOException
-
fromJson
public static ConnectionSettingParameter fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of ConnectionSettingParameter from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of ConnectionSettingParameter 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 ConnectionSettingParameter.
-