com.pulumi.consul.inputs.GetCatalogNodesQueryOption Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of consul Show documentation
Show all versions of consul Show documentation
A Pulumi package for creating and managing consul 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.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 GetCatalogNodesQueryOption extends com.pulumi.resources.InvokeArgs {
public static final GetCatalogNodesQueryOption Empty = new GetCatalogNodesQueryOption();
/**
* 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 then the datacenter in the provider setup.
*
*/
@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 then the datacenter in the provider setup.
*
*/
public Optional datacenter() {
return Optional.ofNullable(this.datacenter);
}
@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