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