Class FirewallPolicyHttpHeaderToInsert

java.lang.Object
com.azure.resourcemanager.network.models.FirewallPolicyHttpHeaderToInsert
All Implemented Interfaces:
com.azure.json.JsonSerializable<FirewallPolicyHttpHeaderToInsert>

public final class FirewallPolicyHttpHeaderToInsert extends Object implements com.azure.json.JsonSerializable<FirewallPolicyHttpHeaderToInsert>
name and value of HTTP/S header to insert.
  • Constructor Details

    • FirewallPolicyHttpHeaderToInsert

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

    • headerName

      public String headerName()
      Get the headerName property: Contains the name of the header.
      Returns:
      the headerName value.
    • withHeaderName

      public FirewallPolicyHttpHeaderToInsert withHeaderName(String headerName)
      Set the headerName property: Contains the name of the header.
      Parameters:
      headerName - the headerName value to set.
      Returns:
      the FirewallPolicyHttpHeaderToInsert object itself.
    • headerValue

      public String headerValue()
      Get the headerValue property: Contains the value of the header.
      Returns:
      the headerValue value.
    • withHeaderValue

      public FirewallPolicyHttpHeaderToInsert withHeaderValue(String headerValue)
      Set the headerValue property: Contains the value of the header.
      Parameters:
      headerValue - the headerValue value to set.
      Returns:
      the FirewallPolicyHttpHeaderToInsert object itself.
    • validate

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

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<FirewallPolicyHttpHeaderToInsert>
      Throws:
      IOException
    • fromJson

      public static FirewallPolicyHttpHeaderToInsert fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of FirewallPolicyHttpHeaderToInsert from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of FirewallPolicyHttpHeaderToInsert if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
      Throws:
      IOException - If an error occurs while reading the FirewallPolicyHttpHeaderToInsert.