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 interfaceTrafficMirrorFilterRule.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static TrafficMirrorFilterRule.Builderbuilder()Stringdescription()The description of the Traffic Mirror rule.StringdestinationCidrBlock()The destination CIDR block assigned to the Traffic Mirror rule.TrafficMirrorPortRangedestinationPortRange()The destination port range assigned to the Traffic Mirror rule.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()Integerprotocol()The protocol assigned to the Traffic Mirror rule.TrafficMirrorRuleActionruleAction()The action assigned to the Traffic Mirror rule.StringruleActionAsString()The action assigned to the Traffic Mirror rule.IntegerruleNumber()The rule number of the Traffic Mirror rule.List<SdkField<?>>sdkFields()static Class<? extends TrafficMirrorFilterRule.Builder>serializableBuilderClass()StringsourceCidrBlock()The source CIDR block assigned to the Traffic Mirror rule.TrafficMirrorPortRangesourcePortRange()The source port range assigned to the Traffic Mirror rule.TrafficMirrorFilterRule.BuildertoBuilder()StringtoString()Returns a string representation of this object.TrafficDirectiontrafficDirection()The traffic direction assigned to the Traffic Mirror rule.StringtrafficDirectionAsString()The traffic direction assigned to the Traffic Mirror rule.StringtrafficMirrorFilterId()The ID of the Traffic Mirror filter that the rule is associated with.StringtrafficMirrorFilterRuleId()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,
trafficDirectionwill 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,
trafficDirectionwill 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,
ruleActionwill 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,
ruleActionwill 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:
toBuilderin 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:
equalsBySdkFieldsin 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.
-
-