DeepCreatedOrigin Class

  • java.lang.Object
    • com.microsoft.azure.management.cdn.DeepCreatedOrigin

public class DeepCreatedOrigin

The main origin of CDN content which is added when creating a CDN endpoint.

Constructor Summary

Constructor Description
DeepCreatedOrigin()

Method Summary

Modifier and Type Method and Description
java.lang.Boolean enabled()

Get origin is enabled for load balancing or not.

java.lang.String hostName()

Get the address of the origin.

java.lang.Integer httpPort()

Get the value of the HTTP port.

java.lang.Integer httpsPort()

Get the value of the HTTPS port.

java.lang.String name()

Get origin name which must be unique within the endpoint.

java.lang.String originHostHeader()

Get the host header value sent to the origin with each request.

java.lang.Integer priority()

Get priority of origin in given origin group for load balancing.

java.lang.String privateLinkAlias()

Get the Alias of the Private Link resource.

java.lang.String privateLinkApprovalMessage()

Get a custom message to be included in the approval request to connect to the Private Link.

java.lang.String privateLinkLocation()

Get the location of the Private Link resource.

java.lang.String privateLinkResourceId()

Get the Resource Id of the Private Link resource.

java.lang.Integer weight()

Get weight of the origin in given origin group for load balancing.

DeepCreatedOrigin withEnabled(Boolean enabled)

Set origin is enabled for load balancing or not.

DeepCreatedOrigin withHostName(String hostName)

Set the address of the origin.

DeepCreatedOrigin withHttpPort(Integer httpPort)

Set the value of the HTTP port.

DeepCreatedOrigin withHttpsPort(Integer httpsPort)

Set the value of the HTTPS port.

DeepCreatedOrigin withName(String name)

Set origin name which must be unique within the endpoint.

DeepCreatedOrigin withOriginHostHeader(String originHostHeader)

Set the host header value sent to the origin with each request.

DeepCreatedOrigin withPriority(Integer priority)

Set priority of origin in given origin group for load balancing.

DeepCreatedOrigin withPrivateLinkAlias(String privateLinkAlias)

Set the Alias of the Private Link resource.

DeepCreatedOrigin withPrivateLinkApprovalMessage(String privateLinkApprovalMessage)

Set a custom message to be included in the approval request to connect to the Private Link.

DeepCreatedOrigin withPrivateLinkLocation(String privateLinkLocation)

Set the location of the Private Link resource.

DeepCreatedOrigin withPrivateLinkResourceId(String privateLinkResourceId)

Set the Resource Id of the Private Link resource.

DeepCreatedOrigin withWeight(Integer weight)

Set weight of the origin in given origin group for load balancing.

Methods inherited from java.lang.Object

java.lang.Object.clone java.lang.Object.equals java.lang.Object.finalize java.lang.Object.getClass java.lang.Object.hashCode java.lang.Object.notify java.lang.Object.notifyAll java.lang.Object.toString java.lang.Object.wait java.lang.Object.wait java.lang.Object.wait

Constructor Details

DeepCreatedOrigin

public DeepCreatedOrigin()

Method Details

enabled

public Boolean enabled()

Get origin is enabled for load balancing or not. By default, origin is always enabled.

Returns:

the enabled value

hostName

public String hostName()

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

httpPort

public Integer httpPort()

Get the value of the HTTP port. Must be between 1 and 65535.

Returns:

the httpPort value

httpsPort

public Integer httpsPort()

Get the value of the HTTPS port. Must be between 1 and 65535.

Returns:

the httpsPort value

name

public String name()

Get origin name which must be unique within the endpoint.

Returns:

the name value

originHostHeader

public String originHostHeader()

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

priority

public Integer priority()

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

privateLinkAlias

public String privateLinkAlias()

Get the Alias of the Private Link resource. Populating this optional field indicates that this origin is 'Private'.

Returns:

the privateLinkAlias value

