DeepCreatedOriginProperties Class

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

Implements

public final class DeepCreatedOriginProperties
implements JsonSerializable<DeepCreatedOriginProperties>

Properties of the origin created on the CDN endpoint.

Constructor Summary

Constructor Description
DeepCreatedOriginProperties()

Creates an instance of DeepCreatedOriginProperties class.

Method Summary

Modifier and Type Method and Description
Boolean enabled()

Get the enabled property: Origin is enabled for load balancing or not.

static DeepCreatedOriginProperties fromJson(JsonReader jsonReader)

Reads an instance of DeepCreatedOriginProperties 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 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.

PrivateEndpointStatus privateEndpointStatus()

Get the privateEndpointStatus property: The approval status for the connection to the Private Link.

String privateLinkAlias()

Get the privateLinkAlias property: The Alias of the Private Link resource.

String privateLinkApprovalMessage()

Get the privateLinkApprovalMessage property: A custom message to be included in the approval request to connect to the Private Link.

String privateLinkLocation()

Get the privateLinkLocation property: The location of the Private Link resource.

String privateLinkResourceId()

Get the privateLinkResourceId property: The Resource Id of the Private Link resource.

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.

DeepCreatedOriginProperties withEnabled(Boolean enabled)

Set the enabled property: Origin is enabled for load balancing or not.

DeepCreatedOriginProperties withHostname(String hostname)

Set the hostname property: The address of the origin.

DeepCreatedOriginProperties withHttpPort(Integer httpPort)

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

DeepCreatedOriginProperties withHttpsPort(Integer httpsPort)

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

DeepCreatedOriginProperties withOriginHostHeader(String originHostHeader)

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

DeepCreatedOriginProperties withPriority(Integer priority)

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

DeepCreatedOriginProperties withPrivateLinkAlias(String privateLinkAlias)

Set the privateLinkAlias property: The Alias of the Private Link resource.

DeepCreatedOriginProperties withPrivateLinkApprovalMessage(String privateLinkApprovalMessage)

Set the privateLinkApprovalMessage property: A custom message to be included in the approval request to connect to the Private Link.

DeepCreatedOriginProperties withPrivateLinkLocation(String privateLinkLocation)

Set the privateLinkLocation property: The location of the Private Link resource.

DeepCreatedOriginProperties withPrivateLinkResourceId(String privateLinkResourceId)

Set the privateLinkResourceId property: The Resource Id of the Private Link resource.

DeepCreatedOriginProperties 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

DeepCreatedOriginProperties

public DeepCreatedOriginProperties()

Creates an instance of DeepCreatedOriginProperties class.

Method Details

enabled

public Boolean enabled()

Get the enabled property: Origin is enabled for load balancing or not. By default, origin is always enabled.

Returns:

the enabled value.

fromJson

public static DeepCreatedOriginProperties fromJson(JsonReader jsonReader)

Reads an instance of DeepCreatedOriginProperties from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

hostname

public String hostname()

Get the hostname property: The address of the origin. It can be a domain name, IPv4 address, or IPv6 address. 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.

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 CDN origins, such as Web Apps, Blob Storage, and Cloud Services require this host header value to match the origin hostname by default.

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.

privateEndpointStatus

public PrivateEndpointStatus privateEndpointStatus()

Get the privateEndpointStatus property: The approval status for the connection to the Private Link.

Returns:

the privateEndpointStatus value.

privateLinkAlias

public String privateLinkAlias()

Get the privateLinkAlias property: The Alias of the Private Link resource. Populating this optional field indicates that this origin is 'Private'.

Returns:

the privateLinkAlias value.

privateLinkApprovalMessage

public String privateLinkApprovalMessage()

Get the privateLinkApprovalMessage property: A custom message to be included in the approval request to connect to the Private Link.

Returns:

the privateLinkApprovalMessage value.

privateLinkLocation

public String privateLinkLocation()

Get the privateLinkLocation property: The location of the Private Link resource. Required only if 'privateLinkResourceId' is populated.

Returns:

the privateLinkLocation value.

privateLinkResourceId

public String privateLinkResourceId()

Get the privateLinkResourceId property: The Resource Id of the Private Link resource. Populating this optional field indicates that this backend is 'Private'.

Returns:

the privateLinkResourceId 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.

withEnabled

public DeepCreatedOriginProperties withEnabled(Boolean enabled)

Set the enabled property: Origin is enabled for load balancing or not. By default, origin is always enabled.

Parameters:

enabled - the enabled value to set.

Returns:

the DeepCreatedOriginProperties object itself.

withHostname

public DeepCreatedOriginProperties withHostname(String hostname)

Set the hostname property: The address of the origin. It can be a domain name, IPv4 address, or IPv6 address. This should be unique across all origins in an endpoint.

Parameters:

hostname - the hostname value to set.

Returns:

the DeepCreatedOriginProperties object itself.

withHttpPort

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

withHttpsPort

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

withOriginHostHeader

public DeepCreatedOriginProperties 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 CDN origins, such as Web Apps, Blob Storage, and Cloud Services require this host header value to match the origin hostname by default.

Parameters:

originHostHeader - the originHostHeader value to set.

Returns:

the DeepCreatedOriginProperties object itself.

withPriority

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

withPrivateLinkAlias

public DeepCreatedOriginProperties withPrivateLinkAlias(String privateLinkAlias)

Set the privateLinkAlias property: 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 DeepCreatedOriginProperties object itself.

withPrivateLinkApprovalMessage

public DeepCreatedOriginProperties withPrivateLinkApprovalMessage(String privateLinkApprovalMessage)

Set the privateLinkApprovalMessage property: 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 DeepCreatedOriginProperties object itself.

withPrivateLinkLocation

public DeepCreatedOriginProperties withPrivateLinkLocation(String privateLinkLocation)

Set the privateLinkLocation property: The location of the Private Link resource. Required only if 'privateLinkResourceId' is populated.

Parameters:

privateLinkLocation - the privateLinkLocation value to set.

Returns:

the DeepCreatedOriginProperties object itself.

withPrivateLinkResourceId

public DeepCreatedOriginProperties withPrivateLinkResourceId(String privateLinkResourceId)

Set the privateLinkResourceId property: 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 DeepCreatedOriginProperties object itself.

withWeight

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

Applies to