Class RouteProperties
- java.lang.Object
-
- com.azure.resourcemanager.cdn.fluent.models.RouteUpdatePropertiesParameters
-
- com.azure.resourcemanager.cdn.fluent.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.RoutePropertieswithCacheConfiguration(AfdRouteCacheConfiguration cacheConfiguration)Set the cacheConfiguration property: The caching configuration for this route.RoutePropertieswithCustomDomains(List<ActivatedResourceReference> 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.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.fluent.models.RouteUpdatePropertiesParameters
cacheConfiguration, customDomains, enabledState, endpointName, forwardingProtocol, httpsRedirect, linkToDefaultDomain, originGroup, originPath, patternsToMatch, 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<ActivatedResourceReference> 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.
-
withCacheConfiguration
public RouteProperties withCacheConfiguration(AfdRouteCacheConfiguration cacheConfiguration)
Set the cacheConfiguration property: The caching configuration for this route. To disable caching, do not provide a cacheConfiguration object.- Overrides:
withCacheConfigurationin classRouteUpdatePropertiesParameters- Parameters:
cacheConfiguration- the cacheConfiguration 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.
-
-