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

com.pulumi.azurenative.network.inputs.VpnClientRootCertificateArgs Maven / Gradle / Ivy

There is a newer version: 2.78.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.network.inputs;

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


/**
 * VPN client root certificate of virtual network gateway.
 * 
 */
public final class VpnClientRootCertificateArgs extends com.pulumi.resources.ResourceArgs {

    public static final VpnClientRootCertificateArgs Empty = new VpnClientRootCertificateArgs();

    /**
     * Resource ID.
     * 
     */
    @Import(name="id")
    private @Nullable Output id;

    /**
     * @return Resource ID.
     * 
     */
    public Optional> id() {
        return Optional.ofNullable(this.id);
    }

    /**
     * The name of the resource that is unique within a resource group. This name can be used to access the resource.
     * 
     */
    @Import(name="name")
    private @Nullable Output name;

    /**
     * @return The name of the resource that is unique within a resource group. This name can be used to access the resource.
     * 
     */
    public Optional> name() {
        return Optional.ofNullable(this.name);
    }

    /**
     * The certificate public data.
     * 
     */
    @Import(name="publicCertData", required=true)
    private Output publicCertData;

    /**
     * @return The certificate public data.
     * 
     */
    public Output publicCertData() {
        return this.publicCertData;
    }

    private VpnClientRootCertificateArgs() {}

    private VpnClientRootCertificateArgs(VpnClientRootCertificateArgs $) {
        this.id = $.id;
        this.name = $.name;
        this.publicCertData = $.publicCertData;
    }

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

    public static final class Builder {
        private VpnClientRootCertificateArgs $;

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

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

        /**
         * @param id Resource ID.
         * 
         * @return builder
         * 
         */
        public Builder id(@Nullable Output id) {
            $.id = id;
            return this;
        }

        /**
         * @param id Resource ID.
         * 
         * @return builder
         * 
         */
        public Builder id(String id) {
            return id(Output.of(id));
        }

        /**
         * @param name The name of the resource that is unique within a resource group. This name can be used to access the resource.
         * 
         * @return builder
         * 
         */
        public Builder name(@Nullable Output name) {
            $.name = name;
            return this;
        }

        /**
         * @param name The name of the resource that is unique within a resource group. This name can be used to access the resource.
         * 
         * @return builder
         * 
         */
        public Builder name(String name) {
            return name(Output.of(name));
        }

        /**
         * @param publicCertData The certificate public data.
         * 
         * @return builder
         * 
         */
        public Builder publicCertData(Output publicCertData) {
            $.publicCertData = publicCertData;
            return this;
        }

        /**
         * @param publicCertData The certificate public data.
         * 
         * @return builder
         * 
         */
        public Builder publicCertData(String publicCertData) {
            return publicCertData(Output.of(publicCertData));
        }

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy