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

com.pulumi.azurenative.secretsynccontroller.AzureKeyVaultSecretProviderClassArgs 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.secretsynccontroller;

import com.pulumi.azurenative.secretsynccontroller.inputs.AzureResourceManagerCommonTypesExtendedLocationArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


public final class AzureKeyVaultSecretProviderClassArgs extends com.pulumi.resources.ResourceArgs {

    public static final AzureKeyVaultSecretProviderClassArgs Empty = new AzureKeyVaultSecretProviderClassArgs();

    /**
     * The name of the AzureKeyVaultSecretProviderClass
     * 
     */
    @Import(name="azureKeyVaultSecretProviderClassName")
    private @Nullable Output azureKeyVaultSecretProviderClassName;

    /**
     * @return The name of the AzureKeyVaultSecretProviderClass
     * 
     */
    public Optional> azureKeyVaultSecretProviderClassName() {
        return Optional.ofNullable(this.azureKeyVaultSecretProviderClassName);
    }

    /**
     * The user assigned managed identity client ID that should be used to access the Azure Key Vault.
     * 
     */
    @Import(name="clientId", required=true)
    private Output clientId;

    /**
     * @return The user assigned managed identity client ID that should be used to access the Azure Key Vault.
     * 
     */
    public Output clientId() {
        return this.clientId;
    }

    /**
     * The complex type of the extended location.
     * 
     */
    @Import(name="extendedLocation")
    private @Nullable Output extendedLocation;

    /**
     * @return The complex type of the extended location.
     * 
     */
    public Optional> extendedLocation() {
        return Optional.ofNullable(this.extendedLocation);
    }

    /**
     * The name of the Azure Key Vault to sync secrets from.
     * 
     */
    @Import(name="keyvaultName", required=true)
    private Output keyvaultName;

    /**
     * @return The name of the Azure Key Vault to sync secrets from.
     * 
     */
    public Output keyvaultName() {
        return this.keyvaultName;
    }

    /**
     * The geo-location where the resource lives
     * 
     */
    @Import(name="location")
    private @Nullable Output location;

    /**
     * @return The geo-location where the resource lives
     * 
     */
    public Optional> location() {
        return Optional.ofNullable(this.location);
    }

    /**
     * Objects defines the desired state of synced K8s secret objects
     * 
     */
    @Import(name="objects")
    private @Nullable Output objects;

    /**
     * @return Objects defines the desired state of synced K8s secret objects
     * 
     */
    public Optional> objects() {
        return Optional.ofNullable(this.objects);
    }

    /**
     * The name of the resource group. The name is case insensitive.
     * 
     */
    @Import(name="resourceGroupName", required=true)
    private Output resourceGroupName;

    /**
     * @return The name of the resource group. The name is case insensitive.
     * 
     */
    public Output resourceGroupName() {
        return this.resourceGroupName;
    }

    /**
     * Resource tags.
     * 
     */
    @Import(name="tags")
    private @Nullable Output> tags;

    /**
     * @return Resource tags.
     * 
     */
    public Optional>> tags() {
        return Optional.ofNullable(this.tags);
    }

    /**
     * The Azure Active Directory tenant ID that should be used for authenticating requests to the Azure Key Vault.
     * 
     */
    @Import(name="tenantId", required=true)
    private Output tenantId;

    /**
     * @return The Azure Active Directory tenant ID that should be used for authenticating requests to the Azure Key Vault.
     * 
     */
    public Output tenantId() {
        return this.tenantId;
    }

    private AzureKeyVaultSecretProviderClassArgs() {}

    private AzureKeyVaultSecretProviderClassArgs(AzureKeyVaultSecretProviderClassArgs $) {
        this.azureKeyVaultSecretProviderClassName = $.azureKeyVaultSecretProviderClassName;
        this.clientId = $.clientId;
        this.extendedLocation = $.extendedLocation;
        this.keyvaultName = $.keyvaultName;
        this.location = $.location;
        this.objects = $.objects;
        this.resourceGroupName = $.resourceGroupName;
        this.tags = $.tags;
        this.tenantId = $.tenantId;
    }

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

    public static final class Builder {
        private AzureKeyVaultSecretProviderClassArgs $;

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

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

        /**
         * @param azureKeyVaultSecretProviderClassName The name of the AzureKeyVaultSecretProviderClass
         * 
         * @return builder
         * 
         */
        public Builder azureKeyVaultSecretProviderClassName(@Nullable Output azureKeyVaultSecretProviderClassName) {
            $.azureKeyVaultSecretProviderClassName = azureKeyVaultSecretProviderClassName;
            return this;
        }

