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

com.pulumi.linode.RdnsArgs 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;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import com.pulumi.linode.inputs.RdnsTimeoutsArgs;
import java.lang.Boolean;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final RdnsArgs Empty = new RdnsArgs();

    /**
     * The Public IPv4 or IPv6 address that will receive the `PTR` record.  A matching `A` or `AAAA` record must exist.
     * 
     */
    @Import(name="address", required=true)
    private Output address;

    /**
     * @return The Public IPv4 or IPv6 address that will receive the `PTR` record.  A matching `A` or `AAAA` record must exist.
     * 
     */
    public Output address() {
        return this.address;
    }

    /**
     * The name of the RDNS address.
     * 
     */
    @Import(name="rdns", required=true)
    private Output rdns;

    /**
     * @return The name of the RDNS address.
     * 
     */
    public Output rdns() {
        return this.rdns;
    }

    @Import(name="timeouts")
    private @Nullable Output timeouts;

    public Optional> timeouts() {
        return Optional.ofNullable(this.timeouts);
    }

    /**
     * If true, the RDNS assignment will be retried within the operation timeout period.
     * 
     */
    @Import(name="waitForAvailable")
    private @Nullable Output waitForAvailable;

    /**
     * @return If true, the RDNS assignment will be retried within the operation timeout period.
     * 
     */
    public Optional> waitForAvailable() {
        return Optional.ofNullable(this.waitForAvailable);
    }

    private RdnsArgs() {}

    private RdnsArgs(RdnsArgs $) {
        this.address = $.address;
        this.rdns = $.rdns;
        this.timeouts = $.timeouts;
        this.waitForAvailable = $.waitForAvailable;
    }

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

    public static final class Builder {
        private RdnsArgs $;

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

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

        /**
         * @param address The Public IPv4 or IPv6 address that will receive the `PTR` record.  A matching `A` or `AAAA` record must exist.
         * 
         * @return builder
         * 
         */
        public Builder address(Output address) {
            $.address = address;
            return this;
        }

        /**
         * @param address The Public IPv4 or IPv6 address that will receive the `PTR` record.  A matching `A` or `AAAA` record must exist.
         * 
         * @return builder
         * 
         */
        public Builder address(String address) {
            return address(Output.of(address));
        }

        /**
         * @param rdns The name of the RDNS address.
         * 
         * @return builder
         * 
         */
        public Builder rdns(Output rdns) {
            $.rdns = rdns;
            return this;
        }

        /**
         * @param rdns The name of the RDNS address.
         * 
         * @return builder
         * 
         */
        public Builder rdns(String rdns) {
            return rdns(Output.of(rdns));
        }

        public Builder timeouts(@Nullable Output timeouts) {
            $.timeouts = timeouts;
            return this;
        }

        public Builder timeouts(RdnsTimeoutsArgs timeouts) {
            return timeouts(Output.of(timeouts));
        }

        /**
         * @param waitForAvailable If true, the RDNS assignment will be retried within the operation timeout period.
         * 
         * @return builder
         * 
         */
        public Builder waitForAvailable(@Nullable Output waitForAvailable) {
            $.waitForAvailable = waitForAvailable;
            return this;
        }

        /**
         * @param waitForAvailable If true, the RDNS assignment will be retried within the operation timeout period.
         * 
         * @return builder
         * 
         */
        public Builder waitForAvailable(Boolean waitForAvailable) {
            return waitForAvailable(Output.of(waitForAvailable));
        }

        public RdnsArgs build() {
            if ($.address == null) {
                throw new MissingRequiredPropertyException("RdnsArgs", "address");
            }
            if ($.rdns == null) {
                throw new MissingRequiredPropertyException("RdnsArgs", "rdns");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy