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

com.pulumi.azurenative.apimanagement.WorkspaceApiVersionSetArgs 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.apimanagement;

import com.pulumi.azurenative.apimanagement.enums.VersioningScheme;
import com.pulumi.core.Either;
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 WorkspaceApiVersionSetArgs extends com.pulumi.resources.ResourceArgs {

    public static final WorkspaceApiVersionSetArgs Empty = new WorkspaceApiVersionSetArgs();

    /**
     * Description of API Version Set.
     * 
     */
    @Import(name="description")
    private @Nullable Output description;

    /**
     * @return Description of API Version Set.
     * 
     */
    public Optional> description() {
        return Optional.ofNullable(this.description);
    }

    /**
     * Name of API Version Set
     * 
     */
    @Import(name="displayName", required=true)
    private Output displayName;

    /**
     * @return Name of API Version Set
     * 
     */
    public Output displayName() {
        return this.displayName;
    }

    /**
     * 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 name of the API Management service.
     * 
     */
    @Import(name="serviceName", required=true)
    private Output serviceName;

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

    /**
     * Name of HTTP header parameter that indicates the API Version if versioningScheme is set to `header`.
     * 
     */
    @Import(name="versionHeaderName")
    private @Nullable Output versionHeaderName;

    /**
     * @return Name of HTTP header parameter that indicates the API Version if versioningScheme is set to `header`.
     * 
     */
    public Optional> versionHeaderName() {
        return Optional.ofNullable(this.versionHeaderName);
    }

    /**
     * Name of query parameter that indicates the API Version if versioningScheme is set to `query`.
     * 
     */
    @Import(name="versionQueryName")
    private @Nullable Output versionQueryName;

    /**
     * @return Name of query parameter that indicates the API Version if versioningScheme is set to `query`.
     * 
     */
    public Optional> versionQueryName() {
        return Optional.ofNullable(this.versionQueryName);
    }

    /**
     * Api Version Set identifier. Must be unique in the current API Management service instance.
     * 
     */
    @Import(name="versionSetId")
    private @Nullable Output versionSetId;

    /**
     * @return Api Version Set identifier. Must be unique in the current API Management service instance.
     * 
     */
    public Optional> versionSetId() {
        return Optional.ofNullable(this.versionSetId);
    }

    /**
     * An value that determines where the API Version identifier will be located in a HTTP request.
     * 
     */
    @Import(name="versioningScheme", required=true)
    private Output> versioningScheme;

    /**
     * @return An value that determines where the API Version identifier will be located in a HTTP request.
     * 
     */
    public Output> versioningScheme() {
        return this.versioningScheme;
    }

    /**
     * Workspace identifier. Must be unique in the current API Management service instance.
     * 
     */
    @Import(name="workspaceId", required=true)
    private Output workspaceId;

    /**
     * @return Workspace identifier. Must be unique in the current API Management service instance.
     * 
     */
    public Output workspaceId() {
        return this.workspaceId;
    }

    private WorkspaceApiVersionSetArgs() {}

    private WorkspaceApiVersionSetArgs(WorkspaceApiVersionSetArgs $) {
        this.description = $.description;
        this.displayName = $.displayName;
        this.resourceGroupName = $.resourceGroupName;
        this.serviceName = $.serviceName;
        this.versionHeaderName = $.versionHeaderName;
        this.versionQueryName = $.versionQueryName;
        this.versionSetId = $.versionSetId;
        this.versioningScheme = $.versioningScheme;
        this.workspaceId = $.workspaceId;
    }

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

    public static final class Builder {
        private WorkspaceApiVersionSetArgs $;

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

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

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

        /**
         * @param description Description of API Version Set.
         * 
         * @return builder
         * 
         */
        public Builder description(String description) {
            return description(Output.of(description));
        }

        /**
         * @param displayName Name of API Version Set
         * 
         * @return builder
         * 
         */
        public Builder displayName(Output displayName) {
            $.displayName = displayName;
            return this;
        }

        /**
         * @param displayName Name of API Version Set
         * 
         * @return builder
         * 
         */
        public Builder displayName(String displayName) {
            return displayName(Output.of(displayName));
        }

        /**
         * @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 serviceName The name of the API Management service.
         * 
         * @return builder
         * 
         */
        public Builder serviceName(Output serviceName) {
            $.serviceName = serviceName;
            return this;
        }

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

        /**
         * @param versionHeaderName Name of HTTP header parameter that indicates the API Version if versioningScheme is set to `header`.
         * 
         * @return builder
         * 
         */
        public Builder versionHeaderName(@Nullable Output versionHeaderName) {
            $.versionHeaderName = versionHeaderName;
            return this;
        }

        /**
         * @param versionHeaderName Name of HTTP header parameter that indicates the API Version if versioningScheme is set to `header`.
         * 
         * @return builder
         * 
         */
        public Builder versionHeaderName(String versionHeaderName) {
            return versionHeaderName(Output.of(versionHeaderName));
        }

        /**
         * @param versionQueryName Name of query parameter that indicates the API Version if versioningScheme is set to `query`.
         * 
         * @return builder
         * 
         */
        public Builder versionQueryName(@Nullable Output versionQueryName) {
            $.versionQueryName = versionQueryName;
            return this;
        }

        /**
         * @param versionQueryName Name of query parameter that indicates the API Version if versioningScheme is set to `query`.
         * 
         * @return builder
         * 
         */
        public Builder versionQueryName(String versionQueryName) {
            return versionQueryName(Output.of(versionQueryName));
        }

        /**
         * @param versionSetId Api Version Set identifier. Must be unique in the current API Management service instance.
         * 
         * @return builder
         * 
         */
        public Builder versionSetId(@Nullable Output versionSetId) {
            $.versionSetId = versionSetId;
            return this;
        }

        /**
         * @param versionSetId Api Version Set identifier. Must be unique in the current API Management service instance.
         * 
         * @return builder
         * 
         */
        public Builder versionSetId(String versionSetId) {
            return versionSetId(Output.of(versionSetId));
        }

        /**
         * @param versioningScheme An value that determines where the API Version identifier will be located in a HTTP request.
         * 
         * @return builder
         * 
         */
        public Builder versioningScheme(Output> versioningScheme) {
            $.versioningScheme = versioningScheme;
            return this;
        }

        /**
         * @param versioningScheme An value that determines where the API Version identifier will be located in a HTTP request.
         * 
         * @return builder
         * 
         */
        public Builder versioningScheme(Either versioningScheme) {
            return versioningScheme(Output.of(versioningScheme));
        }

        /**
         * @param versioningScheme An value that determines where the API Version identifier will be located in a HTTP request.
         * 
         * @return builder
         * 
         */
        public Builder versioningScheme(String versioningScheme) {
            return versioningScheme(Either.ofLeft(versioningScheme));
        }

        /**
         * @param versioningScheme An value that determines where the API Version identifier will be located in a HTTP request.
         * 
         * @return builder
         * 
         */
        public Builder versioningScheme(VersioningScheme versioningScheme) {
            return versioningScheme(Either.ofRight(versioningScheme));
        }

        /**
         * @param workspaceId Workspace identifier. Must be unique in the current API Management service instance.
         * 
         * @return builder
         * 
         */
        public Builder workspaceId(Output workspaceId) {
            $.workspaceId = workspaceId;
            return this;
        }

        /**
         * @param workspaceId Workspace identifier. Must be unique in the current API Management service instance.
         * 
         * @return builder
         * 
         */
        public Builder workspaceId(String workspaceId) {
            return workspaceId(Output.of(workspaceId));
        }

        public WorkspaceApiVersionSetArgs build() {
            if ($.displayName == null) {
                throw new MissingRequiredPropertyException("WorkspaceApiVersionSetArgs", "displayName");
            }
            if ($.resourceGroupName == null) {
                throw new MissingRequiredPropertyException("WorkspaceApiVersionSetArgs", "resourceGroupName");
            }
            if ($.serviceName == null) {
                throw new MissingRequiredPropertyException("WorkspaceApiVersionSetArgs", "serviceName");
            }
            if ($.versioningScheme == null) {
                throw new MissingRequiredPropertyException("WorkspaceApiVersionSetArgs", "versioningScheme");
            }
            if ($.workspaceId == null) {
                throw new MissingRequiredPropertyException("WorkspaceApiVersionSetArgs", "workspaceId");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy