Class OriginGroupOverride
- java.lang.Object
-
- com.azure.resourcemanager.cdn.models.OriginGroupOverride
-
public final class OriginGroupOverride extends Object
Defines the parameters for the origin group override configuration.
-
-
Constructor Summary
Constructors Constructor Description OriginGroupOverride()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ForwardingProtocolforwardingProtocol()Get the forwardingProtocol property: Protocol this rule will use when forwarding traffic to backends.ResourceReferenceoriginGroup()Get the originGroup property: defines the OriginGroup that would override the DefaultOriginGroup on route.voidvalidate()Validates the instance.OriginGroupOverridewithForwardingProtocol(ForwardingProtocol forwardingProtocol)Set the forwardingProtocol property: Protocol this rule will use when forwarding traffic to backends.OriginGroupOverridewithOriginGroup(ResourceReference originGroup)Set the originGroup property: defines the OriginGroup that would override the DefaultOriginGroup on route.
-
-
-
Method Detail
-
originGroup
public ResourceReference originGroup()
Get the originGroup property: defines the OriginGroup that would override the DefaultOriginGroup on route.- Returns:
- the originGroup value.
-
withOriginGroup
public OriginGroupOverride withOriginGroup(ResourceReference originGroup)
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
public ForwardingProtocol forwardingProtocol()
Get the forwardingProtocol property: Protocol this rule will use when forwarding traffic to backends.- Returns:
- the forwardingProtocol value.
-
withForwardingProtocol
public OriginGroupOverride withForwardingProtocol(ForwardingProtocol forwardingProtocol)
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.
-
-