OriginUpdateParameters Class
- java.
lang. Object - com.
microsoft. azure. management. cdn. OriginUpdateParameters
- com.
public class OriginUpdateParameters
Origin properties needed for origin update.
Constructor Summary
Constructor | Description | |
---|---|---|
OriginUpdateParameters() |
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 |
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. |
Origin |
withEnabled(Boolean enabled)
Set origin is enabled for load balancing or not. |
Origin |
withHostName(String hostName)
Set the address of the origin. |
Origin |
withHttpPort(Integer httpPort)
Set the value of the HTTP port. |
Origin |
withHttpsPort(Integer httpsPort)
Set the value of the HTTPS port. |
Origin |
withOriginHostHeader(String originHostHeader)
Set the host header value sent to the origin with each request. |
Origin |
withPriority(Integer priority)
Set priority of origin in given origin group for load balancing. |
Origin |
withPrivateLinkAlias(String privateLinkAlias)
Set the Alias of the Private Link resource. |
Origin |
withPrivateLinkApprovalMessage(String privateLinkApprovalMessage)
Set a custom message to be included in the approval request to connect to the Private Link. |
Origin |
withPrivateLinkLocation(String privateLinkLocation)
Set the location of the Private Link resource. |
Origin |
withPrivateLinkResourceId(String privateLinkResourceId)
Set the Resource Id of the Private Link resource. |
Origin |
withWeight(Integer weight)
Set weight of the origin in given origin group for load balancing. |
Methods inherited from java.lang.Object
Constructor Details
OriginUpdateParameters
public OriginUpdateParameters()
Method Details
enabled
public Boolean enabled()
Get origin is enabled for load balancing or not.
Returns:
hostName
public String hostName()
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:
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:
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. This overrides the host header defined at Endpoint.
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 OriginUpdateParameters withEnabled(Boolean enabled)
Set origin is enabled for load balancing or not.
Parameters:
Returns:
withHostName
public OriginUpdateParameters withHostName(String 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.
Parameters:
Returns:
withHttpPort
public OriginUpdateParameters withHttpPort(Integer httpPort)
Set the value of the HTTP port. Must be between 1 and 65535.
Parameters:
Returns:
withHttpsPort
public OriginUpdateParameters withHttpsPort(Integer httpsPort)
Set the value of the HTTPS port. Must be between 1 and 65535.
Parameters:
Returns:
withOriginHostHeader
public OriginUpdateParameters 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. This overrides the host header defined at Endpoint.
Parameters:
Returns:
withPriority
public OriginUpdateParameters 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 OriginUpdateParameters 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 OriginUpdateParameters withPrivateLinkApprovalMessage(String privateLinkApprovalMessage)
Set a custom message to be included in the approval request to connect to the Private Link.
Parameters:
Returns:
withPrivateLinkLocation
public OriginUpdateParameters withPrivateLinkLocation(String privateLinkLocation)
Set the location of the Private Link resource. Required only if 'privateLinkResourceId' is populated.
Parameters:
Returns:
withPrivateLinkResourceId
public OriginUpdateParameters 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 OriginUpdateParameters 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