RouteUpdateParameters Class
- java.
lang. Object - com.
microsoft. azure. management. cdn. RouteUpdateParameters
- com.
public class RouteUpdateParameters
The domain JSON object required for domain creation or update.
Constructor Summary
Constructor | Description | |
---|---|---|
RouteUpdateParameters() |
Method Summary
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
compressionSettings()
Get compression settings. |
java.util.List<Resource |
customDomains()
Get domains referenced by this endpoint. |
Enabled |
enabledState()
Get whether to enable use of this rule. |
Forwarding |
forwardingProtocol()
Get protocol this rule will use when forwarding traffic to backends. |
Https |
httpsRedirect()
Get whether to automatically redirect HTTP traffic to HTTPS traffic. |
Link |
linkToDefaultDomain()
Get whether this route will be linked to the default endpoint domain. |
Resource |
originGroup()
Get a reference to the origin group. |
java.lang.String |
originPath()
Get a directory path on the origin that Azure |
java.util.List<java.lang.String> |
patternsToMatch()
Get the route patterns of the rule. |
Afd |
queryStringCachingBehavior()
Get defines how CDN caches requests that include query strings. |
java.util.List<Resource |
ruleSets()
Get rule sets referenced by this endpoint. |
java.util.List<AFDEndpoint |
supportedProtocols()
Get list of supported protocols for this route. |
Route |
withCompressionSettings(Object compressionSettings)
Set compression settings. |
Route |
withCustomDomains(List<ResourceReference> customDomains)
Set domains referenced by this endpoint. |
Route |
withEnabledState(EnabledState enabledState)
Set whether to enable use of this rule. |
Route |
withForwardingProtocol(ForwardingProtocol forwardingProtocol)
Set protocol this rule will use when forwarding traffic to backends. |
Route |
withHttpsRedirect(HttpsRedirect httpsRedirect)
Set whether to automatically redirect HTTP traffic to HTTPS traffic. |
Route |
withLinkToDefaultDomain(LinkToDefaultDomain linkToDefaultDomain)
Set whether this route will be linked to the default endpoint domain. |
Route |
withOriginGroup(ResourceReference originGroup)
Set a reference to the origin group. |
Route |
withOriginPath(String originPath)
Set a directory path on the origin that Azure |
Route |
withPatternsToMatch(List<String> patternsToMatch)
Set the route patterns of the rule. |
Route |
withQueryStringCachingBehavior(AfdQueryStringCachingBehavior queryStringCachingBehavior)
Set defines how CDN caches requests that include query strings. |
Route |
withRuleSets(List<ResourceReference> ruleSets)
Set rule sets referenced by this endpoint. |
Route |
withSupportedProtocols(List<AFDEndpointProtocols> supportedProtocols)
Set list of supported protocols for this route. |
Methods inherited from java.lang.Object
Constructor Details
RouteUpdateParameters
public RouteUpdateParameters()
Method Details
compressionSettings
public Object compressionSettings()
Get compression settings.
Returns:
customDomains
public List
Get domains referenced by this endpoint.
Returns:
enabledState
public EnabledState enabledState()
Get whether to enable use of this rule. Permitted values are 'Enabled' or 'Disabled'. Possible values include: 'Enabled', 'Disabled'.
Returns:
forwardingProtocol
public ForwardingProtocol forwardingProtocol()
Get protocol this rule will use when forwarding traffic to backends. Possible values include: 'HttpOnly', 'HttpsOnly', 'MatchRequest'.
Returns:
httpsRedirect
public HttpsRedirect 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:
linkToDefaultDomain
public LinkToDefaultDomain linkToDefaultDomain()
Get whether this route will be linked to the default endpoint domain. Possible values include: 'Enabled', 'Disabled'.
Returns:
originGroup
public ResourceReference originGroup()
Get a reference to the origin group.
Returns:
originPath
public String originPath()
Get a directory path on the origin that AzureFrontDoor can use to retrieve content from, e.g. contoso.cloudapp.net/originpath.
Returns:
patternsToMatch
public List
Get the route patterns of the rule.
Returns:
queryStringCachingBehavior
public AfdQueryStringCachingBehavior 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:
ruleSets
public List
Get rule sets referenced by this endpoint.
Returns:
supportedProtocols
public List
Get list of supported protocols for this route.
Returns:
withCompressionSettings
public RouteUpdateParameters withCompressionSettings(Object compressionSettings)
Set compression settings.
Parameters:
Returns:
withCustomDomains
public RouteUpdateParameters withCustomDomains(List
Set domains referenced by this endpoint.
Parameters:
Returns:
withEnabledState
public RouteUpdateParameters withEnabledState(EnabledState enabledState)
Set whether to enable use of this rule. Permitted values are 'Enabled' or 'Disabled'. Possible values include: 'Enabled', 'Disabled'.
Parameters:
Returns:
withForwardingProtocol
public RouteUpdateParameters withForwardingProtocol(ForwardingProtocol forwardingProtocol)
Set protocol this rule will use when forwarding traffic to backends. Possible values include: 'HttpOnly', 'HttpsOnly', 'MatchRequest'.
Parameters:
Returns:
withHttpsRedirect
public RouteUpdateParameters withHttpsRedirect(HttpsRedirect 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'.
Parameters:
Returns:
withLinkToDefaultDomain
public RouteUpdateParameters withLinkToDefaultDomain(LinkToDefaultDomain linkToDefaultDomain)
Set whether this route will be linked to the default endpoint domain. Possible values include: 'Enabled', 'Disabled'.
Parameters:
Returns:
withOriginGroup
public RouteUpdateParameters withOriginGroup(ResourceReference originGroup)
Set a reference to the origin group.
Parameters:
Returns:
withOriginPath
public RouteUpdateParameters withOriginPath(String originPath)
Set a directory path on the origin that AzureFrontDoor can use to retrieve content from, e.g. contoso.cloudapp.net/originpath.
Parameters:
Returns:
withPatternsToMatch
public RouteUpdateParameters withPatternsToMatch(List
Set the route patterns of the rule.
Parameters:
Returns:
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:
Returns:
withRuleSets
public RouteUpdateParameters withRuleSets(List
Set rule sets referenced by this endpoint.
Parameters:
Returns:
withSupportedProtocols
public RouteUpdateParameters withSupportedProtocols(List
Set list of supported protocols for this route.
Parameters:
Returns:
Applies to
Azure SDK for Java
Geri Bildirim
https://aka.ms/ContentUserFeedback.
Çok yakında: 2024 boyunca, içerik için geri bildirim mekanizması olarak GitHub Sorunları’nı kullanımdan kaldıracak ve yeni bir geri bildirim sistemiyle değiştireceğiz. Daha fazla bilgi için bkz.Gönderin ve geri bildirimi görüntüleyin