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

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

// *** 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.inputs.ParameterContractArgs;
import com.pulumi.azurenative.apimanagement.inputs.RepresentationContractArgs;
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;


/**
 * Operation response details.
 * 
 */
public final class ResponseContractArgs extends com.pulumi.resources.ResourceArgs {

    public static final ResponseContractArgs Empty = new ResponseContractArgs();

    /**
     * Operation response description.
     * 
     */
    @Import(name="description")
    private @Nullable Output description;

    /**
     * @return Operation response description.
     * 
     */
    public Optional> description() {
        return Optional.ofNullable(this.description);
    }

    /**
     * Collection of operation response headers.
     * 
     */
    @Import(name="headers")
    private @Nullable Output> headers;

    /**
     * @return Collection of operation response headers.
     * 
     */
    public Optional>> headers() {
        return Optional.ofNullable(this.headers);
    }

    /**
     * Collection of operation response representations.
     * 
     */
    @Import(name="representations")
    private @Nullable Output> representations;

    /**
     * @return Collection of operation response representations.
     * 
     */
    public Optional>> representations() {
        return Optional.ofNullable(this.representations);
    }

    /**
     * Operation response HTTP status code.
     * 
     */
    @Import(name="statusCode", required=true)
    private Output statusCode;

    /**
     * @return Operation response HTTP status code.
     * 
     */
    public Output statusCode() {
        return this.statusCode;
    }

    private ResponseContractArgs() {}

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

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

    public static final class Builder {
        private ResponseContractArgs $;

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

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

        /**
         * @param description Operation response description.
         * 
         * @return builder
         * 
         */
        public Builder description(@Nullable Output description) {
            $.description = description;
            return this;
        }

        /**
         * @param description Operation response description.
         * 
         * @return builder
         * 
         */
        public Builder description(String description) {
            return description(Output.of(description));
        }

        /**
         * @param headers Collection of operation response headers.
         * 
         * @return builder
         * 
         */
        public Builder headers(@Nullable Output> headers) {
            $.headers = headers;
            return this;
        }

        /**
         * @param headers Collection of operation response headers.
         * 
         * @return builder
         * 
         */
        public Builder headers(List headers) {
            return headers(Output.of(headers));
        }

        /**
         * @param headers Collection of operation response headers.
         * 
         * @return builder
         * 
         */
        public Builder headers(ParameterContractArgs... headers) {
            return headers(List.of(headers));
        }

        /**
         * @param representations Collection of operation response representations.
         * 
         * @return builder
         * 
         */
        public Builder representations(@Nullable Output> representations) {
            $.representations = representations;
            return this;
        }

        /**
         * @param representations Collection of operation response representations.
         * 
         * @return builder
         * 
         */
        public Builder representations(List representations) {
            return representations(Output.of(representations));
        }

        /**
         * @param representations Collection of operation response representations.
         * 
         * @return builder
         * 
         */
        public Builder representations(RepresentationContractArgs... representations) {
            return representations(List.of(representations));
        }

        /**
         * @param statusCode Operation response HTTP status code.
         * 
         * @return builder
         * 
         */
        public Builder statusCode(Output statusCode) {
            $.statusCode = statusCode;
            return this;
        }

        /**
         * @param statusCode Operation response HTTP status code.
         * 
         * @return builder
         * 
         */
        public Builder statusCode(Integer statusCode) {
            return statusCode(Output.of(statusCode));
        }

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

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy