
com.azure.resourcemanager.search.fluent.models.QueryKeyInner Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-resourcemanager-search Show documentation
Show all versions of azure-resourcemanager-search Show documentation
This package contains Microsoft Azure Cognitive Search Management SDK. For documentation on how to use this package, please see https://aka.ms/azure-sdk-java-mgmt
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.search.fluent.models;
import com.azure.core.annotation.Immutable;
import com.fasterxml.jackson.annotation.JsonProperty;
/** Describes an API key for a given search service that has permissions for query operations only. */
@Immutable
public final class QueryKeyInner {
/*
* The name of the query API key; may be empty.
*/
@JsonProperty(value = "name", access = JsonProperty.Access.WRITE_ONLY)
private String name;
/*
* The value of the query API key.
*/
@JsonProperty(value = "key", access = JsonProperty.Access.WRITE_ONLY)
private String key;
/** Creates an instance of QueryKeyInner class. */
public QueryKeyInner() {
}
/**
* Get the name property: The name of the query API key; may be empty.
*
* @return the name value.
*/
public String name() {
return this.name;
}
/**
* Get the key property: The value of the query API key.
*
* @return the key value.
*/
public String key() {
return this.key;
}
/**
* Validates the instance.
*
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy