Partilhar via


AccessKeysInner Class

  • java.lang.Object
    • com.azure.resourcemanager.redisenterprise.fluent.models.AccessKeysInner

Implements

public final class AccessKeysInner
implements JsonSerializable<AccessKeysInner>

Access keys The secret access keys used for authenticating connections to redis.

Constructor Summary

Constructor Description
AccessKeysInner()

Creates an instance of AccessKeysInner class.

Method Summary

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

Reads an instance of AccessKeysInner from the JsonReader.

String primaryKey()

Get the primaryKey property: The current primary key that clients can use to authenticate.

String secondaryKey()

Get the secondaryKey property: The current secondary key that clients can use to authenticate.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

Methods inherited from java.lang.Object

Constructor Details

AccessKeysInner

public AccessKeysInner()

Creates an instance of AccessKeysInner class.

Method Details

fromJson

public static AccessKeysInner fromJson(JsonReader jsonReader)

Reads an instance of AccessKeysInner from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of AccessKeysInner 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 AccessKeysInner.

primaryKey

public String primaryKey()

Get the primaryKey property: The current primary key that clients can use to authenticate.

Returns:

the primaryKey value.

secondaryKey

public String secondaryKey()

Get the secondaryKey property: The current secondary key that clients can use to authenticate.

Returns:

the secondaryKey value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

Applies to