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

com.pulumi.azurenative.storagecache.inputs.CacheIdentityArgs Maven / Gradle / Ivy

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

import com.pulumi.azurenative.storagecache.enums.CacheIdentityType;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * Cache identity properties.
 * 
 */
public final class CacheIdentityArgs extends com.pulumi.resources.ResourceArgs {

    public static final CacheIdentityArgs Empty = new CacheIdentityArgs();

    /**
     * The type of identity used for the cache
     * 
     */
    @Import(name="type")
    private @Nullable Output type;

    /**
     * @return The type of identity used for the cache
     * 
     */
    public Optional> type() {
        return Optional.ofNullable(this.type);
    }

    /**
     * A dictionary where each key is a user assigned identity resource ID, and each key's value is an empty dictionary.
     * 
     */
    @Import(name="userAssignedIdentities")
    private @Nullable Output> userAssignedIdentities;

    /**
     * @return A dictionary where each key is a user assigned identity resource ID, and each key's value is an empty dictionary.
     * 
     */
    public Optional>> userAssignedIdentities() {
        return Optional.ofNullable(this.userAssignedIdentities);
    }

    private CacheIdentityArgs() {}

    private CacheIdentityArgs(CacheIdentityArgs $) {
        this.type = $.type;
        this.userAssignedIdentities = $.userAssignedIdentities;
    }

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

    public static final class Builder {
        private CacheIdentityArgs $;

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

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

        /**
         * @param type The type of identity used for the cache
         * 
         * @return builder
         * 
         */
        public Builder type(@Nullable Output type) {
            $.type = type;
            return this;
        }

        /**
         * @param type The type of identity used for the cache
         * 
         * @return builder
         * 
         */
        public Builder type(CacheIdentityType type) {
            return type(Output.of(type));
        }

        /**
         * @param userAssignedIdentities A dictionary where each key is a user assigned identity resource ID, and each key's value is an empty dictionary.
         * 
         * @return builder
         * 
         */
        public Builder userAssignedIdentities(@Nullable Output> userAssignedIdentities) {
            $.userAssignedIdentities = userAssignedIdentities;
            return this;
        }

        /**
         * @param userAssignedIdentities A dictionary where each key is a user assigned identity resource ID, and each key's value is an empty dictionary.
         * 
         * @return builder
         * 
         */
        public Builder userAssignedIdentities(List userAssignedIdentities) {
            return userAssignedIdentities(Output.of(userAssignedIdentities));
        }

        /**
         * @param userAssignedIdentities A dictionary where each key is a user assigned identity resource ID, and each key's value is an empty dictionary.
         * 
         * @return builder
         * 
         */
        public Builder userAssignedIdentities(String... userAssignedIdentities) {
            return userAssignedIdentities(List.of(userAssignedIdentities));
        }

        public CacheIdentityArgs build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy