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.List; import com.fasterxml.jackson.annotation.JsonProperty; import com.microsoft.rest.serializer.JsonFlatten;
The domain JSON object required for domain creation or update.
/** * The domain JSON object required for domain creation or update. */
@JsonFlatten public class RouteUpdateParameters {
Domains referenced by this endpoint.
/** * Domains referenced by this endpoint. */
@JsonProperty(value = "properties.customDomains") private List<ResourceReference> customDomains;
A reference to the origin group.
/** * A reference to the origin group. */
@JsonProperty(value = "properties.originGroup") private ResourceReference originGroup;
A directory path on the origin that AzureFrontDoor can use to retrieve content from, e.g. contoso.cloudapp.net/originpath.
/** * A directory path on the origin that AzureFrontDoor can use to retrieve * content from, e.g. contoso.cloudapp.net/originpath. */
@JsonProperty(value = "properties.originPath") private String originPath;
rule sets referenced by this endpoint.
/** * rule sets referenced by this endpoint. */
@JsonProperty(value = "properties.ruleSets") private List<ResourceReference> ruleSets;
List of supported protocols for this route.
/** * List of supported protocols for this route. */
@JsonProperty(value = "properties.supportedProtocols") private List<AFDEndpointProtocols> supportedProtocols;
The route patterns of the rule.
/** * The route patterns of the rule. */
@JsonProperty(value = "properties.patternsToMatch") private List<String> patternsToMatch;
compression settings.
/** * compression settings. */
@JsonProperty(value = "properties.compressionSettings") private Object compressionSettings;
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', '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', * 'UseQueryString', 'NotSet'. */
@JsonProperty(value = "properties.queryStringCachingBehavior") private AfdQueryStringCachingBehavior queryStringCachingBehavior;
Protocol this rule will use when forwarding traffic to backends. Possible values include: 'HttpOnly', 'HttpsOnly', 'MatchRequest'.
/** * Protocol this rule will use when forwarding traffic to backends. * Possible values include: 'HttpOnly', 'HttpsOnly', 'MatchRequest'. */
@JsonProperty(value = "properties.forwardingProtocol") private ForwardingProtocol forwardingProtocol;
whether this route will be linked to the default endpoint domain. Possible values include: 'Enabled', 'Disabled'.
/** * whether this route will be linked to the default endpoint domain. * Possible values include: 'Enabled', 'Disabled'. */
@JsonProperty(value = "properties.linkToDefaultDomain") private LinkToDefaultDomain linkToDefaultDomain;
Whether to automatically redirect HTTP traffic to HTTPS traffic. Note that this is a easy way to set up this rule and it will be the first rule that gets executed. Possible values include: 'Enabled', 'Disabled'.
/** * Whether to automatically redirect HTTP traffic to HTTPS traffic. Note * that this is a easy way to set up this rule and it will be the first * rule that gets executed. Possible values include: 'Enabled', 'Disabled'. */
@JsonProperty(value = "properties.httpsRedirect") private HttpsRedirect httpsRedirect;
Whether to enable use of this rule. Permitted values are 'Enabled' or 'Disabled'. Possible values include: 'Enabled', 'Disabled'.
/** * Whether to enable use of this rule. Permitted values are 'Enabled' or * 'Disabled'. Possible values include: 'Enabled', 'Disabled'. */
@JsonProperty(value = "properties.enabledState") private EnabledState enabledState;
Get domains referenced by this endpoint.
Returns:the customDomains value
/** * Get domains referenced by this endpoint. * * @return the customDomains value */
public List<ResourceReference> customDomains() { return this.customDomains; }
Set domains referenced by this endpoint.
Params:
  • customDomains – the customDomains value to set
Returns:the RouteUpdateParameters object itself.
/** * Set domains referenced by this endpoint. * * @param customDomains the customDomains value to set * @return the RouteUpdateParameters object itself. */
public RouteUpdateParameters withCustomDomains(List<ResourceReference> customDomains) { this.customDomains = customDomains; return this; }
Get a reference to the origin group.
Returns:the originGroup value
/** * Get a reference to the origin group. * * @return the originGroup value */
public ResourceReference originGroup() { return this.originGroup; }
Set a reference to the origin group.
Params:
  • originGroup – the originGroup value to set
Returns:the RouteUpdateParameters object itself.
/** * Set a reference to the origin group. * * @param originGroup the originGroup value to set * @return the RouteUpdateParameters object itself. */
public RouteUpdateParameters withOriginGroup(ResourceReference originGroup) { this.originGroup = originGroup; return this; }
Get a directory path on the origin that AzureFrontDoor can use to retrieve content from, e.g. contoso.cloudapp.net/originpath.
Returns:the originPath value
/** * Get a directory path on the origin that AzureFrontDoor 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 AzureFrontDoor can use to retrieve content from, e.g. contoso.cloudapp.net/originpath.
Params:
  • originPath – the originPath value to set
Returns:the RouteUpdateParameters object itself.
/** * Set a directory path on the origin that AzureFrontDoor can use to retrieve content from, e.g. contoso.cloudapp.net/originpath. * * @param originPath the originPath value to set * @return the RouteUpdateParameters object itself. */
public RouteUpdateParameters withOriginPath(String originPath) { this.originPath = originPath; return this; }
Get rule sets referenced by this endpoint.
Returns:the ruleSets value
/** * Get rule sets referenced by this endpoint. * * @return the ruleSets value */
public List<ResourceReference> ruleSets() { return this.ruleSets; }
Set rule sets referenced by this endpoint.
Params:
  • ruleSets – the ruleSets value to set
Returns:the RouteUpdateParameters object itself.
/** * Set rule sets referenced by this endpoint. * * @param ruleSets the ruleSets value to set * @return the RouteUpdateParameters object itself. */
public RouteUpdateParameters withRuleSets(List<ResourceReference> ruleSets) { this.ruleSets = ruleSets; return this; }
Get list of supported protocols for this route.
Returns:the supportedProtocols value
/** * Get list of supported protocols for this route. * * @return the supportedProtocols value */
public List<AFDEndpointProtocols> supportedProtocols() { return this.supportedProtocols; }
Set list of supported protocols for this route.
Params:
  • supportedProtocols – the supportedProtocols value to set
Returns:the RouteUpdateParameters object itself.
/** * Set list of supported protocols for this route. * * @param supportedProtocols the supportedProtocols value to set * @return the RouteUpdateParameters object itself. */
public RouteUpdateParameters withSupportedProtocols(List<AFDEndpointProtocols> supportedProtocols) { this.supportedProtocols = supportedProtocols; return this; }
Get the route patterns of the rule.
Returns:the patternsToMatch value
/** * Get the route patterns of the rule. * * @return the patternsToMatch value */
public List<String> patternsToMatch() { return this.patternsToMatch; }
Set the route patterns of the rule.
Params:
  • patternsToMatch – the patternsToMatch value to set
Returns:the RouteUpdateParameters object itself.
/** * Set the route patterns of the rule. * * @param patternsToMatch the patternsToMatch value to set * @return the RouteUpdateParameters object itself. */
public RouteUpdateParameters withPatternsToMatch(List<String> patternsToMatch) { this.patternsToMatch = patternsToMatch; return this; }
Get compression settings.
Returns:the compressionSettings value
/** * Get compression settings. * * @return the compressionSettings value */
public Object compressionSettings() { return this.compressionSettings; }
Set compression settings.
Params:
  • compressionSettings – the compressionSettings value to set
Returns:the RouteUpdateParameters object itself.
/** * Set compression settings. * * @param compressionSettings the compressionSettings value to set * @return the RouteUpdateParameters object itself. */
public RouteUpdateParameters withCompressionSettings(Object compressionSettings) { this.compressionSettings = compressionSettings; 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', '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', 'UseQueryString', 'NotSet'. * * @return the queryStringCachingBehavior value */
public AfdQueryStringCachingBehavior 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', 'UseQueryString', 'NotSet'.
Params:
  • queryStringCachingBehavior – the queryStringCachingBehavior value to set
Returns:the RouteUpdateParameters 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', 'UseQueryString', 'NotSet'. * * @param queryStringCachingBehavior the queryStringCachingBehavior value to set * @return the RouteUpdateParameters object itself. */
public RouteUpdateParameters withQueryStringCachingBehavior(AfdQueryStringCachingBehavior queryStringCachingBehavior) { this.queryStringCachingBehavior = queryStringCachingBehavior; return this; }
Get protocol this rule will use when forwarding traffic to backends. Possible values include: 'HttpOnly', 'HttpsOnly', 'MatchRequest'.
Returns:the forwardingProtocol value
/** * Get protocol this rule will use when forwarding traffic to backends. Possible values include: 'HttpOnly', 'HttpsOnly', 'MatchRequest'. * * @return the forwardingProtocol value */
public ForwardingProtocol forwardingProtocol() { return this.forwardingProtocol; }
Set protocol this rule will use when forwarding traffic to backends. Possible values include: 'HttpOnly', 'HttpsOnly', 'MatchRequest'.
Params:
  • forwardingProtocol – the forwardingProtocol value to set
Returns:the RouteUpdateParameters object itself.
/** * Set protocol this rule will use when forwarding traffic to backends. Possible values include: 'HttpOnly', 'HttpsOnly', 'MatchRequest'. * * @param forwardingProtocol the forwardingProtocol value to set * @return the RouteUpdateParameters object itself. */
public RouteUpdateParameters withForwardingProtocol(ForwardingProtocol forwardingProtocol) { this.forwardingProtocol = forwardingProtocol; return this; }
Get whether this route will be linked to the default endpoint domain. Possible values include: 'Enabled', 'Disabled'.
Returns:the linkToDefaultDomain value
/** * Get whether this route will be linked to the default endpoint domain. Possible values include: 'Enabled', 'Disabled'. * * @return the linkToDefaultDomain value */
public LinkToDefaultDomain linkToDefaultDomain() { return this.linkToDefaultDomain; }
Set whether this route will be linked to the default endpoint domain. Possible values include: 'Enabled', 'Disabled'.
Params:
  • linkToDefaultDomain – the linkToDefaultDomain value to set
Returns:the RouteUpdateParameters object itself.
/** * Set whether this route will be linked to the default endpoint domain. Possible values include: 'Enabled', 'Disabled'. * * @param linkToDefaultDomain the linkToDefaultDomain value to set * @return the RouteUpdateParameters object itself. */
public RouteUpdateParameters withLinkToDefaultDomain(LinkToDefaultDomain linkToDefaultDomain) { this.linkToDefaultDomain = linkToDefaultDomain; return this; }
Get whether to automatically redirect HTTP traffic to HTTPS traffic. Note that this is a easy way to set up this rule and it will be the first rule that gets executed. Possible values include: 'Enabled', 'Disabled'.
Returns:the httpsRedirect value
/** * Get whether to automatically redirect HTTP traffic to HTTPS traffic. Note that this is a easy way to set up this rule and it will be the first rule that gets executed. Possible values include: 'Enabled', 'Disabled'. * * @return the httpsRedirect value */
public HttpsRedirect httpsRedirect() { return this.httpsRedirect; }
Set whether to automatically redirect HTTP traffic to HTTPS traffic. Note that this is a easy way to set up this rule and it will be the first rule that gets executed. Possible values include: 'Enabled', 'Disabled'.
Params:
  • httpsRedirect – the httpsRedirect value to set
Returns:the RouteUpdateParameters object itself.
/** * Set whether to automatically redirect HTTP traffic to HTTPS traffic. Note that this is a easy way to set up this rule and it will be the first rule that gets executed. Possible values include: 'Enabled', 'Disabled'. * * @param httpsRedirect the httpsRedirect value to set * @return the RouteUpdateParameters object itself. */
public RouteUpdateParameters withHttpsRedirect(HttpsRedirect httpsRedirect) { this.httpsRedirect = httpsRedirect; return this; }
Get whether to enable use of this rule. Permitted values are 'Enabled' or 'Disabled'. Possible values include: 'Enabled', 'Disabled'.
Returns:the enabledState value
/** * Get whether to enable use of this rule. Permitted values are 'Enabled' or 'Disabled'. Possible values include: 'Enabled', 'Disabled'. * * @return the enabledState value */
public EnabledState enabledState() { return this.enabledState; }
Set whether to enable use of this rule. Permitted values are 'Enabled' or 'Disabled'. Possible values include: 'Enabled', 'Disabled'.
Params:
  • enabledState – the enabledState value to set
Returns:the RouteUpdateParameters object itself.
/** * Set whether to enable use of this rule. Permitted values are 'Enabled' or 'Disabled'. Possible values include: 'Enabled', 'Disabled'. * * @param enabledState the enabledState value to set * @return the RouteUpdateParameters object itself. */
public RouteUpdateParameters withEnabledState(EnabledState enabledState) { this.enabledState = enabledState; return this; } }