Class ApplicationGatewayRewriteRuleActionSet
java.lang.Object
com.azure.resourcemanager.network.models.ApplicationGatewayRewriteRuleActionSet
- All Implemented Interfaces:
com.azure.json.JsonSerializable<ApplicationGatewayRewriteRuleActionSet>
public final class ApplicationGatewayRewriteRuleActionSet
extends Object
implements com.azure.json.JsonSerializable<ApplicationGatewayRewriteRuleActionSet>
Set of actions in the Rewrite Rule in Application Gateway.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of ApplicationGatewayRewriteRuleActionSet class. -
Method Summary
Modifier and TypeMethodDescriptionfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of ApplicationGatewayRewriteRuleActionSet from the JsonReader.Get the requestHeaderConfigurations property: Request Header Actions in the Action Set.Get the responseHeaderConfigurations property: Response Header Actions in the Action Set.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) Get the urlConfiguration property: Url Configuration Action in the Action Set.voidvalidate()Validates the instance.withRequestHeaderConfigurations(List<ApplicationGatewayHeaderConfiguration> requestHeaderConfigurations) Set the requestHeaderConfigurations property: Request Header Actions in the Action Set.withResponseHeaderConfigurations(List<ApplicationGatewayHeaderConfiguration> responseHeaderConfigurations) Set the responseHeaderConfigurations property: Response Header Actions in the Action Set.withUrlConfiguration(ApplicationGatewayUrlConfiguration urlConfiguration) Set the urlConfiguration property: Url Configuration Action in the Action Set.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
-
ApplicationGatewayRewriteRuleActionSet
public ApplicationGatewayRewriteRuleActionSet()Creates an instance of ApplicationGatewayRewriteRuleActionSet class.
-
-
Method Details
-
requestHeaderConfigurations
Get the requestHeaderConfigurations property: Request Header Actions in the Action Set.- Returns:
- the requestHeaderConfigurations value.
-
withRequestHeaderConfigurations
public ApplicationGatewayRewriteRuleActionSet withRequestHeaderConfigurations(List<ApplicationGatewayHeaderConfiguration> requestHeaderConfigurations) Set the requestHeaderConfigurations property: Request Header Actions in the Action Set.- Parameters:
requestHeaderConfigurations- the requestHeaderConfigurations value to set.- Returns:
- the ApplicationGatewayRewriteRuleActionSet object itself.
-
responseHeaderConfigurations
Get the responseHeaderConfigurations property: Response Header Actions in the Action Set.- Returns:
- the responseHeaderConfigurations value.
-
withResponseHeaderConfigurations
public ApplicationGatewayRewriteRuleActionSet withResponseHeaderConfigurations(List<ApplicationGatewayHeaderConfiguration> responseHeaderConfigurations) Set the responseHeaderConfigurations property: Response Header Actions in the Action Set.- Parameters:
responseHeaderConfigurations- the responseHeaderConfigurations value to set.- Returns:
- the ApplicationGatewayRewriteRuleActionSet object itself.
-
urlConfiguration
Get the urlConfiguration property: Url Configuration Action in the Action Set.- Returns:
- the urlConfiguration value.
-
withUrlConfiguration
public ApplicationGatewayRewriteRuleActionSet withUrlConfiguration(ApplicationGatewayUrlConfiguration urlConfiguration) Set the urlConfiguration property: Url Configuration Action in the Action Set.- Parameters:
urlConfiguration- the urlConfiguration value to set.- Returns:
- the ApplicationGatewayRewriteRuleActionSet 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<ApplicationGatewayRewriteRuleActionSet>- Throws:
IOException
-
fromJson
public static ApplicationGatewayRewriteRuleActionSet fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of ApplicationGatewayRewriteRuleActionSet from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of ApplicationGatewayRewriteRuleActionSet 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 ApplicationGatewayRewriteRuleActionSet.
-