AFDOriginUpdateParameters Class
- java.
lang. Object - com.
microsoft. azure. management. cdn. AFDOriginUpdateParameters
- com.
public class AFDOriginUpdateParameters
AFDOrigin properties needed for origin update.
Constructor Summary
Constructor | Description | |
---|---|---|
AFDOriginUpdateParameters() |
Method Summary
Modifier and Type | Method and Description |
---|---|
Resource |
azureOrigin()
Get resource reference to the Azure origin resource. |
Enabled |
enabledState()
Get whether to enable health probes to be made against backends defined under backend |
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.Object |
sharedPrivateLinkResource()
Get the properties of the private link resource for private origin. |
java.lang.Integer |
weight()
Get weight of the origin in given origin group for load balancing. |
AFDOrigin |
withAzureOrigin(ResourceReference azureOrigin)
Set resource reference to the Azure origin resource. |
AFDOrigin |
withEnabledState(EnabledState enabledState)
Set whether to enable health probes to be made against backends defined under backend |
AFDOrigin |
withHostName(String hostName)
Set the address of the origin. |
AFDOrigin |
withHttpPort(Integer httpPort)
Set the value of the HTTP port. |
AFDOrigin |
withHttpsPort(Integer httpsPort)
Set the value of the HTTPS port. |
AFDOrigin |
withOriginHostHeader(String originHostHeader)
Set the host header value sent to the origin with each request. |
AFDOrigin |
withPriority(Integer priority)
Set priority of origin in given origin group for load balancing. |
AFDOrigin |
withSharedPrivateLinkResource(Object sharedPrivateLinkResource)
Set the properties of the private link resource for private origin. |
AFDOrigin |
withWeight(Integer weight)
Set weight of the origin in given origin group for load balancing. |
Methods inherited from java.lang.Object
Constructor Details
AFDOriginUpdateParameters
public AFDOriginUpdateParameters()
Method Details
azureOrigin
public ResourceReference azureOrigin()
Get resource reference to the Azure origin resource.
Returns:
enabledState
public EnabledState enabledState()
Get whether to enable health probes to be made against backends defined under backendPools. Health probes can only be disabled if there is a single enabled backend in single enabled backend pool. Possible values include: 'Enabled', 'Disabled'.
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:
sharedPrivateLinkResource
public Object sharedPrivateLinkResource()
Get the properties of the private link resource for private origin.
Returns:
weight
public Integer weight()
Get weight of the origin in given origin group for load balancing. Must be between 1 and 1000.
Returns:
withAzureOrigin
public AFDOriginUpdateParameters withAzureOrigin(ResourceReference azureOrigin)
Set resource reference to the Azure origin resource.
Parameters:
Returns:
withEnabledState
public AFDOriginUpdateParameters withEnabledState(EnabledState enabledState)
Set whether to enable health probes to be made against backends defined under backendPools. Health probes can only be disabled if there is a single enabled backend in single enabled backend pool. Possible values include: 'Enabled', 'Disabled'.
Parameters:
Returns:
withHostName
public AFDOriginUpdateParameters 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 AFDOriginUpdateParameters withHttpPort(Integer httpPort)
Set the value of the HTTP port. Must be between 1 and 65535.
Parameters:
Returns:
withHttpsPort
public AFDOriginUpdateParameters withHttpsPort(Integer httpsPort)
Set the value of the HTTPS port. Must be between 1 and 65535.
Parameters:
Returns:
withOriginHostHeader
public AFDOriginUpdateParameters 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 AFDOriginUpdateParameters 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:
withSharedPrivateLinkResource
public AFDOriginUpdateParameters withSharedPrivateLinkResource(Object sharedPrivateLinkResource)
Set the properties of the private link resource for private origin.
Parameters:
Returns:
withWeight
public AFDOriginUpdateParameters 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