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

com.pulumi.azurenative.apicenter.EnvironmentArgs Maven / Gradle / Ivy

There is a newer version: 2.82.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.apicenter;

import com.pulumi.azurenative.apicenter.enums.EnvironmentKind;
import com.pulumi.azurenative.apicenter.inputs.EnvironmentServerArgs;
import com.pulumi.azurenative.apicenter.inputs.OnboardingArgs;
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.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final EnvironmentArgs Empty = new EnvironmentArgs();

    /**
     * The custom metadata defined for API catalog entities.
     * 
     */
    @Import(name="customProperties")
    private @Nullable Output customProperties;

    /**
     * @return The custom metadata defined for API catalog entities.
     * 
     */
    public Optional> customProperties() {
        return Optional.ofNullable(this.customProperties);
    }

    /**
     * The environment description.
     * 
     */
    @Import(name="description")
    private @Nullable Output description;

    /**
     * @return The environment description.
     * 
     */
    public Optional> description() {
        return Optional.ofNullable(this.description);
    }

    /**
     * The name of the environment.
     * 
     */
    @Import(name="environmentName")
    private @Nullable Output environmentName;

    /**
     * @return The name of the environment.
     * 
     */
    public Optional> environmentName() {
        return Optional.ofNullable(this.environmentName);
    }

    /**
     * Environment kind.
     * 
     */
    @Import(name="kind", required=true)
    private Output> kind;

    /**
     * @return Environment kind.
     * 
     */
    public Output> kind() {
        return this.kind;
    }

    /**
     * Environment onboarding information
     * 
     */
    @Import(name="onboarding")
    private @Nullable Output onboarding;

    /**
     * @return Environment onboarding information
     * 
     */
    public Optional> onboarding() {
        return Optional.ofNullable(this.onboarding);
    }

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

    /**
     * Server information of the environment.
     * 
     */
    @Import(name="server")
    private @Nullable Output server;

    /**
     * @return Server information of the environment.
     * 
     */
    public Optional> server() {
        return Optional.ofNullable(this.server);
    }

    /**
     * The name of Azure API Center service.
     * 
     */
    @Import(name="serviceName", required=true)
    private Output serviceName;

    /**
     * @return The name of Azure API Center service.
     * 
     */
    public Output serviceName() {
        return this.serviceName;
    }

    /**
     * Environment title.
     * 
     */
    @Import(name="title", required=true)
    private Output title;

    /**
     * @return Environment title.
     * 
     */
    public Output title() {
        return this.title;
    }

    /**
     * The name of the workspace.
     * 
     */
    @Import(name="workspaceName", required=true)
    private Output workspaceName;

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

    private EnvironmentArgs() {}

    private EnvironmentArgs(EnvironmentArgs $) {
        this.customProperties = $.customProperties;
        this.description = $.description;
        this.environmentName = $.environmentName;
        this.kind = $.kind;
        this.onboarding = $.onboarding;
        this.resourceGroupName = $.resourceGroupName;
        this.server = $.server;
        this.serviceName = $.serviceName;
        this.title = $.title;
        this.workspaceName = $.workspaceName;
    }

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

    public static final class Builder {
        private EnvironmentArgs $;

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

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

        /**
         * @param customProperties The custom metadata defined for API catalog entities.
         * 
         * @return builder
         * 
         */
        public Builder customProperties(@Nullable Output customProperties) {
            $.customProperties = customProperties;
            return this;
        }

        /**
         * @param customProperties The custom metadata defined for API catalog entities.
         * 
         * @return builder
         * 
         */
        public Builder customProperties(Object customProperties) {
            return customProperties(Output.of(customProperties));
        }

        /**
         * @param description The environment description.
         * 
         * @return builder
         * 
         */
        public Builder description(@Nullable Output description) {
            $.description = description;
            return this;
        }

        /**
         * @param description The environment description.
         * 
         * @return builder
         * 
         */
        public Builder description(String description) {
            return description(Output.of(description));
        }

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

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

        /**
         * @param kind Environment kind.
         * 
         * @return builder
         * 
         */
        public Builder kind(Output> kind) {
            $.kind = kind;
            return this;
        }

        /**
         * @param kind Environment kind.
         * 
         * @return builder
         * 
         */
        public Builder kind(Either kind) {
            return kind(Output.of(kind));
        }

        /**
         * @param kind Environment kind.
         * 
         * @return builder
         * 
         */
        public Builder kind(String kind) {
            return kind(Either.ofLeft(kind));
        }

        /**
         * @param kind Environment kind.
         * 
         * @return builder
         * 
         */
        public Builder kind(EnvironmentKind kind) {
            return kind(Either.ofRight(kind));
        }

        /**
         * @param onboarding Environment onboarding information
         * 
         * @return builder
         * 
         */
        public Builder onboarding(@Nullable Output onboarding) {
            $.onboarding = onboarding;
            return this;
        }

        /**
         * @param onboarding Environment onboarding information
         * 
         * @return builder
         * 
         */
        public Builder onboarding(OnboardingArgs onboarding) {
            return onboarding(Output.of(onboarding));
        }

        /**
         * @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 server Server information of the environment.
         * 
         * @return builder
         * 
         */
        public Builder server(@Nullable Output server) {
            $.server = server;
            return this;
        }

        /**
         * @param server Server information of the environment.
         * 
         * @return builder
         * 
         */
        public Builder server(EnvironmentServerArgs server) {
            return server(Output.of(server));
        }

        /**
         * @param serviceName The name of Azure API Center service.
         * 
         * @return builder
         * 
         */
        public Builder serviceName(Output serviceName) {
            $.serviceName = serviceName;
            return this;
        }

        /**
         * @param serviceName The name of Azure API Center service.
         * 
         * @return builder
         * 
         */
        public Builder serviceName(String serviceName) {
            return serviceName(Output.of(serviceName));
        }

        /**
         * @param title Environment title.
         * 
         * @return builder
         * 
         */
        public Builder title(Output title) {
            $.title = title;
            return this;
        }

        /**
         * @param title Environment title.
         * 
         * @return builder
         * 
         */
        public Builder title(String title) {
            return title(Output.of(title));
        }

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

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

        public EnvironmentArgs build() {
            if ($.kind == null) {
                throw new MissingRequiredPropertyException("EnvironmentArgs", "kind");
            }
            if ($.resourceGroupName == null) {
                throw new MissingRequiredPropertyException("EnvironmentArgs", "resourceGroupName");
            }
            if ($.serviceName == null) {
                throw new MissingRequiredPropertyException("EnvironmentArgs", "serviceName");
            }
            if ($.title == null) {
                throw new MissingRequiredPropertyException("EnvironmentArgs", "title");
            }
            if ($.workspaceName == null) {
                throw new MissingRequiredPropertyException("EnvironmentArgs", "workspaceName");
            }
            return $;
        }
    }

}