Class SingleHeader
java.lang.Object
software.amazon.awssdk.services.wafv2.model.SingleHeader
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<SingleHeader.Builder,SingleHeader>
@Generated("software.amazon.awssdk:codegen")
public final class SingleHeader
extends Object
implements SdkPojo, Serializable, ToCopyableBuilder<SingleHeader.Builder,SingleHeader>
Inspect one of the headers in the web request, identified by name, for example, User-Agent or
Referer. The name isn't case sensitive.
You can filter and inspect all headers with the FieldToMatch setting Headers.
This is used to indicate the web request component to inspect, in the FieldToMatch specification.
Example JSON: "SingleHeader": { "Name": "haystack" }
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic SingleHeader.Builderbuilder()final booleanfinal booleanequalsBySdkFields(Object obj) final <T> Optional<T>getValueForField(String fieldName, Class<T> clazz) final inthashCode()final Stringname()The name of the query header to inspect.static Class<? extends SingleHeader.Builder>final StringtoString()Returns a string representation of this object.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
name
The name of the query header to inspect.
- Returns:
- The name of the query header to inspect.
-
toBuilder
- Specified by:
toBuilderin interfaceToCopyableBuilder<SingleHeader.Builder,SingleHeader>
-
builder
-
serializableBuilderClass
-
hashCode
public final int hashCode() -
equals
-
equalsBySdkFields
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
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
-
sdkFieldNameToField
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-