Package com.datadog.api.client.v2.model
Class ApplicationSecurityWafCustomRuleUpdateAttributes
java.lang.Object
com.datadog.api.client.v2.model.ApplicationSecurityWafCustomRuleUpdateAttributes
@Generated("https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
public class ApplicationSecurityWafCustomRuleUpdateAttributes
extends Object
Update a WAF custom rule.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionApplicationSecurityWafCustomRuleUpdateAttributes(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 ApplicationSecurityWafCustomRuleUpdateAttributes 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.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_NAME
- See Also:
-
JSON_PROPERTY_PATH_GLOB
- See Also:
-
JSON_PROPERTY_SCOPE
- See Also:
-
JSON_PROPERTY_TAGS
- See Also:
-
-
Constructor Details
-
ApplicationSecurityWafCustomRuleUpdateAttributes
public ApplicationSecurityWafCustomRuleUpdateAttributes() -
ApplicationSecurityWafCustomRuleUpdateAttributes
public ApplicationSecurityWafCustomRuleUpdateAttributes(Boolean blocking, List<ApplicationSecurityWafCustomRuleCondition> conditions, Boolean enabled, String name, ApplicationSecurityWafCustomRuleTags tags)
-
-
Method Details
-
action
public ApplicationSecurityWafCustomRuleUpdateAttributes 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 ApplicationSecurityWafCustomRuleUpdateAttributes conditions(List<ApplicationSecurityWafCustomRuleCondition> conditions) -
addConditionsItem
public ApplicationSecurityWafCustomRuleUpdateAttributes 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
-
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 ApplicationSecurityWafCustomRuleUpdateAttributes scope(List<ApplicationSecurityWafCustomRuleScope> scope) -
addScopeItem
public ApplicationSecurityWafCustomRuleUpdateAttributes 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
public ApplicationSecurityWafCustomRuleUpdateAttributes putAdditionalProperty(String key, Object value) 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:
- ApplicationSecurityWafCustomRuleUpdateAttributes
-
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 ApplicationSecurityWafCustomRuleUpdateAttributes object is equal to o. -
hashCode
public int hashCode() -
toString
-