Class DeepCreatedOrigin
java.lang.Object
com.azure.resourcemanager.cdn.models.DeepCreatedOrigin
- All Implemented Interfaces:
com.azure.json.JsonSerializable<DeepCreatedOrigin>
public final class DeepCreatedOrigin
extends Object
implements com.azure.json.JsonSerializable<DeepCreatedOrigin>
The main origin of CDN content which is added when creating a CDN endpoint.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionenabled()Get the enabled property: Origin is enabled for load balancing or not.static DeepCreatedOriginfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of DeepCreatedOrigin from the JsonReader.hostname()Get the hostname property: The address of the origin.httpPort()Get the httpPort property: The value of the HTTP port.Get the httpsPort property: The value of the HTTPS port.name()Get the name property: Origin name which must be unique within the endpoint.Get the originHostHeader property: The host header value sent to the origin with each request.priority()Get the priority property: Priority of origin in given origin group for load balancing.Get the privateEndpointStatus property: The approval status for the connection to the Private Link.Get the privateLinkAlias property: The Alias of the Private Link resource.Get the privateLinkApprovalMessage property: A custom message to be included in the approval request to connect to the Private Link.Get the privateLinkLocation property: The location of the Private Link resource.Get the privateLinkResourceId property: The Resource Id of the Private Link resource.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.weight()Get the weight property: Weight of the origin in given origin group for load balancing.withEnabled(Boolean enabled) Set the enabled property: Origin is enabled for load balancing or not.withHostname(String hostname) Set the hostname property: The address of the origin.withHttpPort(Integer httpPort) Set the httpPort property: The value of the HTTP port.withHttpsPort(Integer httpsPort) Set the httpsPort property: The value of the HTTPS port.Set the name property: Origin name which must be unique within the endpoint.withOriginHostHeader(String originHostHeader) Set the originHostHeader property: The host header value sent to the origin with each request.withPriority(Integer priority) Set the priority property: Priority of origin in given origin group for load balancing.withPrivateLinkAlias(String privateLinkAlias) Set the privateLinkAlias property: The Alias of the Private Link resource.withPrivateLinkApprovalMessage(String privateLinkApprovalMessage) Set the privateLinkApprovalMessage property: A custom message to be included in the approval request to connect to the Private Link.withPrivateLinkLocation(String privateLinkLocation) Set the privateLinkLocation property: The location of the Private Link resource.withPrivateLinkResourceId(String privateLinkResourceId) Set the privateLinkResourceId property: The Resource Id of the Private Link resource.withWeight(Integer weight) Set the weight property: Weight of the origin in given origin group for load balancing.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
DeepCreatedOrigin
public DeepCreatedOrigin()Creates an instance of DeepCreatedOrigin class.
-
-
Method Details
-
name
Get the name property: Origin name which must be unique within the endpoint.- Returns:
- the name value.
-
withName
Set the name property: Origin name which must be unique within the endpoint.- Parameters:
name- the name value to set.- Returns:
- the DeepCreatedOrigin object itself.
-
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.
-
withHostname
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 DeepCreatedOrigin object itself.
-
httpPort
Get the httpPort property: The value of the HTTP port. Must be between 1 and 65535.- Returns:
- the httpPort value.
-
withHttpPort
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 DeepCreatedOrigin object itself.
-
httpsPort
Get the httpsPort property: The value of the HTTPS port. Must be between 1 and 65535.- Returns:
- the httpsPort value.
-
withHttpsPort
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 DeepCreatedOrigin object itself.
-
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.
-
withOriginHostHeader
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 DeepCreatedOrigin object itself.
-
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.
-
withPriority
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 DeepCreatedOrigin object itself.
-
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.
-
withWeight
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 DeepCreatedOrigin object itself.
-
enabled
Get the enabled property: Origin is enabled for load balancing or not. By default, origin is always enabled.- Returns:
- the enabled value.
-
withEnabled
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 DeepCreatedOrigin object itself.
-
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.
-
withPrivateLinkAlias
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 DeepCreatedOrigin object itself.
-
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.
-
withPrivateLinkResourceId
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 DeepCreatedOrigin object itself.
-
privateLinkLocation
Get the privateLinkLocation property: The location of the Private Link resource. Required only if 'privateLinkResourceId' is populated.- Returns:
- the privateLinkLocation value.
-
withPrivateLinkLocation
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 DeepCreatedOrigin object itself.
-
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.
-
withPrivateLinkApprovalMessage
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 DeepCreatedOrigin object itself.
-
privateEndpointStatus
Get the privateEndpointStatus property: The approval status for the connection to the Private Link.- Returns:
- the privateEndpointStatus value.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<DeepCreatedOrigin>- Throws:
IOException
-
fromJson
Reads an instance of DeepCreatedOrigin from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of DeepCreatedOrigin if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IllegalStateException- If the deserialized JSON object was missing any required properties.IOException- If an error occurs while reading the DeepCreatedOrigin.
-