DatabaseAccountLocation Class
- java.
lang. Object - com.
microsoft. azure. documentdb. JsonSerializable - com.
microsoft. azure. documentdb. DatabaseAccountLocation
- com.
- com.
public class DatabaseAccountLocation
extends JsonSerializable
Represents the location of a database account in the Azure Cosmos DB database service.
Constructor Summary
Constructor | Description |
---|---|
DatabaseAccountLocation(String jsonString) |
Creates a new instance of the Database |
DatabaseAccountLocation(JSONObject jsonObject) |
Creates a new instance of the Database |
Method Summary
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getEndpoint()
Gets The endpoint (the URI) of the database account location. |
java.lang.String |
getName()
Gets The name of the database account location. |
void |
setEndpoint(String endpoint)
Sets the endpoint (the URI) of the database account location. |
void |
setName(String name)
Sets the name of the database account location. |
Methods inherited from JsonSerializable
Methods inherited from java.lang.Object
Constructor Details
DatabaseAccountLocation
public DatabaseAccountLocation(String jsonString)
Creates a new instance of the DatabaseAccountLocation object from a JSON string.
Parameters:
DatabaseAccountLocation
public DatabaseAccountLocation(JSONObject jsonObject)
Creates a new instance of the DatabaseAccountLocation object from a JSON object.
Parameters:
Method Details
getEndpoint
public String getEndpoint()
Gets The endpoint (the URI) of the database account location.
Returns:
getName
public String getName()
Gets The name of the database account location.
Returns:
setEndpoint
public void setEndpoint(String endpoint)
Sets the endpoint (the URI) of the database account location.
Parameters:
setName
public void setName(String name)
Sets the name of the database account location.
Parameters:
Applies to
Azure SDK for Java