Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT License. See License.txt in the project root for license information. Code generated by Microsoft (R) AutoRest Code Generator.
/** * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. * * Code generated by Microsoft (R) AutoRest Code Generator. */
package com.microsoft.azure.management.cdn; import java.util.List; import com.fasterxml.jackson.annotation.JsonProperty; import com.microsoft.rest.serializer.JsonFlatten;
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.
/** * 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. */
@JsonFlatten public class DeepCreatedOriginGroup {
Origin group name which must be unique within the endpoint.
/** * Origin group name which must be unique within the endpoint. */
@JsonProperty(value = "name", required = true) private String name;
Health probe settings to the origin that is used to determine the health of the origin.
/** * Health probe settings to the origin that is used to determine the health * of the origin. */
@JsonProperty(value = "properties.healthProbeSettings") private HealthProbeParameters healthProbeSettings;
The source of the content being delivered via CDN within given origin group.
/** * The source of the content being delivered via CDN within given origin * group. */
@JsonProperty(value = "properties.origins", required = true) private List<ResourceReference> origins;
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.
/** * 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. */
@JsonProperty(value = "properties.trafficRestorationTimeToHealedOrNewEndpointsInMinutes") private Integer trafficRestorationTimeToHealedOrNewEndpointsInMinutes;
The JSON object that contains the properties to determine origin health using real requests/responses.This property is currently not supported.
/** * The JSON object that contains the properties to determine origin health * using real requests/responses.This property is currently not supported. */
@JsonProperty(value = "properties.responseBasedOriginErrorDetectionSettings") private ResponseBasedOriginErrorDetectionParameters responseBasedOriginErrorDetectionSettings;
Get origin group name which must be unique within the endpoint.
Returns:the name value
/** * Get origin group name which must be unique within the endpoint. * * @return the name value */
public String name() { return this.name; }
Set origin group name which must be unique within the endpoint.
Params:
  • name – the name value to set
Returns:the DeepCreatedOriginGroup object itself.
/** * Set origin group name which must be unique within the endpoint. * * @param name the name value to set * @return the DeepCreatedOriginGroup object itself. */
public DeepCreatedOriginGroup withName(String name) { this.name = name; return this; }
Get health probe settings to the origin that is used to determine the health of the origin.
Returns:the healthProbeSettings value
/** * Get health probe settings to the origin that is used to determine the health of the origin. * * @return the healthProbeSettings value */
public HealthProbeParameters healthProbeSettings() { return this.healthProbeSettings; }
Set health probe settings to the origin that is used to determine the health of the origin.
Params:
  • healthProbeSettings – the healthProbeSettings value to set
Returns:the DeepCreatedOriginGroup object itself.
/** * Set health probe settings to the origin that is used to determine the health of the origin. * * @param healthProbeSettings the healthProbeSettings value to set * @return the DeepCreatedOriginGroup object itself. */
public DeepCreatedOriginGroup withHealthProbeSettings(HealthProbeParameters healthProbeSettings) { this.healthProbeSettings = healthProbeSettings; return this; }
Get the source of the content being delivered via CDN within given origin group.
Returns:the origins value
/** * Get the source of the content being delivered via CDN within given origin group. * * @return the origins value */
public List<ResourceReference> origins() { return this.origins; }
Set the source of the content being delivered via CDN within given origin group.
Params:
  • origins – the origins value to set
Returns:the DeepCreatedOriginGroup object itself.
/** * Set the source of the content being delivered via CDN within given origin group. * * @param origins the origins value to set * @return the DeepCreatedOriginGroup object itself. */
public DeepCreatedOriginGroup withOrigins(List<ResourceReference> origins) { this.origins = origins; return this; }
Get 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
/** * Get 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. * * @return the trafficRestorationTimeToHealedOrNewEndpointsInMinutes value */
public Integer trafficRestorationTimeToHealedOrNewEndpointsInMinutes() { return this.trafficRestorationTimeToHealedOrNewEndpointsInMinutes; }
Set 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.
Params:
  • trafficRestorationTimeToHealedOrNewEndpointsInMinutes – the trafficRestorationTimeToHealedOrNewEndpointsInMinutes value to set
Returns:the DeepCreatedOriginGroup object itself.
/** * Set 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. * * @param trafficRestorationTimeToHealedOrNewEndpointsInMinutes the trafficRestorationTimeToHealedOrNewEndpointsInMinutes value to set * @return the DeepCreatedOriginGroup object itself. */
public DeepCreatedOriginGroup withTrafficRestorationTimeToHealedOrNewEndpointsInMinutes(Integer trafficRestorationTimeToHealedOrNewEndpointsInMinutes) { this.trafficRestorationTimeToHealedOrNewEndpointsInMinutes = trafficRestorationTimeToHealedOrNewEndpointsInMinutes; return this; }
Get 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
/** * Get the JSON object that contains the properties to determine origin health using real requests/responses.This property is currently not supported. * * @return the responseBasedOriginErrorDetectionSettings value */
public ResponseBasedOriginErrorDetectionParameters responseBasedOriginErrorDetectionSettings() { return this.responseBasedOriginErrorDetectionSettings; }
Set the JSON object that contains the properties to determine origin health using real requests/responses.This property is currently not supported.
Params:
  • responseBasedOriginErrorDetectionSettings – the responseBasedOriginErrorDetectionSettings value to set
Returns:the DeepCreatedOriginGroup object itself.
/** * Set the JSON object that contains the properties to determine origin health using real requests/responses.This property is currently not supported. * * @param responseBasedOriginErrorDetectionSettings the responseBasedOriginErrorDetectionSettings value to set * @return the DeepCreatedOriginGroup object itself. */
public DeepCreatedOriginGroup withResponseBasedOriginErrorDetectionSettings(ResponseBasedOriginErrorDetectionParameters responseBasedOriginErrorDetectionSettings) { this.responseBasedOriginErrorDetectionSettings = responseBasedOriginErrorDetectionSettings; return this; } }