Partager via


ConnStringValueTypePair Class

  • java.lang.Object
    • com.azure.resourcemanager.appservice.models.ConnStringValueTypePair

Implements

public final class ConnStringValueTypePair
implements JsonSerializable<ConnStringValueTypePair>

Database connection string value to type pair.

Constructor Summary

Constructor Description
ConnStringValueTypePair()

Creates an instance of ConnStringValueTypePair class.

Method Summary

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

Reads an instance of ConnStringValueTypePair from the JsonReader.

JsonWriter toJson(JsonWriter jsonWriter)
ConnectionStringType type()

Get the type property: Type of database.

void validate()

Validates the instance.

String value()

Get the value property: Value of pair.

ConnStringValueTypePair withType(ConnectionStringType type)

Set the type property: Type of database.

ConnStringValueTypePair withValue(String value)

Set the value property: Value of pair.

Methods inherited from java.lang.Object

Constructor Details

ConnStringValueTypePair

public ConnStringValueTypePair()

Creates an instance of ConnStringValueTypePair class.

Method Details

fromJson

public static ConnStringValueTypePair fromJson(JsonReader jsonReader)

Reads an instance of ConnStringValueTypePair from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public ConnectionStringType type()

Get the type property: Type of database.

Returns:

the type value.

validate

public void validate()

Validates the instance.

value

public String value()

Get the value property: Value of pair.

Returns:

the value value.

withType

public ConnStringValueTypePair withType(ConnectionStringType type)

Set the type property: Type of database.

Parameters:

type - the type value to set.

Returns:

the ConnStringValueTypePair object itself.

withValue

public ConnStringValueTypePair withValue(String value)

Set the value property: Value of pair.

Parameters:

value - the value value to set.

Returns:

the ConnStringValueTypePair object itself.

Applies to