com.pulumi.consul.inputs.GetCatalogServicesQueryOption Maven / Gradle / Ivy
// *** 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.consul.inputs;
import com.pulumi.core.annotations.Import;
import java.lang.Boolean;
import java.lang.Integer;
import java.lang.String;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
public final class GetCatalogServicesQueryOption extends com.pulumi.resources.InvokeArgs {
public static final GetCatalogServicesQueryOption Empty = new GetCatalogServicesQueryOption();
/**
* When `true`, the default, allow responses from
* Consul servers that are followers.
*
*/
@Import(name="allowStale")
private @Nullable Boolean allowStale;
/**
* @return When `true`, the default, allow responses from
* Consul servers that are followers.
*
*/
public Optional allowStale() {
return Optional.ofNullable(this.allowStale);
}
/**
* The Consul datacenter to query. Defaults to the
* same value found in `query_options` parameter specified below, or if that is
* empty, the `datacenter` value found in the Consul agent that this provider is
* configured to talk to.
*
*/
@Import(name="datacenter")
private @Nullable String datacenter;
/**
* @return The Consul datacenter to query. Defaults to the
* same value found in `query_options` parameter specified below, or if that is
* empty, the `datacenter` value found in the Consul agent that this provider is
* configured to talk to.
*
*/
public Optional datacenter() {
return Optional.ofNullable(this.datacenter);
}
/**
* The namespace to lookup the services.
*
*/
@Import(name="namespace")
private @Nullable String namespace;
/**
* @return The namespace to lookup the services.
*
*/
public Optional namespace() {
return Optional.ofNullable(this.namespace);
}
@Import(name="near")
private @Nullable String near;
public Optional near() {
return Optional.ofNullable(this.near);
}
@Import(name="nodeMeta")
private @Nullable Map nodeMeta;
public Optional
© 2015 - 2025 Weber Informatics LLC | Privacy Policy