Class HeaderActionParameters
java.lang.Object
com.azure.resourcemanager.cdn.models.HeaderActionParameters
- All Implemented Interfaces:
com.azure.json.JsonSerializable<HeaderActionParameters>
public final class HeaderActionParameters
extends Object
implements com.azure.json.JsonSerializable<HeaderActionParameters>
Defines the parameters for the request header action.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of HeaderActionParameters class. -
Method Summary
Modifier and TypeMethodDescriptionstatic HeaderActionParametersfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of HeaderActionParameters from the JsonReader.Get the headerAction property: Action to perform.Get the headerName property: Name of the header to modify.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) typeName()Get the typeName property: The typeName property.voidvalidate()Validates the instance.value()Get the value property: Value for the specified action.withHeaderAction(HeaderAction headerAction) Set the headerAction property: Action to perform.withHeaderName(String headerName) Set the headerName property: Name of the header to modify.withTypeName(String typeName) Set the typeName property: The typeName property.Set the value property: Value for the specified action.Methods inherited from class 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
-
HeaderActionParameters
public HeaderActionParameters()Creates an instance of HeaderActionParameters class.
-
-
Method Details
-
typeName
Get the typeName property: The typeName property.- Returns:
- the typeName value.
-
withTypeName
Set the typeName property: The typeName property.- Parameters:
typeName- the typeName value to set.- Returns:
- the HeaderActionParameters object itself.
-
headerAction
Get the headerAction property: Action to perform.- Returns:
- the headerAction value.
-
withHeaderAction
Set the headerAction property: Action to perform.- Parameters:
headerAction- the headerAction value to set.- Returns:
- the HeaderActionParameters object itself.
-
headerName
Get the headerName property: Name of the header to modify.- Returns:
- the headerName value.
-
withHeaderName
Set the headerName property: Name of the header to modify.- Parameters:
headerName- the headerName value to set.- Returns:
- the HeaderActionParameters object itself.
-
value
Get the value property: Value for the specified action.- Returns:
- the value value.
-
withValue
Set the value property: Value for the specified action.- Parameters:
value- the value value to set.- Returns:
- the HeaderActionParameters 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<HeaderActionParameters>- Throws:
IOException
-
fromJson
public static HeaderActionParameters fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of HeaderActionParameters from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of HeaderActionParameters if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IllegalStateException- If the deserialized JSON object was missing any required properties.IOException- If an error occurs while reading the HeaderActionParameters.
-