LinkedDatabase Class

  • java.lang.Object
    • com.azure.resourcemanager.redisenterprise.models.LinkedDatabase

Implements

public final class LinkedDatabase
implements JsonSerializable<LinkedDatabase>

Linked Database Specifies details of a linked database resource.

Constructor Summary

Constructor Description
LinkedDatabase()

Creates an instance of LinkedDatabase class.

Method Summary

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

Reads an instance of LinkedDatabase from the JsonReader.

String id()

Get the id property: Resource ID of a database resource to link with this database.

LinkState state()

Get the state property: State of the link between the database resources.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

LinkedDatabase withId(String id)

Set the id property: Resource ID of a database resource to link with this database.

Methods inherited from java.lang.Object

Constructor Details

LinkedDatabase

public LinkedDatabase()

Creates an instance of LinkedDatabase class.

Method Details

fromJson

public static LinkedDatabase fromJson(JsonReader jsonReader)

Reads an instance of LinkedDatabase from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

id

public String id()

Get the id property: Resource ID of a database resource to link with this database.

Returns:

the id value.

state

public LinkState state()

Get the state property: State of the link between the database resources.

Returns:

the state value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withId

public LinkedDatabase withId(String id)

Set the id property: Resource ID of a database resource to link with this database.

Parameters:

id - the id value to set.

Returns:

the LinkedDatabase object itself.

Applies to