Class RouteUpdateParameters
java.lang.Object
com.microsoft.azure.management.cdn.RouteUpdateParameters
The domain JSON object required for domain creation or update.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet compression settings.Get domains referenced by this endpoint.Get whether to enable use of this rule.Get protocol this rule will use when forwarding traffic to backends.Get whether to automatically redirect HTTP traffic to HTTPS traffic.Get whether this route will be linked to the default endpoint domain.Get a reference to the origin group.Get a directory path on the origin that AzureFrontDoor can use to retrieve content from, e.g.Get the route patterns of the rule.Get defines how CDN caches requests that include query strings.ruleSets()
Get rule sets referenced by this endpoint.Get list of supported protocols for this route.withCompressionSettings
(Object compressionSettings) Set compression settings.withCustomDomains
(List<ResourceReference> customDomains) Set domains referenced by this endpoint.withEnabledState
(EnabledState enabledState) Set whether to enable use of this rule.withForwardingProtocol
(ForwardingProtocol forwardingProtocol) Set protocol this rule will use when forwarding traffic to backends.withHttpsRedirect
(HttpsRedirect httpsRedirect) Set whether to automatically redirect HTTP traffic to HTTPS traffic.withLinkToDefaultDomain
(LinkToDefaultDomain linkToDefaultDomain) Set whether this route will be linked to the default endpoint domain.withOriginGroup
(ResourceReference originGroup) Set a reference to the origin group.withOriginPath
(String originPath) Set a directory path on the origin that AzureFrontDoor can use to retrieve content from, e.g.withPatternsToMatch
(List<String> patternsToMatch) Set the route patterns of the rule.withQueryStringCachingBehavior
(AfdQueryStringCachingBehavior queryStringCachingBehavior) Set defines how CDN caches requests that include query strings.withRuleSets
(List<ResourceReference> ruleSets) Set rule sets referenced by this endpoint.withSupportedProtocols
(List<AFDEndpointProtocols> supportedProtocols) Set list of supported protocols for this route.
-
Constructor Details
-
RouteUpdateParameters
public RouteUpdateParameters()
-
-
Method Details
-
customDomains
Get domains referenced by this endpoint.- Returns:
- the customDomains value
-
withCustomDomains
Set domains referenced by this endpoint.- Parameters:
customDomains
- the customDomains value to set- Returns:
- the RouteUpdateParameters object itself.
-
originGroup
Get a reference to the origin group.- Returns:
- the originGroup value
-
withOriginGroup
Set a reference to the origin group.- Parameters:
originGroup
- the originGroup value to set- Returns:
- the RouteUpdateParameters object itself.
-
originPath
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
-
withOriginPath
Set a directory path on the origin that AzureFrontDoor can use to retrieve content from, e.g. contoso.cloudapp.net/originpath.- Parameters:
originPath
- the originPath value to set- Returns:
- the RouteUpdateParameters object itself.
-
ruleSets
Get rule sets referenced by this endpoint.- Returns:
- the ruleSets value
-
withRuleSets
Set rule sets referenced by this endpoint.- Parameters:
ruleSets
- the ruleSets value to set- Returns:
- the RouteUpdateParameters object itself.
-
supportedProtocols
Get list of supported protocols for this route.- Returns:
- the supportedProtocols value
-
withSupportedProtocols
Set list of supported protocols for this route.- Parameters:
supportedProtocols
- the supportedProtocols value to set- Returns:
- the RouteUpdateParameters object itself.
-
patternsToMatch
Get the route patterns of the rule.- Returns:
- the patternsToMatch value
-
withPatternsToMatch
Set the route patterns of the rule.- Parameters:
patternsToMatch
- the patternsToMatch value to set- Returns:
- the RouteUpdateParameters object itself.
-
compressionSettings
Get compression settings.- Returns:
- the compressionSettings value
-
withCompressionSettings
Set compression settings.- Parameters:
compressionSettings
- the compressionSettings value to set- Returns:
- the RouteUpdateParameters object itself.
-
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', 'UseQueryString', 'NotSet'.- Returns:
- the queryStringCachingBehavior value
-
withQueryStringCachingBehavior
public RouteUpdateParameters withQueryStringCachingBehavior(AfdQueryStringCachingBehavior 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'.- Parameters:
queryStringCachingBehavior
- the queryStringCachingBehavior value to set- Returns:
- the RouteUpdateParameters object itself.
-
forwardingProtocol
Get protocol this rule will use when forwarding traffic to backends. Possible values include: 'HttpOnly', 'HttpsOnly', 'MatchRequest'.- Returns:
- the forwardingProtocol value
-
withForwardingProtocol
Set protocol this rule will use when forwarding traffic to backends. Possible values include: 'HttpOnly', 'HttpsOnly', 'MatchRequest'.- Parameters:
forwardingProtocol
- the forwardingProtocol value to set- Returns:
- the RouteUpdateParameters object itself.
-
linkToDefaultDomain
Get whether this route will be linked to the default endpoint domain. Possible values include: 'Enabled', 'Disabled'.- Returns:
- the linkToDefaultDomain value
-
withLinkToDefaultDomain
Set whether this route will be linked to the default endpoint domain. Possible values include: 'Enabled', 'Disabled'.- Parameters:
linkToDefaultDomain
- the linkToDefaultDomain value to set- Returns:
- the RouteUpdateParameters object itself.
-
httpsRedirect
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
-
withHttpsRedirect
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'.- Parameters:
httpsRedirect
- the httpsRedirect value to set- Returns:
- the RouteUpdateParameters object itself.
-
enabledState
Get whether to enable use of this rule. Permitted values are 'Enabled' or 'Disabled'. Possible values include: 'Enabled', 'Disabled'.- Returns:
- the enabledState value
-
withEnabledState
Set whether to enable use of this rule. Permitted values are 'Enabled' or 'Disabled'. Possible values include: 'Enabled', 'Disabled'.- Parameters:
enabledState
- the enabledState value to set- Returns:
- the RouteUpdateParameters object itself.
-