Class ProtectionRule
- java.lang.Object
- 
- com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
- 
- com.oracle.bmc.waf.model.WebAppFirewallPolicyRule
- 
- com.oracle.bmc.waf.model.ProtectionRule
 
 
 
- 
 @Generated(value="OracleSDKGenerator", comments="API Version: 20210930") public final class ProtectionRule extends WebAppFirewallPolicyRuleRule that represents Request/Response Protection.Only actions of the following types are allowed to be referenced in this rule: * CHECK * RETURN_HTTP_RESPONSE 
 Note: Objects should always be created or deserialized using theProtectionRule.Builder. This model distinguishes fields that are null because they are unset from fields that are explicitly set to null. This is done in the setter methods of theProtectionRule.Builder, which maintain a set of all explicitly set fields calledProtectionRule.Builder.__explicitlySet__. ThehashCode()andequals(Object)methods are implemented to take the explicitly set fields into account. The constructor, on the other hand, does not take the explicitly set fields into account (since the constructor cannot distinguish explicit null from unset null).
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description static classProtectionRule.Builder- 
Nested classes/interfaces inherited from class com.oracle.bmc.waf.model.WebAppFirewallPolicyRuleWebAppFirewallPolicyRule.ConditionLanguage, WebAppFirewallPolicyRule.Type
 
- 
 - 
Constructor SummaryConstructors Constructor Description ProtectionRule(String name, WebAppFirewallPolicyRule.ConditionLanguage conditionLanguage, String condition, String actionName, List<ProtectionCapability> protectionCapabilities, ProtectionCapabilitySettings protectionCapabilitySettings, Boolean isBodyInspectionEnabled)Deprecated.
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ProtectionRule.Builderbuilder()Create a new builder.booleanequals(Object o)BooleangetIsBodyInspectionEnabled()Enables/disables body inspection for this protection rule.List<ProtectionCapability>getProtectionCapabilities()An ordered list that references OCI-managed protection capabilities.ProtectionCapabilitySettingsgetProtectionCapabilitySettings()inthashCode()ProtectionRule.BuildertoBuilder()StringtoString()StringtoString(boolean includeByteArrayContents)Return a string representation of the object.- 
Methods inherited from class com.oracle.bmc.waf.model.WebAppFirewallPolicyRulegetActionName, getCondition, getConditionLanguage, getName
 
- 
 
- 
- 
- 
Constructor Detail- 
ProtectionRule@Deprecated public ProtectionRule(String name, WebAppFirewallPolicyRule.ConditionLanguage conditionLanguage, String condition, String actionName, List<ProtectionCapability> protectionCapabilities, ProtectionCapabilitySettings protectionCapabilitySettings, Boolean isBodyInspectionEnabled) Deprecated.
 
- 
 - 
Method Detail- 
builderpublic static ProtectionRule.Builder builder() Create a new builder.
 - 
toBuilderpublic ProtectionRule.Builder toBuilder() 
 - 
getProtectionCapabilitiespublic List<ProtectionCapability> getProtectionCapabilities() An ordered list that references OCI-managed protection capabilities.Referenced protection capabilities are not necessarily executed in order of appearance. Their execution order is decided at runtime for improved performance. The array cannot contain entries with the same pair of capability key and version more than once. - Returns:
- the value
 
 - 
getProtectionCapabilitySettingspublic ProtectionCapabilitySettings getProtectionCapabilitySettings() 
 - 
getIsBodyInspectionEnabledpublic Boolean getIsBodyInspectionEnabled() Enables/disables body inspection for this protection rule.Only Protection Rules in RequestProtection can have this option enabled. Response body inspection will be available at a later date. - Returns:
- the value
 
 - 
toStringpublic String toString() - Overrides:
- toStringin class- WebAppFirewallPolicyRule
 
 - 
toStringpublic String toString(boolean includeByteArrayContents) Return a string representation of the object.- Overrides:
- toStringin class- WebAppFirewallPolicyRule
- Parameters:
- includeByteArrayContents- true to include the full contents of byte arrays
- Returns:
- string representation
 
 - 
equalspublic boolean equals(Object o) - Overrides:
- equalsin class- WebAppFirewallPolicyRule
 
 - 
hashCodepublic int hashCode() - Overrides:
- hashCodein class- WebAppFirewallPolicyRule
 
 
- 
 
-