OriginGroupInner Class
- java.
lang. Object - com.
azure. core. management. ProxyResource - com.
azure. resourcemanager. cdn. fluent. models. OriginGroupInner
- com.
- com.
public final class OriginGroupInner
extends ProxyResource
Origin group comprising of origins is used for load balancing to origins when the content cannot be served from CDN.
Constructor Summary
Constructor | Description |
---|---|
OriginGroupInner() |
Creates an instance of Origin |
Method Summary
Modifier and Type | Method and Description |
---|---|
static
Origin |
fromJson(JsonReader jsonReader)
Reads an instance of Origin |
Health |
healthProbeSettings()
Get the health |
String |
id()
Get the id property: Fully qualified resource Id for the resource. |
String |
name()
Get the name property: The name of the resource. |
List<Resource |
origins()
Get the origins property: The source of the content being delivered via CDN within given origin group. |
Origin |
provisioningState()
Get the provisioning |
Origin |
resourceState()
Get the resource |
Response |
responseBasedOriginErrorDetectionSettings()
Get the response |
System |
systemData()
Get the system |
Json |
toJson(JsonWriter jsonWriter) |
Integer |
trafficRestorationTimeToHealedOrNewEndpointsInMinutes()
Get the traffic |
String |
type()
Get the type property: The type of the resource. |
void |
validate()
Validates the instance. |
Origin |
withHealthProbeSettings(HealthProbeParameters healthProbeSettings)
Set the health |
Origin |
withOrigins(List<ResourceReference> origins)
Set the origins property: The source of the content being delivered via CDN within given origin group. |
Origin |
withResponseBasedOriginErrorDetectionSettings(ResponseBasedOriginErrorDetectionParameters responseBasedOriginErrorDetectionSettings)
Set the response |
Origin |
withTrafficRestorationTimeToHealedOrNewEndpointsInMinutes(Integer trafficRestorationTimeToHealedOrNewEndpointsInMinutes)
Set the traffic |
Methods inherited from ProxyResource
Methods inherited from java.lang.Object
Constructor Details
OriginGroupInner
public OriginGroupInner()
Creates an instance of OriginGroupInner class.
Method Details
fromJson
public static OriginGroupInner fromJson(JsonReader jsonReader)
Reads an instance of OriginGroupInner from the JsonReader.
Parameters:
Returns:
Throws:
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:
id
public String id()
Get the id property: Fully qualified resource Id for the resource.
Overrides:
OriginGroupInner.id()Returns:
name
public String name()
Get the name property: The name of the resource.
Overrides:
OriginGroupInner.name()Returns:
origins
public List
Get the origins property: The source of the content being delivered via CDN within given origin group.
Returns:
provisioningState
public OriginGroupProvisioningState provisioningState()
Get the provisioningState property: Provisioning status of the origin group.
Returns:
resourceState
public OriginGroupResourceState resourceState()
Get the resourceState property: Resource status of the origin group.
Returns:
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:
systemData
public SystemData systemData()
Get the systemData property: Read only system data.
Returns:
toJson
public JsonWriter toJson(JsonWriter jsonWriter)
Overrides:
OriginGroupInner.toJson(JsonWriter jsonWriter)Parameters:
Throws:
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:
type
public String type()
Get the type property: The type of the resource.
Overrides:
OriginGroupInner.type()Returns:
validate
public void validate()
Validates the instance.
withHealthProbeSettings
public OriginGroupInner withHealthProbeSettings(HealthProbeParameters healthProbeSettings)
Set the healthProbeSettings property: Health probe settings to the origin that is used to determine the health of the origin.
Parameters:
Returns:
withOrigins
public OriginGroupInner withOrigins(List
Set the origins property: The source of the content being delivered via CDN within given origin group.
Parameters:
Returns:
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:
Returns:
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:
Returns:
Applies to
Azure SDK for Java