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

com.pulumi.linode.inputs.GetRegionsRegionResolver Maven / Gradle / Ivy

There is a newer version: 4.31.0-alpha.1732773076
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.linode.inputs;

import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;


public final class GetRegionsRegionResolver extends com.pulumi.resources.InvokeArgs {

    public static final GetRegionsRegionResolver Empty = new GetRegionsRegionResolver();

    /**
     * The IPv4 addresses for this region’s DNS resolvers, separated by commas.
     * 
     */
    @Import(name="ipv4", required=true)
    private String ipv4;

    /**
     * @return The IPv4 addresses for this region’s DNS resolvers, separated by commas.
     * 
     */
    public String ipv4() {
        return this.ipv4;
    }

    /**
     * The IPv6 addresses for this region’s DNS resolvers, separated by commas.
     * 
     */
    @Import(name="ipv6", required=true)
    private String ipv6;

    /**
     * @return The IPv6 addresses for this region’s DNS resolvers, separated by commas.
     * 
     */
    public String ipv6() {
        return this.ipv6;
    }

    private GetRegionsRegionResolver() {}

    private GetRegionsRegionResolver(GetRegionsRegionResolver $) {
        this.ipv4 = $.ipv4;
        this.ipv6 = $.ipv6;
    }

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

    public static final class Builder {
        private GetRegionsRegionResolver $;

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

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

        /**
         * @param ipv4 The IPv4 addresses for this region’s DNS resolvers, separated by commas.
         * 
         * @return builder
         * 
         */
        public Builder ipv4(String ipv4) {
            $.ipv4 = ipv4;
            return this;
        }

        /**
         * @param ipv6 The IPv6 addresses for this region’s DNS resolvers, separated by commas.
         * 
         * @return builder
         * 
         */
        public Builder ipv6(String ipv6) {
            $.ipv6 = ipv6;
            return this;
        }

        public GetRegionsRegionResolver build() {
            if ($.ipv4 == null) {
                throw new MissingRequiredPropertyException("GetRegionsRegionResolver", "ipv4");
            }
            if ($.ipv6 == null) {
                throw new MissingRequiredPropertyException("GetRegionsRegionResolver", "ipv6");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy