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

com.pulumi.azure.network.inputs.ApplicationGatewayProbeMatchArgs 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.15.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.azure.network.inputs;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final ApplicationGatewayProbeMatchArgs Empty = new ApplicationGatewayProbeMatchArgs();

    /**
     * A snippet from the Response Body which must be present in the Response.
     * 
     */
    @Import(name="body")
    private @Nullable Output body;

    /**
     * @return A snippet from the Response Body which must be present in the Response.
     * 
     */
    public Optional> body() {
        return Optional.ofNullable(this.body);
    }

    /**
     * A list of allowed status codes for this Health Probe.
     * 
     */
    @Import(name="statusCodes", required=true)
    private Output> statusCodes;

    /**
     * @return A list of allowed status codes for this Health Probe.
     * 
     */
    public Output> statusCodes() {
        return this.statusCodes;
    }

    private ApplicationGatewayProbeMatchArgs() {}

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

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

    public static final class Builder {
        private ApplicationGatewayProbeMatchArgs $;

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

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

        /**
         * @param body A snippet from the Response Body which must be present in the Response.
         * 
         * @return builder
         * 
         */
        public Builder body(@Nullable Output body) {
            $.body = body;
            return this;
        }

        /**
         * @param body A snippet from the Response Body which must be present in the Response.
         * 
         * @return builder
         * 
         */
        public Builder body(String body) {
            return body(Output.of(body));
        }

        /**
         * @param statusCodes A list of allowed status codes for this Health Probe.
         * 
         * @return builder
         * 
         */
        public Builder statusCodes(Output> statusCodes) {
            $.statusCodes = statusCodes;
            return this;
        }

        /**
         * @param statusCodes A list of allowed status codes for this Health Probe.
         * 
         * @return builder
         * 
         */
        public Builder statusCodes(List statusCodes) {
            return statusCodes(Output.of(statusCodes));
        }

        /**
         * @param statusCodes A list of allowed status codes for this Health Probe.
         * 
         * @return builder
         * 
         */
        public Builder statusCodes(String... statusCodes) {
            return statusCodes(List.of(statusCodes));
        }

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

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy