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

com.pulumi.azurenative.virtualmachineimages.inputs.ImageTemplateIdentityArgs 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.virtualmachineimages.inputs;

import com.pulumi.azurenative.virtualmachineimages.enums.ResourceIdentityType;
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;


/**
 * Identity for the image template.
 * 
 */
public final class ImageTemplateIdentityArgs extends com.pulumi.resources.ResourceArgs {

    public static final ImageTemplateIdentityArgs Empty = new ImageTemplateIdentityArgs();

    /**
     * The type of identity used for the image template. The type 'None' will remove any identities from the image template.
     * 
     */
    @Import(name="type")
    private @Nullable Output type;

    /**
     * @return The type of identity used for the image template. The type 'None' will remove any identities from the image template.
     * 
     */
    public Optional> type() {
        return Optional.ofNullable(this.type);
    }

    /**
     * The set of user assigned identities associated with the resource. The userAssignedIdentities dictionary keys will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}. The dictionary values can be empty objects ({}) in requests.
     * 
     */
    @Import(name="userAssignedIdentities")
    private @Nullable Output> userAssignedIdentities;

    /**
     * @return The set of user assigned identities associated with the resource. The userAssignedIdentities dictionary keys will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}. The dictionary values can be empty objects ({}) in requests.
     * 
     */
    public Optional>> userAssignedIdentities() {
        return Optional.ofNullable(this.userAssignedIdentities);
    }

    private ImageTemplateIdentityArgs() {}

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

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

    public static final class Builder {
        private ImageTemplateIdentityArgs $;

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

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

        /**
         * @param type The type of identity used for the image template. The type 'None' will remove any identities from the image template.
         * 
         * @return builder
         * 
         */
        public Builder type(@Nullable Output type) {
            $.type = type;
            return this;
        }

        /**
         * @param type The type of identity used for the image template. The type 'None' will remove any identities from the image template.
         * 
         * @return builder
         * 
         */
        public Builder type(ResourceIdentityType type) {
            return type(Output.of(type));
        }

        /**
         * @param userAssignedIdentities The set of user assigned identities associated with the resource. The userAssignedIdentities dictionary keys will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}. The dictionary values can be empty objects ({}) in requests.
         * 
         * @return builder
         * 
         */
        public Builder userAssignedIdentities(@Nullable Output> userAssignedIdentities) {
            $.userAssignedIdentities = userAssignedIdentities;
            return this;
        }

        /**
         * @param userAssignedIdentities The set of user assigned identities associated with the resource. The userAssignedIdentities dictionary keys will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}. The dictionary values can be empty objects ({}) in requests.
         * 
         * @return builder
         * 
         */
        public Builder userAssignedIdentities(List userAssignedIdentities) {
            return userAssignedIdentities(Output.of(userAssignedIdentities));
        }

        /**
         * @param userAssignedIdentities The set of user assigned identities associated with the resource. The userAssignedIdentities dictionary keys will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}. The dictionary values can be empty objects ({}) in requests.
         * 
         * @return builder
         * 
         */
        public Builder userAssignedIdentities(String... userAssignedIdentities) {
            return userAssignedIdentities(List.of(userAssignedIdentities));
        }

        public ImageTemplateIdentityArgs build() {
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy