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

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

import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Integer;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class GetDomainResult {
    /**
     * @return The list of IPs that may perform a zone transfer for this Domain.
     * 
     */
    private List axfrIps;
    /**
     * @return A description for this Domain.
     * 
     */
    private String description;
    /**
     * @return The domain this Domain represents. These must be unique in our system; you cannot have two Domains representing the same domain
     * 
     */
    private @Nullable String domain;
    /**
     * @return The amount of time in seconds that may pass before this Domain is no longer authoritative.
     * 
     */
    private Integer expireSec;
    /**
     * @return The group this Domain belongs to.
     * 
     */
    private String group;
    /**
     * @return The unique ID of this Domain.
     * 
     */
    private @Nullable Integer id;
    /**
     * @return The IP addresses representing the master DNS for this Domain.
     * 
     */
    private List masterIps;
    /**
     * @return The amount of time in seconds before this Domain should be refreshed.
     * 
     */
    private Integer refreshSec;
    /**
     * @return The interval, in seconds, at which a failed refresh should be retried.
     * 
     */
    private Integer retrySec;
    /**
     * @return Start of Authority email address.
     * 
     */
    private String soaEmail;
    /**
     * @return Used to control whether this Domain is currently being rendered. (`disabled`, `active`)
     * 
     */
    private String status;
    /**
     * @return An array of tags applied to this object. Tags are case-insensitive and are for organizational purposes only.
     * 
     */
    private List tags;
    /**
     * @return 'Time to Live'-the amount of time in seconds that this Domain's records may be cached by resolvers or other domain servers.
     * 
     */
    private Integer ttlSec;
    /**
     * @return If this Domain represents the authoritative source of information for the domain it describes, or if it is a read-only copy of a master (also called a slave) (`master`, `slave`)
     * 
     */
    private String type;

    private GetDomainResult() {}
    /**
     * @return The list of IPs that may perform a zone transfer for this Domain.
     * 
     */
    public List axfrIps() {
        return this.axfrIps;
    }
    /**
     * @return A description for this Domain.
     * 
     */
    public String description() {
        return this.description;
    }
    /**
     * @return The domain this Domain represents. These must be unique in our system; you cannot have two Domains representing the same domain
     * 
     */
    public Optional domain() {
        return Optional.ofNullable(this.domain);
    }
    /**
     * @return The amount of time in seconds that may pass before this Domain is no longer authoritative.
     * 
     */
    public Integer expireSec() {
        return this.expireSec;
    }
    /**
     * @return The group this Domain belongs to.
     * 
     */
    public String group() {
        return this.group;
    }
    /**
     * @return The unique ID of this Domain.
     * 
     */
    public Optional id() {
        return Optional.ofNullable(this.id);
    }
    /**
     * @return The IP addresses representing the master DNS for this Domain.
     * 
     */
    public List masterIps() {
        return this.masterIps;
    }
    /**
     * @return The amount of time in seconds before this Domain should be refreshed.
     * 
     */
    public Integer refreshSec() {
        return this.refreshSec;
    }
    /**
     * @return The interval, in seconds, at which a failed refresh should be retried.
     * 
     */
    public Integer retrySec() {
        return this.retrySec;
    }
    /**
     * @return Start of Authority email address.
     * 
     */
    public String soaEmail() {
        return this.soaEmail;
    }
    /**
     * @return Used to control whether this Domain is currently being rendered. (`disabled`, `active`)
     * 
     */
    public String status() {
        return this.status;
    }
    /**
     * @return An array of tags applied to this object. Tags are case-insensitive and are for organizational purposes only.
     * 
     */
    public List tags() {
        return this.tags;
    }
    /**
     * @return 'Time to Live'-the amount of time in seconds that this Domain's records may be cached by resolvers or other domain servers.
     * 
     */
    public Integer ttlSec() {
        return this.ttlSec;
    }
    /**
     * @return If this Domain represents the authoritative source of information for the domain it describes, or if it is a read-only copy of a master (also called a slave) (`master`, `slave`)
     * 
     */
    public String type() {
        return this.type;
    }

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

    public static Builder builder(GetDomainResult defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private List axfrIps;
        private String description;
        private @Nullable String domain;
        private Integer expireSec;
        private String group;
        private @Nullable Integer id;
        private List masterIps;
        private Integer refreshSec;
        private Integer retrySec;
        private String soaEmail;
        private String status;
        private List tags;
        private Integer ttlSec;
        private String type;
        public Builder() {}
        public Builder(GetDomainResult defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.axfrIps = defaults.axfrIps;
    	      this.description = defaults.description;
    	      this.domain = defaults.domain;
    	      this.expireSec = defaults.expireSec;
    	      this.group = defaults.group;
    	      this.id = defaults.id;
    	      this.masterIps = defaults.masterIps;
    	      this.refreshSec = defaults.refreshSec;
    	      this.retrySec = defaults.retrySec;
    	      this.soaEmail = defaults.soaEmail;
    	      this.status = defaults.status;
    	      this.tags = defaults.tags;
    	      this.ttlSec = defaults.ttlSec;
    	      this.type = defaults.type;
        }

        @CustomType.Setter
        public Builder axfrIps(List axfrIps) {
            if (axfrIps == null) {
              throw new MissingRequiredPropertyException("GetDomainResult", "axfrIps");
            }
            this.axfrIps = axfrIps;
            return this;
        }
        public Builder axfrIps(String... axfrIps) {
            return axfrIps(List.of(axfrIps));
        }
        @CustomType.Setter
        public Builder description(String description) {
            if (description == null) {
              throw new MissingRequiredPropertyException("GetDomainResult", "description");
            }
            this.description = description;
            return this;
        }
        @CustomType.Setter
        public Builder domain(@Nullable String domain) {

            this.domain = domain;
            return this;
        }
        @CustomType.Setter
        public Builder expireSec(Integer expireSec) {
            if (expireSec == null) {
              throw new MissingRequiredPropertyException("GetDomainResult", "expireSec");
            }
            this.expireSec = expireSec;
            return this;
        }
        @CustomType.Setter
        public Builder group(String group) {
            if (group == null) {
              throw new MissingRequiredPropertyException("GetDomainResult", "group");
            }
            this.group = group;
            return this;
        }
        @CustomType.Setter
        public Builder id(@Nullable Integer id) {

            this.id = id;
            return this;
        }
        @CustomType.Setter
        public Builder masterIps(List masterIps) {
            if (masterIps == null) {
              throw new MissingRequiredPropertyException("GetDomainResult", "masterIps");
            }
            this.masterIps = masterIps;
            return this;
        }
        public Builder masterIps(String... masterIps) {
            return masterIps(List.of(masterIps));
        }
        @CustomType.Setter
        public Builder refreshSec(Integer refreshSec) {
            if (refreshSec == null) {
              throw new MissingRequiredPropertyException("GetDomainResult", "refreshSec");
            }
            this.refreshSec = refreshSec;
            return this;
        }
        @CustomType.Setter
        public Builder retrySec(Integer retrySec) {
            if (retrySec == null) {
              throw new MissingRequiredPropertyException("GetDomainResult", "retrySec");
            }
            this.retrySec = retrySec;
            return this;
        }
        @CustomType.Setter
        public Builder soaEmail(String soaEmail) {
            if (soaEmail == null) {
              throw new MissingRequiredPropertyException("GetDomainResult", "soaEmail");
            }
            this.soaEmail = soaEmail;
            return this;
        }
        @CustomType.Setter
        public Builder status(String status) {
            if (status == null) {
              throw new MissingRequiredPropertyException("GetDomainResult", "status");
            }
            this.status = status;
            return this;
        }
        @CustomType.Setter
        public Builder tags(List tags) {
            if (tags == null) {
              throw new MissingRequiredPropertyException("GetDomainResult", "tags");
            }
            this.tags = tags;
            return this;
        }
        public Builder tags(String... tags) {
            return tags(List.of(tags));
        }
        @CustomType.Setter
        public Builder ttlSec(Integer ttlSec) {
            if (ttlSec == null) {
              throw new MissingRequiredPropertyException("GetDomainResult", "ttlSec");
            }
            this.ttlSec = ttlSec;
            return this;
        }
        @CustomType.Setter
        public Builder type(String type) {
            if (type == null) {
              throw new MissingRequiredPropertyException("GetDomainResult", "type");
            }
            this.type = type;
            return this;
        }
        public GetDomainResult build() {
            final var _resultValue = new GetDomainResult();
            _resultValue.axfrIps = axfrIps;
            _resultValue.description = description;
            _resultValue.domain = domain;
            _resultValue.expireSec = expireSec;
            _resultValue.group = group;
            _resultValue.id = id;
            _resultValue.masterIps = masterIps;
            _resultValue.refreshSec = refreshSec;
            _resultValue.retrySec = retrySec;
            _resultValue.soaEmail = soaEmail;
            _resultValue.status = status;
            _resultValue.tags = tags;
            _resultValue.ttlSec = ttlSec;
            _resultValue.type = type;
            return _resultValue;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy