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

com.pulumi.azure.apimanagement.inputs.ApiOperationRequestArgs 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.ApiOperationRequestHeaderArgs;
import com.pulumi.azure.apimanagement.inputs.ApiOperationRequestQueryParameterArgs;
import com.pulumi.azure.apimanagement.inputs.ApiOperationRequestRepresentationArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final ApiOperationRequestArgs Empty = new ApiOperationRequestArgs();

    /**
     * A description of the HTTP Request, which may include HTML tags.
     * 
     */
    @Import(name="description")
    private @Nullable Output description;

    /**
     * @return A description of the HTTP Request, which may include HTML tags.
     * 
     */
    public Optional> description() {
        return Optional.ofNullable(this.description);
    }

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

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

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

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

    /**
     * One or more `representation` blocks as defined below.
     * 
     */
    @Import(name="representations")
    private @Nullable Output> representations;

    /**
     * @return One or more `representation` blocks as defined below.
     * 
     */
    public Optional>> representations() {
        return Optional.ofNullable(this.representations);
    }

    private ApiOperationRequestArgs() {}

    private ApiOperationRequestArgs(ApiOperationRequestArgs $) {
        this.description = $.description;
        this.headers = $.headers;
        this.queryParameters = $.queryParameters;
        this.representations = $.representations;
    }

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

    public static final class Builder {
        private ApiOperationRequestArgs $;

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

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

        /**
         * @param description A description of the HTTP Request, which may include HTML tags.
         * 
         * @return builder
         * 
         */
        public Builder description(@Nullable Output description) {
            $.description = description;
            return this;
        }

        /**
         * @param description A description of the HTTP Request, which may include HTML tags.
         * 
         * @return builder
         * 
         */
        public Builder description(String description) {
            return description(Output.of(description));
        }

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

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

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

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

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

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

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

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

        /**
         * @param representations One or more `representation` blocks as defined below.
         * 
         * @return builder
         * 
         */
        public Builder representations(ApiOperationRequestRepresentationArgs... representations) {
            return representations(List.of(representations));
        }

        public ApiOperationRequestArgs build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy