Class StatelessRule
- java.lang.Object
-
- software.amazon.awssdk.services.networkfirewall.model.StatelessRule
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<StatelessRule.Builder,StatelessRule>
@Generated("software.amazon.awssdk:codegen") public final class StatelessRule extends Object implements SdkPojo, Serializable, ToCopyableBuilder<StatelessRule.Builder,StatelessRule>
A single stateless rule. This is used in StatelessRulesAndCustomActions.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceStatelessRule.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static StatelessRule.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()Integerpriority()Indicates the order in which to run this rule relative to all of the rules that are defined for a stateless rule group.RuleDefinitionruleDefinition()Defines the stateless 5-tuple packet inspection criteria and the action to take on a packet that matches the criteria.Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()static Class<? extends StatelessRule.Builder>serializableBuilderClass()StatelessRule.BuildertoBuilder()StringtoString()Returns a string representation of this object.-
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
-
ruleDefinition
public final RuleDefinition ruleDefinition()
Defines the stateless 5-tuple packet inspection criteria and the action to take on a packet that matches the criteria.
- Returns:
- Defines the stateless 5-tuple packet inspection criteria and the action to take on a packet that matches the criteria.
-
priority
public final Integer priority()
Indicates the order in which to run this rule relative to all of the rules that are defined for a stateless rule group. Network Firewall evaluates the rules in a rule group starting with the lowest priority setting. You must ensure that the priority settings are unique for the rule group.
Each stateless rule group uses exactly one
StatelessRulesAndCustomActionsobject, and eachStatelessRulesAndCustomActionscontains exactly oneStatelessRulesobject. To ensure unique priority settings for your rule groups, set unique priorities for the stateless rules that you define inside any singleStatelessRulesobject.You can change the priority settings of your rules at any time. To make it easier to insert rules later, number them so there's a wide range in between, for example use 100, 200, and so on.
- Returns:
- Indicates the order in which to run this rule relative to all of the rules that are defined for a
stateless rule group. Network Firewall evaluates the rules in a rule group starting with the lowest
priority setting. You must ensure that the priority settings are unique for the rule group.
Each stateless rule group uses exactly one
StatelessRulesAndCustomActionsobject, and eachStatelessRulesAndCustomActionscontains exactly oneStatelessRulesobject. To ensure unique priority settings for your rule groups, set unique priorities for the stateless rules that you define inside any singleStatelessRulesobject.You can change the priority settings of your rules at any time. To make it easier to insert rules later, number them so there's a wide range in between, for example use 100, 200, and so on.
-
toBuilder
public StatelessRule.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<StatelessRule.Builder,StatelessRule>
-
builder
public static StatelessRule.Builder builder()
-
serializableBuilderClass
public static Class<? extends StatelessRule.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.
-
sdkFieldNameToField
public final Map<String,SdkField<?>> sdkFieldNameToField()
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-
-