Class RouteUpdateParameters
- java.lang.Object
-
- com.azure.resourcemanager.cdn.models.RouteUpdateParameters
-
public final class RouteUpdateParameters extends Object
The domain JSON object required for domain creation or update.
-
-
Constructor Summary
Constructors Constructor Description RouteUpdateParameters()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AfdRouteCacheConfigurationcacheConfiguration()Get the cacheConfiguration property: The caching configuration for this route.List<ActivatedResourceReference>customDomains()Get the customDomains property: Domains referenced by this endpoint.EnabledStateenabledState()Get the enabledState property: Whether to enable use of this rule.StringendpointName()Get the endpointName property: The name of the endpoint which holds the route.ForwardingProtocolforwardingProtocol()Get the forwardingProtocol property: Protocol this rule will use when forwarding traffic to backends.HttpsRedirecthttpsRedirect()Get the httpsRedirect property: Whether to automatically redirect HTTP traffic to HTTPS traffic.LinkToDefaultDomainlinkToDefaultDomain()Get the linkToDefaultDomain property: whether this route will be linked to the default endpoint domain.ResourceReferenceoriginGroup()Get the originGroup property: A reference to the origin group.StringoriginPath()Get the originPath property: A directory path on the origin that AzureFrontDoor can use to retrieve content from, e.g.List<String>patternsToMatch()Get the patternsToMatch property: The route patterns of the rule.List<ResourceReference>ruleSets()Get the ruleSets property: rule sets referenced by this endpoint.List<AfdEndpointProtocols>supportedProtocols()Get the supportedProtocols property: List of supported protocols for this route.voidvalidate()Validates the instance.RouteUpdateParameterswithCacheConfiguration(AfdRouteCacheConfiguration cacheConfiguration)Set the cacheConfiguration property: The caching configuration for this route.RouteUpdateParameterswithCustomDomains(List<ActivatedResourceReference> customDomains)Set the customDomains property: Domains referenced by this endpoint.RouteUpdateParameterswithEnabledState(EnabledState enabledState)Set the enabledState property: Whether to enable use of this rule.RouteUpdateParameterswithForwardingProtocol(ForwardingProtocol forwardingProtocol)Set the forwardingProtocol property: Protocol this rule will use when forwarding traffic to backends.RouteUpdateParameterswithHttpsRedirect(HttpsRedirect httpsRedirect)Set the httpsRedirect property: Whether to automatically redirect HTTP traffic to HTTPS traffic.RouteUpdateParameterswithLinkToDefaultDomain(LinkToDefaultDomain linkToDefaultDomain)Set the linkToDefaultDomain property: whether this route will be linked to the default endpoint domain.RouteUpdateParameterswithOriginGroup(ResourceReference originGroup)Set the originGroup property: A reference to the origin group.RouteUpdateParameterswithOriginPath(String originPath)Set the originPath property: A directory path on the origin that AzureFrontDoor can use to retrieve content from, e.g.RouteUpdateParameterswithPatternsToMatch(List<String> patternsToMatch)Set the patternsToMatch property: The route patterns of the rule.RouteUpdateParameterswithRuleSets(List<ResourceReference> ruleSets)Set the ruleSets property: rule sets referenced by this endpoint.RouteUpdateParameterswithSupportedProtocols(List<AfdEndpointProtocols> supportedProtocols)Set the supportedProtocols property: List of supported protocols for this route.
-
-
-
Method Detail
-
endpointName
public String endpointName()
Get the endpointName property: The name of the endpoint which holds the route.- Returns:
- the endpointName value.
-
customDomains
public List<ActivatedResourceReference> customDomains()
Get the customDomains property: Domains referenced by this endpoint.- Returns:
- the customDomains value.
-
withCustomDomains
public RouteUpdateParameters withCustomDomains(List<ActivatedResourceReference> customDomains)
Set the customDomains property: Domains referenced by this endpoint.- Parameters:
customDomains- the customDomains value to set.- Returns:
- the RouteUpdateParameters object itself.
-
originGroup
public ResourceReference originGroup()
Get the originGroup property: A reference to the origin group.- Returns:
- the originGroup value.
-
withOriginGroup
public RouteUpdateParameters withOriginGroup(ResourceReference originGroup)
Set the originGroup property: A reference to the origin group.- Parameters:
originGroup- the originGroup value to set.- Returns:
- the RouteUpdateParameters object itself.
-
originPath
public String 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
public RouteUpdateParameters 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.- Parameters:
originPath- the originPath value to set.- Returns:
- the RouteUpdateParameters object itself.
-
ruleSets
public List<ResourceReference> ruleSets()
Get the ruleSets property: rule sets referenced by this endpoint.- Returns:
- the ruleSets value.
-
withRuleSets
public RouteUpdateParameters withRuleSets(List<ResourceReference> ruleSets)
Set the ruleSets property: rule sets referenced by this endpoint.- Parameters:
ruleSets- the ruleSets value to set.- Returns:
- the RouteUpdateParameters object itself.
-
supportedProtocols
public List<AfdEndpointProtocols> supportedProtocols()
Get the supportedProtocols property: List of supported protocols for this route.- Returns:
- the supportedProtocols value.
-
withSupportedProtocols
public RouteUpdateParameters withSupportedProtocols(List<AfdEndpointProtocols> supportedProtocols)
Set the supportedProtocols property: List of supported protocols for this route.- Parameters:
supportedProtocols- the supportedProtocols value to set.- Returns:
- the RouteUpdateParameters object itself.
-
patternsToMatch
public List<String> patternsToMatch()
Get the patternsToMatch property: The route patterns of the rule.- Returns:
- the patternsToMatch value.
-
withPatternsToMatch
public RouteUpdateParameters withPatternsToMatch(List<String> patternsToMatch)
Set the patternsToMatch property: The route patterns of the rule.- Parameters:
patternsToMatch- the patternsToMatch value to set.- Returns:
- the RouteUpdateParameters object itself.
-
cacheConfiguration
public AfdRouteCacheConfiguration 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
public RouteUpdateParameters withCacheConfiguration(AfdRouteCacheConfiguration cacheConfiguration)
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
public ForwardingProtocol forwardingProtocol()
Get the forwardingProtocol property: Protocol this rule will use when forwarding traffic to backends.- Returns:
- the forwardingProtocol value.
-
withForwardingProtocol
public RouteUpdateParameters withForwardingProtocol(ForwardingProtocol forwardingProtocol)
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
public LinkToDefaultDomain linkToDefaultDomain()
Get the linkToDefaultDomain property: whether this route will be linked to the default endpoint domain.- Returns:
- the linkToDefaultDomain value.
-
withLinkToDefaultDomain
public RouteUpdateParameters withLinkToDefaultDomain(LinkToDefaultDomain linkToDefaultDomain)
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
public HttpsRedirect 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
public RouteUpdateParameters 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.- Parameters:
httpsRedirect- the httpsRedirect value to set.- Returns:
- the RouteUpdateParameters object itself.
-
enabledState
public EnabledState enabledState()
Get the enabledState property: Whether to enable use of this rule. Permitted values are 'Enabled' or 'Disabled'.- Returns:
- the enabledState value.
-
withEnabledState
public RouteUpdateParameters withEnabledState(EnabledState enabledState)
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.
-
-