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

com.pulumi.azurenative.blueprint.BlueprintArgs 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.enums.BlueprintTargetScope;
import com.pulumi.azurenative.blueprint.inputs.ParameterDefinitionArgs;
import com.pulumi.azurenative.blueprint.inputs.ResourceGroupDefinitionArgs;
import com.pulumi.core.Either;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Object;
import java.lang.String;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final BlueprintArgs Empty = new BlueprintArgs();

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

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

    /**
     * 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);
    }

    /**
     * Parameters required by this blueprint definition.
     * 
     */
    @Import(name="parameters")
    private @Nullable Output> parameters;

    /**
     * @return Parameters required by this blueprint definition.
     * 
     */
    public Optional>> parameters() {
        return Optional.ofNullable(this.parameters);
    }

    /**
     * Resource group placeholders defined by this blueprint definition.
     * 
     */
    @Import(name="resourceGroups")
    private @Nullable Output> resourceGroups;

    /**
     * @return Resource group placeholders defined by this blueprint definition.
     * 
     */
    public Optional>> resourceGroups() {
        return Optional.ofNullable(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 scope where this blueprint definition can be assigned.
     * 
     */
    @Import(name="targetScope", required=true)
    private Output> targetScope;

    /**
     * @return The scope where this blueprint definition can be assigned.
     * 
     */
    public Output> targetScope() {
        return this.targetScope;
    }

    /**
     * Published versions of this blueprint definition.
     * 
     */
    @Import(name="versions")
    private @Nullable Output versions;

    /**
     * @return Published versions of this blueprint definition.
     * 
     */
    public Optional> versions() {
        return Optional.ofNullable(this.versions);
    }

    private BlueprintArgs() {}

    private BlueprintArgs(BlueprintArgs $) {
        this.blueprintName = $.blueprintName;
        this.description = $.description;
        this.displayName = $.displayName;
        this.parameters = $.parameters;
        this.resourceGroups = $.resourceGroups;
        this.resourceScope = $.resourceScope;
        this.targetScope = $.targetScope;
        this.versions = $.versions;
    }

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

    public static final class Builder {
        private BlueprintArgs $;

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

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

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

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

        /**
         * @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 parameters Parameters required by this blueprint definition.
         * 
         * @return builder
         * 
         */
        public Builder parameters(@Nullable Output> parameters) {
            $.parameters = parameters;
            return this;
        }

        /**
         * @param parameters Parameters required by this blueprint definition.
         * 
         * @return builder
         * 
         */
        public Builder parameters(Map parameters) {
            return parameters(Output.of(parameters));
        }

        /**
         * @param resourceGroups Resource group placeholders defined by this blueprint definition.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroups(@Nullable Output> resourceGroups) {
            $.resourceGroups = resourceGroups;
            return this;
        }

        /**
         * @param resourceGroups Resource group placeholders defined by this blueprint definition.
         * 
         * @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 targetScope The scope where this blueprint definition can be assigned.
         * 
         * @return builder
         * 
         */
        public Builder targetScope(Output> targetScope) {
            $.targetScope = targetScope;
            return this;
        }

        /**
         * @param targetScope The scope where this blueprint definition can be assigned.
         * 
         * @return builder
         * 
         */
        public Builder targetScope(Either targetScope) {
            return targetScope(Output.of(targetScope));
        }

        /**
         * @param targetScope The scope where this blueprint definition can be assigned.
         * 
         * @return builder
         * 
         */
        public Builder targetScope(String targetScope) {
            return targetScope(Either.ofLeft(targetScope));
        }

        /**
         * @param targetScope The scope where this blueprint definition can be assigned.
         * 
         * @return builder
         * 
         */
        public Builder targetScope(BlueprintTargetScope targetScope) {
            return targetScope(Either.ofRight(targetScope));
        }

        /**
         * @param versions Published versions of this blueprint definition.
         * 
         * @return builder
         * 
         */
        public Builder versions(@Nullable Output versions) {
            $.versions = versions;
            return this;
        }

        /**
         * @param versions Published versions of this blueprint definition.
         * 
         * @return builder
         * 
         */
        public Builder versions(Object versions) {
            return versions(Output.of(versions));
        }

        public BlueprintArgs build() {
            if ($.resourceScope == null) {
                throw new MissingRequiredPropertyException("BlueprintArgs", "resourceScope");
            }
            if ($.targetScope == null) {
                throw new MissingRequiredPropertyException("BlueprintArgs", "targetScope");
            }
            return $;
        }
    }

}