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

com.pulumi.azurenative.devices.DpsCertificateArgs 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.devices;

import com.pulumi.azurenative.devices.inputs.CertificatePropertiesArgs;
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 DpsCertificateArgs extends com.pulumi.resources.ResourceArgs {

    public static final DpsCertificateArgs Empty = new DpsCertificateArgs();

    /**
     * The name of the certificate create or update.
     * 
     */
    @Import(name="certificateName")
    private @Nullable Output certificateName;

    /**
     * @return The name of the certificate create or update.
     * 
     */
    public Optional> certificateName() {
        return Optional.ofNullable(this.certificateName);
    }

    /**
     * properties of a certificate
     * 
     */
    @Import(name="properties")
    private @Nullable Output properties;

    /**
     * @return properties of a certificate
     * 
     */
    public Optional> properties() {
        return Optional.ofNullable(this.properties);
    }

    /**
     * The name of the provisioning service.
     * 
     */
    @Import(name="provisioningServiceName", required=true)
    private Output provisioningServiceName;

    /**
     * @return The name of the provisioning service.
     * 
     */
    public Output provisioningServiceName() {
        return this.provisioningServiceName;
    }

    /**
     * Resource group identifier.
     * 
     */
    @Import(name="resourceGroupName", required=true)
    private Output resourceGroupName;

    /**
     * @return Resource group identifier.
     * 
     */
    public Output resourceGroupName() {
        return this.resourceGroupName;
    }

    private DpsCertificateArgs() {}

    private DpsCertificateArgs(DpsCertificateArgs $) {
        this.certificateName = $.certificateName;
        this.properties = $.properties;
        this.provisioningServiceName = $.provisioningServiceName;
        this.resourceGroupName = $.resourceGroupName;
    }

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

    public static final class Builder {
        private DpsCertificateArgs $;

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

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

        /**
         * @param certificateName The name of the certificate create or update.
         * 
         * @return builder
         * 
         */
        public Builder certificateName(@Nullable Output certificateName) {
            $.certificateName = certificateName;
            return this;
        }

        /**
         * @param certificateName The name of the certificate create or update.
         * 
         * @return builder
         * 
         */
        public Builder certificateName(String certificateName) {
            return certificateName(Output.of(certificateName));
        }

        /**
         * @param properties properties of a certificate
         * 
         * @return builder
         * 
         */
        public Builder properties(@Nullable Output properties) {
            $.properties = properties;
            return this;
        }

        /**
         * @param properties properties of a certificate
         * 
         * @return builder
         * 
         */
        public Builder properties(CertificatePropertiesArgs properties) {
            return properties(Output.of(properties));
        }

        /**
         * @param provisioningServiceName The name of the provisioning service.
         * 
         * @return builder
         * 
         */
        public Builder provisioningServiceName(Output provisioningServiceName) {
            $.provisioningServiceName = provisioningServiceName;
            return this;
        }

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

        /**
         * @param resourceGroupName Resource group identifier.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(Output resourceGroupName) {
            $.resourceGroupName = resourceGroupName;
            return this;
        }

        /**
         * @param resourceGroupName Resource group identifier.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(String resourceGroupName) {
            return resourceGroupName(Output.of(resourceGroupName));
        }

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy