Class SecurityRuleSummary
- java.lang.Object
-
- com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
-
- com.oracle.bmc.networkfirewall.model.SecurityRuleSummary
-
@Generated(value="OracleSDKGenerator", comments="API Version: 20230501") public final class SecurityRuleSummary extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
Summary for the Security Rule used in the firewall policy rules.Security Rules determine whether to block or allow a session based on traffic attributes, such as the source and destination IP address, protocol/port, and the HTTP(S) target URL.
Note: Objects should always be created or deserialized using theSecurityRuleSummary.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 theSecurityRuleSummary.Builder
, which maintain a set of all explicitly set fields calledSecurityRuleSummary.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 Summary
Nested Classes Modifier and Type Class Description static class
SecurityRuleSummary.Builder
-
Constructor Summary
Constructors Constructor Description SecurityRuleSummary(String name, TrafficActionType action, TrafficInspectionType inspection, Long priorityOrder, String parentResourceId)
Deprecated.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SecurityRuleSummary.Builder
builder()
Create a new builder.boolean
equals(Object o)
TrafficActionType
getAction()
Types of Action on the Traffic flow.TrafficInspectionType
getInspection()
Type of inspection to affect the Traffic flow.String
getName()
Name for the Security rule, must be unique within the policy.String
getParentResourceId()
OCID of the network firewall policy this security rule belongs to.Long
getPriorityOrder()
The priority order in which this rule should be evaluated.int
hashCode()
SecurityRuleSummary.Builder
toBuilder()
String
toString()
String
toString(boolean includeByteArrayContents)
Return a string representation of the object.
-
-
-
Constructor Detail
-
SecurityRuleSummary
@Deprecated @ConstructorProperties({"name","action","inspection","priorityOrder","parentResourceId"}) public SecurityRuleSummary(String name, TrafficActionType action, TrafficInspectionType inspection, Long priorityOrder, String parentResourceId)
Deprecated.
-
-
Method Detail
-
builder
public static SecurityRuleSummary.Builder builder()
Create a new builder.
-
toBuilder
public SecurityRuleSummary.Builder toBuilder()
-
getName
public String getName()
Name for the Security rule, must be unique within the policy.- Returns:
- the value
-
getAction
public TrafficActionType getAction()
Types of Action on the Traffic flow.ALLOW - Allows the traffic. * DROP - Silently drops the traffic, e.g. without sending a TCP reset. * REJECT - Rejects the traffic, sending a TCP reset to client and/or server as applicable. * INSPECT - Inspects traffic for vulnerability as specified in inspection, which may result in rejection.
- Returns:
- the value
-
getInspection
public TrafficInspectionType getInspection()
Type of inspection to affect the Traffic flow.This is only applicable if action is INSPECT.
INTRUSION_DETECTION - Intrusion Detection. * INTRUSION_PREVENTION - Intrusion Detection and Prevention. Traffic classified as potentially malicious will be rejected as described in type.
- Returns:
- the value
-
getPriorityOrder
public Long getPriorityOrder()
The priority order in which this rule should be evaluated.- Returns:
- the value
-
getParentResourceId
public String getParentResourceId()
OCID of the network firewall policy this security rule belongs to.- Returns:
- the value
-
toString
public String toString()
- Overrides:
toString
in classcom.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
-
toString
public String toString(boolean includeByteArrayContents)
Return a string representation of the object.- Parameters:
includeByteArrayContents
- true to include the full contents of byte arrays- Returns:
- string representation
-
equals
public boolean equals(Object o)
- Overrides:
equals
in classcom.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classcom.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
-
-