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

com.pulumi.azurenative.integrationspaces.InfrastructureResourceArgs Maven / Gradle / Ivy

// *** 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.integrationspaces;

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


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

    public static final InfrastructureResourceArgs Empty = new InfrastructureResourceArgs();

    /**
     * The name of the infrastructure resource in the space.
     * 
     */
    @Import(name="infrastructureResourceName")
    private @Nullable Output infrastructureResourceName;

    /**
     * @return The name of the infrastructure resource in the space.
     * 
     */
    public Optional> infrastructureResourceName() {
        return Optional.ofNullable(this.infrastructureResourceName);
    }

    /**
     * The name of the resource group. The name is case insensitive.
     * 
     */
    @Import(name="resourceGroupName", required=true)
    private Output resourceGroupName;

    /**
     * @return The name of the resource group. The name is case insensitive.
     * 
     */
    public Output resourceGroupName() {
        return this.resourceGroupName;
    }

    /**
     * The id of the infrastructure resource.
     * 
     */
    @Import(name="resourceId", required=true)
    private Output resourceId;

    /**
     * @return The id of the infrastructure resource.
     * 
     */
    public Output resourceId() {
        return this.resourceId;
    }

    /**
     * The type of the infrastructure resource.
     * 
     */
    @Import(name="resourceType", required=true)
    private Output resourceType;

    /**
     * @return The type of the infrastructure resource.
     * 
     */
    public Output resourceType() {
        return this.resourceType;
    }

    /**
     * The name of the space
     * 
     */
    @Import(name="spaceName", required=true)
    private Output spaceName;

    /**
     * @return The name of the space
     * 
     */
    public Output spaceName() {
        return this.spaceName;
    }

    private InfrastructureResourceArgs() {}

    private InfrastructureResourceArgs(InfrastructureResourceArgs $) {
        this.infrastructureResourceName = $.infrastructureResourceName;
        this.resourceGroupName = $.resourceGroupName;
        this.resourceId = $.resourceId;
        this.resourceType = $.resourceType;
        this.spaceName = $.spaceName;
    }

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

    public static final class Builder {
        private InfrastructureResourceArgs $;

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

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

        /**
         * @param infrastructureResourceName The name of the infrastructure resource in the space.
         * 
         * @return builder
         * 
         */
        public Builder infrastructureResourceName(@Nullable Output infrastructureResourceName) {
            $.infrastructureResourceName = infrastructureResourceName;
            return this;
        }

        /**
         * @param infrastructureResourceName The name of the infrastructure resource in the space.
         * 
         * @return builder
         * 
         */
        public Builder infrastructureResourceName(String infrastructureResourceName) {
            return infrastructureResourceName(Output.of(infrastructureResourceName));
        }

        /**
         * @param resourceGroupName The name of the resource group. The name is case insensitive.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(Output resourceGroupName) {
            $.resourceGroupName = resourceGroupName;
            return this;
        }

        /**
         * @param resourceGroupName The name of the resource group. The name is case insensitive.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(String resourceGroupName) {
            return resourceGroupName(Output.of(resourceGroupName));
        }

        /**
         * @param resourceId The id of the infrastructure resource.
         * 
         * @return builder
         * 
         */
        public Builder resourceId(Output resourceId) {
            $.resourceId = resourceId;
            return this;
        }

        /**
         * @param resourceId The id of the infrastructure resource.
         * 
         * @return builder
         * 
         */
        public Builder resourceId(String resourceId) {
            return resourceId(Output.of(resourceId));
        }

        /**
         * @param resourceType The type of the infrastructure resource.
         * 
         * @return builder
         * 
         */
        public Builder resourceType(Output resourceType) {
            $.resourceType = resourceType;
            return this;
        }

        /**
         * @param resourceType The type of the infrastructure resource.
         * 
         * @return builder
         * 
         */
        public Builder resourceType(String resourceType) {
            return resourceType(Output.of(resourceType));
        }

        /**
         * @param spaceName The name of the space
         * 
         * @return builder
         * 
         */
        public Builder spaceName(Output spaceName) {
            $.spaceName = spaceName;
            return this;
        }

        /**
         * @param spaceName The name of the space
         * 
         * @return builder
         * 
         */
        public Builder spaceName(String spaceName) {
            return spaceName(Output.of(spaceName));
        }

        public InfrastructureResourceArgs build() {
            if ($.resourceGroupName == null) {
                throw new MissingRequiredPropertyException("InfrastructureResourceArgs", "resourceGroupName");
            }
            if ($.resourceId == null) {
                throw new MissingRequiredPropertyException("InfrastructureResourceArgs", "resourceId");
            }
            if ($.resourceType == null) {
                throw new MissingRequiredPropertyException("InfrastructureResourceArgs", "resourceType");
            }
            if ($.spaceName == null) {
                throw new MissingRequiredPropertyException("InfrastructureResourceArgs", "spaceName");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy