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 com.fasterxml.jackson.annotation.JsonProperty; import com.microsoft.rest.serializer.JsonFlatten;
The main origin of CDN content which is added when creating a CDN endpoint.
/** * The main origin of CDN content which is added when creating a CDN endpoint. */
@JsonFlatten public class DeepCreatedOrigin {
Origin name which must be unique within the endpoint.
/** * Origin name which must be unique within the endpoint. */
@JsonProperty(value = "name", required = true) private String name;
The address of the origin. It can be a domain name, IPv4 address, or IPv6 address. This should be unique across all origins in an endpoint.
/** * The address of the origin. It can be a domain name, IPv4 address, or * IPv6 address. This should be unique across all origins in an endpoint. */
@JsonProperty(value = "properties.hostName", required = true) 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.
/** * 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. */
@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. By default, origin is always enabled.
/** * Origin is enabled for load balancing or not. By default, origin is * always enabled. */
@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;
Get origin name which must be unique within the endpoint.
Returns:the name value
/** * Get origin name which must be unique within the endpoint. * * @return the name value */
public String name() { return this.name; }
Set origin name which must be unique within the endpoint.
Params:
  • name – the name value to set
Returns:the DeepCreatedOrigin object itself.
/** * Set origin name which must be unique within the endpoint. * * @param name the name value to set * @return the DeepCreatedOrigin object itself. */
public DeepCreatedOrigin withName(String name) { this.name = name; return this; }
Get the address of the origin. It can be a domain name, IPv4 address, or IPv6 address. This should be unique across all origins in an endpoint.
Returns:the hostName value
/** * Get the address of the origin. It can be a domain name, IPv4 address, or IPv6 address. 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. It can be a domain name, IPv4 address, or IPv6 address. This should be unique across all origins in an endpoint.
Params:
  • hostName – the hostName value to set
Returns:the DeepCreatedOrigin object itself.
/** * Set the address of the origin. It can be a domain name, IPv4 address, or IPv6 address. This should be unique across all origins in an endpoint. * * @param hostName the hostName value to set * @return the DeepCreatedOrigin object itself. */
public DeepCreatedOrigin 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 DeepCreatedOrigin object itself.
/** * Set the value of the HTTP port. Must be between 1 and 65535. * * @param httpPort the httpPort value to set * @return the DeepCreatedOrigin object itself. */
public DeepCreatedOrigin 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 DeepCreatedOrigin object itself.
/** * Set the value of the HTTPS port. Must be between 1 and 65535. * * @param httpsPort the httpsPort value to set * @return the DeepCreatedOrigin object itself. */
public DeepCreatedOrigin 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.
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. * * @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.
Params:
  • originHostHeader – the originHostHeader value to set
Returns:the DeepCreatedOrigin 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. * * @param originHostHeader the originHostHeader value to set * @return the DeepCreatedOrigin object itself. */
public DeepCreatedOrigin 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 DeepCreatedOrigin 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 DeepCreatedOrigin object itself. */
public DeepCreatedOrigin 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 DeepCreatedOrigin 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 DeepCreatedOrigin object itself. */
public DeepCreatedOrigin withWeight(Integer weight) { this.weight = weight; return this; }
Get origin is enabled for load balancing or not. By default, origin is always enabled.
Returns:the enabled value
/** * Get origin is enabled for load balancing or not. By default, origin is always enabled. * * @return the enabled value */
public Boolean enabled() { return this.enabled; }
Set origin is enabled for load balancing or not. By default, origin is always enabled.
Params:
  • enabled – the enabled value to set
Returns:the DeepCreatedOrigin object itself.
/** * Set origin is enabled for load balancing or not. By default, origin is always enabled. * * @param enabled the enabled value to set * @return the DeepCreatedOrigin object itself. */
public DeepCreatedOrigin 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 DeepCreatedOrigin 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 DeepCreatedOrigin object itself. */
public DeepCreatedOrigin 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 DeepCreatedOrigin 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 DeepCreatedOrigin object itself. */
public DeepCreatedOrigin 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 DeepCreatedOrigin 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 DeepCreatedOrigin object itself. */
public DeepCreatedOrigin 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 DeepCreatedOrigin 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 DeepCreatedOrigin object itself. */
public DeepCreatedOrigin withPrivateLinkApprovalMessage(String privateLinkApprovalMessage) { this.privateLinkApprovalMessage = privateLinkApprovalMessage; return this; } }