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

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

// *** 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.SourceVaultResponse;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class KeyForDiskEncryptionSetResponse {
    /**
     * @return Fully versioned Key Url pointing to a key in KeyVault. Version segment of the Url is required regardless of rotationToLatestKeyVersionEnabled value.
     * 
     */
    private String keyUrl;
    /**
     * @return Resource id of the KeyVault containing the key or secret. This property is optional and cannot be used if the KeyVault subscription is not the same as the Disk Encryption Set subscription.
     * 
     */
    private @Nullable SourceVaultResponse sourceVault;

    private KeyForDiskEncryptionSetResponse() {}
    /**
     * @return Fully versioned Key Url pointing to a key in KeyVault. Version segment of the Url is required regardless of rotationToLatestKeyVersionEnabled value.
     * 
     */
    public String keyUrl() {
        return this.keyUrl;
    }
    /**
     * @return Resource id of the KeyVault containing the key or secret. This property is optional and cannot be used if the KeyVault subscription is not the same as the Disk Encryption Set subscription.
     * 
     */
    public Optional sourceVault() {
        return Optional.ofNullable(this.sourceVault);
    }

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

    public static Builder builder(KeyForDiskEncryptionSetResponse defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private String keyUrl;
        private @Nullable SourceVaultResponse sourceVault;
        public Builder() {}
        public Builder(KeyForDiskEncryptionSetResponse defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.keyUrl = defaults.keyUrl;
    	      this.sourceVault = defaults.sourceVault;
        }

        @CustomType.Setter
        public Builder keyUrl(String keyUrl) {
            if (keyUrl == null) {
              throw new MissingRequiredPropertyException("KeyForDiskEncryptionSetResponse", "keyUrl");
            }
            this.keyUrl = keyUrl;
            return this;
        }
        @CustomType.Setter
        public Builder sourceVault(@Nullable SourceVaultResponse sourceVault) {

            this.sourceVault = sourceVault;
            return this;
        }
        public KeyForDiskEncryptionSetResponse build() {
            final var _resultValue = new KeyForDiskEncryptionSetResponse();
            _resultValue.keyUrl = keyUrl;
            _resultValue.sourceVault = sourceVault;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy