Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT License. See License.txt in the project root for license information. Code generated by Microsoft (R) AutoRest Code Generator.
/** * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. * * Code generated by Microsoft (R) AutoRest Code Generator. */
package com.microsoft.azure.management.cdn; import java.util.Map; import java.util.List; import com.fasterxml.jackson.annotation.JsonProperty; import com.microsoft.rest.serializer.JsonFlatten;
Properties required to create or update an endpoint.
/** * Properties required to create or update an endpoint. */
@JsonFlatten public class EndpointUpdateParameters {
Endpoint tags.
/** * Endpoint tags. */
@JsonProperty(value = "tags") private Map<String, String> tags;
A directory path on the origin that CDN can use to retrieve content from, e.g. contoso.cloudapp.net/originpath.
/** * A directory path on the origin that CDN can use to retrieve content * from, e.g. contoso.cloudapp.net/originpath. */
@JsonProperty(value = "properties.originPath") private String originPath;
List of content types on which compression applies. The value should be a valid MIME type.
/** * List of content types on which compression applies. The value should be * a valid MIME type. */
@JsonProperty(value = "properties.contentTypesToCompress") private List<String> contentTypesToCompress;
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.
/** * 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. */
@JsonProperty(value = "properties.originHostHeader") private String originHostHeader;
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.
/** * 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. */
@JsonProperty(value = "properties.isCompressionEnabled") private Boolean isCompressionEnabled;
Indicates whether HTTP traffic is allowed on the endpoint. Default value is true. At least one protocol (HTTP or HTTPS) must be allowed.
/** * Indicates whether HTTP traffic is allowed on the endpoint. Default value * is true. At least one protocol (HTTP or HTTPS) must be allowed. */
@JsonProperty(value = "properties.isHttpAllowed") private Boolean isHttpAllowed;
Indicates whether HTTPS traffic is allowed on the endpoint. Default value is true. At least one protocol (HTTP or HTTPS) must be allowed.
/** * Indicates whether HTTPS traffic is allowed on the endpoint. Default * value is true. At least one protocol (HTTP or HTTPS) must be allowed. */
@JsonProperty(value = "properties.isHttpsAllowed") private Boolean isHttpsAllowed;
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'.
/** * 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'. */
@JsonProperty(value = "properties.queryStringCachingBehavior") private QueryStringCachingBehavior queryStringCachingBehavior;
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'.
/** * 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'. */
@JsonProperty(value = "properties.optimizationType") private OptimizationType optimizationType;
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.
/** * 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. */
@JsonProperty(value = "properties.probePath") private String probePath;
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/.
/** * 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/. */
@JsonProperty(value = "properties.geoFilters") private List<GeoFilter> geoFilters;
A reference to the origin group.
/** * A reference to the origin group. */
@JsonProperty(value = "properties.defaultOriginGroup") private ResourceReference defaultOriginGroup;
List of keys used to validate the signed URL hashes.
/** * List of keys used to validate the signed URL hashes. */
@JsonProperty(value = "properties.urlSigningKeys") private List<UrlSigningKey> urlSigningKeys;
A policy that specifies the delivery rules to be used for an endpoint.
/** * A policy that specifies the delivery rules to be used for an endpoint. */
@JsonProperty(value = "properties.deliveryPolicy") private EndpointPropertiesUpdateParametersDeliveryPolicy deliveryPolicy;
Defines the Web Application Firewall policy for the endpoint (if applicable).
/** * Defines the Web Application Firewall policy for the endpoint (if * applicable). */
@JsonProperty(value = "properties.webApplicationFirewallPolicyLink") private EndpointPropertiesUpdateParametersWebApplicationFirewallPolicyLink webApplicationFirewallPolicyLink;
Get endpoint tags.
Returns:the tags value
/** * Get endpoint tags. * * @return the tags value */
public Map<String, String> tags() { return this.tags; }
Set endpoint tags.
Params:
  • tags – the tags value to set
Returns:the EndpointUpdateParameters object itself.
/** * Set endpoint tags. * * @param tags the tags value to set * @return the EndpointUpdateParameters object itself. */
public EndpointUpdateParameters withTags(Map<String, String> tags) { this.tags = tags; return this; }
Get a directory path on the origin that CDN can use to retrieve content from, e.g. contoso.cloudapp.net/originpath.
Returns:the originPath value
/** * Get a directory path on the origin that CDN can use to retrieve content from, e.g. contoso.cloudapp.net/originpath. * * @return the originPath value */
public String originPath() { return this.originPath; }
Set a directory path on the origin that CDN can use to retrieve content from, e.g. contoso.cloudapp.net/originpath.
Params:
  • originPath – the originPath value to set
Returns:the EndpointUpdateParameters object itself.
/** * Set a directory path on the origin that CDN can use to retrieve content from, e.g. contoso.cloudapp.net/originpath. * * @param originPath the originPath value to set * @return the EndpointUpdateParameters object itself. */
public EndpointUpdateParameters withOriginPath(String originPath) { this.originPath = originPath; return this; }
Get list of content types on which compression applies. The value should be a valid MIME type.
Returns:the contentTypesToCompress value
/** * Get list of content types on which compression applies. The value should be a valid MIME type. * * @return the contentTypesToCompress value */
public List<String> contentTypesToCompress() { return this.contentTypesToCompress; }
Set list of content types on which compression applies. The value should be a valid MIME type.
Params:
  • contentTypesToCompress – the contentTypesToCompress value to set
Returns:the EndpointUpdateParameters object itself.
/** * Set list of content types on which compression applies. The value should be a valid MIME type. * * @param contentTypesToCompress the contentTypesToCompress value to set * @return the EndpointUpdateParameters object itself. */
public EndpointUpdateParameters withContentTypesToCompress(List<String> contentTypesToCompress) { this.contentTypesToCompress = contentTypesToCompress; return this; }
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:the originHostHeader value
/** * 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. * * @return the originHostHeader value */
public String originHostHeader() { return this.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.
Params:
  • originHostHeader – the originHostHeader value to set
Returns:the EndpointUpdateParameters object itself.
/** * 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. * * @param originHostHeader the originHostHeader value to set * @return the EndpointUpdateParameters object itself. */
public EndpointUpdateParameters withOriginHostHeader(String originHostHeader) { this.originHostHeader = originHostHeader; return this; }
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:the isCompressionEnabled value
/** * 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. * * @return the isCompressionEnabled value */
public Boolean isCompressionEnabled() { return this.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.
Params:
  • isCompressionEnabled – the isCompressionEnabled value to set
Returns:the EndpointUpdateParameters object itself.
/** * 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. * * @param isCompressionEnabled the isCompressionEnabled value to set * @return the EndpointUpdateParameters object itself. */
public EndpointUpdateParameters withIsCompressionEnabled(Boolean isCompressionEnabled) { this.isCompressionEnabled = isCompressionEnabled; return this; }
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:the isHttpAllowed value
/** * Get indicates whether HTTP traffic is allowed on the endpoint. Default value is true. At least one protocol (HTTP or HTTPS) must be allowed. * * @return the isHttpAllowed value */
public Boolean isHttpAllowed() { return this.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.
Params:
  • isHttpAllowed – the isHttpAllowed value to set
Returns:the EndpointUpdateParameters object itself.
/** * Set indicates whether HTTP traffic is allowed on the endpoint. Default value is true. At least one protocol (HTTP or HTTPS) must be allowed. * * @param isHttpAllowed the isHttpAllowed value to set * @return the EndpointUpdateParameters object itself. */
public EndpointUpdateParameters withIsHttpAllowed(Boolean isHttpAllowed) { this.isHttpAllowed = isHttpAllowed; return this; }
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:the isHttpsAllowed value
/** * Get indicates whether HTTPS traffic is allowed on the endpoint. Default value is true. At least one protocol (HTTP or HTTPS) must be allowed. * * @return the isHttpsAllowed value */
public Boolean isHttpsAllowed() { return this.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.
Params:
  • isHttpsAllowed – the isHttpsAllowed value to set
Returns:the EndpointUpdateParameters object itself.
/** * Set indicates whether HTTPS traffic is allowed on the endpoint. Default value is true. At least one protocol (HTTP or HTTPS) must be allowed. * * @param isHttpsAllowed the isHttpsAllowed value to set * @return the EndpointUpdateParameters object itself. */
public EndpointUpdateParameters withIsHttpsAllowed(Boolean isHttpsAllowed) { this.isHttpsAllowed = isHttpsAllowed; return this; }
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:the queryStringCachingBehavior value
/** * 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'. * * @return the queryStringCachingBehavior value */
public QueryStringCachingBehavior queryStringCachingBehavior() { return this.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'.
Params:
  • queryStringCachingBehavior – the queryStringCachingBehavior value to set
Returns:the EndpointUpdateParameters object itself.
/** * 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'. * * @param queryStringCachingBehavior the queryStringCachingBehavior value to set * @return the EndpointUpdateParameters object itself. */
public EndpointUpdateParameters withQueryStringCachingBehavior(QueryStringCachingBehavior queryStringCachingBehavior) { this.queryStringCachingBehavior = queryStringCachingBehavior; return this; }
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:the optimizationType value
/** * 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'. * * @return the optimizationType value */
public OptimizationType optimizationType() { return this.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'.
Params:
  • optimizationType – the optimizationType value to set
Returns:the EndpointUpdateParameters object itself.
/** * 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'. * * @param optimizationType the optimizationType value to set * @return the EndpointUpdateParameters object itself. */
public EndpointUpdateParameters withOptimizationType(OptimizationType optimizationType) { this.optimizationType = optimizationType; return this; }
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:the probePath value
/** * 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. * * @return the probePath value */
public String probePath() { return this.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.
Params:
  • probePath – the probePath value to set
Returns:the EndpointUpdateParameters object itself.
/** * 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. * * @param probePath the probePath value to set * @return the EndpointUpdateParameters object itself. */
public EndpointUpdateParameters withProbePath(String probePath) { this.probePath = probePath; return this; }
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:the geoFilters value
/** * 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/. * * @return the geoFilters value */
public List<GeoFilter> geoFilters() { return this.geoFilters; }
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/.
Params:
  • geoFilters – the geoFilters value to set
Returns:the EndpointUpdateParameters object itself.
/** * 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/. * * @param geoFilters the geoFilters value to set * @return the EndpointUpdateParameters object itself. */
public EndpointUpdateParameters withGeoFilters(List<GeoFilter> geoFilters) { this.geoFilters = geoFilters; return this; }
Get a reference to the origin group.
Returns:the defaultOriginGroup value
/** * Get a reference to the origin group. * * @return the defaultOriginGroup value */
public ResourceReference defaultOriginGroup() { return this.defaultOriginGroup; }
Set a reference to the origin group.
Params:
  • defaultOriginGroup – the defaultOriginGroup value to set
Returns:the EndpointUpdateParameters object itself.
/** * Set a reference to the origin group. * * @param defaultOriginGroup the defaultOriginGroup value to set * @return the EndpointUpdateParameters object itself. */
public EndpointUpdateParameters withDefaultOriginGroup(ResourceReference defaultOriginGroup) { this.defaultOriginGroup = defaultOriginGroup; return this; }
Get list of keys used to validate the signed URL hashes.
Returns:the urlSigningKeys value
/** * Get list of keys used to validate the signed URL hashes. * * @return the urlSigningKeys value */
public List<UrlSigningKey> urlSigningKeys() { return this.urlSigningKeys; }
Set list of keys used to validate the signed URL hashes.
Params:
  • urlSigningKeys – the urlSigningKeys value to set
Returns:the EndpointUpdateParameters object itself.
/** * Set list of keys used to validate the signed URL hashes. * * @param urlSigningKeys the urlSigningKeys value to set * @return the EndpointUpdateParameters object itself. */
public EndpointUpdateParameters withUrlSigningKeys(List<UrlSigningKey> urlSigningKeys) { this.urlSigningKeys = urlSigningKeys; return this; }
Get a policy that specifies the delivery rules to be used for an endpoint.
Returns:the deliveryPolicy value
/** * Get a policy that specifies the delivery rules to be used for an endpoint. * * @return the deliveryPolicy value */
public EndpointPropertiesUpdateParametersDeliveryPolicy deliveryPolicy() { return this.deliveryPolicy; }
Set a policy that specifies the delivery rules to be used for an endpoint.
Params:
  • deliveryPolicy – the deliveryPolicy value to set
Returns:the EndpointUpdateParameters object itself.
/** * Set a policy that specifies the delivery rules to be used for an endpoint. * * @param deliveryPolicy the deliveryPolicy value to set * @return the EndpointUpdateParameters object itself. */
public EndpointUpdateParameters withDeliveryPolicy(EndpointPropertiesUpdateParametersDeliveryPolicy deliveryPolicy) { this.deliveryPolicy = deliveryPolicy; return this; }
Get defines the Web Application Firewall policy for the endpoint (if applicable).
Returns:the webApplicationFirewallPolicyLink value
/** * Get defines the Web Application Firewall policy for the endpoint (if applicable). * * @return the webApplicationFirewallPolicyLink value */
public EndpointPropertiesUpdateParametersWebApplicationFirewallPolicyLink webApplicationFirewallPolicyLink() { return this.webApplicationFirewallPolicyLink; }
Set defines the Web Application Firewall policy for the endpoint (if applicable).
Params:
  • webApplicationFirewallPolicyLink – the webApplicationFirewallPolicyLink value to set
Returns:the EndpointUpdateParameters object itself.
/** * Set defines the Web Application Firewall policy for the endpoint (if applicable). * * @param webApplicationFirewallPolicyLink the webApplicationFirewallPolicyLink value to set * @return the EndpointUpdateParameters object itself. */
public EndpointUpdateParameters withWebApplicationFirewallPolicyLink(EndpointPropertiesUpdateParametersWebApplicationFirewallPolicyLink webApplicationFirewallPolicyLink) { this.webApplicationFirewallPolicyLink = webApplicationFirewallPolicyLink; return this; } }