ConnectionSettingParameter Class

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

Implements

public final class ConnectionSettingParameter
implements JsonSerializable<ConnectionSettingParameter>

Extra Parameter in a Connection Setting Properties to indicate service provider specific properties.

Constructor Summary

Constructor Description
ConnectionSettingParameter()

Creates an instance of ConnectionSettingParameter class.

Method Summary

Modifier and Type Method and Description
static ConnectionSettingParameter fromJson(JsonReader jsonReader)

Reads an instance of ConnectionSettingParameter from the JsonReader.

String key()

Get the key property: Key for the Connection Setting Parameter.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

String value()

Get the value property: Value associated with the Connection Setting Parameter.

ConnectionSettingParameter withKey(String key)

Set the key property: Key for the Connection Setting Parameter.

ConnectionSettingParameter withValue(String value)

Set the value property: Value associated with the Connection Setting Parameter.

Methods inherited from java.lang.Object

Constructor Details

ConnectionSettingParameter

public ConnectionSettingParameter()

Creates an instance of ConnectionSettingParameter class.

Method Details

fromJson

public static ConnectionSettingParameter fromJson(JsonReader jsonReader)

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.

key

public String key()

Get the key property: Key for the Connection Setting Parameter.

Returns:

the key value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

value

public String value()

Get the value property: Value associated with the Connection Setting Parameter.

Returns:

the value value.

withKey

public ConnectionSettingParameter withKey(String key)

Set the key property: Key for the Connection Setting Parameter.

Parameters:

key - the key value to set.

Returns:

the ConnectionSettingParameter object itself.

withValue

public ConnectionSettingParameter withValue(String value)

Set the value property: Value associated with the Connection Setting Parameter.

Parameters:

value - the value value to set.

Returns:

the ConnectionSettingParameter object itself.

Applies to