com.microsoft.azure.management.network.ApplicationGatewayConnectionDraining Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-mgmt-network Show documentation
Show all versions of azure-mgmt-network Show documentation
This package contains Microsoft Azure Network Management SDK. A new set of management libraries are now Generally Available. For documentation on how to use the new libraries, please see https://aka.ms/azsdk/java/mgmt
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
*/
package com.microsoft.azure.management.network;
import com.fasterxml.jackson.annotation.JsonProperty;
/**
* Connection draining allows open connections to a backend server to be active
* for a specified time after the backend server got removed from the
* configuration.
*/
public class ApplicationGatewayConnectionDraining {
/**
* Whether connection draining is enabled or not.
*/
@JsonProperty(value = "enabled", required = true)
private boolean enabled;
/**
* The number of seconds connection draining is active. Acceptable values
* are from 1 second to 3600 seconds.
*/
@JsonProperty(value = "drainTimeoutInSec", required = true)
private int drainTimeoutInSec;
/**
* Get whether connection draining is enabled or not.
*
* @return the enabled value
*/
public boolean enabled() {
return this.enabled;
}
/**
* Set whether connection draining is enabled or not.
*
* @param enabled the enabled value to set
* @return the ApplicationGatewayConnectionDraining object itself.
*/
public ApplicationGatewayConnectionDraining withEnabled(boolean enabled) {
this.enabled = enabled;
return this;
}
/**
* Get the number of seconds connection draining is active. Acceptable values are from 1 second to 3600 seconds.
*
* @return the drainTimeoutInSec value
*/
public int drainTimeoutInSec() {
return this.drainTimeoutInSec;
}
/**
* Set the number of seconds connection draining is active. Acceptable values are from 1 second to 3600 seconds.
*
* @param drainTimeoutInSec the drainTimeoutInSec value to set
* @return the ApplicationGatewayConnectionDraining object itself.
*/
public ApplicationGatewayConnectionDraining withDrainTimeoutInSec(int drainTimeoutInSec) {
this.drainTimeoutInSec = drainTimeoutInSec;
return this;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy