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

com.pulumi.azurenative.blueprint.AssignmentArgs 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.blueprint;

import com.pulumi.azurenative.blueprint.inputs.AssignmentLockSettingsArgs;
import com.pulumi.azurenative.blueprint.inputs.ManagedServiceIdentityArgs;
import com.pulumi.azurenative.blueprint.inputs.ParameterValueArgs;
import com.pulumi.azurenative.blueprint.inputs.ResourceGroupValueArgs;
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 AssignmentArgs extends com.pulumi.resources.ResourceArgs {

    public static final AssignmentArgs Empty = new AssignmentArgs();

    /**
     * Name of the blueprint assignment.
     * 
     */
    @Import(name="assignmentName")
    private @Nullable Output assignmentName;

    /**
     * @return Name of the blueprint assignment.
     * 
     */
    public Optional> assignmentName() {
        return Optional.ofNullable(this.assignmentName);
    }

    /**
     * ID of the published version of a blueprint definition.
     * 
     */
    @Import(name="blueprintId")
    private @Nullable Output blueprintId;

    /**
     * @return ID of the published version of a blueprint definition.
     * 
     */
    public Optional> blueprintId() {
        return Optional.ofNullable(this.blueprintId);
    }

    /**
     * Multi-line explain this resource.
     * 
     */
    @Import(name="description")
    private @Nullable Output description;

    /**
     * @return Multi-line explain this resource.
     * 
     */
    public Optional> description() {
        return Optional.ofNullable(this.description);
    }

    /**
     * One-liner string explain this resource.
     * 
     */
    @Import(name="displayName")
    private @Nullable Output displayName;

    /**
     * @return One-liner string explain this resource.
     * 
     */
    public Optional> displayName() {
        return Optional.ofNullable(this.displayName);
    }

    /**
     * Managed identity for this blueprint assignment.
     * 
     */
    @Import(name="identity", required=true)
    private Output identity;

    /**
     * @return Managed identity for this blueprint assignment.
     * 
     */
    public Output identity() {
        return this.identity;
    }

    /**
     * The location of this blueprint assignment.
     * 
     */
    @Import(name="location")
    private @Nullable Output location;

    /**
     * @return The location of this blueprint assignment.
     * 
     */
    public Optional> location() {
        return Optional.ofNullable(this.location);
    }

    /**
     * Defines how resources deployed by a blueprint assignment are locked.
     * 
     */
    @Import(name="locks")
    private @Nullable Output locks;

    /**
     * @return Defines how resources deployed by a blueprint assignment are locked.
     * 
     */
    public Optional> locks() {
        return Optional.ofNullable(this.locks);
    }

    /**
     * Blueprint assignment parameter values.
     * 
     */
    @Import(name="parameters", required=true)
    private Output> parameters;

    /**
     * @return Blueprint assignment parameter values.
     * 
     */
    public Output> parameters() {
        return this.parameters;
    }

    /**
     * Names and locations of resource group placeholders.
     * 
     */
    @Import(name="resourceGroups", required=true)
    private Output> resourceGroups;

    /**
     * @return Names and locations of resource group placeholders.
     * 
     */
    public Output> resourceGroups() {
        return this.resourceGroups;
    }

    /**
     * The scope of the resource. Valid scopes are: management group (format: '/providers/Microsoft.Management/managementGroups/{managementGroup}'), subscription (format: '/subscriptions/{subscriptionId}').
     * 
     */
    @Import(name="resourceScope", required=true)
    private Output resourceScope;

    /**
     * @return The scope of the resource. Valid scopes are: management group (format: '/providers/Microsoft.Management/managementGroups/{managementGroup}'), subscription (format: '/subscriptions/{subscriptionId}').
     * 
     */
    public Output resourceScope() {
        return this.resourceScope;
    }

    /**
     * The target subscription scope of the blueprint assignment (format: '/subscriptions/{subscriptionId}'). For management group level assignments, the property is required.
     * 
     */
    @Import(name="scope")
    private @Nullable Output scope;

    /**
     * @return The target subscription scope of the blueprint assignment (format: '/subscriptions/{subscriptionId}'). For management group level assignments, the property is required.
     * 
     */
    public Optional> scope() {
        return Optional.ofNullable(this.scope);
    }

    private AssignmentArgs() {}

    private AssignmentArgs(AssignmentArgs $) {
        this.assignmentName = $.assignmentName;
        this.blueprintId = $.blueprintId;
        this.description = $.description;
        this.displayName = $.displayName;
        this.identity = $.identity;
        this.location = $.location;
        this.locks = $.locks;
        this.parameters = $.parameters;
        this.resourceGroups = $.resourceGroups;
        this.resourceScope = $.resourceScope;
        this.scope = $.scope;
    }

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

    public static final class Builder {
        private AssignmentArgs $;

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

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

        /**
         * @param assignmentName Name of the blueprint assignment.
         * 
         * @return builder
         * 
         */
        public Builder assignmentName(@Nullable Output assignmentName) {
            $.assignmentName = assignmentName;
            return this;
        }

        /**
         * @param assignmentName Name of the blueprint assignment.
         * 
         * @return builder
         * 
         */
        public Builder assignmentName(String assignmentName) {
            return assignmentName(Output.of(assignmentName));
        }

        /**
         * @param blueprintId ID of the published version of a blueprint definition.
         * 
         * @return builder
         * 
         */
        public Builder blueprintId(@Nullable Output blueprintId) {
            $.blueprintId = blueprintId;
            return this;
        }

        /**
         * @param blueprintId ID of the published version of a blueprint definition.
         * 
         * @return builder
         * 
         */
        public Builder blueprintId(String blueprintId) {
            return blueprintId(Output.of(blueprintId));
        }

        /**
         * @param description Multi-line explain this resource.
         * 
         * @return builder
         * 
         */
        public Builder description(@Nullable Output description) {
            $.description = description;
            return this;
        }

        /**
         * @param description Multi-line explain this resource.
         * 
         * @return builder
         * 
         */
        public Builder description(String description) {
            return description(Output.of(description));
        }

        /**
         * @param displayName One-liner string explain this resource.
         * 
         * @return builder
         * 
         */
        public Builder displayName(@Nullable Output displayName) {
            $.displayName = displayName;
            return this;
        }

        /**
         * @param displayName One-liner string explain this resource.
         * 
         * @return builder
         * 
         */
        public Builder displayName(String displayName) {
            return displayName(Output.of(displayName));
        }

        /**
         * @param identity Managed identity for this blueprint assignment.
         * 
         * @return builder
         * 
         */
        public Builder identity(Output identity) {
            $.identity = identity;
            return this;
        }

        /**
         * @param identity Managed identity for this blueprint assignment.
         * 
         * @return builder
         * 
         */
        public Builder identity(ManagedServiceIdentityArgs identity) {
            return identity(Output.of(identity));
        }

        /**
         * @param location The location of this blueprint assignment.
         * 
         * @return builder
         * 
         */
        public Builder location(@Nullable Output location) {
            $.location = location;
            return this;
        }

        /**
         * @param location The location of this blueprint assignment.
         * 
         * @return builder
         * 
         */
        public Builder location(String location) {
            return location(Output.of(location));
        }

        /**
         * @param locks Defines how resources deployed by a blueprint assignment are locked.
         * 
         * @return builder
         * 
         */
        public Builder locks(@Nullable Output locks) {
            $.locks = locks;
            return this;
        }

        /**
         * @param locks Defines how resources deployed by a blueprint assignment are locked.
         * 
         * @return builder
         * 
         */
        public Builder locks(AssignmentLockSettingsArgs locks) {
            return locks(Output.of(locks));
        }

        /**
         * @param parameters Blueprint assignment parameter values.
         * 
         * @return builder
         * 
         */
        public Builder parameters(Output> parameters) {
            $.parameters = parameters;
            return this;
        }

        /**
         * @param parameters Blueprint assignment parameter values.
         * 
         * @return builder
         * 
         */
        public Builder parameters(Map parameters) {
            return parameters(Output.of(parameters));
        }

        /**
         * @param resourceGroups Names and locations of resource group placeholders.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroups(Output> resourceGroups) {
            $.resourceGroups = resourceGroups;
            return this;
        }

        /**
         * @param resourceGroups Names and locations of resource group placeholders.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroups(Map resourceGroups) {
            return resourceGroups(Output.of(resourceGroups));
        }

        /**
         * @param resourceScope The scope of the resource. Valid scopes are: management group (format: '/providers/Microsoft.Management/managementGroups/{managementGroup}'), subscription (format: '/subscriptions/{subscriptionId}').
         * 
         * @return builder
         * 
         */
        public Builder resourceScope(Output resourceScope) {
            $.resourceScope = resourceScope;
            return this;
        }

        /**
         * @param resourceScope The scope of the resource. Valid scopes are: management group (format: '/providers/Microsoft.Management/managementGroups/{managementGroup}'), subscription (format: '/subscriptions/{subscriptionId}').
         * 
         * @return builder
         * 
         */
        public Builder resourceScope(String resourceScope) {
            return resourceScope(Output.of(resourceScope));
        }

        /**
         * @param scope The target subscription scope of the blueprint assignment (format: '/subscriptions/{subscriptionId}'). For management group level assignments, the property is required.
         * 
         * @return builder
         * 
         */
        public Builder scope(@Nullable Output scope) {
            $.scope = scope;
            return this;
        }

        /**
         * @param scope The target subscription scope of the blueprint assignment (format: '/subscriptions/{subscriptionId}'). For management group level assignments, the property is required.
         * 
         * @return builder
         * 
         */
        public Builder scope(String scope) {
            return scope(Output.of(scope));
        }

        public AssignmentArgs build() {
            if ($.identity == null) {
                throw new MissingRequiredPropertyException("AssignmentArgs", "identity");
            }
            if ($.parameters == null) {
                throw new MissingRequiredPropertyException("AssignmentArgs", "parameters");
            }
            if ($.resourceGroups == null) {
                throw new MissingRequiredPropertyException("AssignmentArgs", "resourceGroups");
            }
            if ($.resourceScope == null) {
                throw new MissingRequiredPropertyException("AssignmentArgs", "resourceScope");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy