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

com.pulumi.azurenative.network.inputs.ApplicationGatewayProbeHealthResponseMatchArgs 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.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * Application gateway probe health response match.
 * 
 */
public final class ApplicationGatewayProbeHealthResponseMatchArgs extends com.pulumi.resources.ResourceArgs {

    public static final ApplicationGatewayProbeHealthResponseMatchArgs Empty = new ApplicationGatewayProbeHealthResponseMatchArgs();

    /**
     * Body that must be contained in the health response. Default value is empty.
     * 
     */
    @Import(name="body")
    private @Nullable Output body;

    /**
     * @return Body that must be contained in the health response. Default value is empty.
     * 
     */
    public Optional> body() {
        return Optional.ofNullable(this.body);
    }

    /**
     * Allowed ranges of healthy status codes. Default range of healthy status codes is 200-399.
     * 
     */
    @Import(name="statusCodes")
    private @Nullable Output> statusCodes;

    /**
     * @return Allowed ranges of healthy status codes. Default range of healthy status codes is 200-399.
     * 
     */
    public Optional>> statusCodes() {
        return Optional.ofNullable(this.statusCodes);
    }

    private ApplicationGatewayProbeHealthResponseMatchArgs() {}

    private ApplicationGatewayProbeHealthResponseMatchArgs(ApplicationGatewayProbeHealthResponseMatchArgs $) {
        this.body = $.body;
        this.statusCodes = $.statusCodes;
    }

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

    public static final class Builder {
        private ApplicationGatewayProbeHealthResponseMatchArgs $;

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

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

        /**
         * @param body Body that must be contained in the health response. Default value is empty.
         * 
         * @return builder
         * 
         */
        public Builder body(@Nullable Output body) {
            $.body = body;
            return this;
        }

        /**
         * @param body Body that must be contained in the health response. Default value is empty.
         * 
         * @return builder
         * 
         */
        public Builder body(String body) {
            return body(Output.of(body));
        }

        /**
         * @param statusCodes Allowed ranges of healthy status codes. Default range of healthy status codes is 200-399.
         * 
         * @return builder
         * 
         */
        public Builder statusCodes(@Nullable Output> statusCodes) {
            $.statusCodes = statusCodes;
            return this;
        }

        /**
         * @param statusCodes Allowed ranges of healthy status codes. Default range of healthy status codes is 200-399.
         * 
         * @return builder
         * 
         */
        public Builder statusCodes(List statusCodes) {
            return statusCodes(Output.of(statusCodes));
        }

        /**
         * @param statusCodes Allowed ranges of healthy status codes. Default range of healthy status codes is 200-399.
         * 
         * @return builder
         * 
         */
        public Builder statusCodes(String... statusCodes) {
            return statusCodes(List.of(statusCodes));
        }

        public ApplicationGatewayProbeHealthResponseMatchArgs build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy