Package com.datadog.api.client.v2.model
Class ApplicationSecurityPolicyCreateAttributes
java.lang.Object
com.datadog.api.client.v2.model.ApplicationSecurityPolicyCreateAttributes
@Generated("https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
public class ApplicationSecurityPolicyCreateAttributes
extends Object
Create a new WAF policy.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionApplicationSecurityPolicyCreateAttributes(String basedOn, String description, String name) -
Method Summary
Modifier and TypeMethodDescriptionaddProtectionPresetsItem(String protectionPresetsItem) addRulesetsItem(ApplicationSecurityPolicyRulesetOverride rulesetsItem) addScopeItem(ApplicationSecurityPolicyScope scopeItem) description(String description) booleanReturn true if this ApplicationSecurityPolicyCreateAttributes object is equal to o.Return the additional (undeclared) property.Return the additional (undeclared) property with the specified name.When creating a new policy, clone the policy indicated by this identifier.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) voidsetBasedOn(String basedOn) voidsetDescription(String description) voidsetIsDefault(Boolean isDefault) voidvoidsetProtectionPresets(List<String> protectionPresets) voidvoidDeprecated.voidvoidsetVersion(Long version) toString()
-
Field Details
-
unparsed
public boolean unparsed -
JSON_PROPERTY_BASED_ON
- See Also:
-
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
-
ApplicationSecurityPolicyCreateAttributes
public ApplicationSecurityPolicyCreateAttributes() -
ApplicationSecurityPolicyCreateAttributes
-
-
Method Details
-
basedOn
-
getBasedOn
When creating a new policy, clone the policy indicated by this identifier.- Returns:
- basedOn
-
setBasedOn
-
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
public ApplicationSecurityPolicyCreateAttributes addProtectionPresetsItem(String protectionPresetsItem) -
getProtectionPresets
Presets enabled on this policy.- Returns:
- protectionPresets
-
setProtectionPresets
-
rules
public ApplicationSecurityPolicyCreateAttributes rules(List<ApplicationSecurityPolicyRuleOverride> rules) -
addRulesItem
public ApplicationSecurityPolicyCreateAttributes addRulesItem(ApplicationSecurityPolicyRuleOverride rulesItem) -
getRules
Rule overrides applied by the policy.- Returns:
- rules
-
setRules
-
rulesets
public ApplicationSecurityPolicyCreateAttributes rulesets(List<ApplicationSecurityPolicyRulesetOverride> rulesets) -
addRulesetsItem
public ApplicationSecurityPolicyCreateAttributes addRulesetsItem(ApplicationSecurityPolicyRulesetOverride rulesetsItem) -
getRulesets
Deprecated.Deprecated: Ruleset overrides. UseprotectionPresetsinstead.- Returns:
- rulesets
-
setRulesets
Deprecated. -
scope
-
addScopeItem
public ApplicationSecurityPolicyCreateAttributes addScopeItem(ApplicationSecurityPolicyScope scopeItem) -
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:
- ApplicationSecurityPolicyCreateAttributes
-
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 ApplicationSecurityPolicyCreateAttributes object is equal to o. -
hashCode
public int hashCode() -
toString
-