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

com.pulumi.azurenative.media.inputs.ResourceIdentityArgs Maven / Gradle / Ivy

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

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Boolean;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final ResourceIdentityArgs Empty = new ResourceIdentityArgs();

    /**
     * Indicates whether to use System Assigned Managed Identity. Mutual exclusive with User Assigned Managed Identity.
     * 
     */
    @Import(name="useSystemAssignedIdentity", required=true)
    private Output useSystemAssignedIdentity;

    /**
     * @return Indicates whether to use System Assigned Managed Identity. Mutual exclusive with User Assigned Managed Identity.
     * 
     */
    public Output useSystemAssignedIdentity() {
        return this.useSystemAssignedIdentity;
    }

    /**
     * The user assigned managed identity's ARM ID to use when accessing a resource.
     * 
     */
    @Import(name="userAssignedIdentity")
    private @Nullable Output userAssignedIdentity;

    /**
     * @return The user assigned managed identity's ARM ID to use when accessing a resource.
     * 
     */
    public Optional> userAssignedIdentity() {
        return Optional.ofNullable(this.userAssignedIdentity);
    }

    private ResourceIdentityArgs() {}

    private ResourceIdentityArgs(ResourceIdentityArgs $) {
        this.useSystemAssignedIdentity = $.useSystemAssignedIdentity;
        this.userAssignedIdentity = $.userAssignedIdentity;
    }

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

    public static final class Builder {
        private ResourceIdentityArgs $;

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

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

        /**
         * @param useSystemAssignedIdentity Indicates whether to use System Assigned Managed Identity. Mutual exclusive with User Assigned Managed Identity.
         * 
         * @return builder
         * 
         */
        public Builder useSystemAssignedIdentity(Output useSystemAssignedIdentity) {
            $.useSystemAssignedIdentity = useSystemAssignedIdentity;
            return this;
        }

        /**
         * @param useSystemAssignedIdentity Indicates whether to use System Assigned Managed Identity. Mutual exclusive with User Assigned Managed Identity.
         * 
         * @return builder
         * 
         */
        public Builder useSystemAssignedIdentity(Boolean useSystemAssignedIdentity) {
            return useSystemAssignedIdentity(Output.of(useSystemAssignedIdentity));
        }

        /**
         * @param userAssignedIdentity The user assigned managed identity's ARM ID to use when accessing a resource.
         * 
         * @return builder
         * 
         */
        public Builder userAssignedIdentity(@Nullable Output userAssignedIdentity) {
            $.userAssignedIdentity = userAssignedIdentity;
            return this;
        }

        /**
         * @param userAssignedIdentity The user assigned managed identity's ARM ID to use when accessing a resource.
         * 
         * @return builder
         * 
         */
        public Builder userAssignedIdentity(String userAssignedIdentity) {
            return userAssignedIdentity(Output.of(userAssignedIdentity));
        }

        public ResourceIdentityArgs build() {
            if ($.useSystemAssignedIdentity == null) {
                throw new MissingRequiredPropertyException("ResourceIdentityArgs", "useSystemAssignedIdentity");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy