All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.consul.inputs.PreparedQueryDnsArgs Maven / Gradle / Ivy

There is a newer version: 3.13.0-alpha.1732771629
Show newest version
// *** 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.Output;
import com.pulumi.core.annotations.Import;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


public final class PreparedQueryDnsArgs extends com.pulumi.resources.ResourceArgs {

    public static final PreparedQueryDnsArgs Empty = new PreparedQueryDnsArgs();

    /**
     * The TTL to send when returning DNS results.
     * 
     */
    @Import(name="ttl")
    private @Nullable Output ttl;

    /**
     * @return The TTL to send when returning DNS results.
     * 
     */
    public Optional> ttl() {
        return Optional.ofNullable(this.ttl);
    }

    private PreparedQueryDnsArgs() {}

    private PreparedQueryDnsArgs(PreparedQueryDnsArgs $) {
        this.ttl = $.ttl;
    }

    public static Builder builder() {
        return new Builder();
    }
    public static Builder builder(PreparedQueryDnsArgs defaults) {
        return new Builder(defaults);
    }

    public static final class Builder {
        private PreparedQueryDnsArgs $;

        public Builder() {
            $ = new PreparedQueryDnsArgs();
        }

        public Builder(PreparedQueryDnsArgs defaults) {
            $ = new PreparedQueryDnsArgs(Objects.requireNonNull(defaults));
        }

        /**
         * @param ttl The TTL to send when returning DNS results.
         * 
         * @return builder
         * 
         */
        public Builder ttl(@Nullable Output ttl) {
            $.ttl = ttl;
            return this;
        }

        /**
         * @param ttl The TTL to send when returning DNS results.
         * 
         * @return builder
         * 
         */
        public Builder ttl(String ttl) {
            return ttl(Output.of(ttl));
        }

        public PreparedQueryDnsArgs build() {
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy