Class OriginGroupInner
java.lang.Object
com.azure.core.management.ProxyResource
com.azure.resourcemanager.cdn.fluent.models.OriginGroupInner
- All Implemented Interfaces:
com.azure.json.JsonSerializable<com.azure.core.management.ProxyResource>
public final class OriginGroupInner
extends com.azure.core.management.ProxyResource
Origin group comprising of origins is used for load balancing to origins when the content cannot be served from CDN.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic OriginGroupInnerfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of OriginGroupInner from the JsonReader.Get the healthProbeSettings property: Health probe settings to the origin that is used to determine the health of the origin.id()Get the id property: Fully qualified resource Id for the resource.name()Get the name property: The name of the resource.origins()Get the origins property: The source of the content being delivered via CDN within given origin group.Get the provisioningState property: Provisioning status of the origin group.Get the resourceState property: Resource status of the origin group.Get the responseBasedOriginErrorDetectionSettings property: The JSON object that contains the properties to determine origin health using real requests/responses.com.azure.core.management.SystemDataGet the systemData property: Read only system data.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) 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.type()Get the type property: The type of the resource.voidvalidate()Validates the instance.withHealthProbeSettings(HealthProbeParameters healthProbeSettings) Set the healthProbeSettings property: Health probe settings to the origin that is used to determine the health of the origin.withOrigins(List<ResourceReference> origins) Set the origins property: The source of the content being delivered via CDN within given origin group.withResponseBasedOriginErrorDetectionSettings(ResponseBasedOriginErrorDetectionParameters responseBasedOriginErrorDetectionSettings) Set the responseBasedOriginErrorDetectionSettings property: The JSON object that contains the properties to determine origin health using real requests/responses.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.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
-
OriginGroupInner
public OriginGroupInner()Creates an instance of OriginGroupInner class.
-
-
Method Details
-
systemData
public com.azure.core.management.SystemData systemData()Get the systemData property: Read only system data.- Returns:
- the systemData value.
-
type
Get the type property: The type of the resource.- Overrides:
typein classcom.azure.core.management.ProxyResource- Returns:
- the type value.
-
name
Get the name property: The name of the resource.- Overrides:
namein classcom.azure.core.management.ProxyResource- Returns:
- the name value.
-
id
Get the id property: Fully qualified resource Id for the resource.- Overrides:
idin classcom.azure.core.management.ProxyResource- Returns:
- the id value.
-
resourceState
Get the resourceState property: Resource status of the origin group.- Returns:
- the resourceState value.
-
provisioningState
Get the provisioningState property: Provisioning status of the origin group.- Returns:
- the provisioningState value.
-
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
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 OriginGroupInner object itself.
-
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 OriginGroupInner object itself.
-
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 OriginGroupInner 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 OriginGroupInner object itself.
-
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 OriginGroupInner 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 OriginGroupInner 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<com.azure.core.management.ProxyResource>- Overrides:
toJsonin classcom.azure.core.management.ProxyResource- Throws:
IOException
-
fromJson
Reads an instance of OriginGroupInner from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of OriginGroupInner 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 OriginGroupInner.
-