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

com.pulumi.azurenative.network.inputs.MonitorConfigExpectedStatusCodeRangesArgs 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.network.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;


/**
 * Min and max value of a status code range.
 * 
 */
public final class MonitorConfigExpectedStatusCodeRangesArgs extends com.pulumi.resources.ResourceArgs {

    public static final MonitorConfigExpectedStatusCodeRangesArgs Empty = new MonitorConfigExpectedStatusCodeRangesArgs();

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

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

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

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

    private MonitorConfigExpectedStatusCodeRangesArgs() {}

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

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

    public static final class Builder {
        private MonitorConfigExpectedStatusCodeRangesArgs $;

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

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

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

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

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

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

        public MonitorConfigExpectedStatusCodeRangesArgs build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy