// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.

package com.azure.resourcemanager.network.models;

import com.azure.core.annotation.Fluent;
import com.azure.core.util.logging.ClientLogger;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;

/** Application gateway probe health response match. */
@Fluent
public final class ApplicationGatewayProbeHealthResponseMatch {
    @JsonIgnore private final ClientLogger logger = new ClientLogger(ApplicationGatewayProbeHealthResponseMatch.class);

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

    /*
     * Allowed ranges of healthy status codes. Default range of healthy status
     * codes is 200-399.
     */
    @JsonProperty(value = "statusCodes")
    private List<String> statusCodes;

    /**
     * Get the body property: Body that must be contained in the health response. Default value is empty.
     *
     * @return the body value.
     */
    public String body() {
        return this.body;
    }

    /**
     * Set the body property: Body that must be contained in the health response. Default value is empty.
     *
     * @param body the body value to set.
     * @return the ApplicationGatewayProbeHealthResponseMatch object itself.
     */
    public ApplicationGatewayProbeHealthResponseMatch withBody(String body) {
        this.body = body;
        return this;
    }

    /**
     * Get the statusCodes property: Allowed ranges of healthy status codes. Default range of healthy status codes is
     * 200-399.
     *
     * @return the statusCodes value.
     */
    public List<String> statusCodes() {
        return this.statusCodes;
    }

    /**
     * Set the statusCodes property: Allowed ranges of healthy status codes. Default range of healthy status codes is
     * 200-399.
     *
     * @param statusCodes the statusCodes value to set.
     * @return the ApplicationGatewayProbeHealthResponseMatch object itself.
     */
    public ApplicationGatewayProbeHealthResponseMatch withStatusCodes(List<String> statusCodes) {
        this.statusCodes = statusCodes;
        return this;
    }

    /**
     * Validates the instance.
     *
     * @throws IllegalArgumentException thrown if the instance is not valid.
     */
    public void validate() {
    }
}