privateLinkApprovalMessage

public String privateLinkApprovalMessage()

Get a custom message to be included in the approval request to connect to the Private Link.

Returns:

the privateLinkApprovalMessage value

privateLinkLocation

public String privateLinkLocation()

Get the location of the Private Link resource. Required only if 'privateLinkResourceId' is populated.

Returns:

the privateLinkLocation value

privateLinkResourceId

public String privateLinkResourceId()

Get the Resource Id of the Private Link resource. Populating this optional field indicates that this backend is 'Private'.

Returns:

the privateLinkResourceId value

weight

public Integer weight()

Get weight of the origin in given origin group for load balancing. Must be between 1 and 1000.

Returns:

the weight value

withEnabled

public DeepCreatedOrigin withEnabled(Boolean enabled)

Set origin is enabled for load balancing or not. By default, origin is always enabled.

Parameters:

enabled - the enabled value to set

Returns:

the DeepCreatedOrigin object itself.

withHostName

public DeepCreatedOrigin withHostName(String 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.

Parameters:

hostName - the hostName value to set

Returns:

the DeepCreatedOrigin object itself.

withHttpPort

public DeepCreatedOrigin withHttpPort(Integer httpPort)

Set the value of the HTTP port. Must be between 1 and 65535.

Parameters:

httpPort - the httpPort value to set

Returns:

the DeepCreatedOrigin object itself.

withHttpsPort

public DeepCreatedOrigin withHttpsPort(Integer httpsPort)

Set the value of the HTTPS port. Must be between 1 and 65535.

Parameters:

httpsPort - the httpsPort value to set

Returns:

the DeepCreatedOrigin object itself.

withName

public DeepCreatedOrigin withName(String name)

Set origin name which must be unique within the endpoint.

Parameters:

name - the name value to set

Returns:

the DeepCreatedOrigin object itself.

withOriginHostHeader

public DeepCreatedOrigin withOriginHostHeader(String 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.

Parameters:

originHostHeader - the originHostHeader value to set

Returns:

the DeepCreatedOrigin object itself.

withPriority

public DeepCreatedOrigin withPriority(Integer 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.

Parameters:

priority - the priority value to set

Returns:

the DeepCreatedOrigin object itself.

withPrivateLinkAlias

public DeepCreatedOrigin withPrivateLinkAlias(String privateLinkAlias)

Set the Alias of the Private Link resource. Populating this optional field indicates that this origin is 'Private'.

Parameters:

privateLinkAlias - the privateLinkAlias value to set

Returns:

the DeepCreatedOrigin object itself.

withPrivateLinkApprovalMessage

public DeepCreatedOrigin withPrivateLinkApprovalMessage(String privateLinkApprovalMessage)

Set a custom message to be included in the approval request to connect to the Private Link.

Parameters:

privateLinkApprovalMessage - the privateLinkApprovalMessage value to set

Returns:

the DeepCreatedOrigin object itself.

withPrivateLinkLocation

public DeepCreatedOrigin withPrivateLinkLocation(String privateLinkLocation)

Set the location of the Private Link resource. Required only if 'privateLinkResourceId' is populated.

Parameters:

privateLinkLocation - the privateLinkLocation value to set

Returns:

the DeepCreatedOrigin object itself.

withPrivateLinkResourceId

public DeepCreatedOrigin withPrivateLinkResourceId(String privateLinkResourceId)

Set the Resource Id of the Private Link resource. Populating this optional field indicates that this backend is 'Private'.

Parameters:

privateLinkResourceId - the privateLinkResourceId value to set

Returns:

the DeepCreatedOrigin object itself.

withWeight

public DeepCreatedOrigin withWeight(Integer weight)

Set weight of the origin in given origin group for load balancing. Must be between 1 and 1000.

Parameters:

weight - the weight value to set

Returns:

the DeepCreatedOrigin object itself.

Applies to