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

com.pulumi.azurenative.digitaltwins.inputs.ManagedIdentityReferenceArgs 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.digitaltwins.inputs;

import com.pulumi.azurenative.digitaltwins.enums.IdentityType;
import com.pulumi.core.Either;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * The properties of the Managed Identity.
 * 
 */
public final class ManagedIdentityReferenceArgs extends com.pulumi.resources.ResourceArgs {

    public static final ManagedIdentityReferenceArgs Empty = new ManagedIdentityReferenceArgs();

    /**
     * The type of managed identity used.
     * 
     */
    @Import(name="type")
    private @Nullable Output> type;

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

    /**
     * The user identity ARM resource id if the managed identity type is 'UserAssigned'.
     * 
     */
    @Import(name="userAssignedIdentity")
    private @Nullable Output userAssignedIdentity;

    /**
     * @return The user identity ARM resource id if the managed identity type is 'UserAssigned'.
     * 
     */
    public Optional> userAssignedIdentity() {
        return Optional.ofNullable(this.userAssignedIdentity);
    }

    private ManagedIdentityReferenceArgs() {}

    private ManagedIdentityReferenceArgs(ManagedIdentityReferenceArgs $) {
        this.type = $.type;
        this.userAssignedIdentity = $.userAssignedIdentity;
    }

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

    public static final class Builder {
        private ManagedIdentityReferenceArgs $;

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

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

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

        /**
         * @param type The type of managed identity used.
         * 
         * @return builder
         * 
         */
        public Builder type(Either type) {
            return type(Output.of(type));
        }

        /**
         * @param type The type of managed identity used.
         * 
         * @return builder
         * 
         */
        public Builder type(String type) {
            return type(Either.ofLeft(type));
        }

        /**
         * @param type The type of managed identity used.
         * 
         * @return builder
         * 
         */
        public Builder type(IdentityType type) {
            return type(Either.ofRight(type));
        }

        /**
         * @param userAssignedIdentity The user identity ARM resource id if the managed identity type is 'UserAssigned'.
         * 
         * @return builder
         * 
         */
        public Builder userAssignedIdentity(@Nullable Output userAssignedIdentity) {
            $.userAssignedIdentity = userAssignedIdentity;
            return this;
        }

        /**
         * @param userAssignedIdentity The user identity ARM resource id if the managed identity type is 'UserAssigned'.
         * 
         * @return builder
         * 
         */
        public Builder userAssignedIdentity(String userAssignedIdentity) {
            return userAssignedIdentity(Output.of(userAssignedIdentity));
        }

        public ManagedIdentityReferenceArgs build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy