DatabaseAccountLocation Class

  • java.lang.Object

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.

Method Summary

Modifier and Type Method and Description
String getEndpoint()

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

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.

Inherited Members

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.

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