AfdOriginUpdatePropertiesParameters Class

  • java.lang.Object
    • com.azure.resourcemanager.cdn.fluent.models.AfdOriginUpdatePropertiesParameters

Implements

public class AfdOriginUpdatePropertiesParameters
implements JsonSerializable<AfdOriginUpdatePropertiesParameters>

The JSON object that contains the properties of the origin.

Constructor Summary

Constructor Description
AfdOriginUpdatePropertiesParameters()

Creates an instance of AfdOriginUpdatePropertiesParameters class.

Method Summary

Modifier and Type Method and Description
ResourceReference azureOrigin()

Get the azureOrigin property: Resource reference to the Azure origin resource.

EnabledState enabledState()

Get the enabledState property: Whether to enable health probes to be made against backends defined under backendPools.

Boolean enforceCertificateNameCheck()

Get the enforceCertificateNameCheck property: Whether to enable certificate name check at origin level.

static AfdOriginUpdatePropertiesParameters fromJson(JsonReader jsonReader)

Reads an instance of AfdOriginUpdatePropertiesParameters from the JsonReader.

String hostname()

Get the hostname property: The address of the origin.

Integer httpPort()

Get the httpPort property: The value of the HTTP port.

Integer httpsPort()

Get the httpsPort property: The value of the HTTPS port.

String originGroupName()

Get the originGroupName property: The name of the origin group which contains this origin.

String originHostHeader()

Get the originHostHeader property: The host header value sent to the origin with each request.

Integer priority()

Get the priority property: Priority of origin in given origin group for load balancing.

SharedPrivateLinkResourceProperties sharedPrivateLinkResource()

Get the sharedPrivateLinkResource property: The properties of the private link resource for private origin.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

Integer weight()

Get the weight property: Weight of the origin in given origin group for load balancing.

AfdOriginUpdatePropertiesParameters withAzureOrigin(ResourceReference azureOrigin)

Set the azureOrigin property: Resource reference to the Azure origin resource.

AfdOriginUpdatePropertiesParameters withEnabledState(EnabledState enabledState)

Set the enabledState property: Whether to enable health probes to be made against backends defined under backendPools.

AfdOriginUpdatePropertiesParameters withEnforceCertificateNameCheck(Boolean enforceCertificateNameCheck)

Set the enforceCertificateNameCheck property: Whether to enable certificate name check at origin level.

AfdOriginUpdatePropertiesParameters withHostname(String hostname)

Set the hostname property: The address of the origin.

AfdOriginUpdatePropertiesParameters withHttpPort(Integer httpPort)

Set the httpPort property: The value of the HTTP port.

AfdOriginUpdatePropertiesParameters withHttpsPort(Integer httpsPort)

Set the httpsPort property: The value of the HTTPS port.

AfdOriginUpdatePropertiesParameters withOriginHostHeader(String originHostHeader)

Set the originHostHeader property: The host header value sent to the origin with each request.

AfdOriginUpdatePropertiesParameters withPriority(Integer priority)

Set the priority property: Priority of origin in given origin group for load balancing.

AfdOriginUpdatePropertiesParameters withSharedPrivateLinkResource(SharedPrivateLinkResourceProperties sharedPrivateLinkResource)

Set the sharedPrivateLinkResource property: The properties of the private link resource for private origin.

AfdOriginUpdatePropertiesParameters withWeight(Integer weight)

Set the weight property: Weight of the origin in given origin group for load balancing.

Methods inherited from java.lang.Object

Constructor Details

AfdOriginUpdatePropertiesParameters

public AfdOriginUpdatePropertiesParameters()

Creates an instance of AfdOriginUpdatePropertiesParameters class.

Method Details

azureOrigin

public ResourceReference azureOrigin()

Get the azureOrigin property: Resource reference to the Azure origin resource.

Returns:

the azureOrigin value.

enabledState

public EnabledState enabledState()

Get the enabledState property: 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.

Returns:

the enabledState value.

enforceCertificateNameCheck

public Boolean enforceCertificateNameCheck()

Get the enforceCertificateNameCheck property: Whether to enable certificate name check at origin level.

Returns:

the enforceCertificateNameCheck value.

fromJson

