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

com.pulumi.azure.apimanagement.inputs.ApiOperationResponseArgs 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.ApiOperationResponseHeaderArgs;
import com.pulumi.azure.apimanagement.inputs.ApiOperationResponseRepresentationArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Integer;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final ApiOperationResponseArgs Empty = new ApiOperationResponseArgs();

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

    /**
     * @return A description of the HTTP Response, 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 `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);
    }

    /**
     * The HTTP Status Code.
     * 
     */
    @Import(name="statusCode", required=true)
    private Output statusCode;

    /**
     * @return The HTTP Status Code.
     * 
     */
    public Output statusCode() {
        return this.statusCode;
    }

    private ApiOperationResponseArgs() {}

    private ApiOperationResponseArgs(ApiOperationResponseArgs $) {
        this.description = $.description;
        this.headers = $.headers;
        this.representations = $.representations;
        this.statusCode = $.statusCode;
    }

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

    public static final class Builder {
        private ApiOperationResponseArgs $;

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

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

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

        /**
         * @param description A description of the HTTP Response, 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(ApiOperationResponseHeaderArgs... headers) {
            return headers(List.of(headers));
        }

        /**
         * @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(ApiOperationResponseRepresentationArgs... representations) {
            return representations(List.of(representations));
        }

        /**
         * @param statusCode The HTTP Status Code.
         * 
         * @return builder
         * 
         */
        public Builder statusCode(Output statusCode) {
            $.statusCode = statusCode;
            return this;
        }

        /**
         * @param statusCode The HTTP Status Code.
         * 
         * @return builder
         * 
         */
        public Builder statusCode(Integer statusCode) {
            return statusCode(Output.of(statusCode));
        }

        public ApiOperationResponseArgs build() {
            if ($.statusCode == null) {
                throw new MissingRequiredPropertyException("ApiOperationResponseArgs", "statusCode");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy