Class RouteProperties
- java.lang.Object
-
- com.azure.resourcemanager.cdn.models.RouteUpdatePropertiesParameters
-
- com.azure.resourcemanager.cdn.models.RouteProperties
-
public final class RouteProperties extends RouteUpdatePropertiesParameters
The JSON object that contains the properties of the Routes to create.
-
-
Constructor Summary
Constructors Constructor Description RouteProperties()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DeploymentStatusdeploymentStatus()Get the deploymentStatus property: The deploymentStatus property.AfdProvisioningStateprovisioningState()Get the provisioningState property: Provisioning status.voidvalidate()Validates the instance.RoutePropertieswithCompressionSettings(Object compressionSettings)Set the compressionSettings property: compression settings.RoutePropertieswithCustomDomains(List<ResourceReference> customDomains)Set the customDomains property: Domains referenced by this endpoint.RoutePropertieswithEnabledState(EnabledState enabledState)Set the enabledState property: Whether to enable use of this rule.RoutePropertieswithForwardingProtocol(ForwardingProtocol forwardingProtocol)Set the forwardingProtocol property: Protocol this rule will use when forwarding traffic to backends.RoutePropertieswithHttpsRedirect(HttpsRedirect httpsRedirect)Set the httpsRedirect property: Whether to automatically redirect HTTP traffic to HTTPS traffic.RoutePropertieswithLinkToDefaultDomain(LinkToDefaultDomain linkToDefaultDomain)Set the linkToDefaultDomain property: whether this route will be linked to the default endpoint domain.RoutePropertieswithOriginGroup(ResourceReference originGroup)Set the originGroup property: A reference to the origin group.RoutePropertieswithOriginPath(String originPath)Set the originPath property: A directory path on the origin that AzureFrontDoor can use to retrieve content from, e.g.RoutePropertieswithPatternsToMatch(List<String> patternsToMatch)Set the patternsToMatch property: The route patterns of the rule.RoutePropertieswithQueryStringCachingBehavior(AfdQueryStringCachingBehavior queryStringCachingBehavior)Set the queryStringCachingBehavior property: Defines how CDN caches requests that include query strings.RoutePropertieswithRuleSets(List<ResourceReference> ruleSets)Set the ruleSets property: rule sets referenced by this endpoint.RoutePropertieswithSupportedProtocols(List<AfdEndpointProtocols> supportedProtocols)Set the supportedProtocols property: List of supported protocols for this route.-
Methods inherited from class com.azure.resourcemanager.cdn.models.RouteUpdatePropertiesParameters
compressionSettings, customDomains, enabledState, forwardingProtocol, httpsRedirect, linkToDefaultDomain, originGroup, originPath, patternsToMatch, queryStringCachingBehavior, ruleSets, supportedProtocols
-
-
-
-
Method Detail
-
provisioningState
public AfdProvisioningState provisioningState()
Get the provisioningState property: Provisioning status.- Returns:
- the provisioningState value.
-
deploymentStatus
public DeploymentStatus deploymentStatus()
Get the deploymentStatus property: The deploymentStatus property.- Returns:
- the deploymentStatus value.
-
withCustomDomains
public RouteProperties withCustomDomains(List<ResourceReference> customDomains)
Set the customDomains property: Domains referenced by this endpoint.- Overrides:
withCustomDomainsin classRouteUpdatePropertiesParameters- Parameters:
customDomains- the customDomains value to set.- Returns:
- the RouteUpdatePropertiesParameters object itself.
-
withOriginGroup
public RouteProperties withOriginGroup(ResourceReference originGroup)
Set the originGroup property: A reference to the origin group.- Overrides:
withOriginGroupin classRouteUpdatePropertiesParameters- Parameters:
originGroup- the originGroup value to set.- Returns:
- the RouteUpdatePropertiesParameters object itself.
-
withOriginPath
public RouteProperties withOriginPath(String originPath)
Set the originPath property: A directory path on the origin that AzureFrontDoor can use to retrieve content from, e.g. contoso.cloudapp.net/originpath.- Overrides:
withOriginPathin classRouteUpdatePropertiesParameters- Parameters:
originPath- the originPath value to set.- Returns:
- the RouteUpdatePropertiesParameters object itself.
-
withRuleSets
public RouteProperties withRuleSets(List<ResourceReference> ruleSets)
Set the ruleSets property: rule sets referenced by this endpoint.- Overrides:
withRuleSetsin classRouteUpdatePropertiesParameters- Parameters:
ruleSets- the ruleSets value to set.- Returns:
- the RouteUpdatePropertiesParameters object itself.
-
withSupportedProtocols
public RouteProperties withSupportedProtocols(List<AfdEndpointProtocols> supportedProtocols)
Set the supportedProtocols property: List of supported protocols for this route.- Overrides:
withSupportedProtocolsin classRouteUpdatePropertiesParameters- Parameters:
supportedProtocols- the supportedProtocols value to set.- Returns:
- the RouteUpdatePropertiesParameters object itself.
-
withPatternsToMatch
public RouteProperties withPatternsToMatch(List<String> patternsToMatch)
Set the patternsToMatch property: The route patterns of the rule.- Overrides:
withPatternsToMatchin classRouteUpdatePropertiesParameters- Parameters:
patternsToMatch- the patternsToMatch value to set.- Returns:
- the RouteUpdatePropertiesParameters object itself.
-
withCompressionSettings
public RouteProperties withCompressionSettings(Object compressionSettings)
Set the compressionSettings property: compression settings.- Overrides:
withCompressionSettingsin classRouteUpdatePropertiesParameters- Parameters:
compressionSettings- the compressionSettings value to set.- Returns:
- the RouteUpdatePropertiesParameters object itself.
-
withQueryStringCachingBehavior
public RouteProperties withQueryStringCachingBehavior(AfdQueryStringCachingBehavior queryStringCachingBehavior)
Set the queryStringCachingBehavior property: 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.- Overrides:
withQueryStringCachingBehaviorin classRouteUpdatePropertiesParameters- Parameters:
queryStringCachingBehavior- the queryStringCachingBehavior value to set.- Returns:
- the RouteUpdatePropertiesParameters object itself.
-
withForwardingProtocol
public RouteProperties withForwardingProtocol(ForwardingProtocol forwardingProtocol)
Set the forwardingProtocol property: Protocol this rule will use when forwarding traffic to backends.- Overrides:
withForwardingProtocolin classRouteUpdatePropertiesParameters- Parameters:
forwardingProtocol- the forwardingProtocol value to set.- Returns:
- the RouteUpdatePropertiesParameters object itself.
-
withLinkToDefaultDomain
public RouteProperties withLinkToDefaultDomain(LinkToDefaultDomain linkToDefaultDomain)
Set the linkToDefaultDomain property: whether this route will be linked to the default endpoint domain.- Overrides:
withLinkToDefaultDomainin classRouteUpdatePropertiesParameters- Parameters:
linkToDefaultDomain- the linkToDefaultDomain value to set.- Returns:
- the RouteUpdatePropertiesParameters object itself.
-
withHttpsRedirect
public RouteProperties withHttpsRedirect(HttpsRedirect httpsRedirect)
Set the httpsRedirect property: 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.- Overrides:
withHttpsRedirectin classRouteUpdatePropertiesParameters- Parameters:
httpsRedirect- the httpsRedirect value to set.- Returns:
- the RouteUpdatePropertiesParameters object itself.
-
withEnabledState
public RouteProperties withEnabledState(EnabledState enabledState)
Set the enabledState property: Whether to enable use of this rule. Permitted values are 'Enabled' or 'Disabled'.- Overrides:
withEnabledStatein classRouteUpdatePropertiesParameters- Parameters:
enabledState- the enabledState value to set.- Returns:
- the RouteUpdatePropertiesParameters object itself.
-
validate
public void validate()
Validates the instance.- Overrides:
validatein classRouteUpdatePropertiesParameters- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
-