sdk/java/src/main/java/com/pulumi/ovh/Domain/ZoneRecordArgs.java
// *** 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.ovh.Domain;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.Integer;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final ZoneRecordArgs Empty = new ZoneRecordArgs();

    /**
     * The type of the record
     * 
     */
    @Import(name="fieldtype", required=true)
    private Output<String> fieldtype;

    /**
     * @return The type of the record
     * 
     */
    public Output<String> fieldtype() {
        return this.fieldtype;
    }

    /**
     * The name of the record
     * 
     */
    @Import(name="subdomain")
    private @Nullable Output<String> subdomain;

    /**
     * @return The name of the record
     * 
     */
    public Optional<Output<String>> subdomain() {
        return Optional.ofNullable(this.subdomain);
    }

    /**
     * The value of the record
     * 
     */
    @Import(name="target", required=true)
    private Output<String> target;

    /**
     * @return The value of the record
     * 
     */
    public Output<String> target() {
        return this.target;
    }

    /**
     * The TTL of the record, it shall be &gt;= to 60.
     * 
     */
    @Import(name="ttl")
    private @Nullable Output<Integer> ttl;

    /**
     * @return The TTL of the record, it shall be &gt;= to 60.
     * 
     */
    public Optional<Output<Integer>> ttl() {
        return Optional.ofNullable(this.ttl);
    }

    /**
     * The domain to add the record to
     * 
     */
    @Import(name="zone", required=true)
    private Output<String> zone;

    /**
     * @return The domain to add the record to
     * 
     */
    public Output<String> zone() {
        return this.zone;
    }

    private ZoneRecordArgs() {}

    private ZoneRecordArgs(ZoneRecordArgs $) {
        this.fieldtype = $.fieldtype;
        this.subdomain = $.subdomain;
        this.target = $.target;
        this.ttl = $.ttl;
        this.zone = $.zone;
    }

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

    public static final class Builder {
        private ZoneRecordArgs $;

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

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

        /**
         * @param fieldtype The type of the record
         * 
         * @return builder
         * 
         */
        public Builder fieldtype(Output<String> fieldtype) {
            $.fieldtype = fieldtype;
            return this;
        }

        /**
         * @param fieldtype The type of the record
         * 
         * @return builder
         * 
         */
        public Builder fieldtype(String fieldtype) {
            return fieldtype(Output.of(fieldtype));
        }

        /**
         * @param subdomain The name of the record
         * 
         * @return builder
         * 
         */
        public Builder subdomain(@Nullable Output<String> subdomain) {
            $.subdomain = subdomain;
            return this;
        }

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

        /**
         * @param target The value of the record
         * 
         * @return builder
         * 
         */
        public Builder target(Output<String> target) {
            $.target = target;
            return this;
        }

        /**
         * @param target The value of the record
         * 
         * @return builder
         * 
         */
        public Builder target(String target) {
            return target(Output.of(target));
        }

        /**
         * @param ttl The TTL of the record, it shall be &gt;= to 60.
         * 
         * @return builder
         * 
         */
        public Builder ttl(@Nullable Output<Integer> ttl) {
            $.ttl = ttl;
            return this;
        }

        /**
         * @param ttl The TTL of the record, it shall be &gt;= to 60.
         * 
         * @return builder
         * 
         */
        public Builder ttl(Integer ttl) {
            return ttl(Output.of(ttl));
        }

        /**
         * @param zone The domain to add the record to
         * 
         * @return builder
         * 
         */
        public Builder zone(Output<String> zone) {
            $.zone = zone;
            return this;
        }

        /**
         * @param zone The domain to add the record to
         * 
         * @return builder
         * 
         */
        public Builder zone(String zone) {
            return zone(Output.of(zone));
        }

        public ZoneRecordArgs build() {
            $.fieldtype = Objects.requireNonNull($.fieldtype, "expected parameter 'fieldtype' to be non-null");
            $.target = Objects.requireNonNull($.target, "expected parameter 'target' to be non-null");
            $.zone = Objects.requireNonNull($.zone, "expected parameter 'zone' to be non-null");
            return $;
        }
    }

}
