EndpointUpdateParameters Class
- java.
lang. Object - com.
microsoft. azure. management. cdn. EndpointUpdateParameters
- com.
public class EndpointUpdateParameters
Properties required to create or update an endpoint.
Constructor Summary
Constructor | Description | |
---|---|---|
EndpointUpdateParameters() |
Method Summary
Modifier and Type | Method and Description |
---|---|
java.util.List<java.lang.String> |
contentTypesToCompress()
Get list of content types on which compression applies. |
Resource |
defaultOriginGroup()
Get a reference to the origin group. |
Endpoint |
deliveryPolicy()
Get a policy that specifies the delivery rules to be used for an endpoint. |
java.util.List<Geo |
geoFilters()
Get list of rules defining the user's geo access within a CDN endpoint. |
java.lang.Boolean |
isCompressionEnabled()
Get indicates whether content compression is enabled on CDN. |
java.lang.Boolean |
isHttpAllowed()
Get indicates whether HTTP traffic is allowed on the endpoint. |
java.lang.Boolean |
isHttpsAllowed()
Get indicates whether HTTPS traffic is allowed on the endpoint. |
Optimization |
optimizationType()
Get specifies what scenario the customer wants this CDN endpoint to optimize for, e. |
java.lang.String |
originHostHeader()
Get the host header value sent to the origin with each request. |
java.lang.String |
originPath()
Get a directory path on the origin that CDN can use to retrieve content from, e. |
java.lang.String |
probePath()
Get 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. |
Query |
queryStringCachingBehavior()
Get defines how CDN caches requests that include query strings. |
java.util.Map<java.lang.String,java.lang.String> |
tags()
Get endpoint tags. |
java.util.List<Url |
urlSigningKeys()
Get list of keys used to validate the signed URL hashes. |
Endpoint |
webApplicationFirewallPolicyLink()
Get defines the Web Application Firewall policy for the endpoint (if applicable). |
Endpoint |
withContentTypesToCompress(List<String> contentTypesToCompress)
Set list of content types on which compression applies. |
Endpoint |
withDefaultOriginGroup(ResourceReference defaultOriginGroup)
Set a reference to the origin group. |
Endpoint |
withDeliveryPolicy(EndpointPropertiesUpdateParametersDeliveryPolicy deliveryPolicy)
Set a policy that specifies the delivery rules to be used for an endpoint. |
Endpoint |
withGeoFilters(List<GeoFilter> geoFilters)
Set list of rules defining the user's geo access within a CDN endpoint. |
Endpoint |
withIsCompressionEnabled(Boolean isCompressionEnabled)
Set indicates whether content compression is enabled on CDN. |
Endpoint |
withIsHttpAllowed(Boolean isHttpAllowed)
Set indicates whether HTTP traffic is allowed on the endpoint. |
Endpoint |
withIsHttpsAllowed(Boolean isHttpsAllowed)
Set indicates whether HTTPS traffic is allowed on the endpoint. |
Endpoint |
withOptimizationType(OptimizationType optimizationType)
Set specifies what scenario the customer wants this CDN endpoint to optimize for, e. |
Endpoint |
withOriginHostHeader(String originHostHeader)
Set the host header value sent to the origin with each request. |
Endpoint |
withOriginPath(String originPath)
Set a directory path on the origin that CDN can use to retrieve content from, e. |
Endpoint |
withProbePath(String probePath)
Set 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. |
Endpoint |
withQueryStringCachingBehavior(QueryStringCachingBehavior queryStringCachingBehavior)
Set defines how CDN caches requests that include query strings. |
Endpoint |
withTags(Map<String,String> tags)
Set endpoint tags. |
Endpoint |
withUrlSigningKeys(List<UrlSigningKey> urlSigningKeys)
Set list of keys used to validate the signed URL hashes. |
Endpoint |
withWebApplicationFirewallPolicyLink(EndpointPropertiesUpdateParametersWebApplicationFirewallPolicyLink webApplicationFirewallPolicyLink)
Set defines the Web Application Firewall policy for the endpoint (if applicable). |
Methods inherited from java.lang.Object
Constructor Details
EndpointUpdateParameters
public EndpointUpdateParameters()
Method Details
contentTypesToCompress
public List
Get list of content types on which compression applies. The value should be a valid MIME type.
Returns:
defaultOriginGroup
public ResourceReference defaultOriginGroup()
Get a reference to the origin group.
Returns:
deliveryPolicy
public EndpointPropertiesUpdateParametersDeliveryPolicy deliveryPolicy()
Get a policy that specifies the delivery rules to be used for an endpoint.
Returns:
geoFilters
public List
Get list of rules defining the user's geo access within a CDN endpoint. Each geo filter defines an access rule to a specified path or content, e.g. block APAC for path /pictures/.
Returns:
isCompressionEnabled
public Boolean isCompressionEnabled()
Get indicates whether content compression is enabled on CDN. Default value is false. If compression is enabled, content will be served as compressed if user requests for a compressed version. Content won't be compressed on CDN when requested content is smaller than 1 byte or larger than 1 MB.
Returns:
isHttpAllowed
public Boolean isHttpAllowed()
Get indicates whether HTTP traffic is allowed on the endpoint. Default value is true. At least one protocol (HTTP or HTTPS) must be allowed.
Returns:
isHttpsAllowed
public Boolean isHttpsAllowed()
Get indicates whether HTTPS traffic is allowed on the endpoint. Default value is true. At least one protocol (HTTP or HTTPS) must be allowed.
Returns:
optimizationType
public OptimizationType optimizationType()
Get specifies what scenario the customer wants this CDN endpoint to optimize for, e.g. Download, Media services. With this information, CDN can apply scenario driven optimization. Possible values include: 'GeneralWebDelivery', 'GeneralMediaStreaming', 'VideoOnDemandMediaStreaming', 'LargeFileDownload', 'DynamicSiteAcceleration'.
Returns:
originHostHeader
public String originHostHeader()
Get the host header value sent to the origin with each request. This property at Endpoint is only allowed when endpoint uses single origin and can be overridden by the same property specified at origin.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:
originPath
public String originPath()
Get a directory path on the origin that CDN can use to retrieve content from, e.g. contoso.cloudapp.net/originpath.
Returns:
probePath
public String probePath()
Get 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. This is relative to the origin path. This property is only relevant when using a single origin.
Returns:
queryStringCachingBehavior
public QueryStringCachingBehavior queryStringCachingBehavior()
Get defines how CDN caches requests that include query strings. You can ignore any query strings when caching, bypass caching to prevent requests that contain query strings from being cached, or cache every request with a unique URL. Possible values include: 'IgnoreQueryString', 'BypassCaching', 'UseQueryString', 'NotSet'.
Returns:
tags
public Map
Get endpoint tags.
Returns:
urlSigningKeys
public List
Get list of keys used to validate the signed URL hashes.
Returns:
webApplicationFirewallPolicyLink
public EndpointPropertiesUpdateParametersWebApplicationFirewallPolicyLink webApplicationFirewallPolicyLink()
Get defines the Web Application Firewall policy for the endpoint (if applicable).
Returns:
withContentTypesToCompress
public EndpointUpdateParameters withContentTypesToCompress(List
Set list of content types on which compression applies. The value should be a valid MIME type.
Parameters:
Returns:
withDefaultOriginGroup
public EndpointUpdateParameters withDefaultOriginGroup(ResourceReference defaultOriginGroup)
Set a reference to the origin group.
Parameters:
Returns:
withDeliveryPolicy
public EndpointUpdateParameters withDeliveryPolicy(EndpointPropertiesUpdateParametersDeliveryPolicy deliveryPolicy)
Set a policy that specifies the delivery rules to be used for an endpoint.
Parameters:
Returns:
withGeoFilters
public EndpointUpdateParameters withGeoFilters(List
Set list of rules defining the user's geo access within a CDN endpoint. Each geo filter defines an access rule to a specified path or content, e.g. block APAC for path /pictures/.
Parameters:
Returns:
withIsCompressionEnabled
public EndpointUpdateParameters withIsCompressionEnabled(Boolean isCompressionEnabled)
Set indicates whether content compression is enabled on CDN. Default value is false. If compression is enabled, content will be served as compressed if user requests for a compressed version. Content won't be compressed on CDN when requested content is smaller than 1 byte or larger than 1 MB.
Parameters:
Returns:
withIsHttpAllowed
public EndpointUpdateParameters withIsHttpAllowed(Boolean isHttpAllowed)
Set indicates whether HTTP traffic is allowed on the endpoint. Default value is true. At least one protocol (HTTP or HTTPS) must be allowed.
Parameters:
Returns:
withIsHttpsAllowed
public EndpointUpdateParameters withIsHttpsAllowed(Boolean isHttpsAllowed)
Set indicates whether HTTPS traffic is allowed on the endpoint. Default value is true. At least one protocol (HTTP or HTTPS) must be allowed.
Parameters:
Returns:
withOptimizationType
public EndpointUpdateParameters withOptimizationType(OptimizationType optimizationType)
Set specifies what scenario the customer wants this CDN endpoint to optimize for, e.g. Download, Media services. With this information, CDN can apply scenario driven optimization. Possible values include: 'GeneralWebDelivery', 'GeneralMediaStreaming', 'VideoOnDemandMediaStreaming', 'LargeFileDownload', 'DynamicSiteAcceleration'.
Parameters:
Returns:
withOriginHostHeader
public EndpointUpdateParameters withOriginHostHeader(String originHostHeader)
Set the host header value sent to the origin with each request. This property at Endpoint is only allowed when endpoint uses single origin and can be overridden by the same property specified at origin.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:
Returns:
withOriginPath
public EndpointUpdateParameters withOriginPath(String originPath)
Set a directory path on the origin that CDN can use to retrieve content from, e.g. contoso.cloudapp.net/originpath.
Parameters:
Returns:
withProbePath
public EndpointUpdateParameters withProbePath(String probePath)
Set 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. This is relative to the origin path. This property is only relevant when using a single origin.
Parameters:
Returns:
withQueryStringCachingBehavior
public EndpointUpdateParameters withQueryStringCachingBehavior(QueryStringCachingBehavior queryStringCachingBehavior)
Set defines how CDN caches requests that include query strings. You can ignore any query strings when caching, bypass caching to prevent requests that contain query strings from being cached, or cache every request with a unique URL. Possible values include: 'IgnoreQueryString', 'BypassCaching', 'UseQueryString', 'NotSet'.
Parameters:
Returns:
withTags
public EndpointUpdateParameters withTags(Map
Set endpoint tags.
Parameters:
Returns:
withUrlSigningKeys
public EndpointUpdateParameters withUrlSigningKeys(List
Set list of keys used to validate the signed URL hashes.
Parameters:
Returns:
withWebApplicationFirewallPolicyLink
public EndpointUpdateParameters withWebApplicationFirewallPolicyLink(EndpointPropertiesUpdateParametersWebApplicationFirewallPolicyLink webApplicationFirewallPolicyLink)
Set defines the Web Application Firewall policy for the endpoint (if applicable).
Parameters:
Returns:
Applies to
Azure SDK for Java
Feedback
https://aka.ms/ContentUserFeedback.
Binnenkort beschikbaar: In de loop van 2024 zullen we GitHub-problemen geleidelijk uitfaseren als het feedbackmechanisme voor inhoud en deze vervangen door een nieuw feedbacksysteem. Zie voor meer informatie:Feedback verzenden en weergeven voor