        /**
         * @param azureKeyVaultSecretProviderClassName The name of the AzureKeyVaultSecretProviderClass
         * 
         * @return builder
         * 
         */
        public Builder azureKeyVaultSecretProviderClassName(String azureKeyVaultSecretProviderClassName) {
            return azureKeyVaultSecretProviderClassName(Output.of(azureKeyVaultSecretProviderClassName));
        }

        /**
         * @param clientId The user assigned managed identity client ID that should be used to access the Azure Key Vault.
         * 
         * @return builder
         * 
         */
        public Builder clientId(Output clientId) {
            $.clientId = clientId;
            return this;
        }

        /**
         * @param clientId The user assigned managed identity client ID that should be used to access the Azure Key Vault.
         * 
         * @return builder
         * 
         */
        public Builder clientId(String clientId) {
            return clientId(Output.of(clientId));
        }

        /**
         * @param extendedLocation The complex type of the extended location.
         * 
         * @return builder
         * 
         */
        public Builder extendedLocation(@Nullable Output extendedLocation) {
            $.extendedLocation = extendedLocation;
            return this;
        }

        /**
         * @param extendedLocation The complex type of the extended location.
         * 
         * @return builder
         * 
         */
        public Builder extendedLocation(AzureResourceManagerCommonTypesExtendedLocationArgs extendedLocation) {
            return extendedLocation(Output.of(extendedLocation));
        }

        /**
         * @param keyvaultName The name of the Azure Key Vault to sync secrets from.
         * 
         * @return builder
         * 
         */
        public Builder keyvaultName(Output keyvaultName) {
            $.keyvaultName = keyvaultName;
            return this;
        }

        /**
         * @param keyvaultName The name of the Azure Key Vault to sync secrets from.
         * 
         * @return builder
         * 
         */
        public Builder keyvaultName(String keyvaultName) {
            return keyvaultName(Output.of(keyvaultName));
        }

        /**
         * @param location The geo-location where the resource lives
         * 
         * @return builder
         * 
         */
        public Builder location(@Nullable Output location) {
            $.location = location;
            return this;
        }

        /**
         * @param location The geo-location where the resource lives
         * 
         * @return builder
         * 
         */
        public Builder location(String location) {
            return location(Output.of(location));
        }

        /**
         * @param objects Objects defines the desired state of synced K8s secret objects
         * 
         * @return builder
         * 
         */
        public Builder objects(@Nullable Output objects) {
            $.objects = objects;
            return this;
        }

        /**
         * @param objects Objects defines the desired state of synced K8s secret objects
         * 
         * @return builder
         * 
         */
        public Builder objects(String objects) {
            return objects(Output.of(objects));
        }

        /**
         * @param resourceGroupName The name of the resource group. The name is case insensitive.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(Output resourceGroupName) {
            $.resourceGroupName = resourceGroupName;
            return this;
        }

        /**
         * @param resourceGroupName The name of the resource group. The name is case insensitive.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(String resourceGroupName) {
            return resourceGroupName(Output.of(resourceGroupName));
        }

        /**
         * @param tags Resource tags.
         * 
         * @return builder
         * 
         */
        public Builder tags(@Nullable Output> tags) {
            $.tags = tags;
            return this;
        }

        /**
         * @param tags Resource tags.
         * 
         * @return builder
         * 
         */
        public Builder tags(Map tags) {
            return tags(Output.of(tags));
        }

        /**
         * @param tenantId The Azure Active Directory tenant ID that should be used for authenticating requests to the Azure Key Vault.
         * 
         * @return builder
         * 
         */
        public Builder tenantId(Output tenantId) {
            $.tenantId = tenantId;
            return this;
        }

        /**
         * @param tenantId The Azure Active Directory tenant ID that should be used for authenticating requests to the Azure Key Vault.
         * 
         * @return builder
         * 
         */
        public Builder tenantId(String tenantId) {
            return tenantId(Output.of(tenantId));
        }

        public AzureKeyVaultSecretProviderClassArgs build() {
            if ($.clientId == null) {
                throw new MissingRequiredPropertyException("AzureKeyVaultSecretProviderClassArgs", "clientId");
            }
            if ($.keyvaultName == null) {
                throw new MissingRequiredPropertyException("AzureKeyVaultSecretProviderClassArgs", "keyvaultName");
            }
            if ($.resourceGroupName == null) {
                throw new MissingRequiredPropertyException("AzureKeyVaultSecretProviderClassArgs", "resourceGroupName");
            }
            if ($.tenantId == null) {
                throw new MissingRequiredPropertyException("AzureKeyVaultSecretProviderClassArgs", "tenantId");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy