Class RouteProperties
java.lang.Object
com.azure.resourcemanager.cdn.fluent.models.RouteUpdatePropertiesParameters
com.azure.resourcemanager.cdn.fluent.models.RouteProperties
The JSON object that contains the properties of the Routes to create.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the deploymentStatus property: The deploymentStatus property.Get the provisioningState property: Provisioning status.voidvalidate()Validates the instance.withCacheConfiguration(AfdRouteCacheConfiguration cacheConfiguration) Set the cacheConfiguration property: The caching configuration for this route.withCustomDomains(List<ActivatedResourceReference> customDomains) Set the customDomains property: Domains referenced by this endpoint.withEnabledState(EnabledState enabledState) Set the enabledState property: Whether to enable use of this rule.withForwardingProtocol(ForwardingProtocol forwardingProtocol) Set the forwardingProtocol property: Protocol this rule will use when forwarding traffic to backends.withHttpsRedirect(HttpsRedirect httpsRedirect) Set the httpsRedirect property: Whether to automatically redirect HTTP traffic to HTTPS traffic.withLinkToDefaultDomain(LinkToDefaultDomain linkToDefaultDomain) Set the linkToDefaultDomain property: whether this route will be linked to the default endpoint domain.withOriginGroup(ResourceReference originGroup) Set the originGroup property: A reference to the origin group.withOriginPath(String originPath) Set the originPath property: A directory path on the origin that AzureFrontDoor can use to retrieve content from, e.g.withPatternsToMatch(List<String> patternsToMatch) Set the patternsToMatch property: The route patterns of the rule.withRuleSets(List<ResourceReference> ruleSets) Set the ruleSets property: rule sets referenced by this endpoint.withSupportedProtocols(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
-
Constructor Details
-
RouteProperties
public RouteProperties()Creates an instance of RouteProperties class.
-
-
Method Details
-
provisioningState
Get the provisioningState property: Provisioning status.- Returns:
- the provisioningState value.
-
deploymentStatus
Get the deploymentStatus property: The deploymentStatus property.- Returns:
- the deploymentStatus value.
-
withCustomDomains
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
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
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
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
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
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
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
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
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
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
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.
-