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.OriginResourceState; import com.microsoft.azure.management.cdn.PrivateEndpointStatus; import com.fasterxml.jackson.annotation.JsonProperty; import com.microsoft.rest.serializer.JsonFlatten; import com.microsoft.azure.ProxyResource;
CDN origin is the source of the content being delivered via CDN. When the edge nodes represented by an endpoint do not have the requested content cached, they attempt to fetch it from one or more of the configured origins.
/** * CDN origin is the source of the content being delivered via CDN. When the * edge nodes represented by an endpoint do not have the requested content * cached, they attempt to fetch it from one or more of the configured origins. */
@JsonFlatten public class OriginInner extends ProxyResource {
The address of the origin. Domain names, IPv4 addresses, and IPv6 addresses are supported.This should be unique across all origins in an endpoint.
/** * The address of the origin. Domain names, IPv4 addresses, and IPv6 * addresses are supported.This should be unique across all origins in an * endpoint. */
@JsonProperty(value = "properties.hostName") private String hostName;
The value of the HTTP port. Must be between 1 and 65535.
/** * The value of the HTTP port. Must be between 1 and 65535. */
@JsonProperty(value = "properties.httpPort") private Integer httpPort;
The value of the HTTPS port. Must be between 1 and 65535.
/** * The value of the HTTPS port. Must be between 1 and 65535. */
@JsonProperty(value = "properties.httpsPort") private Integer httpsPort;
The host header value sent to the origin with each request. If you leave this blank, the request hostname determines this value. Azure CDN origins, such as Web Apps, Blob Storage, and Cloud Services require this host header value to match the origin hostname by default. This overrides the host header defined at Endpoint.
/** * The host header value sent to the origin with each request. If you leave * this blank, the request hostname determines this value. Azure CDN * origins, such as Web Apps, Blob Storage, and Cloud Services require this * host header value to match the origin hostname by default. This * overrides the host header defined at Endpoint. */
@JsonProperty(value = "properties.originHostHeader") private String originHostHeader;
Priority of origin in given origin group for load balancing. Higher priorities will not be used for load balancing if any lower priority origin is healthy.Must be between 1 and 5.
/** * Priority of origin in given origin group for load balancing. Higher * priorities will not be used for load balancing if any lower priority * origin is healthy.Must be between 1 and 5. */
@JsonProperty(value = "properties.priority") private Integer priority;
Weight of the origin in given origin group for load balancing. Must be between 1 and 1000.
/** * Weight of the origin in given origin group for load balancing. Must be * between 1 and 1000. */
@JsonProperty(value = "properties.weight") private Integer weight;
Origin is enabled for load balancing or not.
/** * Origin is enabled for load balancing or not. */
@JsonProperty(value = "properties.enabled") private Boolean enabled;
The Alias of the Private Link resource. Populating this optional field indicates that this origin is 'Private'.
/** * The Alias of the Private Link resource. Populating this optional field * indicates that this origin is 'Private'. */
@JsonProperty(value = "properties.privateLinkAlias") private String privateLinkAlias;
The Resource Id of the Private Link resource. Populating this optional field indicates that this backend is 'Private'.
/** * The Resource Id of the Private Link resource. Populating this optional * field indicates that this backend is 'Private'. */
@JsonProperty(value = "properties.privateLinkResourceId") private String privateLinkResourceId;
The location of the Private Link resource. Required only if 'privateLinkResourceId' is populated.
/** * The location of the Private Link resource. Required only if * 'privateLinkResourceId' is populated. */
@JsonProperty(value = "properties.privateLinkLocation") private String privateLinkLocation;
A custom message to be included in the approval request to connect to the Private Link.
/** * A custom message to be included in the approval request to connect to * the Private Link. */
@JsonProperty(value = "properties.privateLinkApprovalMessage") private String privateLinkApprovalMessage;
Resource status of the origin. Possible values include: 'Creating', 'Active', 'Deleting'.
/** * Resource status of the origin. Possible values include: 'Creating', * 'Active', 'Deleting'. */
@JsonProperty(value = "properties.resourceState", access = JsonProperty.Access.WRITE_ONLY) private OriginResourceState resourceState;
Provisioning status of the origin.
/** * Provisioning status of the origin. */
@JsonProperty(value = "properties.provisioningState", access = JsonProperty.Access.WRITE_ONLY) private String provisioningState;
The approval status for the connection to the Private Link. Possible values include: 'Pending', 'Approved', 'Rejected', 'Disconnected', 'Timeout'.
/** * The approval status for the connection to the Private Link. Possible * values include: 'Pending', 'Approved', 'Rejected', 'Disconnected', * 'Timeout'. */
@JsonProperty(value = "properties.privateEndpointStatus", access = JsonProperty.Access.WRITE_ONLY) private PrivateEndpointStatus privateEndpointStatus;
Get the address of the origin. Domain names, IPv4 addresses, and IPv6 addresses are supported.This should be unique across all origins in an endpoint.
Returns:the hostName value
/** * Get the address of the origin. Domain names, IPv4 addresses, and IPv6 addresses are supported.This should be unique across all origins in an endpoint. * * @return the hostName value */
public String hostName() { return this.hostName; }
Set the address of the origin. Domain names, IPv4 addresses, and IPv6 addresses are supported.This should be unique across all origins in an endpoint.
Params:
  • hostName – the hostName value to set
Returns:the OriginInner object itself.
/** * Set the address of the origin. Domain names, IPv4 addresses, and IPv6 addresses are supported.This should be unique across all origins in an endpoint. * * @param hostName the hostName value to set * @return the OriginInner object itself. */
public OriginInner withHostName(String hostName) { this.hostName = hostName; return this; }
Get the value of the HTTP port. Must be between 1 and 65535.
Returns:the httpPort value
/** * Get the value of the HTTP port. Must be between 1 and 65535. * * @return the httpPort value */
public Integer httpPort() { return this.httpPort; }
Set the value of the HTTP port. Must be between 1 and 65535.
Params:
  • httpPort – the httpPort value to set
Returns:the OriginInner object itself.
/** * Set the value of the HTTP port. Must be between 1 and 65535. * * @param httpPort the httpPort value to set * @return the OriginInner object itself. */
public OriginInner withHttpPort(Integer httpPort) { this.httpPort = httpPort; return this; }
Get the value of the HTTPS port. Must be between 1 and 65535.
Returns:the httpsPort value
/** * Get the value of the HTTPS port. Must be between 1 and 65535. * * @return the httpsPort value */
public Integer httpsPort() { return this.httpsPort; }
Set the value of the HTTPS port. Must be between 1 and 65535.
Params:
  • httpsPort – the httpsPort value to set
Returns:the OriginInner object itself.
/** * Set the value of the HTTPS port. Must be between 1 and 65535. * * @param httpsPort the httpsPort value to set * @return the OriginInner object itself. */
public OriginInner withHttpsPort(Integer httpsPort) { this.httpsPort = httpsPort; return this; }
Get the host header value sent to the origin with each request. If you leave this blank, the request hostname determines this value. Azure CDN origins, such as Web Apps, Blob Storage, and Cloud Services require this host header value to match the origin hostname by default. This overrides the host header defined at Endpoint.
Returns:the originHostHeader value
/** * Get the host header value sent to the origin with each request. If you leave this blank, the request hostname determines this value. Azure CDN origins, such as Web Apps, Blob Storage, and Cloud Services require this host header value to match the origin hostname by default. This overrides the host header defined at Endpoint. * * @return the originHostHeader value */
public String originHostHeader() { return this.originHostHeader; }
Set the host header value sent to the origin with each request. If you leave this blank, the request hostname determines this value. Azure CDN origins, such as Web Apps, Blob Storage, and Cloud Services require this host header value to match the origin hostname by default. This overrides the host header defined at Endpoint.
Params:
  • originHostHeader – the originHostHeader value to set
Returns:the OriginInner object itself.
/** * Set the host header value sent to the origin with each request. If you leave this blank, the request hostname determines this value. Azure CDN origins, such as Web Apps, Blob Storage, and Cloud Services require this host header value to match the origin hostname by default. This overrides the host header defined at Endpoint. * * @param originHostHeader the originHostHeader value to set * @return the OriginInner object itself. */
public OriginInner withOriginHostHeader(String originHostHeader) { this.originHostHeader = originHostHeader; return this; }
Get priority of origin in given origin group for load balancing. Higher priorities will not be used for load balancing if any lower priority origin is healthy.Must be between 1 and 5.
Returns:the priority value
/** * Get priority of origin in given origin group for load balancing. Higher priorities will not be used for load balancing if any lower priority origin is healthy.Must be between 1 and 5. * * @return the priority value */
public Integer priority() { return this.priority; }
Set priority of origin in given origin group for load balancing. Higher priorities will not be used for load balancing if any lower priority origin is healthy.Must be between 1 and 5.
Params:
  • priority – the priority value to set
Returns:the OriginInner object itself.
/** * Set priority of origin in given origin group for load balancing. Higher priorities will not be used for load balancing if any lower priority origin is healthy.Must be between 1 and 5. * * @param priority the priority value to set * @return the OriginInner object itself. */
public OriginInner withPriority(Integer priority) { this.priority = priority; return this; }
Get weight of the origin in given origin group for load balancing. Must be between 1 and 1000.
Returns:the weight value
/** * Get weight of the origin in given origin group for load balancing. Must be between 1 and 1000. * * @return the weight value */
public Integer weight() { return this.weight; }
Set weight of the origin in given origin group for load balancing. Must be between 1 and 1000.
Params:
  • weight – the weight value to set
Returns:the OriginInner object itself.
/** * Set weight of the origin in given origin group for load balancing. Must be between 1 and 1000. * * @param weight the weight value to set * @return the OriginInner object itself. */
public OriginInner withWeight(Integer weight) { this.weight = weight; return this; }
Get origin is enabled for load balancing or not.
Returns:the enabled value
/** * Get origin is enabled for load balancing or not. * * @return the enabled value */
public Boolean enabled() { return this.enabled; }
Set origin is enabled for load balancing or not.
Params:
  • enabled – the enabled value to set
Returns:the OriginInner object itself.
/** * Set origin is enabled for load balancing or not. * * @param enabled the enabled value to set * @return the OriginInner object itself. */
public OriginInner withEnabled(Boolean enabled) { this.enabled = enabled; return this; }
Get the Alias of the Private Link resource. Populating this optional field indicates that this origin is 'Private'.
Returns:the privateLinkAlias value
/** * Get the Alias of the Private Link resource. Populating this optional field indicates that this origin is 'Private'. * * @return the privateLinkAlias value */
public String privateLinkAlias() { return this.privateLinkAlias; }
Set the Alias of the Private Link resource. Populating this optional field indicates that this origin is 'Private'.
Params:
  • privateLinkAlias – the privateLinkAlias value to set
Returns:the OriginInner object itself.
/** * Set the Alias of the Private Link resource. Populating this optional field indicates that this origin is 'Private'. * * @param privateLinkAlias the privateLinkAlias value to set * @return the OriginInner object itself. */
public OriginInner withPrivateLinkAlias(String privateLinkAlias) { this.privateLinkAlias = privateLinkAlias; return this; }
Get the Resource Id of the Private Link resource. Populating this optional field indicates that this backend is 'Private'.
Returns:the privateLinkResourceId value
/** * Get the Resource Id of the Private Link resource. Populating this optional field indicates that this backend is 'Private'. * * @return the privateLinkResourceId value */
public String privateLinkResourceId() { return this.privateLinkResourceId; }
Set the Resource Id of the Private Link resource. Populating this optional field indicates that this backend is 'Private'.
Params:
  • privateLinkResourceId – the privateLinkResourceId value to set
Returns:the OriginInner object itself.
/** * Set the Resource Id of the Private Link resource. Populating this optional field indicates that this backend is 'Private'. * * @param privateLinkResourceId the privateLinkResourceId value to set * @return the OriginInner object itself. */
public OriginInner withPrivateLinkResourceId(String privateLinkResourceId) { this.privateLinkResourceId = privateLinkResourceId; return this; }
Get the location of the Private Link resource. Required only if 'privateLinkResourceId' is populated.
Returns:the privateLinkLocation value
/** * Get the location of the Private Link resource. Required only if 'privateLinkResourceId' is populated. * * @return the privateLinkLocation value */
public String privateLinkLocation() { return this.privateLinkLocation; }
Set the location of the Private Link resource. Required only if 'privateLinkResourceId' is populated.
Params:
  • privateLinkLocation – the privateLinkLocation value to set
Returns:the OriginInner object itself.
/** * Set the location of the Private Link resource. Required only if 'privateLinkResourceId' is populated. * * @param privateLinkLocation the privateLinkLocation value to set * @return the OriginInner object itself. */
public OriginInner withPrivateLinkLocation(String privateLinkLocation) { this.privateLinkLocation = privateLinkLocation; return this; }
Get a custom message to be included in the approval request to connect to the Private Link.
Returns:the privateLinkApprovalMessage value
/** * Get a custom message to be included in the approval request to connect to the Private Link. * * @return the privateLinkApprovalMessage value */
public String privateLinkApprovalMessage() { return this.privateLinkApprovalMessage; }
Set a custom message to be included in the approval request to connect to the Private Link.
Params:
  • privateLinkApprovalMessage – the privateLinkApprovalMessage value to set
Returns:the OriginInner object itself.
/** * Set a custom message to be included in the approval request to connect to the Private Link. * * @param privateLinkApprovalMessage the privateLinkApprovalMessage value to set * @return the OriginInner object itself. */
public OriginInner withPrivateLinkApprovalMessage(String privateLinkApprovalMessage) { this.privateLinkApprovalMessage = privateLinkApprovalMessage; return this; }
Get resource status of the origin. Possible values include: 'Creating', 'Active', 'Deleting'.
Returns:the resourceState value
/** * Get resource status of the origin. Possible values include: 'Creating', 'Active', 'Deleting'. * * @return the resourceState value */
public OriginResourceState resourceState() { return this.resourceState; }
Get provisioning status of the origin.
Returns:the provisioningState value
/** * Get provisioning status of the origin. * * @return the provisioningState value */
public String provisioningState() { return this.provisioningState; }
Get the approval status for the connection to the Private Link. Possible values include: 'Pending', 'Approved', 'Rejected', 'Disconnected', 'Timeout'.
Returns:the privateEndpointStatus value
/** * Get the approval status for the connection to the Private Link. Possible values include: 'Pending', 'Approved', 'Rejected', 'Disconnected', 'Timeout'. * * @return the privateEndpointStatus value */
public PrivateEndpointStatus privateEndpointStatus() { return this.privateEndpointStatus; } }