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

com.pulumi.azurenative.machinelearningservices.inputs.EncryptionPropertyArgs Maven / Gradle / Ivy

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

import com.pulumi.azurenative.machinelearningservices.enums.EncryptionStatus;
import com.pulumi.azurenative.machinelearningservices.inputs.EncryptionKeyVaultPropertiesArgs;
import com.pulumi.azurenative.machinelearningservices.inputs.IdentityForCmkArgs;
import com.pulumi.core.Either;
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 EncryptionPropertyArgs extends com.pulumi.resources.ResourceArgs {

    public static final EncryptionPropertyArgs Empty = new EncryptionPropertyArgs();

    /**
     * The identity that will be used to access the key vault for encryption at rest.
     * 
     */
    @Import(name="identity")
    private @Nullable Output identity;

    /**
     * @return The identity that will be used to access the key vault for encryption at rest.
     * 
     */
    public Optional> identity() {
        return Optional.ofNullable(this.identity);
    }

    /**
     * Customer Key vault properties.
     * 
     */
    @Import(name="keyVaultProperties", required=true)
    private Output keyVaultProperties;

    /**
     * @return Customer Key vault properties.
     * 
     */
    public Output keyVaultProperties() {
        return this.keyVaultProperties;
    }

    /**
     * Indicates whether or not the encryption is enabled for the workspace.
     * 
     */
    @Import(name="status", required=true)
    private Output> status;

    /**
     * @return Indicates whether or not the encryption is enabled for the workspace.
     * 
     */
    public Output> status() {
        return this.status;
    }

    private EncryptionPropertyArgs() {}

    private EncryptionPropertyArgs(EncryptionPropertyArgs $) {
        this.identity = $.identity;
        this.keyVaultProperties = $.keyVaultProperties;
        this.status = $.status;
    }

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

    public static final class Builder {
        private EncryptionPropertyArgs $;

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

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

        /**
         * @param identity The identity that will be used to access the key vault for encryption at rest.
         * 
         * @return builder
         * 
         */
        public Builder identity(@Nullable Output identity) {
            $.identity = identity;
            return this;
        }

        /**
         * @param identity The identity that will be used to access the key vault for encryption at rest.
         * 
         * @return builder
         * 
         */
        public Builder identity(IdentityForCmkArgs identity) {
            return identity(Output.of(identity));
        }

        /**
         * @param keyVaultProperties Customer Key vault properties.
         * 
         * @return builder
         * 
         */
        public Builder keyVaultProperties(Output keyVaultProperties) {
            $.keyVaultProperties = keyVaultProperties;
            return this;
        }

        /**
         * @param keyVaultProperties Customer Key vault properties.
         * 
         * @return builder
         * 
         */
        public Builder keyVaultProperties(EncryptionKeyVaultPropertiesArgs keyVaultProperties) {
            return keyVaultProperties(Output.of(keyVaultProperties));
        }

        /**
         * @param status Indicates whether or not the encryption is enabled for the workspace.
         * 
         * @return builder
         * 
         */
        public Builder status(Output> status) {
            $.status = status;
            return this;
        }

        /**
         * @param status Indicates whether or not the encryption is enabled for the workspace.
         * 
         * @return builder
         * 
         */
        public Builder status(Either status) {
            return status(Output.of(status));
        }

        /**
         * @param status Indicates whether or not the encryption is enabled for the workspace.
         * 
         * @return builder
         * 
         */
        public Builder status(String status) {
            return status(Either.ofLeft(status));
        }

        /**
         * @param status Indicates whether or not the encryption is enabled for the workspace.
         * 
         * @return builder
         * 
         */
        public Builder status(EncryptionStatus status) {
            return status(Either.ofRight(status));
        }

        public EncryptionPropertyArgs build() {
            if ($.keyVaultProperties == null) {
                throw new MissingRequiredPropertyException("EncryptionPropertyArgs", "keyVaultProperties");
            }
            if ($.status == null) {
                throw new MissingRequiredPropertyException("EncryptionPropertyArgs", "status");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy