Class ActionDefinition
- java.lang.Object
-
- software.amazon.awssdk.services.networkfirewall.model.ActionDefinition
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<ActionDefinition.Builder,ActionDefinition>
@Generated("software.amazon.awssdk:codegen") public final class ActionDefinition extends Object implements SdkPojo, Serializable, ToCopyableBuilder<ActionDefinition.Builder,ActionDefinition>
A custom action to use in stateless rule actions settings. This is used in CustomAction.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceActionDefinition.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ActionDefinition.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()PublishMetricActionpublishMetricAction()Stateless inspection criteria that publishes the specified metrics to Amazon CloudWatch for the matching packet.Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()static Class<? extends ActionDefinition.Builder>serializableBuilderClass()ActionDefinition.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
-
publishMetricAction
public final PublishMetricAction publishMetricAction()
Stateless inspection criteria that publishes the specified metrics to Amazon CloudWatch for the matching packet. This setting defines a CloudWatch dimension value to be published.
You can pair this custom action with any of the standard stateless rule actions. For example, you could pair this in a rule action with the standard action that forwards the packet for stateful inspection. Then, when a packet matches the rule, Network Firewall publishes metrics for the packet and forwards it.
- Returns:
- Stateless inspection criteria that publishes the specified metrics to Amazon CloudWatch for the matching
packet. This setting defines a CloudWatch dimension value to be published.
You can pair this custom action with any of the standard stateless rule actions. For example, you could pair this in a rule action with the standard action that forwards the packet for stateful inspection. Then, when a packet matches the rule, Network Firewall publishes metrics for the packet and forwards it.
-
toBuilder
public ActionDefinition.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<ActionDefinition.Builder,ActionDefinition>
-
builder
public static ActionDefinition.Builder builder()
-
serializableBuilderClass
public static Class<? extends ActionDefinition.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
-
-