Class RouteProperties
java.lang.Object
com.azure.resourcemanager.cdn.fluent.models.RouteUpdatePropertiesParameters
com.azure.resourcemanager.cdn.fluent.models.RouteProperties
- All Implemented Interfaces:
com.azure.json.JsonSerializable<RouteUpdatePropertiesParameters>
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 endpointName property: The name of the endpoint which holds the route.static RoutePropertiesfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of RouteProperties from the JsonReader.Get the provisioningState property: Provisioning status.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) 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 com.azure.resourcemanager.cdn.fluent.models.RouteUpdatePropertiesParameters
cacheConfiguration, customDomains, enabledState, forwardingProtocol, httpsRedirect, linkToDefaultDomain, originGroup, originPath, patternsToMatch, ruleSets, supportedProtocolsMethods inherited from class java.lang.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
-
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.
-
endpointName
Get the endpointName property: The name of the endpoint which holds the route.- Overrides:
endpointNamein classRouteUpdatePropertiesParameters- Returns:
- the endpointName 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.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<RouteUpdatePropertiesParameters>- Overrides:
toJsonin classRouteUpdatePropertiesParameters- Throws:
IOException
-
fromJson
Reads an instance of RouteProperties from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of RouteProperties if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IOException- If an error occurs while reading the RouteProperties.
-