Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,12 @@ public class ApplicationGatewayBackendHealthServer {
@JsonProperty(value = "health")
private ApplicationGatewayBackendHealthServerHealth health;

/**
* Health Probe Log.
*/
@JsonProperty(value = "healthProbeLog")
private String healthProbeLog;

/**
* Get iP address or FQDN of backend server.
*
Expand Down Expand Up @@ -94,4 +100,24 @@ public ApplicationGatewayBackendHealthServer withHealth(ApplicationGatewayBacken
return this;
}

/**
* Get health Probe Log.
*
* @return the healthProbeLog value
*/
public String healthProbeLog() {
return this.healthProbeLog;
}

/**
* Set health Probe Log.
*
* @param healthProbeLog the healthProbeLog value to set
* @return the ApplicationGatewayBackendHealthServer object itself.
*/
public ApplicationGatewayBackendHealthServer withHealthProbeLog(String healthProbeLog) {
this.healthProbeLog = healthProbeLog;
return this;
}

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,150 @@
/**
* 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.v2018_12_01;

import java.util.List;
import com.fasterxml.jackson.annotation.JsonProperty;

/**
* Define match conditions.
*/
public class MatchCondition {
/**
* List of match variables.
*/
@JsonProperty(value = "matchVariables", required = true)
private List<MatchVariable> matchVariables;

/**
* Describes operator to be matched. Possible values include: 'IPMatch',
* 'Equal', 'Contains', 'LessThan', 'GreaterThan', 'LessThanOrEqual',
* 'GreaterThanOrEqual', 'BeginsWith', 'EndsWith', 'Regex'.
*/
@JsonProperty(value = "operator", required = true)
private WebApplicationFirewallOperator operator;

/**
* Describes if this is negate condition or not.
*/
@JsonProperty(value = "negationConditon")
private Boolean negationConditon;

/**
* Match value.
*/
@JsonProperty(value = "matchValues", required = true)
private List<String> matchValues;

/**
* List of transforms.
*/
@JsonProperty(value = "transforms")
private List<WebApplicationFirewallTransform> transforms;

/**
* Get list of match variables.
*
* @return the matchVariables value
*/
public List<MatchVariable> matchVariables() {
return this.matchVariables;
}

/**
* Set list of match variables.
*
* @param matchVariables the matchVariables value to set
* @return the MatchCondition object itself.
*/
public MatchCondition withMatchVariables(List<MatchVariable> matchVariables) {
this.matchVariables = matchVariables;
return this;
}

/**
* Get describes operator to be matched. Possible values include: 'IPMatch', 'Equal', 'Contains', 'LessThan', 'GreaterThan', 'LessThanOrEqual', 'GreaterThanOrEqual', 'BeginsWith', 'EndsWith', 'Regex'.
*
* @return the operator value
*/
public WebApplicationFirewallOperator operator() {
return this.operator;
}

/**
* Set describes operator to be matched. Possible values include: 'IPMatch', 'Equal', 'Contains', 'LessThan', 'GreaterThan', 'LessThanOrEqual', 'GreaterThanOrEqual', 'BeginsWith', 'EndsWith', 'Regex'.
*
* @param operator the operator value to set
* @return the MatchCondition object itself.
*/
public MatchCondition withOperator(WebApplicationFirewallOperator operator) {
this.operator = operator;
return this;
}

/**
* Get describes if this is negate condition or not.
*
* @return the negationConditon value
*/
public Boolean negationConditon() {
return this.negationConditon;
}

/**
* Set describes if this is negate condition or not.
*
* @param negationConditon the negationConditon value to set
* @return the MatchCondition object itself.
*/
public MatchCondition withNegationConditon(Boolean negationConditon) {
this.negationConditon = negationConditon;
return this;
}

/**
* Get match value.
*
* @return the matchValues value
*/
public List<String> matchValues() {
return this.matchValues;
}

/**
* Set match value.
*
* @param matchValues the matchValues value to set
* @return the MatchCondition object itself.
*/
public MatchCondition withMatchValues(List<String> matchValues) {
this.matchValues = matchValues;
return this;
}

/**
* Get list of transforms.
*
* @return the transforms value
*/
public List<WebApplicationFirewallTransform> transforms() {
return this.transforms;
}

/**
* Set list of transforms.
*
* @param transforms the transforms value to set
* @return the MatchCondition object itself.
*/
public MatchCondition withTransforms(List<WebApplicationFirewallTransform> transforms) {
this.transforms = transforms;
return this;
}

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
/**
* 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.v2018_12_01;

import com.fasterxml.jackson.annotation.JsonProperty;

/**
* Define match variables.
*/
public class MatchVariable {
/**
* Match Variable. Possible values include: 'RemoteAddr', 'RequestMethod',
* 'QueryString', 'PostArgs', 'RequestUri', 'RequestHeaders',
* 'RequestBody', 'RequestCookies'.
*/
@JsonProperty(value = "variableName", required = true)
private WebApplicationFirewallMatchVariable variableName;

/**
* Describes field of the matchVariable collection.
*/
@JsonProperty(value = "selector")
private String selector;

/**
* Get match Variable. Possible values include: 'RemoteAddr', 'RequestMethod', 'QueryString', 'PostArgs', 'RequestUri', 'RequestHeaders', 'RequestBody', 'RequestCookies'.
*
* @return the variableName value
*/
public WebApplicationFirewallMatchVariable variableName() {
return this.variableName;
}

/**
* Set match Variable. Possible values include: 'RemoteAddr', 'RequestMethod', 'QueryString', 'PostArgs', 'RequestUri', 'RequestHeaders', 'RequestBody', 'RequestCookies'.
*
* @param variableName the variableName value to set
* @return the MatchVariable object itself.
*/
public MatchVariable withVariableName(WebApplicationFirewallMatchVariable variableName) {
this.variableName = variableName;
return this;
}

/**
* Get describes field of the matchVariable collection.
*
* @return the selector value
*/
public String selector() {
return this.selector;
}

/**
* Set describes field of the matchVariable collection.
*
* @param selector the selector value to set
* @return the MatchVariable object itself.
*/
public MatchVariable withSelector(String selector) {
this.selector = selector;
return this;
}

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
/**
* 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.v2018_12_01;

import com.fasterxml.jackson.annotation.JsonProperty;

/**
* Defines contents of a web application firewall global configuration.
*/
public class PolicySettings {
/**
* Describes if the policy is in enabled state or disabled state. Possible
* values include: 'Disabled', 'Enabled'.
*/
@JsonProperty(value = "enabledState")
private WebApplicationFirewallEnabledState enabledState;

/**
* Describes if it is in detection mode or prevention mode at policy
* level. Possible values include: 'Prevention', 'Detection'.
*/
@JsonProperty(value = "mode")
private WebApplicationFirewallMode mode;

/**
* Get describes if the policy is in enabled state or disabled state. Possible values include: 'Disabled', 'Enabled'.
*
* @return the enabledState value
*/
public WebApplicationFirewallEnabledState enabledState() {
return this.enabledState;
}

/**
* Set describes if the policy is in enabled state or disabled state. Possible values include: 'Disabled', 'Enabled'.
*
* @param enabledState the enabledState value to set
* @return the PolicySettings object itself.
*/
public PolicySettings withEnabledState(WebApplicationFirewallEnabledState enabledState) {
this.enabledState = enabledState;
return this;
}

/**
* Get describes if it is in detection mode or prevention mode at policy level. Possible values include: 'Prevention', 'Detection'.
*
* @return the mode value
*/
public WebApplicationFirewallMode mode() {
return this.mode;
}

/**
* Set describes if it is in detection mode or prevention mode at policy level. Possible values include: 'Prevention', 'Detection'.
*
* @param mode the mode value to set
* @return the PolicySettings object itself.
*/
public PolicySettings withMode(WebApplicationFirewallMode mode) {
this.mode = mode;
return this;
}

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
/**
* 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.v2018_12_01;

import java.util.Collection;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.microsoft.rest.ExpandableStringEnum;

/**
* Defines values for WebApplicationFirewallAction.
*/
public final class WebApplicationFirewallAction extends ExpandableStringEnum<WebApplicationFirewallAction> {
/** Static value Allow for WebApplicationFirewallAction. */
public static final WebApplicationFirewallAction ALLOW = fromString("Allow");

/** Static value Block for WebApplicationFirewallAction. */
public static final WebApplicationFirewallAction BLOCK = fromString("Block");

/** Static value Log for WebApplicationFirewallAction. */
public static final WebApplicationFirewallAction LOG = fromString("Log");

/**
* Creates or finds a WebApplicationFirewallAction from its string representation.
* @param name a name to look for
* @return the corresponding WebApplicationFirewallAction
*/
@JsonCreator
public static WebApplicationFirewallAction fromString(String name) {
return fromString(name, WebApplicationFirewallAction.class);
}

/**
* @return known WebApplicationFirewallAction values
*/
public static Collection<WebApplicationFirewallAction> values() {
return values(WebApplicationFirewallAction.class);
}
}
Loading