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 as Headers 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 by GetSampledRequests.

See Also:
  • Constructor Details

    • HTTPHeader

      public HTTPHeader()
  • Method Details

    • 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 class Object
      Returns:
      A string representation of this object.
      See Also:
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • clone

      public HTTPHeader clone()
      Overrides:
      clone in class Object