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

com.pulumi.azure.apimanagement.inputs.ApiOperationTemplateParameterArgs Maven / Gradle / Ivy

Go to download

A Pulumi package for creating and managing Microsoft Azure cloud resources, based on the Terraform azurerm provider. We recommend using the [Azure Native provider](https://github.com/pulumi/pulumi-azure-native) to provision Azure infrastructure. Azure Native provides complete coverage of Azure resources and same-day access to new resources and resource updates.

There is a newer version: 6.10.0-alpha.1731737215
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.azure.apimanagement.inputs;

import com.pulumi.azure.apimanagement.inputs.ApiOperationTemplateParameterExampleArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Boolean;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final ApiOperationTemplateParameterArgs Empty = new ApiOperationTemplateParameterArgs();

    /**
     * The default value for this Template Parameter.
     * 
     */
    @Import(name="defaultValue")
    private @Nullable Output defaultValue;

    /**
     * @return The default value for this Template Parameter.
     * 
     */
    public Optional> defaultValue() {
        return Optional.ofNullable(this.defaultValue);
    }

    /**
     * A description of this Template Parameter.
     * 
     */
    @Import(name="description")
    private @Nullable Output description;

    /**
     * @return A description of this Template Parameter.
     * 
     */
    public Optional> description() {
        return Optional.ofNullable(this.description);
    }

    /**
     * One or more `example` blocks as defined above.
     * 
     */
    @Import(name="examples")
    private @Nullable Output> examples;

    /**
     * @return One or more `example` blocks as defined above.
     * 
     */
    public Optional>> examples() {
        return Optional.ofNullable(this.examples);
    }

    /**
     * The Name of this Template Parameter.
     * 
     */
    @Import(name="name", required=true)
    private Output name;

    /**
     * @return The Name of this Template Parameter.
     * 
     */
    public Output name() {
        return this.name;
    }

    /**
     * Is this Template Parameter Required?
     * 
     */
    @Import(name="required", required=true)
    private Output required;

    /**
     * @return Is this Template Parameter Required?
     * 
     */
    public Output required() {
        return this.required;
    }

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

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

    /**
     * The Type of this Template Parameter, such as a `string`.
     * 
     */
    @Import(name="type", required=true)
    private Output type;

    /**
     * @return The Type of this Template Parameter, such as a `string`.
     * 
     */
    public Output type() {
        return this.type;
    }

    /**
     * The type name defined by the Schema.
     * 
     */
    @Import(name="typeName")
    private @Nullable Output typeName;

    /**
     * @return The type name defined by the Schema.
     * 
     */
    public Optional> typeName() {
        return Optional.ofNullable(this.typeName);
    }

    /**
     * One or more acceptable values for this Template Parameter.
     * 
     */
    @Import(name="values")
    private @Nullable Output> values;

    /**
     * @return One or more acceptable values for this Template Parameter.
     * 
     */
    public Optional>> values() {
        return Optional.ofNullable(this.values);
    }

    private ApiOperationTemplateParameterArgs() {}

    private ApiOperationTemplateParameterArgs(ApiOperationTemplateParameterArgs $) {
        this.defaultValue = $.defaultValue;
        this.description = $.description;
        this.examples = $.examples;
        this.name = $.name;
        this.required = $.required;
        this.schemaId = $.schemaId;
        this.type = $.type;
        this.typeName = $.typeName;
        this.values = $.values;
    }

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

    public static final class Builder {
        private ApiOperationTemplateParameterArgs $;

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

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

        /**
         * @param defaultValue The default value for this Template Parameter.
         * 
         * @return builder
         * 
         */
        public Builder defaultValue(@Nullable Output defaultValue) {
            $.defaultValue = defaultValue;
            return this;
        }

        /**
         * @param defaultValue The default value for this Template Parameter.
         * 
         * @return builder
         * 
         */
        public Builder defaultValue(String defaultValue) {
            return defaultValue(Output.of(defaultValue));
        }

        /**
         * @param description A description of this Template Parameter.
         * 
         * @return builder
         * 
         */
        public Builder description(@Nullable Output description) {
            $.description = description;
            return this;
        }

        /**
         * @param description A description of this Template Parameter.
         * 
         * @return builder
         * 
         */
        public Builder description(String description) {
            return description(Output.of(description));
        }

        /**
         * @param examples One or more `example` blocks as defined above.
         * 
         * @return builder
         * 
         */
        public Builder examples(@Nullable Output> examples) {
            $.examples = examples;
            return this;
        }

        /**
         * @param examples One or more `example` blocks as defined above.
         * 
         * @return builder
         * 
         */
        public Builder examples(List examples) {
            return examples(Output.of(examples));
        }

        /**
         * @param examples One or more `example` blocks as defined above.
         * 
         * @return builder
         * 
         */
        public Builder examples(ApiOperationTemplateParameterExampleArgs... examples) {
            return examples(List.of(examples));
        }

        /**
         * @param name The Name of this Template Parameter.
         * 
         * @return builder
         * 
         */
        public Builder name(Output name) {
            $.name = name;
            return this;
        }

        /**
         * @param name The Name of this Template Parameter.
         * 
         * @return builder
         * 
         */
        public Builder name(String name) {
            return name(Output.of(name));
        }

        /**
         * @param required Is this Template Parameter Required?
         * 
         * @return builder
         * 
         */
        public Builder required(Output required) {
            $.required = required;
            return this;
        }

        /**
         * @param required Is this Template Parameter Required?
         * 
         * @return builder
         * 
         */
        public Builder required(Boolean required) {
            return required(Output.of(required));
        }

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

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

        /**
         * @param type The Type of this Template Parameter, such as a `string`.
         * 
         * @return builder
         * 
         */
        public Builder type(Output type) {
            $.type = type;
            return this;
        }

        /**
         * @param type The Type of this Template Parameter, such as a `string`.
         * 
         * @return builder
         * 
         */
        public Builder type(String type) {
            return type(Output.of(type));
        }

        /**
         * @param typeName The type name defined by the Schema.
         * 
         * @return builder
         * 
         */
        public Builder typeName(@Nullable Output typeName) {
            $.typeName = typeName;
            return this;
        }

        /**
         * @param typeName The type name defined by the Schema.
         * 
         * @return builder
         * 
         */
        public Builder typeName(String typeName) {
            return typeName(Output.of(typeName));
        }

        /**
         * @param values One or more acceptable values for this Template Parameter.
         * 
         * @return builder
         * 
         */
        public Builder values(@Nullable Output> values) {
            $.values = values;
            return this;
        }

        /**
         * @param values One or more acceptable values for this Template Parameter.
         * 
         * @return builder
         * 
         */
        public Builder values(List values) {
            return values(Output.of(values));
        }

        /**
         * @param values One or more acceptable values for this Template Parameter.
         * 
         * @return builder
         * 
         */
        public Builder values(String... values) {
            return values(List.of(values));
        }

        public ApiOperationTemplateParameterArgs build() {
            if ($.name == null) {
                throw new MissingRequiredPropertyException("ApiOperationTemplateParameterArgs", "name");
            }
            if ($.required == null) {
                throw new MissingRequiredPropertyException("ApiOperationTemplateParameterArgs", "required");
            }
            if ($.type == null) {
                throw new MissingRequiredPropertyException("ApiOperationTemplateParameterArgs", "type");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy