com.pulumi.azurenative.search.outputs.QueryKeyResponse Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-native Show documentation
Show all versions of azure-native Show documentation
A native Pulumi package for creating and managing Azure resources.
// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
package com.pulumi.azurenative.search.outputs;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;
@CustomType
public final class QueryKeyResponse {
/**
* @return The value of the query API key.
*
*/
private String key;
/**
* @return The name of the query API key; may be empty.
*
*/
private String name;
private QueryKeyResponse() {}
/**
* @return The value of the query API key.
*
*/
public String key() {
return this.key;
}
/**
* @return The name of the query API key; may be empty.
*
*/
public String name() {
return this.name;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(QueryKeyResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private String key;
private String name;
public Builder() {}
public Builder(QueryKeyResponse defaults) {
Objects.requireNonNull(defaults);
this.key = defaults.key;
this.name = defaults.name;
}
@CustomType.Setter
public Builder key(String key) {
if (key == null) {
throw new MissingRequiredPropertyException("QueryKeyResponse", "key");
}
this.key = key;
return this;
}
@CustomType.Setter
public Builder name(String name) {
if (name == null) {
throw new MissingRequiredPropertyException("QueryKeyResponse", "name");
}
this.name = name;
return this;
}
public QueryKeyResponse build() {
final var _resultValue = new QueryKeyResponse();
_resultValue.key = key;
_resultValue.name = name;
return _resultValue;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy