Package com.datadog.api.client.v2.model
Class ApplicationSecurityWafCustomRuleAttributes
java.lang.Object
com.datadog.api.client.v2.model.ApplicationSecurityWafCustomRuleAttributes
@Generated("https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
public class ApplicationSecurityWafCustomRuleAttributes
extends Object
A WAF custom rule.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionApplicationSecurityWafCustomRuleAttributes(Boolean blocking, List<ApplicationSecurityWafCustomRuleCondition> conditions, Boolean enabled, String name, ApplicationSecurityWafCustomRuleTags tags) -
Method Summary
Modifier and TypeMethodDescriptionaddConditionsItem(ApplicationSecurityWafCustomRuleCondition conditionsItem) conditions(List<ApplicationSecurityWafCustomRuleCondition> conditions) booleanReturn true if this ApplicationSecurityWafCustomRuleAttributes object is equal to o.The definition ofApplicationSecurityWafCustomRuleActionobject.Return the additional (undeclared) property.Return the additional (undeclared) property with the specified name.Indicates whether the WAF custom rule will block the request.Conditions for which the WAF Custom Rule will triggers, all conditions needs to match in order for the WAF rule to trigger.Indicates whether the WAF custom rule is enabled.Metadata associated with the WAF Custom Rule.getName()The name of the WAF custom rule.The path glob for the WAF custom rule.getScope()The scope of the WAF custom rule.getTags()Tags associated with the WAF Custom Rule.inthashCode()putAdditionalProperty(String key, Object value) Set the additional (undeclared) property with the specified name and value.voidvoidsetBlocking(Boolean blocking) voidsetConditions(List<ApplicationSecurityWafCustomRuleCondition> conditions) voidsetEnabled(Boolean enabled) voidvoidsetPathGlob(String pathGlob) voidvoidtoString()
-
Field Details
-
unparsed
public boolean unparsed -
JSON_PROPERTY_ACTION
- See Also:
-
JSON_PROPERTY_BLOCKING
- See Also:
-
JSON_PROPERTY_CONDITIONS
- See Also:
-
JSON_PROPERTY_ENABLED
- See Also:
-
JSON_PROPERTY_METADATA
- See Also:
-
JSON_PROPERTY_NAME
- See Also:
-
JSON_PROPERTY_PATH_GLOB
- See Also:
-
JSON_PROPERTY_SCOPE
- See Also:
-
JSON_PROPERTY_TAGS
- See Also:
-
-
Constructor Details
-
ApplicationSecurityWafCustomRuleAttributes
public ApplicationSecurityWafCustomRuleAttributes() -
ApplicationSecurityWafCustomRuleAttributes
public ApplicationSecurityWafCustomRuleAttributes(Boolean blocking, List<ApplicationSecurityWafCustomRuleCondition> conditions, Boolean enabled, String name, ApplicationSecurityWafCustomRuleTags tags)
-
-
Method Details
-
action
public ApplicationSecurityWafCustomRuleAttributes action(ApplicationSecurityWafCustomRuleAction action) -
getAction
The definition ofApplicationSecurityWafCustomRuleActionobject.- Returns:
- action
-
setAction
-
blocking
-
getBlocking
Indicates whether the WAF custom rule will block the request.- Returns:
- blocking
-
setBlocking
-
conditions
public ApplicationSecurityWafCustomRuleAttributes conditions(List<ApplicationSecurityWafCustomRuleCondition> conditions) -
addConditionsItem
public ApplicationSecurityWafCustomRuleAttributes addConditionsItem(ApplicationSecurityWafCustomRuleCondition conditionsItem) -
getConditions
Conditions for which the WAF Custom Rule will triggers, all conditions needs to match in order for the WAF rule to trigger.- Returns:
- conditions
-
setConditions
-
enabled
-
getEnabled
Indicates whether the WAF custom rule is enabled.- Returns:
- enabled
-
setEnabled
-
getMetadata
Metadata associated with the WAF Custom Rule.- Returns:
- metadata
-
name
-
getName
The name of the WAF custom rule.- Returns:
- name
-
setName
-
pathGlob
-
getPathGlob
The path glob for the WAF custom rule.- Returns:
- pathGlob
-
setPathGlob
-
scope
public ApplicationSecurityWafCustomRuleAttributes scope(List<ApplicationSecurityWafCustomRuleScope> scope) -
addScopeItem
public ApplicationSecurityWafCustomRuleAttributes addScopeItem(ApplicationSecurityWafCustomRuleScope scopeItem) -
getScope
The scope of the WAF custom rule.- Returns:
- scope
-
setScope
-
tags
-
getTags
Tags associated with the WAF Custom Rule. The concatenation of category and type will form the security activity field associated with the traces.- Returns:
- tags
-
setTags
-
putAdditionalProperty
Set the additional (undeclared) property with the specified name and value. If the property does not already exist, create it otherwise replace it.- Parameters:
key- The arbitrary key to setvalue- The associated value- Returns:
- ApplicationSecurityWafCustomRuleAttributes
-
getAdditionalProperties
Return the additional (undeclared) property.- Returns:
- The additional properties
-
getAdditionalProperty
Return the additional (undeclared) property with the specified name.- Parameters:
key- The arbitrary key to get- Returns:
- The specific additional property for the given key
-
equals
Return true if this ApplicationSecurityWafCustomRuleAttributes object is equal to o. -
hashCode
public int hashCode() -
toString
-