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

com.pulumi.azurenative.apicenter.DeploymentArgs 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.DeploymentState;
import com.pulumi.azurenative.apicenter.inputs.DeploymentServerArgs;
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 DeploymentArgs extends com.pulumi.resources.ResourceArgs {

    public static final DeploymentArgs Empty = new DeploymentArgs();

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

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

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

    /**
     * API center-scoped definition resource ID.
     * 
     */
    @Import(name="definitionId")
    private @Nullable Output definitionId;

    /**
     * @return API center-scoped definition resource ID.
     * 
     */
    public Optional> definitionId() {
        return Optional.ofNullable(this.definitionId);
    }

    /**
     * The name of the API deployment.
     * 
     */
    @Import(name="deploymentName")
    private @Nullable Output deploymentName;

    /**
     * @return The name of the API deployment.
     * 
     */
    public Optional> deploymentName() {
        return Optional.ofNullable(this.deploymentName);
    }

    /**
     * Description of the deployment.
     * 
     */
    @Import(name="description")
    private @Nullable Output description;

    /**
     * @return Description of the deployment.
     * 
     */
    public Optional> description() {
        return Optional.ofNullable(this.description);
    }

    /**
     * API center-scoped environment resource ID.
     * 
     */
    @Import(name="environmentId")
    private @Nullable Output environmentId;

    /**
     * @return API center-scoped environment resource ID.
     * 
     */
    public Optional> environmentId() {
        return Optional.ofNullable(this.environmentId);
    }

    /**
     * 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 deployment server
     * 
     */
    @Import(name="server")
    private @Nullable Output server;

    /**
     * @return The deployment server
     * 
     */
    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;
    }

    /**
     * State of API deployment.
     * 
     */
    @Import(name="state")
    private @Nullable Output> state;

    /**
     * @return State of API deployment.
     * 
     */
    public Optional>> state() {
        return Optional.ofNullable(this.state);
    }

    /**
     * API deployment title
     * 
     */
    @Import(name="title")
    private @Nullable Output title;

    /**
     * @return API deployment title
     * 
     */
    public Optional> title() {
        return Optional.ofNullable(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 DeploymentArgs() {}

    private DeploymentArgs(DeploymentArgs $) {
        this.apiName = $.apiName;
        this.customProperties = $.customProperties;
        this.definitionId = $.definitionId;
        this.deploymentName = $.deploymentName;
        this.description = $.description;
        this.environmentId = $.environmentId;
        this.resourceGroupName = $.resourceGroupName;
        this.server = $.server;
        this.serviceName = $.serviceName;
        this.state = $.state;
        this.title = $.title;
        this.workspaceName = $.workspaceName;
    }

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

    public static final class Builder {
        private DeploymentArgs $;

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

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

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

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

        /**
         * @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 definitionId API center-scoped definition resource ID.
         * 
         * @return builder
         * 
         */
        public Builder definitionId(@Nullable Output definitionId) {
            $.definitionId = definitionId;
            return this;
        }

        /**
         * @param definitionId API center-scoped definition resource ID.
         * 
         * @return builder
         * 
         */
        public Builder definitionId(String definitionId) {
            return definitionId(Output.of(definitionId));
        }

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

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

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

        /**
         * @param description Description of the deployment.
         * 
         * @return builder
         * 
         */
        public Builder description(String description) {
            return description(Output.of(description));
        }

        /**
         * @param environmentId API center-scoped environment resource ID.
         * 
         * @return builder
         * 
         */
        public Builder environmentId(@Nullable Output environmentId) {
            $.environmentId = environmentId;
            return this;
        }

        /**
         * @param environmentId API center-scoped environment resource ID.
         * 
         * @return builder
         * 
         */
        public Builder environmentId(String environmentId) {
            return environmentId(Output.of(environmentId));
        }

        /**
         * @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 The deployment server
         * 
         * @return builder
         * 
         */
        public Builder server(@Nullable Output server) {
            $.server = server;
            return this;
        }

        /**
         * @param server The deployment server
         * 
         * @return builder
         * 
         */
        public Builder server(DeploymentServerArgs 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 state State of API deployment.
         * 
         * @return builder
         * 
         */
        public Builder state(@Nullable Output> state) {
            $.state = state;
            return this;
        }

        /**
         * @param state State of API deployment.
         * 
         * @return builder
         * 
         */
        public Builder state(Either state) {
            return state(Output.of(state));
        }

        /**
         * @param state State of API deployment.
         * 
         * @return builder
         * 
         */
        public Builder state(String state) {
            return state(Either.ofLeft(state));
        }

        /**
         * @param state State of API deployment.
         * 
         * @return builder
         * 
         */
        public Builder state(DeploymentState state) {
            return state(Either.ofRight(state));
        }

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

        /**
         * @param title API deployment 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 DeploymentArgs build() {
            if ($.apiName == null) {
                throw new MissingRequiredPropertyException("DeploymentArgs", "apiName");
            }
            if ($.resourceGroupName == null) {
                throw new MissingRequiredPropertyException("DeploymentArgs", "resourceGroupName");
            }
            if ($.serviceName == null) {
                throw new MissingRequiredPropertyException("DeploymentArgs", "serviceName");
            }
            if ($.workspaceName == null) {
                throw new MissingRequiredPropertyException("DeploymentArgs", "workspaceName");
            }
            return $;
        }
    }

}