AFDOriginUpdateParameters Class

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

public class AFDOriginUpdateParameters

AFDOrigin properties needed for origin update.

Constructor Summary

Constructor Description
AFDOriginUpdateParameters()

Method Summary

Modifier and Type Method and Description
ResourceReference azureOrigin()

Get resource reference to the Azure origin resource.

EnabledState enabledState()

Get whether to enable health probes to be made against backends defined under backendPools.

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.

AFDOriginUpdateParameters withAzureOrigin(ResourceReference azureOrigin)

Set resource reference to the Azure origin resource.

AFDOriginUpdateParameters withEnabledState(EnabledState enabledState)

Set whether to enable health probes to be made against backends defined under backendPools.

AFDOriginUpdateParameters withHostName(String hostName)

Set the address of the origin.

AFDOriginUpdateParameters withHttpPort(Integer httpPort)

Set the value of the HTTP port.

AFDOriginUpdateParameters withHttpsPort(Integer httpsPort)

Set the value of the HTTPS port.

AFDOriginUpdateParameters withOriginHostHeader(String originHostHeader)

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

AFDOriginUpdateParameters withPriority(Integer priority)

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

AFDOriginUpdateParameters withSharedPrivateLinkResource(Object sharedPrivateLinkResource)

Set the properties of the private link resource for private origin.

AFDOriginUpdateParameters 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

AFDOriginUpdateParameters

public AFDOriginUpdateParameters()

Method Details

azureOrigin

public ResourceReference azureOrigin()

Get resource reference to the Azure origin resource.

Returns:

the azureOrigin value

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:

the enabledState value

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:

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

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:

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

sharedPrivateLinkResource

public Object sharedPrivateLinkResource()

Get the properties of the private link resource for private origin.

Returns:

the sharedPrivateLinkResource 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

withAzureOrigin

public AFDOriginUpdateParameters withAzureOrigin(ResourceReference azureOrigin)

Set resource reference to the Azure origin resource.

Parameters:

azureOrigin - the azureOrigin value to set

Returns:

the AFDOriginUpdateParameters object itself.

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:

enabledState - the enabledState value to set

Returns:

the AFDOriginUpdateParameters object itself.

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:

hostName - the hostName value to set

Returns:

the AFDOriginUpdateParameters object itself.

withHttpPort

public AFDOriginUpdateParameters 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 AFDOriginUpdateParameters object itself.

withHttpsPort

public AFDOriginUpdateParameters 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 AFDOriginUpdateParameters object itself.

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:

originHostHeader - the originHostHeader value to set

Returns:

the AFDOriginUpdateParameters object itself.

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:

priority - the priority value to set

Returns:

the AFDOriginUpdateParameters object itself.

withSharedPrivateLinkResource

public AFDOriginUpdateParameters withSharedPrivateLinkResource(Object sharedPrivateLinkResource)

Set the properties of the private link resource for private origin.

Parameters:

sharedPrivateLinkResource - the sharedPrivateLinkResource value to set

Returns:

the AFDOriginUpdateParameters object itself.

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:

weight - the weight value to set

Returns:

the AFDOriginUpdateParameters object itself.

Applies to