Class RouteInner
- java.lang.Object
-
- com.azure.core.management.ProxyResource
-
- com.azure.resourcemanager.cdn.fluent.models.RouteInner
-
public class RouteInner extends com.azure.core.management.ProxyResourceFriendly Routes name mapping to the any Routes or secret related information.
-
-
Constructor Summary
Constructors Constructor Description RouteInner()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ObjectcompressionSettings()Get the compressionSettings property: compression settings.List<ResourceReference>customDomains()Get the customDomains property: Domains referenced by this endpoint.DeploymentStatusdeploymentStatus()Get the deploymentStatus property: The deploymentStatus property.EnabledStateenabledState()Get the enabledState property: Whether to enable use of this rule.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.AfdProvisioningStateprovisioningState()Get the provisioningState property: Provisioning status.AfdQueryStringCachingBehaviorqueryStringCachingBehavior()Get the queryStringCachingBehavior property: Defines how CDN caches requests that include query strings.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.SystemDatasystemData()Get the systemData property: Read only system data.voidvalidate()Validates the instance.RouteInnerwithCompressionSettings(Object compressionSettings)Set the compressionSettings property: compression settings.RouteInnerwithCustomDomains(List<ResourceReference> customDomains)Set the customDomains property: Domains referenced by this endpoint.RouteInnerwithEnabledState(EnabledState enabledState)Set the enabledState property: Whether to enable use of this rule.RouteInnerwithForwardingProtocol(ForwardingProtocol forwardingProtocol)Set the forwardingProtocol property: Protocol this rule will use when forwarding traffic to backends.RouteInnerwithHttpsRedirect(HttpsRedirect httpsRedirect)Set the httpsRedirect property: Whether to automatically redirect HTTP traffic to HTTPS traffic.RouteInnerwithLinkToDefaultDomain(LinkToDefaultDomain linkToDefaultDomain)Set the linkToDefaultDomain property: whether this route will be linked to the default endpoint domain.RouteInnerwithOriginGroup(ResourceReference originGroup)Set the originGroup property: A reference to the origin group.RouteInnerwithOriginPath(String originPath)Set the originPath property: A directory path on the origin that AzureFrontDoor can use to retrieve content from, e.g.RouteInnerwithPatternsToMatch(List<String> patternsToMatch)Set the patternsToMatch property: The route patterns of the rule.RouteInnerwithQueryStringCachingBehavior(AfdQueryStringCachingBehavior queryStringCachingBehavior)Set the queryStringCachingBehavior property: Defines how CDN caches requests that include query strings.RouteInnerwithRuleSets(List<ResourceReference> ruleSets)Set the ruleSets property: rule sets referenced by this endpoint.RouteInnerwithSupportedProtocols(List<AfdEndpointProtocols> supportedProtocols)Set the supportedProtocols property: List of supported protocols for this route.
-
-
-
Method Detail
-
customDomains
public List<ResourceReference> customDomains()
Get the customDomains property: Domains referenced by this endpoint.- Returns:
- the customDomains value.
-
withCustomDomains
public RouteInner withCustomDomains(List<ResourceReference> customDomains)
Set the customDomains property: Domains referenced by this endpoint.- Parameters:
customDomains- the customDomains value to set.- Returns:
- the RouteInner object itself.
-
originGroup
public ResourceReference originGroup()
Get the originGroup property: A reference to the origin group.- Returns:
- the originGroup value.
-
withOriginGroup
public RouteInner withOriginGroup(ResourceReference originGroup)
Set the originGroup property: A reference to the origin group.- Parameters:
originGroup- the originGroup value to set.- Returns:
- the RouteInner 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 RouteInner 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 RouteInner object itself.
-
ruleSets
public List<ResourceReference> ruleSets()
Get the ruleSets property: rule sets referenced by this endpoint.- Returns:
- the ruleSets value.
-
withRuleSets
public RouteInner withRuleSets(List<ResourceReference> ruleSets)
Set the ruleSets property: rule sets referenced by this endpoint.- Parameters:
ruleSets- the ruleSets value to set.- Returns:
- the RouteInner object itself.
-
supportedProtocols
public List<AfdEndpointProtocols> supportedProtocols()
Get the supportedProtocols property: List of supported protocols for this route.- Returns:
- the supportedProtocols value.
-
withSupportedProtocols
public RouteInner withSupportedProtocols(List<AfdEndpointProtocols> supportedProtocols)
Set the supportedProtocols property: List of supported protocols for this route.- Parameters:
supportedProtocols- the supportedProtocols value to set.- Returns:
- the RouteInner object itself.
-
patternsToMatch
public List<String> patternsToMatch()
Get the patternsToMatch property: The route patterns of the rule.- Returns:
- the patternsToMatch value.
-
withPatternsToMatch
public RouteInner withPatternsToMatch(List<String> patternsToMatch)
Set the patternsToMatch property: The route patterns of the rule.- Parameters:
patternsToMatch- the patternsToMatch value to set.- Returns:
- the RouteInner object itself.
-
compressionSettings
public Object compressionSettings()
Get the compressionSettings property: compression settings.- Returns:
- the compressionSettings value.
-
withCompressionSettings
public RouteInner withCompressionSettings(Object compressionSettings)
Set the compressionSettings property: compression settings.- Parameters:
compressionSettings- the compressionSettings value to set.- Returns:
- the RouteInner object itself.
-
queryStringCachingBehavior
public AfdQueryStringCachingBehavior queryStringCachingBehavior()
Get 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.- Returns:
- the queryStringCachingBehavior value.
-
withQueryStringCachingBehavior
public RouteInner 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.- Parameters:
queryStringCachingBehavior- the queryStringCachingBehavior value to set.- Returns:
- the RouteInner 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 RouteInner 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 RouteInner 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 RouteInner 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 RouteInner 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 RouteInner 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 RouteInner 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 RouteInner 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 RouteInner object itself.
-
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.
-
systemData
public SystemData systemData()
Get the systemData property: Read only system data.- Returns:
- the systemData value.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
-