Package com.amazonaws.services.waf.model
Class HTTPHeader
- java.lang.Object
-
- com.amazonaws.services.waf.model.HTTPHeader
-
- All Implemented Interfaces:
Serializable,Cloneable
public class HTTPHeader extends Object implements Serializable, Cloneable
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
-
-
Constructor Summary
Constructors Constructor Description HTTPHeader()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description HTTPHeaderclone()booleanequals(Object obj)StringgetName()The name of one of the headers in the sampled web request.StringgetValue()The value of one of the headers in the sampled web request.inthashCode()voidsetName(String name)The name of one of the headers in the sampled web request.voidsetValue(String value)The value of one of the headers in the sampled web request.StringtoString()Returns a string representation of this object; useful for testing and debugging.HTTPHeaderwithName(String name)The name of one of the headers in the sampled web request.HTTPHeaderwithValue(String value)The value of one of the headers in the sampled web request.
-
-
-
Method Detail
-
setName
public void setName(String name)
The name of one of the headers in the sampled web request.
- Parameters:
name- The name of one of the headers in the sampled web request.
-
getName
public String getName()
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.
-
withName
public HTTPHeader withName(String name)
The name of one of the headers in the sampled web request.
- Parameters:
name- The name of one of the headers in the sampled web request.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setValue
public void setValue(String value)
The value of one of the headers in the sampled web request.
- Parameters:
value- The value of one of the headers in the sampled web request.
-
getValue
public String getValue()
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.
-
withValue
public HTTPHeader withValue(String value)
The value of one of the headers in the sampled web request.
- Parameters:
value- The value of one of the headers in the sampled web request.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public HTTPHeader clone()
-
-