DeepCreatedOrigin Class
- java.
lang. Object - com.
microsoft. azure. management. cdn. DeepCreatedOrigin
- com.
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. |
Deep |
withEnabled(Boolean enabled)
Set origin is enabled for load balancing or not. |
Deep |
withHostName(String hostName)
Set the address of the origin. |
Deep |
withHttpPort(Integer httpPort)
Set the value of the HTTP port. |
Deep |
withHttpsPort(Integer httpsPort)
Set the value of the HTTPS port. |
Deep |
withName(String name)
Set origin name which must be unique within the endpoint. |
Deep |
withOriginHostHeader(String originHostHeader)
Set the host header value sent to the origin with each request. |
Deep |
withPriority(Integer priority)
Set priority of origin in given origin group for load balancing. |
Deep |
withPrivateLinkAlias(String privateLinkAlias)
Set the Alias of the Private Link resource. |
Deep |
withPrivateLinkApprovalMessage(String privateLinkApprovalMessage)
Set a custom message to be included in the approval request to connect to the Private Link. |
Deep |
withPrivateLinkLocation(String privateLinkLocation)
Set the location of the Private Link resource. |
Deep |
withPrivateLinkResourceId(String privateLinkResourceId)
Set the Resource Id of the Private Link resource. |
Deep |
withWeight(Integer weight)
Set weight of the origin in given origin group for load balancing. |
Methods inherited from java.lang.Object
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:
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:
httpPort
public Integer httpPort()
Get the value of the HTTP port. Must be between 1 and 65535.
Returns:
httpsPort
public Integer httpsPort()
Get the value of the HTTPS port. Must be between 1 and 65535.
Returns:
name
public String name()
Get origin name which must be unique within the endpoint.
Returns:
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:
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:
privateLinkAlias
public String privateLinkAlias()
Get the Alias of the Private Link resource. Populating this optional field indicates that this origin is 'Private'.
Returns:
privateLinkApprovalMessage
public String privateLinkApprovalMessage()
Get a custom message to be included in the approval request to connect to the Private Link.
Returns:
privateLinkLocation
public String privateLinkLocation()
Get the location of the Private Link resource. Required only if 'privateLinkResourceId' is populated.
Returns:
privateLinkResourceId
public String privateLinkResourceId()
Get the Resource Id of the Private Link resource. Populating this optional field indicates that this backend is 'Private'.
Returns:
weight
public Integer weight()
Get weight of the origin in given origin group for load balancing. Must be between 1 and 1000.
Returns:
withEnabled
public DeepCreatedOrigin withEnabled(Boolean enabled)
Set origin is enabled for load balancing or not. By default, origin is always enabled.
Parameters:
Returns:
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:
Returns:
withHttpPort
public DeepCreatedOrigin withHttpPort(Integer httpPort)
Set the value of the HTTP port. Must be between 1 and 65535.
Parameters:
Returns:
withHttpsPort
public DeepCreatedOrigin withHttpsPort(Integer httpsPort)
Set the value of the HTTPS port. Must be between 1 and 65535.
Parameters:
Returns:
withName
public DeepCreatedOrigin withName(String name)
Set origin name which must be unique within the endpoint.
Parameters:
Returns:
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:
Returns:
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:
Returns:
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:
Returns:
withPrivateLinkApprovalMessage
public DeepCreatedOrigin withPrivateLinkApprovalMessage(String privateLinkApprovalMessage)
Set a custom message to be included in the approval request to connect to the Private Link.
Parameters:
Returns:
withPrivateLinkLocation
public DeepCreatedOrigin withPrivateLinkLocation(String privateLinkLocation)
Set the location of the Private Link resource. Required only if 'privateLinkResourceId' is populated.
Parameters:
Returns:
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:
Returns:
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:
Returns:
Applies to
Azure SDK for Java