Share via


QueryKeyInner Class

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

Implements

public final class QueryKeyInner
implements JsonSerializable<QueryKeyInner>

Describes an API key for a given Azure AI Search service that conveys read-only permissions on the docs collection of an index.

Constructor Summary

Constructor Description
QueryKeyInner()

Creates an instance of QueryKeyInner class.

Method Summary

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

Reads an instance of QueryKeyInner from the JsonReader.

String key()

Get the key property: The value of the query API key.

String name()

Get the name property: The name of the query API key.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

Methods inherited from java.lang.Object

Constructor Details

QueryKeyInner

public QueryKeyInner()

Creates an instance of QueryKeyInner class.

Method Details

fromJson

public static QueryKeyInner fromJson(JsonReader jsonReader)

Reads an instance of QueryKeyInner from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

key

public String key()

Get the key property: The value of the query API key.

Returns:

the key value.

name

public String name()

Get the name property: The name of the query API key. Query names are optional, but assigning a name can help you remember how it's used.

Returns:

the name value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

Applies to