@Generated(value="OracleSDKGenerator", comments="API Version: 20160918") public final class VtapCaptureFilterRuleDetails extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
This resource contains the rules governing what traffic a VTAP mirrors.
Note: Objects should always be created or deserialized using the VtapCaptureFilterRuleDetails.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 the VtapCaptureFilterRuleDetails.Builder
, which maintain a
set of all explicitly set fields called VtapCaptureFilterRuleDetails.Builder.__explicitlySet__
. The hashCode()
and equals(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
).
Modifier and Type | Class and Description |
---|---|
static class |
VtapCaptureFilterRuleDetails.Builder |
static class |
VtapCaptureFilterRuleDetails.RuleAction
Include or exclude packets meeting this definition from mirrored traffic.
|
static class |
VtapCaptureFilterRuleDetails.TrafficDirection
The traffic direction the VTAP is configured to mirror.
|
EXPLICITLY_SET_FILTER_NAME, EXPLICITLY_SET_PROPERTY_NAME
Constructor and Description |
---|
VtapCaptureFilterRuleDetails(VtapCaptureFilterRuleDetails.TrafficDirection trafficDirection,
VtapCaptureFilterRuleDetails.RuleAction ruleAction,
String sourceCidr,
String destinationCidr,
String protocol,
IcmpOptions icmpOptions,
TcpOptions tcpOptions,
UdpOptions udpOptions)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static VtapCaptureFilterRuleDetails.Builder |
builder()
Create a new builder.
|
boolean |
equals(Object o) |
String |
getDestinationCidr()
Traffic sent to this CIDR block through the VTAP source will be mirrored to the VTAP target.
|
IcmpOptions |
getIcmpOptions() |
String |
getProtocol()
The transport protocol used in the filter.
|
VtapCaptureFilterRuleDetails.RuleAction |
getRuleAction()
Include or exclude packets meeting this definition from mirrored traffic.
|
String |
getSourceCidr()
Traffic from this CIDR block to the VTAP source will be mirrored to the VTAP target.
|
TcpOptions |
getTcpOptions() |
VtapCaptureFilterRuleDetails.TrafficDirection |
getTrafficDirection()
The traffic direction the VTAP is configured to mirror.
|
UdpOptions |
getUdpOptions() |
int |
hashCode() |
VtapCaptureFilterRuleDetails.Builder |
toBuilder() |
String |
toString() |
String |
toString(boolean includeByteArrayContents)
Return a string representation of the object.
|
markPropertyAsExplicitlySet, wasPropertyExplicitlySet
@Deprecated @ConstructorProperties(value={"trafficDirection","ruleAction","sourceCidr","destinationCidr","protocol","icmpOptions","tcpOptions","udpOptions"}) public VtapCaptureFilterRuleDetails(VtapCaptureFilterRuleDetails.TrafficDirection trafficDirection, VtapCaptureFilterRuleDetails.RuleAction ruleAction, String sourceCidr, String destinationCidr, String protocol, IcmpOptions icmpOptions, TcpOptions tcpOptions, UdpOptions udpOptions)
public static VtapCaptureFilterRuleDetails.Builder builder()
Create a new builder.
public VtapCaptureFilterRuleDetails.Builder toBuilder()
public VtapCaptureFilterRuleDetails.TrafficDirection getTrafficDirection()
The traffic direction the VTAP is configured to mirror.
public VtapCaptureFilterRuleDetails.RuleAction getRuleAction()
Include or exclude packets meeting this definition from mirrored traffic.
public String getSourceCidr()
Traffic from this CIDR block to the VTAP source will be mirrored to the VTAP target.
public String getDestinationCidr()
Traffic sent to this CIDR block through the VTAP source will be mirrored to the VTAP target.
public String getProtocol()
The transport protocol used in the filter. If do not choose a protocol, all protocols will be used in the filter. Supported options are: * 1 = ICMP * 6 = TCP * 17 = UDP
public IcmpOptions getIcmpOptions()
public TcpOptions getTcpOptions()
public UdpOptions getUdpOptions()
public String toString()
toString
in class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
public String toString(boolean includeByteArrayContents)
Return a string representation of the object.
includeByteArrayContents
- true to include the full contents of byte arrayspublic boolean equals(Object o)
equals
in class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
public int hashCode()
hashCode
in class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
Copyright © 2016–2024. All rights reserved.