
com.pulumi.consul.inputs.GetCatalogServicePlainArgs 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.consul.inputs.GetCatalogServiceQueryOption;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
public final class GetCatalogServicePlainArgs extends com.pulumi.resources.InvokeArgs {
public static final GetCatalogServicePlainArgs Empty = new GetCatalogServicePlainArgs();
/**
* 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);
}
@Import(name="filter")
private @Nullable String filter;
public Optional filter() {
return Optional.ofNullable(this.filter);
}
/**
* The service name to select.
*
*/
@Import(name="name", required=true)
private String name;
/**
* @return The service name to select.
*
*/
public String name() {
return this.name;
}
/**
* See below.
*
*/
@Import(name="queryOptions")
private @Nullable List queryOptions;
/**
* @return See below.
*
*/
public Optional> queryOptions() {
return Optional.ofNullable(this.queryOptions);
}
/**
* A single tag that can be used to filter the list of nodes
* to return based on a single matching tag..
*
*/
@Import(name="tag")
private @Nullable String tag;
/**
* @return A single tag that can be used to filter the list of nodes
* to return based on a single matching tag..
*
*/
public Optional tag() {
return Optional.ofNullable(this.tag);
}
private GetCatalogServicePlainArgs() {}
private GetCatalogServicePlainArgs(GetCatalogServicePlainArgs $) {
this.datacenter = $.datacenter;
this.filter = $.filter;
this.name = $.name;
this.queryOptions = $.queryOptions;
this.tag = $.tag;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(GetCatalogServicePlainArgs defaults) {
return new Builder(defaults);
}
public static final class Builder {
private GetCatalogServicePlainArgs $;
public Builder() {
$ = new GetCatalogServicePlainArgs();
}
public Builder(GetCatalogServicePlainArgs defaults) {
$ = new GetCatalogServicePlainArgs(Objects.requireNonNull(defaults));
}
/**
* @param datacenter 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.
*
* @return builder
*
*/
public Builder datacenter(@Nullable String datacenter) {
$.datacenter = datacenter;
return this;
}
public Builder filter(@Nullable String filter) {
$.filter = filter;
return this;
}
/**
* @param name The service name to select.
*
* @return builder
*
*/
public Builder name(String name) {
$.name = name;
return this;
}
/**
* @param queryOptions See below.
*
* @return builder
*
*/
public Builder queryOptions(@Nullable List queryOptions) {
$.queryOptions = queryOptions;
return this;
}
/**
* @param queryOptions See below.
*
* @return builder
*
*/
public Builder queryOptions(GetCatalogServiceQueryOption... queryOptions) {
return queryOptions(List.of(queryOptions));
}
/**
* @param tag A single tag that can be used to filter the list of nodes
* to return based on a single matching tag..
*
* @return builder
*
*/
public Builder tag(@Nullable String tag) {
$.tag = tag;
return this;
}
public GetCatalogServicePlainArgs build() {
if ($.name == null) {
throw new MissingRequiredPropertyException("GetCatalogServicePlainArgs", "name");
}
return $;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy