public final class EndpointProperties extends EndpointPropertiesUpdateParameters
| Constructor and Description |
|---|
EndpointProperties() |
| Modifier and Type | Method and Description |
|---|---|
String |
hostname()
Get the hostname property: The host name of the endpoint structured as {endpointName}.{DNSZone}, e.g.
|
List<DeepCreatedOriginGroup> |
originGroups()
Get the originGroups property: The origin groups comprising of origins that are used for load balancing the
traffic based on availability.
|
List<DeepCreatedOrigin> |
origins()
Get the origins property: The source of the content being delivered via CDN.
|
String |
provisioningState()
Get the provisioningState property: Provisioning status of the endpoint.
|
EndpointResourceState |
resourceState()
Get the resourceState property: Resource status of the endpoint.
|
void |
validate()
Validates the instance.
|
EndpointProperties |
withContentTypesToCompress(List<String> contentTypesToCompress)
Set the contentTypesToCompress property: List of content types on which compression applies.
|
EndpointProperties |
withDefaultOriginGroup(ResourceReference defaultOriginGroup)
Set the defaultOriginGroup property: A reference to the origin group.
|
EndpointProperties |
withDeliveryPolicy(EndpointPropertiesUpdateParametersDeliveryPolicy deliveryPolicy)
Set the deliveryPolicy property: A policy that specifies the delivery rules to be used for an endpoint.
|
EndpointProperties |
withGeoFilters(List<GeoFilter> geoFilters)
Set the geoFilters property: List of rules defining the user's geo access within a CDN endpoint.
|
EndpointProperties |
withIsCompressionEnabled(Boolean isCompressionEnabled)
Set the isCompressionEnabled property: Indicates whether content compression is enabled on CDN.
|
EndpointProperties |
withIsHttpAllowed(Boolean isHttpAllowed)
Set the isHttpAllowed property: Indicates whether HTTP traffic is allowed on the endpoint.
|
EndpointProperties |
withIsHttpsAllowed(Boolean isHttpsAllowed)
Set the isHttpsAllowed property: Indicates whether HTTPS traffic is allowed on the endpoint.
|
EndpointProperties |
withOptimizationType(OptimizationType optimizationType)
Set the optimizationType property: Specifies what scenario the customer wants this CDN endpoint to optimize for,
e.g.
|
EndpointProperties |
withOriginGroups(List<DeepCreatedOriginGroup> originGroups)
Set the originGroups property: The origin groups comprising of origins that are used for load balancing the
traffic based on availability.
|
EndpointProperties |
withOriginHostHeader(String originHostHeader)
Set the originHostHeader property: The host header value sent to the origin with each request.
|
EndpointProperties |
withOriginPath(String originPath)
Set the originPath property: A directory path on the origin that CDN can use to retrieve content from, e.g.
|
EndpointProperties |
withOrigins(List<DeepCreatedOrigin> origins)
Set the origins property: The source of the content being delivered via CDN.
|
EndpointProperties |
withProbePath(String probePath)
Set the probePath property: Path to a file hosted on the origin which helps accelerate delivery of the dynamic
content and calculate the most optimal routes for the CDN.
|
EndpointProperties |
withQueryStringCachingBehavior(QueryStringCachingBehavior queryStringCachingBehavior)
Set the queryStringCachingBehavior property: Defines how CDN caches requests that include query strings.
|
EndpointProperties |
withUrlSigningKeys(List<UrlSigningKey> urlSigningKeys)
Set the urlSigningKeys property: List of keys used to validate the signed URL hashes.
|
EndpointProperties |
withWebApplicationFirewallPolicyLink(EndpointPropertiesUpdateParametersWebApplicationFirewallPolicyLink webApplicationFirewallPolicyLink)
Set the webApplicationFirewallPolicyLink property: Defines the Web Application Firewall policy for the endpoint
(if applicable).
|
contentTypesToCompress, defaultOriginGroup, deliveryPolicy, geoFilters, isCompressionEnabled, isHttpAllowed, isHttpsAllowed, optimizationType, originHostHeader, originPath, probePath, queryStringCachingBehavior, urlSigningKeys, webApplicationFirewallPolicyLinkpublic String hostname()
public List<DeepCreatedOrigin> origins()
public EndpointProperties withOrigins(List<DeepCreatedOrigin> origins)
origins - the origins value to set.public List<DeepCreatedOriginGroup> originGroups()
public EndpointProperties withOriginGroups(List<DeepCreatedOriginGroup> originGroups)
originGroups - the originGroups value to set.public EndpointResourceState resourceState()
public String provisioningState()
public EndpointProperties withOriginPath(String originPath)
withOriginPath in class EndpointPropertiesUpdateParametersoriginPath - the originPath value to set.public EndpointProperties withContentTypesToCompress(List<String> contentTypesToCompress)
withContentTypesToCompress in class EndpointPropertiesUpdateParameterscontentTypesToCompress - the contentTypesToCompress value to set.public EndpointProperties withOriginHostHeader(String originHostHeader)
withOriginHostHeader in class EndpointPropertiesUpdateParametersoriginHostHeader - the originHostHeader value to set.public EndpointProperties withIsCompressionEnabled(Boolean isCompressionEnabled)
withIsCompressionEnabled in class EndpointPropertiesUpdateParametersisCompressionEnabled - the isCompressionEnabled value to set.public EndpointProperties withIsHttpAllowed(Boolean isHttpAllowed)
withIsHttpAllowed in class EndpointPropertiesUpdateParametersisHttpAllowed - the isHttpAllowed value to set.public EndpointProperties withIsHttpsAllowed(Boolean isHttpsAllowed)
withIsHttpsAllowed in class EndpointPropertiesUpdateParametersisHttpsAllowed - the isHttpsAllowed value to set.public EndpointProperties withQueryStringCachingBehavior(QueryStringCachingBehavior queryStringCachingBehavior)
withQueryStringCachingBehavior in class EndpointPropertiesUpdateParametersqueryStringCachingBehavior - the queryStringCachingBehavior value to set.public EndpointProperties withOptimizationType(OptimizationType optimizationType)
withOptimizationType in class EndpointPropertiesUpdateParametersoptimizationType - the optimizationType value to set.public EndpointProperties withProbePath(String probePath)
withProbePath in class EndpointPropertiesUpdateParametersprobePath - the probePath value to set.public EndpointProperties withGeoFilters(List<GeoFilter> geoFilters)
withGeoFilters in class EndpointPropertiesUpdateParametersgeoFilters - the geoFilters value to set.public EndpointProperties withDefaultOriginGroup(ResourceReference defaultOriginGroup)
withDefaultOriginGroup in class EndpointPropertiesUpdateParametersdefaultOriginGroup - the defaultOriginGroup value to set.public EndpointProperties withUrlSigningKeys(List<UrlSigningKey> urlSigningKeys)
withUrlSigningKeys in class EndpointPropertiesUpdateParametersurlSigningKeys - the urlSigningKeys value to set.public EndpointProperties withDeliveryPolicy(EndpointPropertiesUpdateParametersDeliveryPolicy deliveryPolicy)
withDeliveryPolicy in class EndpointPropertiesUpdateParametersdeliveryPolicy - the deliveryPolicy value to set.public EndpointProperties withWebApplicationFirewallPolicyLink(EndpointPropertiesUpdateParametersWebApplicationFirewallPolicyLink webApplicationFirewallPolicyLink)
withWebApplicationFirewallPolicyLink in class EndpointPropertiesUpdateParameterswebApplicationFirewallPolicyLink - the webApplicationFirewallPolicyLink value to set.public void validate()
validate in class EndpointPropertiesUpdateParametersIllegalArgumentException - thrown if the instance is not valid.Copyright © 2020 Microsoft Corporation. All rights reserved.