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 Summary
ConstructorsConstructorDescriptionCreates an instance of FirewallPolicyHttpHeaderToInsert class. -
Method Summary
Modifier and TypeMethodDescriptionfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of FirewallPolicyHttpHeaderToInsert from the JsonReader.Get the headerName property: Contains the name of the header.Get the headerValue property: Contains the value of the header.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withHeaderName(String headerName) Set the headerName property: Contains the name of the header.withHeaderValue(String headerValue) Set the headerValue property: Contains the value of the header.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
FirewallPolicyHttpHeaderToInsert
public FirewallPolicyHttpHeaderToInsert()Creates an instance of FirewallPolicyHttpHeaderToInsert class.
-
-
Method Details
-
headerName
Get the headerName property: Contains the name of the header.- Returns:
- the headerName value.
-
withHeaderName
Set the headerName property: Contains the name of the header.- Parameters:
headerName- the headerName value to set.- Returns:
- the FirewallPolicyHttpHeaderToInsert object itself.
-
headerValue
Get the headerValue property: Contains the value of the header.- Returns:
- the headerValue value.
-
withHeaderValue
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
- Specified by:
toJsonin interfacecom.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.
-