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

com.pulumi.azurenative.compute.outputs.DiskEncryptionSettingsResponse Maven / Gradle / Ivy

There is a newer version: 2.72.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.compute.outputs;

import com.pulumi.azurenative.compute.outputs.KeyVaultKeyReferenceResponse;
import com.pulumi.azurenative.compute.outputs.KeyVaultSecretReferenceResponse;
import com.pulumi.core.annotations.CustomType;
import java.lang.Boolean;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class DiskEncryptionSettingsResponse {
    /**
     * @return Specifies the location of the disk encryption key, which is a Key Vault Secret.
     * 
     */
    private @Nullable KeyVaultSecretReferenceResponse diskEncryptionKey;
    /**
     * @return Specifies whether disk encryption should be enabled on the virtual machine.
     * 
     */
    private @Nullable Boolean enabled;
    /**
     * @return Specifies the location of the key encryption key in Key Vault.
     * 
     */
    private @Nullable KeyVaultKeyReferenceResponse keyEncryptionKey;

    private DiskEncryptionSettingsResponse() {}
    /**
     * @return Specifies the location of the disk encryption key, which is a Key Vault Secret.
     * 
     */
    public Optional diskEncryptionKey() {
        return Optional.ofNullable(this.diskEncryptionKey);
    }
    /**
     * @return Specifies whether disk encryption should be enabled on the virtual machine.
     * 
     */
    public Optional enabled() {
        return Optional.ofNullable(this.enabled);
    }
    /**
     * @return Specifies the location of the key encryption key in Key Vault.
     * 
     */
    public Optional keyEncryptionKey() {
        return Optional.ofNullable(this.keyEncryptionKey);
    }

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

    public static Builder builder(DiskEncryptionSettingsResponse defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable KeyVaultSecretReferenceResponse diskEncryptionKey;
        private @Nullable Boolean enabled;
        private @Nullable KeyVaultKeyReferenceResponse keyEncryptionKey;
        public Builder() {}
        public Builder(DiskEncryptionSettingsResponse defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.diskEncryptionKey = defaults.diskEncryptionKey;
    	      this.enabled = defaults.enabled;
    	      this.keyEncryptionKey = defaults.keyEncryptionKey;
        }

        @CustomType.Setter
        public Builder diskEncryptionKey(@Nullable KeyVaultSecretReferenceResponse diskEncryptionKey) {

            this.diskEncryptionKey = diskEncryptionKey;
            return this;
        }
        @CustomType.Setter
        public Builder enabled(@Nullable Boolean enabled) {

            this.enabled = enabled;
            return this;
        }
        @CustomType.Setter
        public Builder keyEncryptionKey(@Nullable KeyVaultKeyReferenceResponse keyEncryptionKey) {

            this.keyEncryptionKey = keyEncryptionKey;
            return this;
        }
        public DiskEncryptionSettingsResponse build() {
            final var _resultValue = new DiskEncryptionSettingsResponse();
            _resultValue.diskEncryptionKey = diskEncryptionKey;
            _resultValue.enabled = enabled;
            _resultValue.keyEncryptionKey = keyEncryptionKey;
            return _resultValue;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy