Class TrafficMirrorFilterRule
- java.lang.Object
-
- software.amazon.awssdk.services.ec2.model.TrafficMirrorFilterRule
-
- All Implemented Interfaces:
Serializable
,SdkPojo
,ToCopyableBuilder<TrafficMirrorFilterRule.Builder,TrafficMirrorFilterRule>
@Generated("software.amazon.awssdk:codegen") public final class TrafficMirrorFilterRule extends Object implements SdkPojo, Serializable, ToCopyableBuilder<TrafficMirrorFilterRule.Builder,TrafficMirrorFilterRule>
Describes the Traffic Mirror rule.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
TrafficMirrorFilterRule.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static TrafficMirrorFilterRule.Builder
builder()
String
description()
The description of the Traffic Mirror rule.String
destinationCidrBlock()
The destination CIDR block assigned to the Traffic Mirror rule.TrafficMirrorPortRange
destinationPortRange()
The destination port range assigned to the Traffic Mirror rule.boolean
equals(Object obj)
boolean
equalsBySdkFields(Object obj)
<T> Optional<T>
getValueForField(String fieldName, Class<T> clazz)
int
hashCode()
Integer
protocol()
The protocol assigned to the Traffic Mirror rule.TrafficMirrorRuleAction
ruleAction()
The action assigned to the Traffic Mirror rule.String
ruleActionAsString()
The action assigned to the Traffic Mirror rule.Integer
ruleNumber()
The rule number of the Traffic Mirror rule.List<SdkField<?>>
sdkFields()
static Class<? extends TrafficMirrorFilterRule.Builder>
serializableBuilderClass()
String
sourceCidrBlock()
The source CIDR block assigned to the Traffic Mirror rule.TrafficMirrorPortRange
sourcePortRange()
The source port range assigned to the Traffic Mirror rule.TrafficMirrorFilterRule.Builder
toBuilder()
String
toString()
Returns a string representation of this object.TrafficDirection
trafficDirection()
The traffic direction assigned to the Traffic Mirror rule.String
trafficDirectionAsString()
The traffic direction assigned to the Traffic Mirror rule.String
trafficMirrorFilterId()
The ID of the Traffic Mirror filter that the rule is associated with.String
trafficMirrorFilterRuleId()
The ID of the Traffic Mirror rule.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
trafficMirrorFilterRuleId
public final String trafficMirrorFilterRuleId()
The ID of the Traffic Mirror rule.
- Returns:
- The ID of the Traffic Mirror rule.
-
trafficMirrorFilterId
public final String 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
public final TrafficDirection 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:
TrafficDirection
-
trafficDirectionAsString
public final String 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:
TrafficDirection
-
ruleNumber
public final Integer ruleNumber()
The rule number of the Traffic Mirror rule.
- Returns:
- The rule number of the Traffic Mirror rule.
-
ruleAction
public final TrafficMirrorRuleAction 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:
TrafficMirrorRuleAction
-
ruleActionAsString
public final String 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:
TrafficMirrorRuleAction
-
protocol
public final Integer protocol()
The protocol assigned to the Traffic Mirror rule.
- Returns:
- The protocol assigned to the Traffic Mirror rule.
-
destinationPortRange
public final TrafficMirrorPortRange destinationPortRange()
The destination port range assigned to the Traffic Mirror rule.
- Returns:
- The destination port range assigned to the Traffic Mirror rule.
-
sourcePortRange
public final TrafficMirrorPortRange sourcePortRange()
The source port range assigned to the Traffic Mirror rule.
- Returns:
- The source port range assigned to the Traffic Mirror rule.
-
destinationCidrBlock
public final String destinationCidrBlock()
The destination CIDR block assigned to the Traffic Mirror rule.
- Returns:
- The destination CIDR block assigned to the Traffic Mirror rule.
-
sourceCidrBlock
public final String sourceCidrBlock()
The source CIDR block assigned to the Traffic Mirror rule.
- Returns:
- The source CIDR block assigned to the Traffic Mirror rule.
-
description
public final String description()
The description of the Traffic Mirror rule.
- Returns:
- The description of the Traffic Mirror rule.
-
toBuilder
public TrafficMirrorFilterRule.Builder toBuilder()
- Specified by:
toBuilder
in interfaceToCopyableBuilder<TrafficMirrorFilterRule.Builder,TrafficMirrorFilterRule>
-
builder
public static TrafficMirrorFilterRule.Builder builder()
-
serializableBuilderClass
public static Class<? extends TrafficMirrorFilterRule.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFields
in interfaceSdkPojo
-
toString
public final String 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.
-
-