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

com.pulumi.azurenative.apimanagement.inputs.ApiVersionSetContractDetailsArgs Maven / Gradle / Ivy

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

import com.pulumi.azurenative.apimanagement.enums.VersioningScheme;
import com.pulumi.core.Either;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * An API Version Set contains the common configuration for a set of API Versions relating
 * 
 */
public final class ApiVersionSetContractDetailsArgs extends com.pulumi.resources.ResourceArgs {

    public static final ApiVersionSetContractDetailsArgs Empty = new ApiVersionSetContractDetailsArgs();

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

    /**
     * Identifier for existing API Version Set. Omit this value to create a new Version Set.
     * 
     */
    @Import(name="id")
    private @Nullable Output id;

    /**
     * @return Identifier for existing API Version Set. Omit this value to create a new Version Set.
     * 
     */
    public Optional> id() {
        return Optional.ofNullable(this.id);
    }

    /**
     * The display Name of the API Version Set.
     * 
     */
    @Import(name="name")
    private @Nullable Output name;

    /**
     * @return The display Name of the API Version Set.
     * 
     */
    public Optional> name() {
        return Optional.ofNullable(this.name);
    }

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

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

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

    private ApiVersionSetContractDetailsArgs() {}

    private ApiVersionSetContractDetailsArgs(ApiVersionSetContractDetailsArgs $) {
        this.description = $.description;
        this.id = $.id;
        this.name = $.name;
        this.versionHeaderName = $.versionHeaderName;
        this.versionQueryName = $.versionQueryName;
        this.versioningScheme = $.versioningScheme;
    }

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

    public static final class Builder {
        private ApiVersionSetContractDetailsArgs $;

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

        public Builder(ApiVersionSetContractDetailsArgs defaults) {
            $ = new ApiVersionSetContractDetailsArgs(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 id Identifier for existing API Version Set. Omit this value to create a new Version Set.
         * 
         * @return builder
         * 
         */
        public Builder id(@Nullable Output id) {
            $.id = id;
            return this;
        }

        /**
         * @param id Identifier for existing API Version Set. Omit this value to create a new Version Set.
         * 
         * @return builder
         * 
         */
        public Builder id(String id) {
            return id(Output.of(id));
        }

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

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

        /**
         * @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 versioningScheme An value that determines where the API Version identifier will be located in a HTTP request.
         * 
         * @return builder
         * 
         */
        public Builder versioningScheme(@Nullable 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));
        }

        public ApiVersionSetContractDetailsArgs build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy