com.azure.resourcemanager.network.models.ApplicationGatewayBackendHealthPool Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-resourcemanager-network Show documentation
Show all versions of azure-resourcemanager-network Show documentation
This package contains Microsoft Azure Network Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt
// 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.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;
/**
* Application gateway BackendHealth pool.
*/
@Fluent
public final class ApplicationGatewayBackendHealthPool {
/*
* Reference to an ApplicationGatewayBackendAddressPool resource.
*/
@JsonProperty(value = "backendAddressPool")
private ApplicationGatewayBackendAddressPool backendAddressPool;
/*
* List of ApplicationGatewayBackendHealthHttpSettings resources.
*/
@JsonProperty(value = "backendHttpSettingsCollection")
private List backendHttpSettingsCollection;
/**
* Creates an instance of ApplicationGatewayBackendHealthPool class.
*/
public ApplicationGatewayBackendHealthPool() {
}
/**
* Get the backendAddressPool property: Reference to an ApplicationGatewayBackendAddressPool resource.
*
* @return the backendAddressPool value.
*/
public ApplicationGatewayBackendAddressPool backendAddressPool() {
return this.backendAddressPool;
}
/**
* Set the backendAddressPool property: Reference to an ApplicationGatewayBackendAddressPool resource.
*
* @param backendAddressPool the backendAddressPool value to set.
* @return the ApplicationGatewayBackendHealthPool object itself.
*/
public ApplicationGatewayBackendHealthPool
withBackendAddressPool(ApplicationGatewayBackendAddressPool backendAddressPool) {
this.backendAddressPool = backendAddressPool;
return this;
}
/**
* Get the backendHttpSettingsCollection property: List of ApplicationGatewayBackendHealthHttpSettings resources.
*
* @return the backendHttpSettingsCollection value.
*/
public List backendHttpSettingsCollection() {
return this.backendHttpSettingsCollection;
}
/**
* Set the backendHttpSettingsCollection property: List of ApplicationGatewayBackendHealthHttpSettings resources.
*
* @param backendHttpSettingsCollection the backendHttpSettingsCollection value to set.
* @return the ApplicationGatewayBackendHealthPool object itself.
*/
public ApplicationGatewayBackendHealthPool withBackendHttpSettingsCollection(
List backendHttpSettingsCollection) {
this.backendHttpSettingsCollection = backendHttpSettingsCollection;
return this;
}
/**
* Validates the instance.
*
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
if (backendAddressPool() != null) {
backendAddressPool().validate();
}
if (backendHttpSettingsCollection() != null) {
backendHttpSettingsCollection().forEach(e -> e.validate());
}
}
}