AfdOriginInner Class
- java.
lang. Object - com.
azure. core. management. ProxyResource - com.
azure. resourcemanager. cdn. fluent. models. AfdOriginInner
- com.
- com.
public final class AfdOriginInner
extends ProxyResource
Azure Front Door origin is the source of the content being delivered via Azure Front Door. 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 |
---|---|
AfdOriginInner() |
Creates an instance of Afd |
Method Summary
Modifier and Type | Method and Description |
---|---|
Resource |
azureOrigin()
Get the azure |
Deployment |
deploymentStatus()
Get the deployment |
Enabled |
enabledState()
Get the enabled |
Boolean |
enforceCertificateNameCheck()
Get the enforce |
static
Afd |
fromJson(JsonReader jsonReader)
Reads an instance of Afd |
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 |
originGroupName()
Get the origin |
String |
originHostHeader()
Get the origin |
Integer |
priority()
Get the priority property: Priority of origin in given origin group for load balancing. |
Afd |
provisioningState()
Get the provisioning |
Shared |
sharedPrivateLinkResource()
Get the shared |
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. |
Afd |
withAzureOrigin(ResourceReference azureOrigin)
Set the azure |
Afd |
withEnabledState(EnabledState enabledState)
Set the enabled |
Afd |
withEnforceCertificateNameCheck(Boolean enforceCertificateNameCheck)
Set the enforce |
Afd |
withHostname(String hostname)
Set the hostname property: The address of the origin. |
Afd |
withHttpPort(Integer httpPort)
Set the http |
Afd |
withHttpsPort(Integer httpsPort)
Set the https |
Afd |
withOriginHostHeader(String originHostHeader)
Set the origin |
Afd |
withPriority(Integer priority)
Set the priority property: Priority of origin in given origin group for load balancing. |
Afd |
withSharedPrivateLinkResource(SharedPrivateLinkResourceProperties sharedPrivateLinkResource)
Set the shared |
Afd |
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
AfdOriginInner
public AfdOriginInner()
Creates an instance of AfdOriginInner class.
Method Details
azureOrigin
public ResourceReference azureOrigin()
Get the azureOrigin property: Resource reference to the Azure origin resource.
Returns:
deploymentStatus
public DeploymentStatus deploymentStatus()
Get the deploymentStatus property: The deploymentStatus property.
Returns:
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:
enforceCertificateNameCheck
public Boolean enforceCertificateNameCheck()
Get the enforceCertificateNameCheck property: Whether to enable certificate name check at origin level.
Returns:
fromJson
public static AfdOriginInner fromJson(JsonReader jsonReader)
Reads an instance of AfdOriginInner 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:
AfdOriginInner.id()Returns:
name
public String name()
Get the name property: The name of the resource.
Overrides:
AfdOriginInner.name()Returns:
originGroupName
public String originGroupName()
Get the originGroupName property: The name of the origin group which contains this origin.
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 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:
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:
provisioningState
public AfdProvisioningState provisioningState()
Get the provisioningState property: Provisioning status.
Returns:
sharedPrivateLinkResource
public SharedPrivateLinkResourceProperties sharedPrivateLinkResource()
Get the sharedPrivateLinkResource property: The properties of the private link resource for private origin.
Returns:
systemData
public SystemData systemData()
Get the systemData property: Read only system data.
Returns:
toJson
public JsonWriter toJson(JsonWriter jsonWriter)
Overrides:
AfdOriginInner.toJson(JsonWriter jsonWriter)Parameters:
Throws:
type
public String type()
Get the type property: The type of the resource.
Overrides:
AfdOriginInner.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:
withAzureOrigin
public AfdOriginInner withAzureOrigin(ResourceReference azureOrigin)
Set the azureOrigin property: Resource reference to the Azure origin resource.
Parameters:
Returns:
withEnabledState
public AfdOriginInner 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:
Returns:
withEnforceCertificateNameCheck
public AfdOriginInner withEnforceCertificateNameCheck(Boolean enforceCertificateNameCheck)
Set the enforceCertificateNameCheck property: Whether to enable certificate name check at origin level.
Parameters:
Returns:
withHostname
public AfdOriginInner 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 AfdOriginInner withHttpPort(Integer httpPort)
Set the httpPort property: The value of the HTTP port. Must be between 1 and 65535.
Parameters:
Returns:
withHttpsPort
public AfdOriginInner withHttpsPort(Integer httpsPort)
Set the httpsPort property: The value of the HTTPS port. Must be between 1 and 65535.
Parameters:
Returns:
withOriginHostHeader
public AfdOriginInner 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:
Returns:
withPriority
public AfdOriginInner 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:
withSharedPrivateLinkResource
public AfdOriginInner withSharedPrivateLinkResource(SharedPrivateLinkResourceProperties sharedPrivateLinkResource)
Set the sharedPrivateLinkResource property: The properties of the private link resource for private origin.
Parameters:
Returns:
withWeight
public AfdOriginInner 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