public static AfdOriginUpdatePropertiesParameters fromJson(JsonReader jsonReader)

Reads an instance of AfdOriginUpdatePropertiesParameters from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of AfdOriginUpdatePropertiesParameters if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If an error occurs while reading the AfdOriginUpdatePropertiesParameters.

hostname

public String hostname()

Get the hostname property: 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 httpPort property: The value of the HTTP port. Must be between 1 and 65535.

Returns:

the httpPort value.

httpsPort

public Integer httpsPort()

Get the httpsPort property: The value of the HTTPS port. Must be between 1 and 65535.

Returns:

the httpsPort value.

originGroupName

public String originGroupName()

Get the originGroupName property: The name of the origin group which contains this origin.

Returns:

the originGroupName value.

originHostHeader

public String originHostHeader()

Get the originHostHeader property: The host header value sent to the origin with each request. If you leave this blank, the request hostname determines this value. Azure Front Door 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 the priority property: 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 SharedPrivateLinkResourceProperties sharedPrivateLinkResource()

Get the sharedPrivateLinkResource property: The properties of the private link resource for private origin.

Returns:

the sharedPrivateLinkResource value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

weight

public Integer weight()

Get the weight property: Weight of the origin in given origin group for load balancing. Must be between 1 and 1000.

Returns:

the weight value.

withAzureOrigin

public AfdOriginUpdatePropertiesParameters withAzureOrigin(ResourceReference azureOrigin)

Set the azureOrigin property: Resource reference to the Azure origin resource.

Parameters:

azureOrigin - the azureOrigin value to set.

Returns:

the AfdOriginUpdatePropertiesParameters object itself.

withEnabledState

public AfdOriginUpdatePropertiesParameters withEnabledState(EnabledState enabledState)

Set the enabledState property: 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.

Parameters:

enabledState - the enabledState value to set.

Returns:

the AfdOriginUpdatePropertiesParameters object itself.

withEnforceCertificateNameCheck

public AfdOriginUpdatePropertiesParameters withEnforceCertificateNameCheck(Boolean enforceCertificateNameCheck)

Set the enforceCertificateNameCheck property: Whether to enable certificate name check at origin level.

Parameters:

enforceCertificateNameCheck - the enforceCertificateNameCheck value to set.

Returns:

the AfdOriginUpdatePropertiesParameters object itself.

withHostname

public AfdOriginUpdatePropertiesParameters withHostname(String hostname)

Set the hostname property: 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 AfdOriginUpdatePropertiesParameters object itself.

withHttpPort

public AfdOriginUpdatePropertiesParameters withHttpPort(Integer httpPort)

Set the httpPort property: The value of the HTTP port. Must be between 1 and 65535.

Parameters:

httpPort - the httpPort value to set.

Returns:

the AfdOriginUpdatePropertiesParameters object itself.

withHttpsPort

public AfdOriginUpdatePropertiesParameters withHttpsPort(Integer httpsPort)

Set the httpsPort property: The value of the HTTPS port. Must be between 1 and 65535.

Parameters:

httpsPort - the httpsPort value to set.

Returns:

the AfdOriginUpdatePropertiesParameters object itself.

withOriginHostHeader

public AfdOriginUpdatePropertiesParameters withOriginHostHeader(String originHostHeader)

Set the originHostHeader property: The host header value sent to the origin with each request. If you leave this blank, the request hostname determines this value. Azure Front Door 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 AfdOriginUpdatePropertiesParameters object itself.

withPriority

public AfdOriginUpdatePropertiesParameters withPriority(Integer priority)

Set the priority property: 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 AfdOriginUpdatePropertiesParameters object itself.

withSharedPrivateLinkResource

public AfdOriginUpdatePropertiesParameters withSharedPrivateLinkResource(SharedPrivateLinkResourceProperties sharedPrivateLinkResource)

Set the sharedPrivateLinkResource property: The properties of the private link resource for private origin.

Parameters:

sharedPrivateLinkResource - the sharedPrivateLinkResource value to set.

Returns:

the AfdOriginUpdatePropertiesParameters object itself.

withWeight

public AfdOriginUpdatePropertiesParameters withWeight(Integer weight)

Set the weight property: 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 AfdOriginUpdatePropertiesParameters object itself.

Applies to