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