// *** 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.gcp.dns.outputs;

import com.pulumi.core.annotations.CustomType;
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 GetRecordSetResult {
    private String id;
    private String managedZone;
    private String name;
    private @Nullable String project;
    /**
     * @return The string data for the records in this record set.
     * 
     */
    private List<String> rrdatas;
    /**
     * @return The time-to-live of this record set (seconds).
     * 
     */
    private Integer ttl;
    private String type;

    private GetRecordSetResult() {}
    public String id() {
        return this.id;
    }
    public String managedZone() {
        return this.managedZone;
    }
    public String name() {
        return this.name;
    }
    public Optional<String> project() {
        return Optional.ofNullable(this.project);
    }
    /**
     * @return The string data for the records in this record set.
     * 
     */
    public List<String> rrdatas() {
        return this.rrdatas;
    }
    /**
     * @return The time-to-live of this record set (seconds).
     * 
     */
    public Integer ttl() {
        return this.ttl;
    }
    public String type() {
        return this.type;
    }

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

    public static Builder builder(GetRecordSetResult defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private String id;
        private String managedZone;
        private String name;
        private @Nullable String project;
        private List<String> rrdatas;
        private Integer ttl;
        private String type;
        public Builder() {}
        public Builder(GetRecordSetResult defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.id = defaults.id;
    	      this.managedZone = defaults.managedZone;
    	      this.name = defaults.name;
    	      this.project = defaults.project;
    	      this.rrdatas = defaults.rrdatas;
    	      this.ttl = defaults.ttl;
    	      this.type = defaults.type;
        }

        @CustomType.Setter
        public Builder id(String id) {
            this.id = Objects.requireNonNull(id);
            return this;
        }
        @CustomType.Setter
        public Builder managedZone(String managedZone) {
            this.managedZone = Objects.requireNonNull(managedZone);
            return this;
        }
        @CustomType.Setter
        public Builder name(String name) {
            this.name = Objects.requireNonNull(name);
            return this;
        }
        @CustomType.Setter
        public Builder project(@Nullable String project) {
            this.project = project;
            return this;
        }
        @CustomType.Setter
        public Builder rrdatas(List<String> rrdatas) {
            this.rrdatas = Objects.requireNonNull(rrdatas);
            return this;
        }
        public Builder rrdatas(String... rrdatas) {
            return rrdatas(List.of(rrdatas));
        }
        @CustomType.Setter
        public Builder ttl(Integer ttl) {
            this.ttl = Objects.requireNonNull(ttl);
            return this;
        }
        @CustomType.Setter
        public Builder type(String type) {
            this.type = Objects.requireNonNull(type);
            return this;
        }
        public GetRecordSetResult build() {
            final var o = new GetRecordSetResult();
            o.id = id;
            o.managedZone = managedZone;
            o.name = name;
            o.project = project;
            o.rrdatas = rrdatas;
            o.ttl = ttl;
            o.type = type;
            return o;
        }
    }
}
