OriginInner Class
- java.
lang. Object - com.
azure. core. management. ProxyResource - com.
azure. resourcemanager. cdn. fluent. models. OriginInner
- com.
- com.
public final class OriginInner
extends ProxyResource
CDN origin is the source of the content being delivered via CDN. When the edge nodes represented by an endpoint do not have the requested content cached, they attempt to fetch it from one or more of the configured origins.
Constructor Summary
Constructor | Description |
---|---|
OriginInner() |
Creates an instance of Origin |
Method Summary
Modifier and Type | Method and Description |
---|---|
Boolean |
enabled()
Get the enabled property: Origin is enabled for load balancing or not. |
static
Origin |
fromJson(JsonReader jsonReader)
Reads an instance of Origin |
String |
hostname()
Get the hostname property: The address of the origin. |
Integer |
httpPort()
Get the http |
Integer |
httpsPort()
Get the https |
String |
id()
Get the id property: Fully qualified resource Id for the resource. |
String |
name()
Get the name property: The name of the resource. |
String |
originHostHeader()
Get the origin |
Integer |
priority()
Get the priority property: Priority of origin in given origin group for load balancing. |
Private |
privateEndpointStatus()
Get the private |
String |
privateLinkAlias()
Get the private |
String |
privateLinkApprovalMessage()
Get the private |
String |
privateLinkLocation()
Get the private |
String |
privateLinkResourceId()
Get the private |
Origin |
provisioningState()
Get the provisioning |
Origin |
resourceState()
Get the resource |
System |
systemData()
Get the system |
Json |
toJson(JsonWriter jsonWriter) |
String |
type()
Get the type property: The type of the resource. |
void |
validate()
Validates the instance. |
Integer |
weight()
Get the weight property: Weight of the origin in given origin group for load balancing. |
Origin |
withEnabled(Boolean enabled)
Set the enabled property: Origin is enabled for load balancing or not. |
Origin |
withHostname(String hostname)
Set the hostname property: The address of the origin. |
Origin |
withHttpPort(Integer httpPort)
Set the http |
Origin |
withHttpsPort(Integer httpsPort)
Set the https |
Origin |
withOriginHostHeader(String originHostHeader)
Set the origin |
Origin |
withPriority(Integer priority)
Set the priority property: Priority of origin in given origin group for load balancing. |
Origin |
withPrivateLinkAlias(String privateLinkAlias)
Set the private |
Origin |
withPrivateLinkApprovalMessage(String privateLinkApprovalMessage)
Set the private |
Origin |
withPrivateLinkLocation(String privateLinkLocation)
Set the private |
Origin |
withPrivateLinkResourceId(String privateLinkResourceId)
Set the private |
Origin |
withWeight(Integer weight)
Set the weight property: Weight of the origin in given origin group for load balancing. |
Methods inherited from ProxyResource
Methods inherited from java.lang.Object
Constructor Details
OriginInner
public OriginInner()
Creates an instance of OriginInner class.
Method Details
enabled
public Boolean enabled()
Get the enabled property: Origin is enabled for load balancing or not.
Returns:
fromJson
public static OriginInner fromJson(JsonReader jsonReader)
Reads an instance of OriginInner from the JsonReader.
Parameters:
Returns:
Throws:
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:
httpPort
public Integer httpPort()
Get the httpPort property: The value of the HTTP port. Must be between 1 and 65535.
Returns:
httpsPort
public Integer httpsPort()
Get the httpsPort property: The value of the HTTPS port. Must be between 1 and 65535.
Returns:
id
public String id()
Get the id property: Fully qualified resource Id for the resource.
Overrides:
OriginInner.id()Returns:
name
public String name()
Get the name property: The name of the resource.
Overrides:
OriginInner.name()Returns:
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. This overrides the host header defined at Endpoint.
Returns:
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:
privateEndpointStatus
public PrivateEndpointStatus privateEndpointStatus()
Get the privateEndpointStatus property: The approval status for the connection to the Private Link.
Returns:
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:
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:
privateLinkLocation
public String privateLinkLocation()
Get the privateLinkLocation property: The location of the Private Link resource. Required only if 'privateLinkResourceId' is populated.
Returns:
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:
provisioningState
public OriginProvisioningState provisioningState()
Get the provisioningState property: Provisioning status of the origin.
Returns:
resourceState
public OriginResourceState resourceState()
Get the resourceState property: Resource status of the origin.
Returns:
systemData
public SystemData systemData()
Get the systemData property: Read only system data.
Returns:
toJson
public JsonWriter toJson(JsonWriter jsonWriter)
Overrides:
OriginInner.toJson(JsonWriter jsonWriter)Parameters:
Throws:
type
public String type()
Get the type property: The type of the resource.
Overrides:
OriginInner.type()Returns:
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:
withEnabled
public OriginInner withEnabled(Boolean enabled)
Set the enabled property: Origin is enabled for load balancing or not.
Parameters:
Returns:
withHostname
public OriginInner 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:
Returns:
withHttpPort
public OriginInner withHttpPort(Integer httpPort)
Set the httpPort property: The value of the HTTP port. Must be between 1 and 65535.
Parameters:
Returns:
withHttpsPort
public OriginInner withHttpsPort(Integer httpsPort)
Set the httpsPort property: The value of the HTTPS port. Must be between 1 and 65535.
Parameters:
Returns:
withOriginHostHeader
public OriginInner 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. This overrides the host header defined at Endpoint.
Parameters:
Returns:
withPriority
public OriginInner 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:
Returns:
withPrivateLinkAlias
public OriginInner 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:
Returns:
withPrivateLinkApprovalMessage
public OriginInner withPrivateLinkApprovalMessage(String privateLinkApprovalMessage)
Set the privateLinkApprovalMessage property: A custom message to be included in the approval request to connect to the Private Link.
Parameters:
Returns:
withPrivateLinkLocation
public OriginInner withPrivateLinkLocation(String privateLinkLocation)
Set the privateLinkLocation property: The location of the Private Link resource. Required only if 'privateLinkResourceId' is populated.
Parameters:
Returns:
withPrivateLinkResourceId
public OriginInner 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:
Returns:
withWeight
public OriginInner 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:
Returns:
Applies to
Azure SDK for Java