Class RouteConfigurationOverrideActionParameters
java.lang.Object
com.azure.resourcemanager.cdn.models.RouteConfigurationOverrideActionParameters
- All Implemented Interfaces:
com.azure.json.JsonSerializable<RouteConfigurationOverrideActionParameters>
public final class RouteConfigurationOverrideActionParameters
extends Object
implements com.azure.json.JsonSerializable<RouteConfigurationOverrideActionParameters>
Defines the parameters for the route configuration override action.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of RouteConfigurationOverrideActionParameters class. -
Method Summary
Modifier and TypeMethodDescriptionGet the cacheConfiguration property: The caching configuration associated with this rule.fromJson(com.azure.json.JsonReader jsonReader) Reads an instance of RouteConfigurationOverrideActionParameters from the JsonReader.Get the originGroupOverride property: A reference to the origin group override configuration.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) typeName()Get the typeName property: The typeName property.voidvalidate()Validates the instance.withCacheConfiguration(CacheConfiguration cacheConfiguration) Set the cacheConfiguration property: The caching configuration associated with this rule.withOriginGroupOverride(OriginGroupOverride originGroupOverride) Set the originGroupOverride property: A reference to the origin group override configuration.withTypeName(String typeName) Set the typeName property: The typeName property.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
-
RouteConfigurationOverrideActionParameters
public RouteConfigurationOverrideActionParameters()Creates an instance of RouteConfigurationOverrideActionParameters 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 RouteConfigurationOverrideActionParameters object itself.
-
originGroupOverride
Get the originGroupOverride property: A reference to the origin group override configuration. Leave empty to use the default origin group on route.- Returns:
- the originGroupOverride value.
-
withOriginGroupOverride
public RouteConfigurationOverrideActionParameters withOriginGroupOverride(OriginGroupOverride originGroupOverride) Set the originGroupOverride property: A reference to the origin group override configuration. Leave empty to use the default origin group on route.- Parameters:
originGroupOverride- the originGroupOverride value to set.- Returns:
- the RouteConfigurationOverrideActionParameters object itself.
-
cacheConfiguration
Get the cacheConfiguration property: The caching configuration associated with this rule. To disable caching, do not provide a cacheConfiguration object.- Returns:
- the cacheConfiguration value.
-
withCacheConfiguration
public RouteConfigurationOverrideActionParameters withCacheConfiguration(CacheConfiguration cacheConfiguration) Set the cacheConfiguration property: The caching configuration associated with this rule. To disable caching, do not provide a cacheConfiguration object.- Parameters:
cacheConfiguration- the cacheConfiguration value to set.- Returns:
- the RouteConfigurationOverrideActionParameters 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<RouteConfigurationOverrideActionParameters>- Throws:
IOException
-
fromJson
public static RouteConfigurationOverrideActionParameters fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of RouteConfigurationOverrideActionParameters from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of RouteConfigurationOverrideActionParameters 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 RouteConfigurationOverrideActionParameters.
-