Package com.datadog.api.client.v2.model
Class ApplicationSecurityPolicyAttributes
java.lang.Object
com.datadog.api.client.v2.model.ApplicationSecurityPolicyAttributes
@Generated("https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
public class ApplicationSecurityPolicyAttributes
extends Object
A WAF policy.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddProtectionPresetsItem(String protectionPresetsItem) addRulesetsItem(ApplicationSecurityPolicyRulesetOverride rulesetsItem) addScopeItem(ApplicationSecurityPolicyScope scopeItem) description(String description) booleanReturn true if this ApplicationSecurityPolicyAttributes object is equal to o.Return the additional (undeclared) property.Return the additional (undeclared) property with the specified name.Description of the WAF policy.Make this policy the default policy.getName()The name of the WAF policy.Presets enabled on this policy.getRules()Rule overrides applied by the policy.Deprecated.getScope()The scope of the WAF policy.Version of the WAF ruleset maintained by Datadog used by this policy.inthashCode()protectionPresets(List<String> protectionPresets) putAdditionalProperty(String key, Object value) Set the additional (undeclared) property with the specified name and value.rulesets(List<ApplicationSecurityPolicyRulesetOverride> rulesets) scope(List<ApplicationSecurityPolicyScope> scope) voidsetDescription(String description) voidsetIsDefault(Boolean isDefault) voidvoidsetProtectionPresets(List<String> protectionPresets) voidvoidDeprecated.voidvoidsetVersion(Long version) toString()
-
Field Details
-
unparsed
public boolean unparsed -
JSON_PROPERTY_DESCRIPTION
- See Also:
-
JSON_PROPERTY_IS_DEFAULT
- See Also:
-
JSON_PROPERTY_NAME
- See Also:
-
JSON_PROPERTY_PROTECTION_PRESETS
- See Also:
-
JSON_PROPERTY_RULES
- See Also:
-
JSON_PROPERTY_RULESETS
- See Also:
-
JSON_PROPERTY_SCOPE
- See Also:
-
JSON_PROPERTY_VERSION
- See Also:
-
-
Constructor Details
-
ApplicationSecurityPolicyAttributes
public ApplicationSecurityPolicyAttributes() -
ApplicationSecurityPolicyAttributes
-
-
Method Details
-
description
-
getDescription
Description of the WAF policy.- Returns:
- description
-
setDescription
-
isDefault
-
getIsDefault
Make this policy the default policy. The default policy is applied to every service not specifically assigned to another policy.- Returns:
- isDefault
-
setIsDefault
-
name
-
getName
The name of the WAF policy.- Returns:
- name
-
setName
-
protectionPresets
-
addProtectionPresetsItem
-
getProtectionPresets
Presets enabled on this policy.- Returns:
- protectionPresets
-
setProtectionPresets
-
rules
-
addRulesItem
public ApplicationSecurityPolicyAttributes addRulesItem(ApplicationSecurityPolicyRuleOverride rulesItem) -
getRules
Rule overrides applied by the policy.- Returns:
- rules
-
setRules
-
rulesets
public ApplicationSecurityPolicyAttributes rulesets(List<ApplicationSecurityPolicyRulesetOverride> rulesets) -
addRulesetsItem
public ApplicationSecurityPolicyAttributes addRulesetsItem(ApplicationSecurityPolicyRulesetOverride rulesetsItem) -
getRulesets
Deprecated.Deprecated: Ruleset overrides. UseprotectionPresetsinstead.- Returns:
- rulesets
-
setRulesets
Deprecated. -
scope
-
addScopeItem
-
getScope
The scope of the WAF policy.- Returns:
- scope
-
setScope
-
version
-
getVersion
Version of the WAF ruleset maintained by Datadog used by this policy. 0 is the default value.- Returns:
- version
-
setVersion
-
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:
- ApplicationSecurityPolicyAttributes
-
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 ApplicationSecurityPolicyAttributes object is equal to o. -
hashCode
public int hashCode() -
toString
-