Class RouteUpdateParameters
java.lang.Object
com.azure.resourcemanager.cdn.models.RouteUpdateParameters
The domain JSON object required for domain creation or update.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the cacheConfiguration property: The caching configuration for this route.Get the customDomains property: Domains referenced by this endpoint.Get the enabledState property: Whether to enable use of this rule.Get the endpointName property: The name of the endpoint which holds the route.Get the forwardingProtocol property: Protocol this rule will use when forwarding traffic to backends.Get the httpsRedirect property: Whether to automatically redirect HTTP traffic to HTTPS traffic.Get the linkToDefaultDomain property: whether this route will be linked to the default endpoint domain.Get the originGroup property: A reference to the origin group.Get the originPath property: A directory path on the origin that AzureFrontDoor can use to retrieve content from, e.g.Get the patternsToMatch property: The route patterns of the rule.ruleSets()Get the ruleSets property: rule sets referenced by this endpoint.Get the supportedProtocols property: List of supported protocols for this route.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.
-
Constructor Details
-
RouteUpdateParameters
public RouteUpdateParameters()Creates an instance of RouteUpdateParameters class.
-
-
Method Details
-
endpointName
Get the endpointName property: The name of the endpoint which holds the route.- Returns:
- the endpointName value.
-
customDomains
Get the customDomains property: Domains referenced by this endpoint.- Returns:
- the customDomains value.
-
withCustomDomains
Set the customDomains property: Domains referenced by this endpoint.- Parameters:
customDomains- the customDomains value to set.- Returns:
- the RouteUpdateParameters object itself.
-
originGroup
Get the originGroup property: A reference to the origin group.- Returns:
- the originGroup value.
-
withOriginGroup
Set the originGroup property: A reference to the origin group.- Parameters:
originGroup- the originGroup value to set.- Returns:
- the RouteUpdateParameters object itself.
-
originPath
Get the originPath property: 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 the originPath property: 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 the ruleSets property: rule sets referenced by this endpoint.- Returns:
- the ruleSets value.
-
withRuleSets
Set the ruleSets property: rule sets referenced by this endpoint.- Parameters:
ruleSets- the ruleSets value to set.- Returns:
- the RouteUpdateParameters object itself.
-
supportedProtocols
Get the supportedProtocols property: List of supported protocols for this route.- Returns:
- the supportedProtocols value.
-
withSupportedProtocols
Set the supportedProtocols property: List of supported protocols for this route.- Parameters:
supportedProtocols- the supportedProtocols value to set.- Returns:
- the RouteUpdateParameters object itself.
-
patternsToMatch
Get the patternsToMatch property: The route patterns of the rule.- Returns:
- the patternsToMatch value.
-
withPatternsToMatch
Set the patternsToMatch property: The route patterns of the rule.- Parameters:
patternsToMatch- the patternsToMatch value to set.- Returns:
- the RouteUpdateParameters object itself.
-
cacheConfiguration
Get the cacheConfiguration property: The caching configuration for this route. To disable caching, do not provide a cacheConfiguration object.- Returns:
- the cacheConfiguration value.
-
withCacheConfiguration
Set the cacheConfiguration property: The caching configuration for this route. To disable caching, do not provide a cacheConfiguration object.- Parameters:
cacheConfiguration- the cacheConfiguration value to set.- Returns:
- the RouteUpdateParameters object itself.
-
forwardingProtocol
Get the forwardingProtocol property: Protocol this rule will use when forwarding traffic to backends.- Returns:
- the forwardingProtocol value.
-
withForwardingProtocol
Set the forwardingProtocol property: Protocol this rule will use when forwarding traffic to backends.- Parameters:
forwardingProtocol- the forwardingProtocol value to set.- Returns:
- the RouteUpdateParameters object itself.
-
linkToDefaultDomain
Get the linkToDefaultDomain property: whether this route will be linked to the default endpoint domain.- Returns:
- the linkToDefaultDomain value.
-
withLinkToDefaultDomain
Set the linkToDefaultDomain property: whether this route will be linked to the default endpoint domain.- Parameters:
linkToDefaultDomain- the linkToDefaultDomain value to set.- Returns:
- the RouteUpdateParameters object itself.
-
httpsRedirect
Get 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.- Returns:
- the httpsRedirect value.
-
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.- Parameters:
httpsRedirect- the httpsRedirect value to set.- Returns:
- the RouteUpdateParameters object itself.
-
enabledState
Get the enabledState property: Whether to enable use of this rule. Permitted values are 'Enabled' or 'Disabled'.- Returns:
- the enabledState value.
-
withEnabledState
Set the enabledState property: Whether to enable use of this rule. Permitted values are 'Enabled' or 'Disabled'.- Parameters:
enabledState- the enabledState value to set.- Returns:
- the RouteUpdateParameters object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-