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

com.pulumi.azure.privatedns.inputs.ResolverForwardingRuleState Maven / Gradle / Ivy

Go to download

A Pulumi package for creating and managing Microsoft Azure cloud resources, based on the Terraform azurerm provider. We recommend using the [Azure Native provider](https://github.com/pulumi/pulumi-azure-native) to provision Azure infrastructure. Azure Native provides complete coverage of Azure resources and same-day access to new resources and resource updates.

There is a newer version: 6.10.0-alpha.1731737215
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.azure.privatedns.inputs;

import com.pulumi.azure.privatedns.inputs.ResolverForwardingRuleTargetDnsServerArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.Boolean;
import java.lang.String;
import java.util.List;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final ResolverForwardingRuleState Empty = new ResolverForwardingRuleState();

    /**
     * Specifies the ID of the Private DNS Resolver Forwarding Ruleset. Changing this forces a new Private DNS Resolver Forwarding Rule to be created.
     * 
     */
    @Import(name="dnsForwardingRulesetId")
    private @Nullable Output dnsForwardingRulesetId;

    /**
     * @return Specifies the ID of the Private DNS Resolver Forwarding Ruleset. Changing this forces a new Private DNS Resolver Forwarding Rule to be created.
     * 
     */
    public Optional> dnsForwardingRulesetId() {
        return Optional.ofNullable(this.dnsForwardingRulesetId);
    }

    /**
     * Specifies the domain name for the Private DNS Resolver Forwarding Rule. Changing this forces a new Private DNS Resolver Forwarding Rule to be created.
     * 
     */
    @Import(name="domainName")
    private @Nullable Output domainName;

    /**
     * @return Specifies the domain name for the Private DNS Resolver Forwarding Rule. Changing this forces a new Private DNS Resolver Forwarding Rule to be created.
     * 
     */
    public Optional> domainName() {
        return Optional.ofNullable(this.domainName);
    }

    /**
     * Specifies the state of the Private DNS Resolver Forwarding Rule. Defaults to `true`.
     * 
     */
    @Import(name="enabled")
    private @Nullable Output enabled;

    /**
     * @return Specifies the state of the Private DNS Resolver Forwarding Rule. Defaults to `true`.
     * 
     */
    public Optional> enabled() {
        return Optional.ofNullable(this.enabled);
    }

    /**
     * Metadata attached to the Private DNS Resolver Forwarding Rule.
     * 
     */
    @Import(name="metadata")
    private @Nullable Output> metadata;

    /**
     * @return Metadata attached to the Private DNS Resolver Forwarding Rule.
     * 
     */
    public Optional>> metadata() {
        return Optional.ofNullable(this.metadata);
    }

    /**
     * Specifies the name which should be used for this Private DNS Resolver Forwarding Rule. Changing this forces a new Private DNS Resolver Forwarding Rule to be created.
     * 
     */
    @Import(name="name")
    private @Nullable Output name;

    /**
     * @return Specifies the name which should be used for this Private DNS Resolver Forwarding Rule. Changing this forces a new Private DNS Resolver Forwarding Rule to be created.
     * 
     */
    public Optional> name() {
        return Optional.ofNullable(this.name);
    }

    /**
     * Can be specified multiple times to define multiple target DNS servers. Each `target_dns_servers` block as defined below.
     * 
     */
    @Import(name="targetDnsServers")
    private @Nullable Output> targetDnsServers;

    /**
     * @return Can be specified multiple times to define multiple target DNS servers. Each `target_dns_servers` block as defined below.
     * 
     */
    public Optional>> targetDnsServers() {
        return Optional.ofNullable(this.targetDnsServers);
    }

    private ResolverForwardingRuleState() {}

    private ResolverForwardingRuleState(ResolverForwardingRuleState $) {
        this.dnsForwardingRulesetId = $.dnsForwardingRulesetId;
        this.domainName = $.domainName;
        this.enabled = $.enabled;
        this.metadata = $.metadata;
        this.name = $.name;
        this.targetDnsServers = $.targetDnsServers;
    }

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

    public static final class Builder {
        private ResolverForwardingRuleState $;

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

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

        /**
         * @param dnsForwardingRulesetId Specifies the ID of the Private DNS Resolver Forwarding Ruleset. Changing this forces a new Private DNS Resolver Forwarding Rule to be created.
         * 
         * @return builder
         * 
         */
        public Builder dnsForwardingRulesetId(@Nullable Output dnsForwardingRulesetId) {
            $.dnsForwardingRulesetId = dnsForwardingRulesetId;
            return this;
        }

        /**
         * @param dnsForwardingRulesetId Specifies the ID of the Private DNS Resolver Forwarding Ruleset. Changing this forces a new Private DNS Resolver Forwarding Rule to be created.
         * 
         * @return builder
         * 
         */
        public Builder dnsForwardingRulesetId(String dnsForwardingRulesetId) {
            return dnsForwardingRulesetId(Output.of(dnsForwardingRulesetId));
        }

        /**
         * @param domainName Specifies the domain name for the Private DNS Resolver Forwarding Rule. Changing this forces a new Private DNS Resolver Forwarding Rule to be created.
         * 
         * @return builder
         * 
         */
        public Builder domainName(@Nullable Output domainName) {
            $.domainName = domainName;
            return this;
        }

        /**
         * @param domainName Specifies the domain name for the Private DNS Resolver Forwarding Rule. Changing this forces a new Private DNS Resolver Forwarding Rule to be created.
         * 
         * @return builder
         * 
         */
        public Builder domainName(String domainName) {
            return domainName(Output.of(domainName));
        }

        /**
         * @param enabled Specifies the state of the Private DNS Resolver Forwarding Rule. Defaults to `true`.
         * 
         * @return builder
         * 
         */
        public Builder enabled(@Nullable Output enabled) {
            $.enabled = enabled;
            return this;
        }

        /**
         * @param enabled Specifies the state of the Private DNS Resolver Forwarding Rule. Defaults to `true`.
         * 
         * @return builder
         * 
         */
        public Builder enabled(Boolean enabled) {
            return enabled(Output.of(enabled));
        }

        /**
         * @param metadata Metadata attached to the Private DNS Resolver Forwarding Rule.
         * 
         * @return builder
         * 
         */
        public Builder metadata(@Nullable Output> metadata) {
            $.metadata = metadata;
            return this;
        }

        /**
         * @param metadata Metadata attached to the Private DNS Resolver Forwarding Rule.
         * 
         * @return builder
         * 
         */
        public Builder metadata(Map metadata) {
            return metadata(Output.of(metadata));
        }

        /**
         * @param name Specifies the name which should be used for this Private DNS Resolver Forwarding Rule. Changing this forces a new Private DNS Resolver Forwarding Rule to be created.
         * 
         * @return builder
         * 
         */
        public Builder name(@Nullable Output name) {
            $.name = name;
            return this;
        }

        /**
         * @param name Specifies the name which should be used for this Private DNS Resolver Forwarding Rule. Changing this forces a new Private DNS Resolver Forwarding Rule to be created.
         * 
         * @return builder
         * 
         */
        public Builder name(String name) {
            return name(Output.of(name));
        }

        /**
         * @param targetDnsServers Can be specified multiple times to define multiple target DNS servers. Each `target_dns_servers` block as defined below.
         * 
         * @return builder
         * 
         */
        public Builder targetDnsServers(@Nullable Output> targetDnsServers) {
            $.targetDnsServers = targetDnsServers;
            return this;
        }

        /**
         * @param targetDnsServers Can be specified multiple times to define multiple target DNS servers. Each `target_dns_servers` block as defined below.
         * 
         * @return builder
         * 
         */
        public Builder targetDnsServers(List targetDnsServers) {
            return targetDnsServers(Output.of(targetDnsServers));
        }

        /**
         * @param targetDnsServers Can be specified multiple times to define multiple target DNS servers. Each `target_dns_servers` block as defined below.
         * 
         * @return builder
         * 
         */
        public Builder targetDnsServers(ResolverForwardingRuleTargetDnsServerArgs... targetDnsServers) {
            return targetDnsServers(List.of(targetDnsServers));
        }

        public ResolverForwardingRuleState build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy