Class LinkedDatabase
- java.lang.Object
-
- com.azure.resourcemanager.redisenterprise.models.LinkedDatabase
-
public final class LinkedDatabase extends Object
Linked Database Specifies details of a linked database resource.
-
-
Constructor Summary
Constructors Constructor Description LinkedDatabase()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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.void
validate()
Validates the instance.LinkedDatabase
withId(String id)
Set the id property: Resource ID of a database resource to link with this database.
-
-
-
Method Detail
-
id
public String id()
Get the id property: Resource ID of a database resource to link with this database.- Returns:
- the id value.
-
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.
-
state
public LinkState state()
Get the state property: State of the link between the database resources.- Returns:
- the state value.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
-