Class OriginGroupUpdatePropertiesParameters

java.lang.Object
com.azure.resourcemanager.cdn.fluent.models.OriginGroupUpdatePropertiesParameters
All Implemented Interfaces:
com.azure.json.JsonSerializable<OriginGroupUpdatePropertiesParameters>
Direct Known Subclasses:
OriginGroupProperties

public class OriginGroupUpdatePropertiesParameters extends Object implements com.azure.json.JsonSerializable<OriginGroupUpdatePropertiesParameters>
The JSON object that contains the properties of the origin group.
  • Constructor Details

    • OriginGroupUpdatePropertiesParameters

      public OriginGroupUpdatePropertiesParameters()
      Creates an instance of OriginGroupUpdatePropertiesParameters class.
  • Method Details

    • healthProbeSettings

      public HealthProbeParameters healthProbeSettings()
      Get the healthProbeSettings property: Health probe settings to the origin that is used to determine the health of the origin.
      Returns:
      the healthProbeSettings value.
    • withHealthProbeSettings

      public OriginGroupUpdatePropertiesParameters withHealthProbeSettings(HealthProbeParameters healthProbeSettings)
      Set the healthProbeSettings property: Health probe settings to the origin that is used to determine the health of the origin.
      Parameters:
      healthProbeSettings - the healthProbeSettings value to set.
      Returns:
      the OriginGroupUpdatePropertiesParameters object itself.
    • origins

      public List<ResourceReference> origins()
      Get the origins property: The source of the content being delivered via CDN within given origin group.
      Returns:
      the origins value.
    • withOrigins

      Set the origins property: The source of the content being delivered via CDN within given origin group.
      Parameters:
      origins - the origins value to set.
      Returns:
      the OriginGroupUpdatePropertiesParameters object itself.
    • trafficRestorationTimeToHealedOrNewEndpointsInMinutes

      public Integer trafficRestorationTimeToHealedOrNewEndpointsInMinutes()
      Get the trafficRestorationTimeToHealedOrNewEndpointsInMinutes property: Time in minutes to shift the traffic to the endpoint gradually when an unhealthy endpoint comes healthy or a new endpoint is added. Default is 10 mins. This property is currently not supported.
      Returns:
      the trafficRestorationTimeToHealedOrNewEndpointsInMinutes value.
    • withTrafficRestorationTimeToHealedOrNewEndpointsInMinutes

      public OriginGroupUpdatePropertiesParameters withTrafficRestorationTimeToHealedOrNewEndpointsInMinutes(Integer trafficRestorationTimeToHealedOrNewEndpointsInMinutes)
      Set the trafficRestorationTimeToHealedOrNewEndpointsInMinutes property: Time in minutes to shift the traffic to the endpoint gradually when an unhealthy endpoint comes healthy or a new endpoint is added. Default is 10 mins. This property is currently not supported.
      Parameters:
      trafficRestorationTimeToHealedOrNewEndpointsInMinutes - the trafficRestorationTimeToHealedOrNewEndpointsInMinutes value to set.
      Returns:
      the OriginGroupUpdatePropertiesParameters object itself.
    • responseBasedOriginErrorDetectionSettings

      public ResponseBasedOriginErrorDetectionParameters responseBasedOriginErrorDetectionSettings()
      Get the responseBasedOriginErrorDetectionSettings property: The JSON object that contains the properties to determine origin health using real requests/responses. This property is currently not supported.
      Returns:
      the responseBasedOriginErrorDetectionSettings value.
    • withResponseBasedOriginErrorDetectionSettings

      public OriginGroupUpdatePropertiesParameters withResponseBasedOriginErrorDetectionSettings(ResponseBasedOriginErrorDetectionParameters responseBasedOriginErrorDetectionSettings)
      Set the responseBasedOriginErrorDetectionSettings property: The JSON object that contains the properties to determine origin health using real requests/responses. This property is currently not supported.
      Parameters:
      responseBasedOriginErrorDetectionSettings - the responseBasedOriginErrorDetectionSettings value to set.
      Returns:
      the OriginGroupUpdatePropertiesParameters object itself.
    • validate

      public void validate()
      Validates the instance.
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.
    • toJson

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<OriginGroupUpdatePropertiesParameters>
      Throws:
      IOException
    • fromJson

      public static OriginGroupUpdatePropertiesParameters fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of OriginGroupUpdatePropertiesParameters from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of OriginGroupUpdatePropertiesParameters 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 OriginGroupUpdatePropertiesParameters.