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

com.pulumi.digitalocean.inputs.GetRecordsArgs Maven / Gradle / Ivy

// *** 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.digitalocean.inputs;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.digitalocean.inputs.GetRecordsFilterArgs;
import com.pulumi.digitalocean.inputs.GetRecordsSortArgs;
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 GetRecordsArgs extends com.pulumi.resources.InvokeArgs {

    public static final GetRecordsArgs Empty = new GetRecordsArgs();

    /**
     * The domain name to search for DNS records
     * 
     */
    @Import(name="domain", required=true)
    private Output domain;

    /**
     * @return The domain name to search for DNS records
     * 
     */
    public Output domain() {
        return this.domain;
    }

    /**
     * Filter the results.
     * The `filter` block is documented below.
     * 
     */
    @Import(name="filters")
    private @Nullable Output> filters;

    /**
     * @return Filter the results.
     * The `filter` block is documented below.
     * 
     */
    public Optional>> filters() {
        return Optional.ofNullable(this.filters);
    }

    /**
     * Sort the results.
     * The `sort` block is documented below.
     * 
     */
    @Import(name="sorts")
    private @Nullable Output> sorts;

    /**
     * @return Sort the results.
     * The `sort` block is documented below.
     * 
     */
    public Optional>> sorts() {
        return Optional.ofNullable(this.sorts);
    }

    private GetRecordsArgs() {}

    private GetRecordsArgs(GetRecordsArgs $) {
        this.domain = $.domain;
        this.filters = $.filters;
        this.sorts = $.sorts;
    }

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

    public static final class Builder {
        private GetRecordsArgs $;

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

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

        /**
         * @param domain The domain name to search for DNS records
         * 
         * @return builder
         * 
         */
        public Builder domain(Output domain) {
            $.domain = domain;
            return this;
        }

        /**
         * @param domain The domain name to search for DNS records
         * 
         * @return builder
         * 
         */
        public Builder domain(String domain) {
            return domain(Output.of(domain));
        }

        /**
         * @param filters Filter the results.
         * The `filter` block is documented below.
         * 
         * @return builder
         * 
         */
        public Builder filters(@Nullable Output> filters) {
            $.filters = filters;
            return this;
        }

        /**
         * @param filters Filter the results.
         * The `filter` block is documented below.
         * 
         * @return builder
         * 
         */
        public Builder filters(List filters) {
            return filters(Output.of(filters));
        }

        /**
         * @param filters Filter the results.
         * The `filter` block is documented below.
         * 
         * @return builder
         * 
         */
        public Builder filters(GetRecordsFilterArgs... filters) {
            return filters(List.of(filters));
        }

        /**
         * @param sorts Sort the results.
         * The `sort` block is documented below.
         * 
         * @return builder
         * 
         */
        public Builder sorts(@Nullable Output> sorts) {
            $.sorts = sorts;
            return this;
        }

        /**
         * @param sorts Sort the results.
         * The `sort` block is documented below.
         * 
         * @return builder
         * 
         */
        public Builder sorts(List sorts) {
            return sorts(Output.of(sorts));
        }

        /**
         * @param sorts Sort the results.
         * The `sort` block is documented below.
         * 
         * @return builder
         * 
         */
        public Builder sorts(GetRecordsSortArgs... sorts) {
            return sorts(List.of(sorts));
        }

        public GetRecordsArgs build() {
            if ($.domain == null) {
                throw new MissingRequiredPropertyException("GetRecordsArgs", "domain");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy