Class HttpHeader

java.lang.Object
com.azure.resourcemanager.network.models.HttpHeader

public final class HttpHeader extends Object
The HTTP header.
  • Constructor Details

    • HttpHeader

      public HttpHeader()
      Creates an instance of HttpHeader class.
  • Method Details

    • name

      public String name()
      Get the name property: The name in HTTP header.
      Returns:
      the name value.
    • withName

      public HttpHeader withName(String name)
      Set the name property: The name in HTTP header.
      Parameters:
      name - the name value to set.
      Returns:
      the HttpHeader object itself.
    • value

      public String value()
      Get the value property: The value in HTTP header.
      Returns:
      the value value.
    • withValue

      public HttpHeader withValue(String value)
      Set the value property: The value in HTTP header.
      Parameters:
      value - the value value to set.
      Returns:
      the HttpHeader object itself.
    • validate

      public void validate()
      Validates the instance.
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.