java.lang.Object
com.azure.resourcemanager.cosmos.fluent.models.DatabaseAccountListReadOnlyKeysResultInner
Constructor Summary
Constructors
Creates an instance of DatabaseAccountListReadOnlyKeysResultInner class.
Method Summary
All Methods Static Methods Instance Methods Concrete Methods
fromJson (com.azure.json.JsonReader jsonReader)
Reads an instance of DatabaseAccountListReadOnlyKeysResultInner from the JsonReader.
Get the primaryReadonlyMasterKey property: Base 64 encoded value of the primary read-only key.
Get the secondaryReadonlyMasterKey property: Base 64 encoded value of the secondary read-only key.
com.azure.json.JsonWriter
toJson (com.azure.json.JsonWriter jsonWriter)
void
Methods inherited from class java.lang.Object
clone , equals , finalize , getClass , hashCode , notify , notifyAll , toString , wait , wait , wait
Methods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
Constructor Details
DatabaseAccountListReadOnlyKeysResultInner
public DatabaseAccountListReadOnlyKeysResultInner ()
Creates an instance of DatabaseAccountListReadOnlyKeysResultInner class.
Method Details
primaryReadonlyMasterKey
public String primaryReadonlyMasterKey ()
Get the primaryReadonlyMasterKey property: Base 64 encoded value of the primary read-only key.
Returns:
the primaryReadonlyMasterKey value.
secondaryReadonlyMasterKey
public String secondaryReadonlyMasterKey ()
Get the secondaryReadonlyMasterKey property: Base 64 encoded value of the secondary read-only key.
Returns:
the secondaryReadonlyMasterKey value.
validate
public void validate ()
Validates the instance.
Throws:
IllegalArgumentException - thrown if the instance is not valid.
fromJson
Reads an instance of DatabaseAccountListReadOnlyKeysResultInner from the JsonReader.
Parameters:
jsonReader - The JsonReader being read.
Returns:
An instance of DatabaseAccountListReadOnlyKeysResultInner if the JsonReader was pointing to an instance
of it, or null if it was pointing to JSON null.
Throws:
IOException - If an error occurs while reading the DatabaseAccountListReadOnlyKeysResultInner.