Class OriginGroupOverride


  • public final class OriginGroupOverride
    extends Object
    Defines the parameters for the origin group override configuration.
    • Constructor Detail

      • OriginGroupOverride

        public OriginGroupOverride()
    • 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.