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.implementation;
import com.microsoft.azure.management.cdn.HealthProbeParameters;
import java.util.List;
import com.microsoft.azure.management.cdn.ResourceReference;
import com.microsoft.azure.management.cdn.ResponseBasedOriginErrorDetectionParameters;
import com.microsoft.azure.management.cdn.OriginGroupResourceState;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.microsoft.rest.serializer.JsonFlatten;
import com.microsoft.azure.ProxyResource;
Origin group comprising of origins is used for load balancing to origins
when the content cannot be served from CDN.
/**
* Origin group comprising of origins is used for load balancing to origins
* when the content cannot be served from CDN.
*/
@JsonFlatten
public class OriginGroupInner extends ProxyResource {
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")
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;
Resource status of the origin group. Possible values include:
'Creating', 'Active', 'Deleting'.
/**
* Resource status of the origin group. Possible values include:
* 'Creating', 'Active', 'Deleting'.
*/
@JsonProperty(value = "properties.resourceState", access = JsonProperty.Access.WRITE_ONLY)
private OriginGroupResourceState resourceState;
Provisioning status of the origin group.
/**
* Provisioning status of the origin group.
*/
@JsonProperty(value = "properties.provisioningState", access = JsonProperty.Access.WRITE_ONLY)
private String provisioningState;
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 OriginGroupInner 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 OriginGroupInner object itself.
*/
public OriginGroupInner 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 OriginGroupInner 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 OriginGroupInner object itself.
*/
public OriginGroupInner 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 OriginGroupInner 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 OriginGroupInner object itself.
*/
public OriginGroupInner 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 OriginGroupInner 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 OriginGroupInner object itself.
*/
public OriginGroupInner withResponseBasedOriginErrorDetectionSettings(ResponseBasedOriginErrorDetectionParameters responseBasedOriginErrorDetectionSettings) {
this.responseBasedOriginErrorDetectionSettings = responseBasedOriginErrorDetectionSettings;
return this;
}
Get resource status of the origin group. Possible values include: 'Creating', 'Active', 'Deleting'.
Returns: the resourceState value
/**
* Get resource status of the origin group. Possible values include: 'Creating', 'Active', 'Deleting'.
*
* @return the resourceState value
*/
public OriginGroupResourceState resourceState() {
return this.resourceState;
}
Get provisioning status of the origin group.
Returns: the provisioningState value
/**
* Get provisioning status of the origin group.
*
* @return the provisioningState value
*/
public String provisioningState() {
return this.provisioningState;
}
}