// *** 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.azure.appservice.outputs;

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

@CustomType
public final class CertificateOrderCertificate {
    /**
     * @return The name of the App Service Certificate.
     * 
     */
    private @Nullable String certificateName;
    /**
     * @return Key Vault resource Id.
     * 
     */
    private @Nullable String keyVaultId;
    /**
     * @return Key Vault secret name.
     * 
     */
    private @Nullable String keyVaultSecretName;
    /**
     * @return Status of the Key Vault secret.
     * 
     */
    private @Nullable String provisioningState;

    private CertificateOrderCertificate() {}
    /**
     * @return The name of the App Service Certificate.
     * 
     */
    public Optional<String> certificateName() {
        return Optional.ofNullable(this.certificateName);
    }
    /**
     * @return Key Vault resource Id.
     * 
     */
    public Optional<String> keyVaultId() {
        return Optional.ofNullable(this.keyVaultId);
    }
    /**
     * @return Key Vault secret name.
     * 
     */
    public Optional<String> keyVaultSecretName() {
        return Optional.ofNullable(this.keyVaultSecretName);
    }
    /**
     * @return Status of the Key Vault secret.
     * 
     */
    public Optional<String> provisioningState() {
        return Optional.ofNullable(this.provisioningState);
    }

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

    public static Builder builder(CertificateOrderCertificate defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable String certificateName;
        private @Nullable String keyVaultId;
        private @Nullable String keyVaultSecretName;
        private @Nullable String provisioningState;
        public Builder() {}
        public Builder(CertificateOrderCertificate defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.certificateName = defaults.certificateName;
    	      this.keyVaultId = defaults.keyVaultId;
    	      this.keyVaultSecretName = defaults.keyVaultSecretName;
    	      this.provisioningState = defaults.provisioningState;
        }

        @CustomType.Setter
        public Builder certificateName(@Nullable String certificateName) {
            this.certificateName = certificateName;
            return this;
        }
        @CustomType.Setter
        public Builder keyVaultId(@Nullable String keyVaultId) {
            this.keyVaultId = keyVaultId;
            return this;
        }
        @CustomType.Setter
        public Builder keyVaultSecretName(@Nullable String keyVaultSecretName) {
            this.keyVaultSecretName = keyVaultSecretName;
            return this;
        }
        @CustomType.Setter
        public Builder provisioningState(@Nullable String provisioningState) {
            this.provisioningState = provisioningState;
            return this;
        }
        public CertificateOrderCertificate build() {
            final var o = new CertificateOrderCertificate();
            o.certificateName = certificateName;
            o.keyVaultId = keyVaultId;
            o.keyVaultSecretName = keyVaultSecretName;
            o.provisioningState = provisioningState;
            return o;
        }
    }
}
