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

com.pulumi.azurenative.iotoperations.inputs.SanForCertArgs Maven / Gradle / Ivy

There is a newer version: 2.72.0
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.azurenative.iotoperations.inputs;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.List;
import java.util.Objects;


/**
 * Subject Alternative Names (SANs) for certificate.
 * 
 */
public final class SanForCertArgs extends com.pulumi.resources.ResourceArgs {

    public static final SanForCertArgs Empty = new SanForCertArgs();

    /**
     * DNS SANs.
     * 
     */
    @Import(name="dns", required=true)
    private Output> dns;

    /**
     * @return DNS SANs.
     * 
     */
    public Output> dns() {
        return this.dns;
    }

    /**
     * IP address SANs.
     * 
     */
    @Import(name="ip", required=true)
    private Output> ip;

    /**
     * @return IP address SANs.
     * 
     */
    public Output> ip() {
        return this.ip;
    }

    private SanForCertArgs() {}

    private SanForCertArgs(SanForCertArgs $) {
        this.dns = $.dns;
        this.ip = $.ip;
    }

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

    public static final class Builder {
        private SanForCertArgs $;

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

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

        /**
         * @param dns DNS SANs.
         * 
         * @return builder
         * 
         */
        public Builder dns(Output> dns) {
            $.dns = dns;
            return this;
        }

        /**
         * @param dns DNS SANs.
         * 
         * @return builder
         * 
         */
        public Builder dns(List dns) {
            return dns(Output.of(dns));
        }

        /**
         * @param dns DNS SANs.
         * 
         * @return builder
         * 
         */
        public Builder dns(String... dns) {
            return dns(List.of(dns));
        }

        /**
         * @param ip IP address SANs.
         * 
         * @return builder
         * 
         */
        public Builder ip(Output> ip) {
            $.ip = ip;
            return this;
        }

        /**
         * @param ip IP address SANs.
         * 
         * @return builder
         * 
         */
        public Builder ip(List ip) {
            return ip(Output.of(ip));
        }

        /**
         * @param ip IP address SANs.
         * 
         * @return builder
         * 
         */
        public Builder ip(String... ip) {
            return ip(List.of(ip));
        }

        public SanForCertArgs build() {
            if ($.dns == null) {
                throw new MissingRequiredPropertyException("SanForCertArgs", "dns");
            }
            if ($.ip == null) {
                throw new MissingRequiredPropertyException("SanForCertArgs", "ip");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy