Freigeben über


AdminKeyResultInner Class

  • java.lang.Object
    • com.azure.resourcemanager.search.fluent.models.AdminKeyResultInner

Implements

public final class AdminKeyResultInner
implements JsonSerializable<AdminKeyResultInner>

Response containing the primary and secondary admin API keys for a given search service.

Constructor Summary

Constructor Description
AdminKeyResultInner()

Creates an instance of AdminKeyResultInner class.

Method Summary

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

Reads an instance of AdminKeyResultInner from the JsonReader.

String primaryKey()

Get the primaryKey property: The primary admin API key of the search service.

String secondaryKey()

Get the secondaryKey property: The secondary admin API key of the search service.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

Methods inherited from java.lang.Object

Constructor Details

AdminKeyResultInner

public AdminKeyResultInner()

Creates an instance of AdminKeyResultInner class.

Method Details

fromJson

public static AdminKeyResultInner fromJson(JsonReader jsonReader)

Reads an instance of AdminKeyResultInner from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

primaryKey

public String primaryKey()

Get the primaryKey property: The primary admin API key of the search service.

Returns:

the primaryKey value.

secondaryKey

public String secondaryKey()

Get the secondaryKey property: The secondary admin API key of the search service.

Returns:

the secondaryKey value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

Applies to