Class OriginGroupOverride
java.lang.Object
com.azure.resourcemanager.cdn.models.OriginGroupOverride
- All Implemented Interfaces:
com.azure.json.JsonSerializable<OriginGroupOverride>
public final class OriginGroupOverride
extends Object
implements com.azure.json.JsonSerializable<OriginGroupOverride>
Defines the parameters for the origin group override configuration.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the forwardingProtocol property: Protocol this rule will use when forwarding traffic to backends.static OriginGroupOverridefromJson(com.azure.json.JsonReader jsonReader) Reads an instance of OriginGroupOverride from the JsonReader.Get the originGroup property: defines the OriginGroup that would override the DefaultOriginGroup on route.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withForwardingProtocol(ForwardingProtocol forwardingProtocol) Set the forwardingProtocol property: Protocol this rule will use when forwarding traffic to backends.withOriginGroup(ResourceReference originGroup) Set the originGroup property: defines the OriginGroup that would override the DefaultOriginGroup on route.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
-
OriginGroupOverride
public OriginGroupOverride()Creates an instance of OriginGroupOverride class.
-
-
Method Details
-
originGroup
Get the originGroup property: defines the OriginGroup that would override the DefaultOriginGroup on route.- Returns:
- the originGroup value.
-
withOriginGroup
Set the originGroup property: defines the OriginGroup that would override the DefaultOriginGroup on route.- Parameters:
originGroup- the originGroup value to set.- Returns:
- the OriginGroupOverride object itself.
-
forwardingProtocol
Get the forwardingProtocol property: Protocol this rule will use when forwarding traffic to backends.- Returns:
- the forwardingProtocol value.
-
withForwardingProtocol
Set the forwardingProtocol property: Protocol this rule will use when forwarding traffic to backends.- Parameters:
forwardingProtocol- the forwardingProtocol value to set.- Returns:
- the OriginGroupOverride 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<OriginGroupOverride>- Throws:
IOException
-
fromJson
Reads an instance of OriginGroupOverride from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of OriginGroupOverride 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 OriginGroupOverride.
-