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

com.pulumi.azurenative.logic.outputs.KeyVaultKeyReferenceResponse Maven / Gradle / Ivy

The 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.logic.outputs;

import com.pulumi.azurenative.logic.outputs.KeyVaultKeyReferenceResponseKeyVault;
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 KeyVaultKeyReferenceResponse {
    /**
     * @return The private key name in key vault.
     * 
     */
    private String keyName;
    /**
     * @return The key vault reference.
     * 
     */
    private KeyVaultKeyReferenceResponseKeyVault keyVault;
    /**
     * @return The private key version in key vault.
     * 
     */
    private @Nullable String keyVersion;

    private KeyVaultKeyReferenceResponse() {}
    /**
     * @return The private key name in key vault.
     * 
     */
    public String keyName() {
        return this.keyName;
    }
    /**
     * @return The key vault reference.
     * 
     */
    public KeyVaultKeyReferenceResponseKeyVault keyVault() {
        return this.keyVault;
    }
    /**
     * @return The private key version in key vault.
     * 
     */
    public Optional keyVersion() {
        return Optional.ofNullable(this.keyVersion);
    }

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

    public static Builder builder(KeyVaultKeyReferenceResponse defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private String keyName;
        private KeyVaultKeyReferenceResponseKeyVault keyVault;
        private @Nullable String keyVersion;
        public Builder() {}
        public Builder(KeyVaultKeyReferenceResponse defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.keyName = defaults.keyName;
    	      this.keyVault = defaults.keyVault;
    	      this.keyVersion = defaults.keyVersion;
        }

        @CustomType.Setter
        public Builder keyName(String keyName) {
            if (keyName == null) {
              throw new MissingRequiredPropertyException("KeyVaultKeyReferenceResponse", "keyName");
            }
            this.keyName = keyName;
            return this;
        }
        @CustomType.Setter
        public Builder keyVault(KeyVaultKeyReferenceResponseKeyVault keyVault) {
            if (keyVault == null) {
              throw new MissingRequiredPropertyException("KeyVaultKeyReferenceResponse", "keyVault");
            }
            this.keyVault = keyVault;
            return this;
        }
        @CustomType.Setter
        public Builder keyVersion(@Nullable String keyVersion) {

            this.keyVersion = keyVersion;
            return this;
        }
        public KeyVaultKeyReferenceResponse build() {
            final var _resultValue = new KeyVaultKeyReferenceResponse();
            _resultValue.keyName = keyName;
            _resultValue.keyVault = keyVault;
            _resultValue.keyVersion = keyVersion;
            return _resultValue;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy