Compartir a través de


DatabaseAccountLocation Class

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 DatabaseAccountLocation object from a JSON string.

DatabaseAccountLocation(JSONObject jsonObject)

Creates a new instance of the DatabaseAccountLocation object from a JSON object.

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

java.lang.Object.clone java.lang.Object.equals java.lang.Object.finalize java.lang.Object.getClass java.lang.Object.hashCode java.lang.Object.notify java.lang.Object.notifyAll java.lang.Object.wait java.lang.Object.wait java.lang.Object.wait

Constructor Details

DatabaseAccountLocation

public DatabaseAccountLocation(String jsonString)

Creates a new instance of the DatabaseAccountLocation object from a JSON string.

Parameters:

jsonString - the JSON string that represents the DatabaseAccountLocation object.

DatabaseAccountLocation

public DatabaseAccountLocation(JSONObject jsonObject)

Creates a new instance of the DatabaseAccountLocation object from a JSON object.

Parameters:

jsonObject - the JSON object that represents the DatabaseAccountLocation object.

Method Details

getEndpoint

public String getEndpoint()

Gets The endpoint (the URI) of the database account location.

Returns:

the endpoint of the database account location.

getName

public String getName()

Gets The name of the database account location.

Returns:

the name of the database account location.

setEndpoint

public void setEndpoint(String endpoint)

Sets the endpoint (the URI) of the database account location.

Parameters:

endpoint - the endpoint of the database account location.

setName

public void setName(String name)

Sets the name of the database account location.

Parameters:

name - the name of the database account location.

Applies to