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

com.pulumi.azurenative.eventgrid.CaCertificateArgs Maven / Gradle / Ivy

The 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.eventgrid;

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;


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

    public static final CaCertificateArgs Empty = new CaCertificateArgs();

    /**
     * The CA certificate name.
     * 
     */
    @Import(name="caCertificateName")
    private @Nullable Output caCertificateName;

    /**
     * @return The CA certificate name.
     * 
     */
    public Optional> caCertificateName() {
        return Optional.ofNullable(this.caCertificateName);
    }

    /**
     * Description for the CA Certificate resource.
     * 
     */
    @Import(name="description")
    private @Nullable Output description;

    /**
     * @return Description for the CA Certificate resource.
     * 
     */
    public Optional> description() {
        return Optional.ofNullable(this.description);
    }

    /**
     * Base64 encoded PEM (Privacy Enhanced Mail) format certificate data.
     * 
     */
    @Import(name="encodedCertificate")
    private @Nullable Output encodedCertificate;

    /**
     * @return Base64 encoded PEM (Privacy Enhanced Mail) format certificate data.
     * 
     */
    public Optional> encodedCertificate() {
        return Optional.ofNullable(this.encodedCertificate);
    }

    /**
     * Name of the namespace.
     * 
     */
    @Import(name="namespaceName", required=true)
    private Output namespaceName;

    /**
     * @return Name of the namespace.
     * 
     */
    public Output namespaceName() {
        return this.namespaceName;
    }

    /**
     * The name of the resource group within the user's subscription.
     * 
     */
    @Import(name="resourceGroupName", required=true)
    private Output resourceGroupName;

    /**
     * @return The name of the resource group within the user's subscription.
     * 
     */
    public Output resourceGroupName() {
        return this.resourceGroupName;
    }

    private CaCertificateArgs() {}

    private CaCertificateArgs(CaCertificateArgs $) {
        this.caCertificateName = $.caCertificateName;
        this.description = $.description;
        this.encodedCertificate = $.encodedCertificate;
        this.namespaceName = $.namespaceName;
        this.resourceGroupName = $.resourceGroupName;
    }

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

    public static final class Builder {
        private CaCertificateArgs $;

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

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

        /**
         * @param caCertificateName The CA certificate name.
         * 
         * @return builder
         * 
         */
        public Builder caCertificateName(@Nullable Output caCertificateName) {
            $.caCertificateName = caCertificateName;
            return this;
        }

        /**
         * @param caCertificateName The CA certificate name.
         * 
         * @return builder
         * 
         */
        public Builder caCertificateName(String caCertificateName) {
            return caCertificateName(Output.of(caCertificateName));
        }

        /**
         * @param description Description for the CA Certificate resource.
         * 
         * @return builder
         * 
         */
        public Builder description(@Nullable Output description) {
            $.description = description;
            return this;
        }

        /**
         * @param description Description for the CA Certificate resource.
         * 
         * @return builder
         * 
         */
        public Builder description(String description) {
            return description(Output.of(description));
        }

        /**
         * @param encodedCertificate Base64 encoded PEM (Privacy Enhanced Mail) format certificate data.
         * 
         * @return builder
         * 
         */
        public Builder encodedCertificate(@Nullable Output encodedCertificate) {
            $.encodedCertificate = encodedCertificate;
            return this;
        }

        /**
         * @param encodedCertificate Base64 encoded PEM (Privacy Enhanced Mail) format certificate data.
         * 
         * @return builder
         * 
         */
        public Builder encodedCertificate(String encodedCertificate) {
            return encodedCertificate(Output.of(encodedCertificate));
        }

        /**
         * @param namespaceName Name of the namespace.
         * 
         * @return builder
         * 
         */
        public Builder namespaceName(Output namespaceName) {
            $.namespaceName = namespaceName;
            return this;
        }

        /**
         * @param namespaceName Name of the namespace.
         * 
         * @return builder
         * 
         */
        public Builder namespaceName(String namespaceName) {
            return namespaceName(Output.of(namespaceName));
        }

        /**
         * @param resourceGroupName The name of the resource group within the user's subscription.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(Output resourceGroupName) {
            $.resourceGroupName = resourceGroupName;
            return this;
        }

        /**
         * @param resourceGroupName The name of the resource group within the user's subscription.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(String resourceGroupName) {
            return resourceGroupName(Output.of(resourceGroupName));
        }

        public CaCertificateArgs build() {
            if ($.namespaceName == null) {
                throw new MissingRequiredPropertyException("CaCertificateArgs", "namespaceName");
            }
            if ($.resourceGroupName == null) {
                throw new MissingRequiredPropertyException("CaCertificateArgs", "resourceGroupName");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy