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
HTTPHeader
complex type that appears asHeaders
in the response syntax.HTTPHeader
contains 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 HTTPHeader
clone()
boolean
equals(Object obj)
String
getName()
The name of one of the headers in the sampled web request.String
getValue()
The value of one of the headers in the sampled web request.int
hashCode()
void
setName(String name)
The name of one of the headers in the sampled web request.void
setValue(String value)
The value of one of the headers in the sampled web request.String
toString()
Returns a string representation of this object; useful for testing and debugging.HTTPHeader
withName(String name)
The name of one of the headers in the sampled web request.HTTPHeader
withValue(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:
toString
in classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public HTTPHeader clone()
-
-