ConnStringInfo Class

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

Implements

public final class ConnStringInfo
implements JsonSerializable<ConnStringInfo>

Database connection string information.

Constructor Summary

Constructor Description
ConnStringInfo()

Creates an instance of ConnStringInfo class.

Method Summary

Modifier and Type Method and Description
String connectionString()

Get the connectionString property: Connection string value.

static ConnStringInfo fromJson(JsonReader jsonReader)

Reads an instance of ConnStringInfo from the JsonReader.

String name()

Get the name property: Name of connection string.

JsonWriter toJson(JsonWriter jsonWriter)
ConnectionStringType type()

Get the type property: Type of database.

void validate()

Validates the instance.

ConnStringInfo withConnectionString(String connectionString)

Set the connectionString property: Connection string value.

ConnStringInfo withName(String name)

Set the name property: Name of connection string.

ConnStringInfo withType(ConnectionStringType type)

Set the type property: Type of database.

Methods inherited from java.lang.Object

Constructor Details

ConnStringInfo

public ConnStringInfo()

Creates an instance of ConnStringInfo class.

Method Details

connectionString

public String connectionString()

Get the connectionString property: Connection string value.

Returns:

the connectionString value.

fromJson

public static ConnStringInfo fromJson(JsonReader jsonReader)

Reads an instance of ConnStringInfo from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

name

public String name()

Get the name property: Name of connection string.

Returns:

the name value.

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.

withConnectionString

public ConnStringInfo withConnectionString(String connectionString)

Set the connectionString property: Connection string value.

Parameters:

connectionString - the connectionString value to set.

Returns:

the ConnStringInfo object itself.

withName

public ConnStringInfo withName(String name)

Set the name property: Name of connection string.

Parameters:

name - the name value to set.

Returns:

the ConnStringInfo object itself.

withType

public ConnStringInfo withType(ConnectionStringType type)

Set the type property: Type of database.

Parameters:

type - the type value to set.

Returns:

the ConnStringInfo object itself.

Applies to