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

com.pulumi.azure.lighthouse.DefinitionArgs Maven / Gradle / Ivy

Go to download

A Pulumi package for creating and managing Microsoft Azure cloud resources, based on the Terraform azurerm provider. We recommend using the [Azure Native provider](https://github.com/pulumi/pulumi-azure-native) to provision Azure infrastructure. Azure Native provides complete coverage of Azure resources and same-day access to new resources and resource updates.

There is a newer version: 6.10.0-alpha.1731737215
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.azure.lighthouse;

import com.pulumi.azure.lighthouse.inputs.DefinitionAuthorizationArgs;
import com.pulumi.azure.lighthouse.inputs.DefinitionEligibleAuthorizationArgs;
import com.pulumi.azure.lighthouse.inputs.DefinitionPlanArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final DefinitionArgs Empty = new DefinitionArgs();

    /**
     * An `authorization` block as defined below.
     * 
     */
    @Import(name="authorizations", required=true)
    private Output> authorizations;

    /**
     * @return An `authorization` block as defined below.
     * 
     */
    public Output> authorizations() {
        return this.authorizations;
    }

    /**
     * A description of the Lighthouse Definition.
     * 
     */
    @Import(name="description")
    private @Nullable Output description;

    /**
     * @return A description of the Lighthouse Definition.
     * 
     */
    public Optional> description() {
        return Optional.ofNullable(this.description);
    }

    /**
     * An `eligible_authorization` block as defined below.
     * 
     */
    @Import(name="eligibleAuthorizations")
    private @Nullable Output> eligibleAuthorizations;

    /**
     * @return An `eligible_authorization` block as defined below.
     * 
     */
    public Optional>> eligibleAuthorizations() {
        return Optional.ofNullable(this.eligibleAuthorizations);
    }

    /**
     * A unique UUID/GUID which identifies this lighthouse definition - one will be generated if not specified. Changing this forces a new resource to be created.
     * 
     */
    @Import(name="lighthouseDefinitionId")
    private @Nullable Output lighthouseDefinitionId;

    /**
     * @return A unique UUID/GUID which identifies this lighthouse definition - one will be generated if not specified. Changing this forces a new resource to be created.
     * 
     */
    public Optional> lighthouseDefinitionId() {
        return Optional.ofNullable(this.lighthouseDefinitionId);
    }

    /**
     * The ID of the managing tenant. Changing this forces a new resource to be created.
     * 
     */
    @Import(name="managingTenantId", required=true)
    private Output managingTenantId;

    /**
     * @return The ID of the managing tenant. Changing this forces a new resource to be created.
     * 
     */
    public Output managingTenantId() {
        return this.managingTenantId;
    }

    /**
     * The name of the Lighthouse Definition. Changing this forces a new resource to be created.
     * 
     */
    @Import(name="name")
    private @Nullable Output name;

    /**
     * @return The name of the Lighthouse Definition. Changing this forces a new resource to be created.
     * 
     */
    public Optional> name() {
        return Optional.ofNullable(this.name);
    }

    /**
     * A `plan` block as defined below.
     * 
     */
    @Import(name="plan")
    private @Nullable Output plan;

    /**
     * @return A `plan` block as defined below.
     * 
     */
    public Optional> plan() {
        return Optional.ofNullable(this.plan);
    }

    /**
     * The ID of the managed subscription. Changing this forces a new resource to be created.
     * 
     */
    @Import(name="scope", required=true)
    private Output scope;

    /**
     * @return The ID of the managed subscription. Changing this forces a new resource to be created.
     * 
     */
    public Output scope() {
        return this.scope;
    }

    private DefinitionArgs() {}

    private DefinitionArgs(DefinitionArgs $) {
        this.authorizations = $.authorizations;
        this.description = $.description;
        this.eligibleAuthorizations = $.eligibleAuthorizations;
        this.lighthouseDefinitionId = $.lighthouseDefinitionId;
        this.managingTenantId = $.managingTenantId;
        this.name = $.name;
        this.plan = $.plan;
        this.scope = $.scope;
    }

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

    public static final class Builder {
        private DefinitionArgs $;

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

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

        /**
         * @param authorizations An `authorization` block as defined below.
         * 
         * @return builder
         * 
         */
        public Builder authorizations(Output> authorizations) {
            $.authorizations = authorizations;
            return this;
        }

        /**
         * @param authorizations An `authorization` block as defined below.
         * 
         * @return builder
         * 
         */
        public Builder authorizations(List authorizations) {
            return authorizations(Output.of(authorizations));
        }

        /**
         * @param authorizations An `authorization` block as defined below.
         * 
         * @return builder
         * 
         */
        public Builder authorizations(DefinitionAuthorizationArgs... authorizations) {
            return authorizations(List.of(authorizations));
        }

        /**
         * @param description A description of the Lighthouse Definition.
         * 
         * @return builder
         * 
         */
        public Builder description(@Nullable Output description) {
            $.description = description;
            return this;
        }

        /**
         * @param description A description of the Lighthouse Definition.
         * 
         * @return builder
         * 
         */
        public Builder description(String description) {
            return description(Output.of(description));
        }

        /**
         * @param eligibleAuthorizations An `eligible_authorization` block as defined below.
         * 
         * @return builder
         * 
         */
        public Builder eligibleAuthorizations(@Nullable Output> eligibleAuthorizations) {
            $.eligibleAuthorizations = eligibleAuthorizations;
            return this;
        }

        /**
         * @param eligibleAuthorizations An `eligible_authorization` block as defined below.
         * 
         * @return builder
         * 
         */
        public Builder eligibleAuthorizations(List eligibleAuthorizations) {
            return eligibleAuthorizations(Output.of(eligibleAuthorizations));
        }

        /**
         * @param eligibleAuthorizations An `eligible_authorization` block as defined below.
         * 
         * @return builder
         * 
         */
        public Builder eligibleAuthorizations(DefinitionEligibleAuthorizationArgs... eligibleAuthorizations) {
            return eligibleAuthorizations(List.of(eligibleAuthorizations));
        }

        /**
         * @param lighthouseDefinitionId A unique UUID/GUID which identifies this lighthouse definition - one will be generated if not specified. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder lighthouseDefinitionId(@Nullable Output lighthouseDefinitionId) {
            $.lighthouseDefinitionId = lighthouseDefinitionId;
            return this;
        }

        /**
         * @param lighthouseDefinitionId A unique UUID/GUID which identifies this lighthouse definition - one will be generated if not specified. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder lighthouseDefinitionId(String lighthouseDefinitionId) {
            return lighthouseDefinitionId(Output.of(lighthouseDefinitionId));
        }

        /**
         * @param managingTenantId The ID of the managing tenant. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder managingTenantId(Output managingTenantId) {
            $.managingTenantId = managingTenantId;
            return this;
        }

        /**
         * @param managingTenantId The ID of the managing tenant. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder managingTenantId(String managingTenantId) {
            return managingTenantId(Output.of(managingTenantId));
        }

        /**
         * @param name The name of the Lighthouse Definition. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder name(@Nullable Output name) {
            $.name = name;
            return this;
        }

        /**
         * @param name The name of the Lighthouse Definition. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder name(String name) {
            return name(Output.of(name));
        }

        /**
         * @param plan A `plan` block as defined below.
         * 
         * @return builder
         * 
         */
        public Builder plan(@Nullable Output plan) {
            $.plan = plan;
            return this;
        }

        /**
         * @param plan A `plan` block as defined below.
         * 
         * @return builder
         * 
         */
        public Builder plan(DefinitionPlanArgs plan) {
            return plan(Output.of(plan));
        }

        /**
         * @param scope The ID of the managed subscription. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder scope(Output scope) {
            $.scope = scope;
            return this;
        }

        /**
         * @param scope The ID of the managed subscription. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder scope(String scope) {
            return scope(Output.of(scope));
        }

        public DefinitionArgs build() {
            if ($.authorizations == null) {
                throw new MissingRequiredPropertyException("DefinitionArgs", "authorizations");
            }
            if ($.managingTenantId == null) {
                throw new MissingRequiredPropertyException("DefinitionArgs", "managingTenantId");
            }
            if ($.scope == null) {
                throw new MissingRequiredPropertyException("DefinitionArgs", "scope");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy