共用方式為


DeepCreatedOriginGroup Class

  • java.lang.Object
    • com.azure.resourcemanager.cdn.models.DeepCreatedOriginGroup

Implements

public final class DeepCreatedOriginGroup
implements JsonSerializable<DeepCreatedOriginGroup>

The origin group for CDN content which is added when creating a CDN endpoint. Traffic is sent to the origins within the origin group based on origin health.

Constructor Summary

Constructor Description
DeepCreatedOriginGroup()

Creates an instance of DeepCreatedOriginGroup class.

Method Summary

Modifier and Type Method and Description
static DeepCreatedOriginGroup fromJson(JsonReader jsonReader)

Reads an instance of DeepCreatedOriginGroup from the JsonReader.

HealthProbeParameters healthProbeSettings()

Get the healthProbeSettings property: Health probe settings to the origin that is used to determine the health of the origin.

String name()

Get the name property: Origin group name which must be unique within the endpoint.

List<ResourceReference> origins()

Get the origins property: The source of the content being delivered via CDN within given origin group.

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.

JsonWriter toJson(JsonWriter jsonWriter)
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.

void validate()

Validates the instance.

DeepCreatedOriginGroup withHealthProbeSettings(HealthProbeParameters healthProbeSettings)

Set the healthProbeSettings property: Health probe settings to the origin that is used to determine the health of the origin.

DeepCreatedOriginGroup withName(String name)

Set the name property: Origin group name which must be unique within the endpoint.

DeepCreatedOriginGroup withOrigins(List<ResourceReference> origins)

Set the origins property: The source of the content being delivered via CDN within given origin group.

DeepCreatedOriginGroup 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.

DeepCreatedOriginGroup 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 java.lang.Object

Constructor Details

DeepCreatedOriginGroup

public DeepCreatedOriginGroup()

Creates an instance of DeepCreatedOriginGroup class.

Method Details

fromJson

public static DeepCreatedOriginGroup fromJson(JsonReader jsonReader)

Reads an instance of DeepCreatedOriginGroup from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of DeepCreatedOriginGroup if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

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.

name

public String name()

Get the name property: Origin group name which must be unique within the endpoint.

Returns:

the name value.

origins

public List origins()

Get the origins property: The source of the content being delivered via CDN within given origin group.

Returns:

the origins value.

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.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

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:

the trafficRestorationTimeToHealedOrNewEndpointsInMinutes value.

validate

public void validate()

Validates the instance.

withHealthProbeSettings

public DeepCreatedOriginGroup 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 DeepCreatedOriginGroup object itself.

withName

public DeepCreatedOriginGroup withName(String name)

Set the name property: Origin group name which must be unique within the endpoint.

Parameters:

name - the name value to set.

Returns:

the DeepCreatedOriginGroup object itself.

withOrigins

public DeepCreatedOriginGroup withOrigins(List origins)

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 DeepCreatedOriginGroup object itself.

withResponseBasedOriginErrorDetectionSettings

public DeepCreatedOriginGroup 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 DeepCreatedOriginGroup object itself.

withTrafficRestorationTimeToHealedOrNewEndpointsInMinutes

public DeepCreatedOriginGroup 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 DeepCreatedOriginGroup object itself.

Applies to