Partager via


DatabaseAccountListReadOnlyKeysResultInner Class

  • java.lang.Object
    • com.azure.resourcemanager.cosmos.fluent.models.DatabaseAccountListReadOnlyKeysResultInner

Implements

public class DatabaseAccountListReadOnlyKeysResultInner
implements JsonSerializable<DatabaseAccountListReadOnlyKeysResultInner>

The read-only access keys for the given database account.

Constructor Summary

Constructor Description
DatabaseAccountListReadOnlyKeysResultInner()

Creates an instance of DatabaseAccountListReadOnlyKeysResultInner class.

Method Summary

Modifier and Type Method and Description
static DatabaseAccountListReadOnlyKeysResultInner fromJson(JsonReader jsonReader)

Reads an instance of DatabaseAccountListReadOnlyKeysResultInner from the JsonReader.

String primaryReadonlyMasterKey()

Get the primaryReadonlyMasterKey property: Base 64 encoded value of the primary read-only key.

String secondaryReadonlyMasterKey()

Get the secondaryReadonlyMasterKey property: Base 64 encoded value of the secondary read-only key.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

Methods inherited from java.lang.Object

Constructor Details

DatabaseAccountListReadOnlyKeysResultInner

public DatabaseAccountListReadOnlyKeysResultInner()

Creates an instance of DatabaseAccountListReadOnlyKeysResultInner class.

Method Details

fromJson

public static DatabaseAccountListReadOnlyKeysResultInner fromJson(JsonReader jsonReader)

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.

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.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

Applies to