Class RouteInner
java.lang.Object
com.azure.core.management.ProxyResource
com.azure.resourcemanager.cdn.fluent.models.RouteInner
- All Implemented Interfaces:
com.azure.json.JsonSerializable<com.azure.core.management.ProxyResource>
public final class RouteInner
extends com.azure.core.management.ProxyResource
Friendly Routes name mapping to the any Routes or secret related information.
-
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 deploymentStatus property: The deploymentStatus property.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.static RouteInnerfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of RouteInner from the JsonReader.Get the httpsRedirect property: Whether to automatically redirect HTTP traffic to HTTPS traffic.id()Get the id property: Fully qualified resource Id for the resource.Get the linkToDefaultDomain property: whether this route will be linked to the default endpoint domain.name()Get the name property: The name of the resource.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. contoso.cloudapp.net/originpath.Get the patternsToMatch property: The route patterns of the rule.Get the provisioningState property: Provisioning status.ruleSets()Get the ruleSets property: rule sets referenced by this endpoint.Get the supportedProtocols property: List of supported protocols for this route.com.azure.core.management.SystemDataGet the systemData property: Read only system data.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) type()Get the type property: The type of the resource.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. contoso.cloudapp.net/originpath.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 Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
RouteInner
public RouteInner()Creates an instance of RouteInner class.
-
-
Method Details
-
systemData
public com.azure.core.management.SystemData systemData()Get the systemData property: Read only system data.- Returns:
- the systemData value.
-
type
Get the type property: The type of the resource.- Overrides:
typein classcom.azure.core.management.ProxyResource- Returns:
- the type value.
-
name
Get the name property: The name of the resource.- Overrides:
namein classcom.azure.core.management.ProxyResource- Returns:
- the name value.
-
id
Get the id property: Fully qualified resource Id for the resource.- Overrides:
idin classcom.azure.core.management.ProxyResource- Returns:
- the id value.
-
provisioningState
Get the provisioningState property: Provisioning status.- Returns:
- the provisioningState value.
-
deploymentStatus
Get the deploymentStatus property: The deploymentStatus property.- Returns:
- the deploymentStatus value.
-
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 RouteInner 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 RouteInner 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 RouteInner 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 RouteInner 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 RouteInner object itself.
-
patternsToMatch
-
withPatternsToMatch
Set the patternsToMatch property: The route patterns of the rule.- Parameters:
patternsToMatch- the patternsToMatch value to set.- Returns:
- the RouteInner 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 RouteInner 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 RouteInner 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 RouteInner 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 RouteInner 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 RouteInner object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<com.azure.core.management.ProxyResource>- Overrides:
toJsonin classcom.azure.core.management.ProxyResource- Throws:
IOException
-
fromJson
Reads an instance of RouteInner from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of RouteInner if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IllegalStateException- If the deserialized JSON object was missing any required properties.IOException- If an error occurs while reading the RouteInner.
-