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

com.pulumi.alicloud.dns.inputs.GetRecordsArgs Maven / Gradle / Ivy

There is a newer version: 3.63.0-alpha.1727424957
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.alicloud.dns.inputs;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Boolean;
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 associated to the records.
     * 
     */
    @Import(name="domainName", required=true)
    private Output domainName;

    /**
     * @return The domain name associated to the records.
     * 
     */
    public Output domainName() {
        return this.domainName;
    }

    /**
     * Host record regex.
     * 
     */
    @Import(name="hostRecordRegex")
    private @Nullable Output hostRecordRegex;

    /**
     * @return Host record regex.
     * 
     */
    public Optional> hostRecordRegex() {
        return Optional.ofNullable(this.hostRecordRegex);
    }

    /**
     * A list of record IDs.
     * 
     */
    @Import(name="ids")
    private @Nullable Output> ids;

    /**
     * @return A list of record IDs.
     * 
     */
    public Optional>> ids() {
        return Optional.ofNullable(this.ids);
    }

    /**
     * Whether the record is locked or not.
     * 
     */
    @Import(name="isLocked")
    private @Nullable Output isLocked;

    /**
     * @return Whether the record is locked or not.
     * 
     */
    public Optional> isLocked() {
        return Optional.ofNullable(this.isLocked);
    }

    /**
     * ISP line. Valid items are `default`, `telecom`, `unicom`, `mobile`, `oversea`, `edu`, `drpeng`, `btvn`, .etc. For checking all resolution lines enumeration please visit [Alibaba Cloud DNS doc](https://www.alibabacloud.com/help/en/doc-detail/29807.htm)
     * 
     */
    @Import(name="line")
    private @Nullable Output line;

    /**
     * @return ISP line. Valid items are `default`, `telecom`, `unicom`, `mobile`, `oversea`, `edu`, `drpeng`, `btvn`, .etc. For checking all resolution lines enumeration please visit [Alibaba Cloud DNS doc](https://www.alibabacloud.com/help/en/doc-detail/29807.htm)
     * 
     */
    public Optional> line() {
        return Optional.ofNullable(this.line);
    }

    /**
     * File name where to save data source results (after running `pulumi preview`).
     * 
     */
    @Import(name="outputFile")
    private @Nullable Output outputFile;

    /**
     * @return File name where to save data source results (after running `pulumi preview`).
     * 
     */
    public Optional> outputFile() {
        return Optional.ofNullable(this.outputFile);
    }

    /**
     * Record status. Valid items are `ENABLE` and `DISABLE`.
     * 
     */
    @Import(name="status")
    private @Nullable Output status;

    /**
     * @return Record status. Valid items are `ENABLE` and `DISABLE`.
     * 
     */
    public Optional> status() {
        return Optional.ofNullable(this.status);
    }

    /**
     * Record type. Valid items are `A`, `NS`, `MX`, `TXT`, `CNAME`, `SRV`, `AAAA`, `REDIRECT_URL`, `FORWORD_URL` .
     * 
     */
    @Import(name="type")
    private @Nullable Output type;

    /**
     * @return Record type. Valid items are `A`, `NS`, `MX`, `TXT`, `CNAME`, `SRV`, `AAAA`, `REDIRECT_URL`, `FORWORD_URL` .
     * 
     */
    public Optional> type() {
        return Optional.ofNullable(this.type);
    }

    /**
     * Host record value regex.
     * 
     */
    @Import(name="valueRegex")
    private @Nullable Output valueRegex;

    /**
     * @return Host record value regex.
     * 
     */
    public Optional> valueRegex() {
        return Optional.ofNullable(this.valueRegex);
    }

    private GetRecordsArgs() {}

    private GetRecordsArgs(GetRecordsArgs $) {
        this.domainName = $.domainName;
        this.hostRecordRegex = $.hostRecordRegex;
        this.ids = $.ids;
        this.isLocked = $.isLocked;
        this.line = $.line;
        this.outputFile = $.outputFile;
        this.status = $.status;
        this.type = $.type;
        this.valueRegex = $.valueRegex;
    }

    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 domainName The domain name associated to the records.
         * 
         * @return builder
         * 
         */
        public Builder domainName(Output domainName) {
            $.domainName = domainName;
            return this;
        }

        /**
         * @param domainName The domain name associated to the records.
         * 
         * @return builder
         * 
         */
        public Builder domainName(String domainName) {
            return domainName(Output.of(domainName));
        }

        /**
         * @param hostRecordRegex Host record regex.
         * 
         * @return builder
         * 
         */
        public Builder hostRecordRegex(@Nullable Output hostRecordRegex) {
            $.hostRecordRegex = hostRecordRegex;
            return this;
        }

        /**
         * @param hostRecordRegex Host record regex.
         * 
         * @return builder
         * 
         */
        public Builder hostRecordRegex(String hostRecordRegex) {
            return hostRecordRegex(Output.of(hostRecordRegex));
        }

        /**
         * @param ids A list of record IDs.
         * 
         * @return builder
         * 
         */
        public Builder ids(@Nullable Output> ids) {
            $.ids = ids;
            return this;
        }

        /**
         * @param ids A list of record IDs.
         * 
         * @return builder
         * 
         */
        public Builder ids(List ids) {
            return ids(Output.of(ids));
        }

        /**
         * @param ids A list of record IDs.
         * 
         * @return builder
         * 
         */
        public Builder ids(String... ids) {
            return ids(List.of(ids));
        }

        /**
         * @param isLocked Whether the record is locked or not.
         * 
         * @return builder
         * 
         */
        public Builder isLocked(@Nullable Output isLocked) {
            $.isLocked = isLocked;
            return this;
        }

        /**
         * @param isLocked Whether the record is locked or not.
         * 
         * @return builder
         * 
         */
        public Builder isLocked(Boolean isLocked) {
            return isLocked(Output.of(isLocked));
        }

        /**
         * @param line ISP line. Valid items are `default`, `telecom`, `unicom`, `mobile`, `oversea`, `edu`, `drpeng`, `btvn`, .etc. For checking all resolution lines enumeration please visit [Alibaba Cloud DNS doc](https://www.alibabacloud.com/help/en/doc-detail/29807.htm)
         * 
         * @return builder
         * 
         */
        public Builder line(@Nullable Output line) {
            $.line = line;
            return this;
        }

        /**
         * @param line ISP line. Valid items are `default`, `telecom`, `unicom`, `mobile`, `oversea`, `edu`, `drpeng`, `btvn`, .etc. For checking all resolution lines enumeration please visit [Alibaba Cloud DNS doc](https://www.alibabacloud.com/help/en/doc-detail/29807.htm)
         * 
         * @return builder
         * 
         */
        public Builder line(String line) {
            return line(Output.of(line));
        }

        /**
         * @param outputFile File name where to save data source results (after running `pulumi preview`).
         * 
         * @return builder
         * 
         */
        public Builder outputFile(@Nullable Output outputFile) {
            $.outputFile = outputFile;
            return this;
        }

        /**
         * @param outputFile File name where to save data source results (after running `pulumi preview`).
         * 
         * @return builder
         * 
         */
        public Builder outputFile(String outputFile) {
            return outputFile(Output.of(outputFile));
        }

        /**
         * @param status Record status. Valid items are `ENABLE` and `DISABLE`.
         * 
         * @return builder
         * 
         */
        public Builder status(@Nullable Output status) {
            $.status = status;
            return this;
        }

        /**
         * @param status Record status. Valid items are `ENABLE` and `DISABLE`.
         * 
         * @return builder
         * 
         */
        public Builder status(String status) {
            return status(Output.of(status));
        }

        /**
         * @param type Record type. Valid items are `A`, `NS`, `MX`, `TXT`, `CNAME`, `SRV`, `AAAA`, `REDIRECT_URL`, `FORWORD_URL` .
         * 
         * @return builder
         * 
         */
        public Builder type(@Nullable Output type) {
            $.type = type;
            return this;
        }

        /**
         * @param type Record type. Valid items are `A`, `NS`, `MX`, `TXT`, `CNAME`, `SRV`, `AAAA`, `REDIRECT_URL`, `FORWORD_URL` .
         * 
         * @return builder
         * 
         */
        public Builder type(String type) {
            return type(Output.of(type));
        }

        /**
         * @param valueRegex Host record value regex.
         * 
         * @return builder
         * 
         */
        public Builder valueRegex(@Nullable Output valueRegex) {
            $.valueRegex = valueRegex;
            return this;
        }

        /**
         * @param valueRegex Host record value regex.
         * 
         * @return builder
         * 
         */
        public Builder valueRegex(String valueRegex) {
            return valueRegex(Output.of(valueRegex));
        }

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy