Class HTTPHeader
- java.lang.Object
-
- software.amazon.awssdk.services.waf.model.HTTPHeader
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<HTTPHeader.Builder,HTTPHeader>
@Generated("software.amazon.awssdk:codegen") public final class HTTPHeader extends Object implements SdkPojo, Serializable, ToCopyableBuilder<HTTPHeader.Builder,HTTPHeader>
This is AWS WAF Classic documentation. For more information, see AWS WAF Classic in the developer guide.
For the latest version of AWS WAF, use the AWS WAFV2 API and see the AWS WAF Developer Guide. With the latest version, AWS WAF has a single set of endpoints for regional and global use.
The response from a GetSampledRequests request includes an
HTTPHeadercomplex type that appears asHeadersin the response syntax.HTTPHeadercontains the names and values of all of the headers that appear in one of the web requests that were returned byGetSampledRequests.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceHTTPHeader.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static HTTPHeader.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()Stringname()The name of one of the headers in the sampled web request.List<SdkField<?>>sdkFields()static Class<? extends HTTPHeader.Builder>serializableBuilderClass()HTTPHeader.BuildertoBuilder()StringtoString()Returns a string representation of this object.Stringvalue()The value of one of the headers in the sampled web request.-
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
-
name
public final String name()
The name of one of the headers in the sampled web request.
- Returns:
- The name of one of the headers in the sampled web request.
-
value
public final String value()
The value of one of the headers in the sampled web request.
- Returns:
- The value of one of the headers in the sampled web request.
-
toBuilder
public HTTPHeader.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<HTTPHeader.Builder,HTTPHeader>
-
builder
public static HTTPHeader.Builder builder()
-
serializableBuilderClass
public static Class<? extends HTTPHeader.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.
-
-