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

com.pulumi.azurenative.apimanagement.inputs.FailureStatusCodeRangeArgs 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.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.Integer;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * The failure http status code range
 * 
 */
public final class FailureStatusCodeRangeArgs extends com.pulumi.resources.ResourceArgs {

    public static final FailureStatusCodeRangeArgs Empty = new FailureStatusCodeRangeArgs();

    /**
     * The maximum http status code.
     * 
     */
    @Import(name="max")
    private @Nullable Output max;

    /**
     * @return The maximum http status code.
     * 
     */
    public Optional> max() {
        return Optional.ofNullable(this.max);
    }

    /**
     * The minimum http status code.
     * 
     */
    @Import(name="min")
    private @Nullable Output min;

    /**
     * @return The minimum http status code.
     * 
     */
    public Optional> min() {
        return Optional.ofNullable(this.min);
    }

    private FailureStatusCodeRangeArgs() {}

    private FailureStatusCodeRangeArgs(FailureStatusCodeRangeArgs $) {
        this.max = $.max;
        this.min = $.min;
    }

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

    public static final class Builder {
        private FailureStatusCodeRangeArgs $;

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

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

        /**
         * @param max The maximum http status code.
         * 
         * @return builder
         * 
         */
        public Builder max(@Nullable Output max) {
            $.max = max;
            return this;
        }

        /**
         * @param max The maximum http status code.
         * 
         * @return builder
         * 
         */
        public Builder max(Integer max) {
            return max(Output.of(max));
        }

        /**
         * @param min The minimum http status code.
         * 
         * @return builder
         * 
         */
        public Builder min(@Nullable Output min) {
            $.min = min;
            return this;
        }

        /**
         * @param min The minimum http status code.
         * 
         * @return builder
         * 
         */
        public Builder min(Integer min) {
            return min(Output.of(min));
        }

        public FailureStatusCodeRangeArgs build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy