Share via


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