Class TrafficMirrorFilterRule
- All Implemented Interfaces:
Serializable
,SdkPojo
,ToCopyableBuilder<TrafficMirrorFilterRule.Builder,
TrafficMirrorFilterRule>
Describes the Traffic Mirror rule.
- See Also:
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
final String
The description of the Traffic Mirror rule.final String
The destination CIDR block assigned to the Traffic Mirror rule.final TrafficMirrorPortRange
The destination port range assigned to the Traffic Mirror rule.final boolean
final boolean
equalsBySdkFields
(Object obj) Indicates whether some other object is "equal to" this one by SDK fields.final <T> Optional
<T> getValueForField
(String fieldName, Class<T> clazz) final int
hashCode()
final Integer
protocol()
The protocol assigned to the Traffic Mirror rule.final TrafficMirrorRuleAction
The action assigned to the Traffic Mirror rule.final String
The action assigned to the Traffic Mirror rule.final Integer
The rule number of the Traffic Mirror rule.static Class
<? extends TrafficMirrorFilterRule.Builder> final String
The source CIDR block assigned to the Traffic Mirror rule.final TrafficMirrorPortRange
The source port range assigned to the Traffic Mirror rule.Take this object and create a builder that contains all of the current property values of this object.final String
toString()
Returns a string representation of this object.final TrafficDirection
The traffic direction assigned to the Traffic Mirror rule.final String
The traffic direction assigned to the Traffic Mirror rule.final String
The ID of the Traffic Mirror filter that the rule is associated with.final String
The ID of the Traffic Mirror rule.Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
trafficMirrorFilterRuleId
The ID of the Traffic Mirror rule.
- Returns:
- The ID of the Traffic Mirror rule.
-
trafficMirrorFilterId
The ID of the Traffic Mirror filter that the rule is associated with.
- Returns:
- The ID of the Traffic Mirror filter that the rule is associated with.
-
trafficDirection
The traffic direction assigned to the Traffic Mirror rule.
If the service returns an enum value that is not available in the current SDK version,
trafficDirection
will returnTrafficDirection.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromtrafficDirectionAsString()
.- Returns:
- The traffic direction assigned to the Traffic Mirror rule.
- See Also:
-
trafficDirectionAsString
The traffic direction assigned to the Traffic Mirror rule.
If the service returns an enum value that is not available in the current SDK version,
trafficDirection
will returnTrafficDirection.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromtrafficDirectionAsString()
.- Returns:
- The traffic direction assigned to the Traffic Mirror rule.
- See Also:
-
ruleNumber
The rule number of the Traffic Mirror rule.
- Returns:
- The rule number of the Traffic Mirror rule.
-
ruleAction
The action assigned to the Traffic Mirror rule.
If the service returns an enum value that is not available in the current SDK version,
ruleAction
will returnTrafficMirrorRuleAction.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromruleActionAsString()
.- Returns:
- The action assigned to the Traffic Mirror rule.
- See Also:
-
ruleActionAsString
The action assigned to the Traffic Mirror rule.
If the service returns an enum value that is not available in the current SDK version,
ruleAction
will returnTrafficMirrorRuleAction.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromruleActionAsString()
.- Returns:
- The action assigned to the Traffic Mirror rule.
- See Also:
-
protocol
The protocol assigned to the Traffic Mirror rule.
- Returns:
- The protocol assigned to the Traffic Mirror rule.
-
destinationPortRange
The destination port range assigned to the Traffic Mirror rule.
- Returns:
- The destination port range assigned to the Traffic Mirror rule.
-
sourcePortRange
The source port range assigned to the Traffic Mirror rule.
- Returns:
- The source port range assigned to the Traffic Mirror rule.
-
destinationCidrBlock
The destination CIDR block assigned to the Traffic Mirror rule.
- Returns:
- The destination CIDR block assigned to the Traffic Mirror rule.
-
sourceCidrBlock
The source CIDR block assigned to the Traffic Mirror rule.
- Returns:
- The source CIDR block assigned to the Traffic Mirror rule.
-
description
The description of the Traffic Mirror rule.
- Returns:
- The description of the Traffic Mirror rule.
-
toBuilder
Description copied from interface:ToCopyableBuilder
Take this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilder
in interfaceToCopyableBuilder<TrafficMirrorFilterRule.Builder,
TrafficMirrorFilterRule> - Returns:
- a builder for type T
-
builder
-
serializableBuilderClass
-
hashCode
public final int hashCode() -
equals
-
equalsBySdkFields
Description copied from interface:SdkPojo
Indicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in anSdkPojo
class, and is generated based on a service model.If an
SdkPojo
class does not have any inherited fields,equalsBySdkFields
andequals
are essentially the same.- Specified by:
equalsBySdkFields
in interfaceSdkPojo
- Parameters:
obj
- the object to be compared with- Returns:
- true if the other object equals to this object by sdk fields, false otherwise.
-
toString
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value. -
getValueForField
-
sdkFields
-