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

com.pulumi.azure.core.inputs.CustomProviderState 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.core.inputs;

import com.pulumi.azure.core.inputs.CustomProviderActionArgs;
import com.pulumi.azure.core.inputs.CustomProviderResourceTypeArgs;
import com.pulumi.azure.core.inputs.CustomProviderValidationArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.String;
import java.util.List;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final CustomProviderState Empty = new CustomProviderState();

    /**
     * Any number of `action` block as defined below. One of `resource_type` or `action` must be specified.
     * 
     */
    @Import(name="actions")
    private @Nullable Output> actions;

    /**
     * @return Any number of `action` block as defined below. One of `resource_type` or `action` must be specified.
     * 
     */
    public Optional>> actions() {
        return Optional.ofNullable(this.actions);
    }

    /**
     * Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
     * 
     */
    @Import(name="location")
    private @Nullable Output location;

    /**
     * @return Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
     * 
     */
    public Optional> location() {
        return Optional.ofNullable(this.location);
    }

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

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

    /**
     * The name of the resource group in which to create the Custom Provider. Changing this forces a new resource to be created.
     * 
     */
    @Import(name="resourceGroupName")
    private @Nullable Output resourceGroupName;

    /**
     * @return The name of the resource group in which to create the Custom Provider. Changing this forces a new resource to be created.
     * 
     */
    public Optional> resourceGroupName() {
        return Optional.ofNullable(this.resourceGroupName);
    }

    /**
     * Any number of `resource_type` block as defined below. One of `resource_type` or `action` must be specified.
     * 
     */
    @Import(name="resourceTypes")
    private @Nullable Output> resourceTypes;

    /**
     * @return Any number of `resource_type` block as defined below. One of `resource_type` or `action` must be specified.
     * 
     */
    public Optional>> resourceTypes() {
        return Optional.ofNullable(this.resourceTypes);
    }

    /**
     * A mapping of tags to assign to the resource. Changing this forces a new resource to be created.
     * 
     */
    @Import(name="tags")
    private @Nullable Output> tags;

    /**
     * @return A mapping of tags to assign to the resource. Changing this forces a new resource to be created.
     * 
     */
    public Optional>> tags() {
        return Optional.ofNullable(this.tags);
    }

    /**
     * Any number of `validation` block as defined below.
     * 
     */
    @Import(name="validations")
    private @Nullable Output> validations;

    /**
     * @return Any number of `validation` block as defined below.
     * 
     */
    public Optional>> validations() {
        return Optional.ofNullable(this.validations);
    }

    private CustomProviderState() {}

    private CustomProviderState(CustomProviderState $) {
        this.actions = $.actions;
        this.location = $.location;
        this.name = $.name;
        this.resourceGroupName = $.resourceGroupName;
        this.resourceTypes = $.resourceTypes;
        this.tags = $.tags;
        this.validations = $.validations;
    }

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

    public static final class Builder {
        private CustomProviderState $;

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

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

        /**
         * @param actions Any number of `action` block as defined below. One of `resource_type` or `action` must be specified.
         * 
         * @return builder
         * 
         */
        public Builder actions(@Nullable Output> actions) {
            $.actions = actions;
            return this;
        }

        /**
         * @param actions Any number of `action` block as defined below. One of `resource_type` or `action` must be specified.
         * 
         * @return builder
         * 
         */
        public Builder actions(List actions) {
            return actions(Output.of(actions));
        }

        /**
         * @param actions Any number of `action` block as defined below. One of `resource_type` or `action` must be specified.
         * 
         * @return builder
         * 
         */
        public Builder actions(CustomProviderActionArgs... actions) {
            return actions(List.of(actions));
        }

        /**
         * @param location Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder location(@Nullable Output location) {
            $.location = location;
            return this;
        }

        /**
         * @param location Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder location(String location) {
            return location(Output.of(location));
        }

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

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

        /**
         * @param resourceGroupName The name of the resource group in which to create the Custom Provider. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(@Nullable Output resourceGroupName) {
            $.resourceGroupName = resourceGroupName;
            return this;
        }

        /**
         * @param resourceGroupName The name of the resource group in which to create the Custom Provider. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(String resourceGroupName) {
            return resourceGroupName(Output.of(resourceGroupName));
        }

        /**
         * @param resourceTypes Any number of `resource_type` block as defined below. One of `resource_type` or `action` must be specified.
         * 
         * @return builder
         * 
         */
        public Builder resourceTypes(@Nullable Output> resourceTypes) {
            $.resourceTypes = resourceTypes;
            return this;
        }

        /**
         * @param resourceTypes Any number of `resource_type` block as defined below. One of `resource_type` or `action` must be specified.
         * 
         * @return builder
         * 
         */
        public Builder resourceTypes(List resourceTypes) {
            return resourceTypes(Output.of(resourceTypes));
        }

        /**
         * @param resourceTypes Any number of `resource_type` block as defined below. One of `resource_type` or `action` must be specified.
         * 
         * @return builder
         * 
         */
        public Builder resourceTypes(CustomProviderResourceTypeArgs... resourceTypes) {
            return resourceTypes(List.of(resourceTypes));
        }

        /**
         * @param tags A mapping of tags to assign to the resource. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder tags(@Nullable Output> tags) {
            $.tags = tags;
            return this;
        }

        /**
         * @param tags A mapping of tags to assign to the resource. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder tags(Map tags) {
            return tags(Output.of(tags));
        }

        /**
         * @param validations Any number of `validation` block as defined below.
         * 
         * @return builder
         * 
         */
        public Builder validations(@Nullable Output> validations) {
            $.validations = validations;
            return this;
        }

        /**
         * @param validations Any number of `validation` block as defined below.
         * 
         * @return builder
         * 
         */
        public Builder validations(List validations) {
            return validations(Output.of(validations));
        }

        /**
         * @param validations Any number of `validation` block as defined below.
         * 
         * @return builder
         * 
         */
        public Builder validations(CustomProviderValidationArgs... validations) {
            return validations(List.of(validations));
        }

        public CustomProviderState build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy