public final class ALBWafRule
extends java.lang.Object
implements java.io.Serializable, com.vmware.vapi.bindings.StaticStructure
| Modifier and Type | Class and Description |
|---|---|
static class |
ALBWafRule.Builder
Builder class for
ALBWafRule. |
| Modifier and Type | Field and Description |
|---|---|
protected com.vmware.vapi.data.StructValue |
__dynamicStructureFields |
static java.lang.String |
MODE_DETECTION_ONLY |
static java.lang.String |
MODE_ENFORCEMENT |
static java.lang.String |
PHASE_CONNECTION |
static java.lang.String |
PHASE_LOGGING |
static java.lang.String |
PHASE_REQUEST_BODY |
static java.lang.String |
PHASE_REQUEST_HEADER |
static java.lang.String |
PHASE_RESPONSE_BODY |
static java.lang.String |
PHASE_RESPONSE_HEADER |
| Modifier | Constructor and Description |
|---|---|
|
ALBWafRule()
Default constructor.
|
protected |
ALBWafRule(com.vmware.vapi.data.StructValue __dynamicStructureFields) |
| Modifier and Type | Method and Description |
|---|---|
<T extends com.vmware.vapi.bindings.Structure> |
_convertTo(java.lang.Class<T> clazz) |
java.lang.String |
_getCanonicalName() |
static java.lang.String |
_getCanonicalTypeName()
Returns the canonical type name.
|
static com.vmware.vapi.bindings.type.StructType |
_getClassType()
WARNING: Internal method, subject to change in future versions.
|
com.vmware.vapi.data.StructValue |
_getDataValue() |
com.vmware.vapi.data.DataValue |
_getDynamicField(java.lang.String fieldName) |
java.util.Set<java.lang.String> |
_getDynamicFieldNames() |
com.vmware.vapi.bindings.type.StructType |
_getType() |
boolean |
_hasTypeNameOf(java.lang.Class<? extends com.vmware.vapi.bindings.Structure> clazz) |
static ALBWafRule |
_newInstance(com.vmware.vapi.data.StructValue structValue)
WARNING: Internal method, subject to change in future versions.
Returns new instance of this binding class and injects the provided data value. WARNING: The returned object is not fully initialized. |
static ALBWafRule |
_newInstance2(com.vmware.vapi.data.StructValue structValue)
WARNING: Internal method, subject to change in future versions.
Serves as a versioning mechanism. |
void |
_setDynamicField(java.lang.String fieldName,
com.vmware.vapi.data.DataValue fieldValue) |
protected void |
_updateDataValue(com.vmware.vapi.data.StructValue structValue) |
void |
_validate() |
boolean |
equals(java.lang.Object obj) |
java.util.List<java.lang.String> |
getAviTags()
Tags for WAF rule as per Modsec language.
|
java.lang.Boolean |
getEnable()
Enable or disable WAF Rule Group.
|
java.util.List<ALBWafExcludeListEntry> |
getExcludeList()
Exclude list for the WAF rule.
|
java.lang.Long |
getIndex()
Number of index.
|
java.lang.Boolean |
getIsSensitive()
The rule field is sensitive and will not be displayed.
|
java.lang.String |
getMode()
Possible values are:
MODE_DETECTION_ONLY
MODE_ENFORCEMENT
WAF Rule mode. |
java.lang.String |
getName()
User-friendly optional name for a rule.
|
java.lang.String |
getPhase()
Possible values are:
PHASE_CONNECTION PHASE_REQUEST_HEADER
PHASE_REQUEST_BODY
PHASE_RESPONSE_HEADER
PHASE_RESPONSE_BODY
PHASE_LOGGING
The execution phase where this rule will be executed. |
java.lang.String |
getRule()
Rule as per Modsec language.
|
java.lang.String |
getRuleId()
Identifier (id) for a rule per Modsec language.
|
int |
hashCode() |
void |
setAviTags(java.util.List<java.lang.String> aviTags)
Tags for WAF rule as per Modsec language.
|
void |
setEnable(java.lang.Boolean enable)
Enable or disable WAF Rule Group.
|
void |
setExcludeList(java.util.List<ALBWafExcludeListEntry> excludeList)
Exclude list for the WAF rule.
|
void |
setIndex(java.lang.Long index)
Number of index.
|
void |
setIsSensitive(java.lang.Boolean isSensitive)
The rule field is sensitive and will not be displayed.
|
void |
setMode(java.lang.String mode)
Possible values are:
MODE_DETECTION_ONLY
MODE_ENFORCEMENT
WAF Rule mode. |
void |
setName(java.lang.String name)
User-friendly optional name for a rule.
|
void |
setPhase(java.lang.String phase)
Possible values are:
PHASE_CONNECTION PHASE_REQUEST_HEADER
PHASE_REQUEST_BODY
PHASE_RESPONSE_HEADER
PHASE_RESPONSE_BODY
PHASE_LOGGING
The execution phase where this rule will be executed. |
void |
setRule(java.lang.String rule)
Rule as per Modsec language.
|
void |
setRuleId(java.lang.String ruleId)
Identifier (id) for a rule per Modsec language.
|
java.lang.String |
toString() |
public static final java.lang.String MODE_DETECTION_ONLY
public static final java.lang.String MODE_ENFORCEMENT
public static final java.lang.String PHASE_CONNECTION
public static final java.lang.String PHASE_REQUEST_HEADER
public static final java.lang.String PHASE_REQUEST_BODY
public static final java.lang.String PHASE_RESPONSE_HEADER
public static final java.lang.String PHASE_RESPONSE_BODY
public static final java.lang.String PHASE_LOGGING
protected com.vmware.vapi.data.StructValue __dynamicStructureFields
public ALBWafRule()
protected ALBWafRule(com.vmware.vapi.data.StructValue __dynamicStructureFields)
public java.util.List<java.lang.String> getAviTags()
public void setAviTags(java.util.List<java.lang.String> aviTags)
aviTags - New value for the property.public java.lang.Boolean getEnable()
public void setEnable(java.lang.Boolean enable)
enable - New value for the property.public java.util.List<ALBWafExcludeListEntry> getExcludeList()
public void setExcludeList(java.util.List<ALBWafExcludeListEntry> excludeList)
excludeList - New value for the property.public java.lang.Long getIndex()
public void setIndex(java.lang.Long index)
index - New value for the property.public java.lang.Boolean getIsSensitive()
public void setIsSensitive(java.lang.Boolean isSensitive)
isSensitive - New value for the property.public java.lang.String getMode()
public void setMode(java.lang.String mode)
mode - New value for the property.public java.lang.String getName()
public void setName(java.lang.String name)
name - New value for the property.public java.lang.String getPhase()
public void setPhase(java.lang.String phase)
phase - New value for the property.public java.lang.String getRule()
public void setRule(java.lang.String rule)
rule - New value for the property.public java.lang.String getRuleId()
public void setRuleId(java.lang.String ruleId)
ruleId - New value for the property.public com.vmware.vapi.bindings.type.StructType _getType()
_getType in interface com.vmware.vapi.bindings.StaticStructurepublic com.vmware.vapi.data.StructValue _getDataValue()
_getDataValue in interface com.vmware.vapi.bindings.Structureprotected void _updateDataValue(com.vmware.vapi.data.StructValue structValue)
public void _validate()
_validate in interface com.vmware.vapi.bindings.StaticStructurepublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in interface com.vmware.vapi.bindings.StaticStructuretoString in class java.lang.Objectpublic boolean _hasTypeNameOf(java.lang.Class<? extends com.vmware.vapi.bindings.Structure> clazz)
_hasTypeNameOf in interface com.vmware.vapi.bindings.Structurepublic <T extends com.vmware.vapi.bindings.Structure> T _convertTo(java.lang.Class<T> clazz)
_convertTo in interface com.vmware.vapi.bindings.Structurepublic void _setDynamicField(java.lang.String fieldName,
com.vmware.vapi.data.DataValue fieldValue)
_setDynamicField in interface com.vmware.vapi.bindings.StaticStructurepublic com.vmware.vapi.data.DataValue _getDynamicField(java.lang.String fieldName)
_getDynamicField in interface com.vmware.vapi.bindings.StaticStructurepublic java.util.Set<java.lang.String> _getDynamicFieldNames()
_getDynamicFieldNames in interface com.vmware.vapi.bindings.StaticStructurepublic static com.vmware.vapi.bindings.type.StructType _getClassType()
StructType instance representing the static bindings
type for this Structure.public java.lang.String _getCanonicalName()
_getCanonicalName in interface com.vmware.vapi.bindings.Structurepublic static java.lang.String _getCanonicalTypeName()
_getCanonicalName().public static ALBWafRule _newInstance(com.vmware.vapi.data.StructValue structValue)
structValue - the source of the data contained in the binding object. Could
contain more data than fields of this class can describe i.e.
newer version of the binding object. Could be null.StructTypepublic static ALBWafRule _newInstance2(com.vmware.vapi.data.StructValue structValue)