RouteProperties Class
- java.
lang. Object - com.
azure. resourcemanager. cdn. fluent. models. RouteUpdatePropertiesParameters - com.
azure. resourcemanager. cdn. fluent. models. RouteProperties
- com.
- com.
public final class RouteProperties
extends RouteUpdatePropertiesParameters
The JSON object that contains the properties of the Routes to create.
Constructor Summary
| Constructor | Description |
|---|---|
| RouteProperties() |
Creates an instance of Route |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
Deployment |
deploymentStatus()
Get the deployment |
| String |
endpointName()
Get the endpoint |
|
static
Route |
fromJson(JsonReader jsonReader)
Reads an instance of Route |
|
Afd |
provisioningState()
Get the provisioning |
|
Json |
toJson(JsonWriter jsonWriter) |
| void |
validate()
Validates the instance. |
|
Route |
withCacheConfiguration(AfdRouteCacheConfiguration cacheConfiguration)
Set the cache |
|
Route |
withCustomDomains(List<ActivatedResourceReference> customDomains)
Set the custom |
|
Route |
withEnabledState(EnabledState enabledState)
Set the enabled |
|
Route |
withForwardingProtocol(ForwardingProtocol forwardingProtocol)
Set the forwarding |
|
Route |
withHttpsRedirect(HttpsRedirect httpsRedirect)
Set the https |
|
Route |
withLinkToDefaultDomain(LinkToDefaultDomain linkToDefaultDomain)
Set the link |
|
Route |
withOriginGroup(ResourceReference originGroup)
Set the origin |
|
Route |
withOriginPath(String originPath)
Set the origin |
|
Route |
withPatternsToMatch(List<String> patternsToMatch)
Set the patterns |
|
Route |
withRuleSets(List<ResourceReference> ruleSets)
Set the rule |
|
Route |
withSupportedProtocols(List<AfdEndpointProtocols> supportedProtocols)
Set the supported |
Methods inherited from RouteUpdatePropertiesParameters
Methods inherited from java.lang.Object
Constructor Details
RouteProperties
public RouteProperties()
Creates an instance of RouteProperties class.
Method Details
deploymentStatus
public DeploymentStatus deploymentStatus()
Get the deploymentStatus property: The deploymentStatus property.
Returns:
endpointName
public String endpointName()
Get the endpointName property: The name of the endpoint which holds the route.
Overrides:
RouteProperties.endpointName()Returns:
fromJson
public static RouteProperties fromJson(JsonReader jsonReader)
Reads an instance of RouteProperties from the JsonReader.
Parameters:
Returns:
Throws:
provisioningState
public AfdProvisioningState provisioningState()
Get the provisioningState property: Provisioning status.
Returns:
toJson
public JsonWriter toJson(JsonWriter jsonWriter)
Overrides:
RouteProperties.toJson(JsonWriter jsonWriter)Parameters:
Throws:
validate
public void validate()
Validates the instance.
Overrides:
RouteProperties.validate()withCacheConfiguration
public RouteProperties withCacheConfiguration(AfdRouteCacheConfiguration cacheConfiguration)
Set the cacheConfiguration property: The caching configuration for this route. To disable caching, do not provide a cacheConfiguration object.
Overrides:
RouteProperties.withCacheConfiguration(AfdRouteCacheConfiguration cacheConfiguration)Parameters:
withCustomDomains
public RouteProperties withCustomDomains(List<ActivatedResourceReference> customDomains)
Set the customDomains property: Domains referenced by this endpoint.
Overrides:
RouteProperties.withCustomDomains(List<ActivatedResourceReference> customDomains)Parameters:
withEnabledState
public RouteProperties withEnabledState(EnabledState enabledState)
Set the enabledState property: Whether to enable use of this rule. Permitted values are 'Enabled' or 'Disabled'.
Overrides:
RouteProperties.withEnabledState(EnabledState enabledState)Parameters:
withForwardingProtocol
public RouteProperties withForwardingProtocol(ForwardingProtocol forwardingProtocol)
Set the forwardingProtocol property: Protocol this rule will use when forwarding traffic to backends.
Overrides:
RouteProperties.withForwardingProtocol(ForwardingProtocol forwardingProtocol)Parameters:
withHttpsRedirect
public RouteProperties 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.
Overrides:
RouteProperties.withHttpsRedirect(HttpsRedirect httpsRedirect)Parameters:
withLinkToDefaultDomain
public RouteProperties withLinkToDefaultDomain(LinkToDefaultDomain linkToDefaultDomain)
Set the linkToDefaultDomain property: whether this route will be linked to the default endpoint domain.
Overrides:
RouteProperties.withLinkToDefaultDomain(LinkToDefaultDomain linkToDefaultDomain)Parameters:
withOriginGroup
public RouteProperties withOriginGroup(ResourceReference originGroup)
Set the originGroup property: A reference to the origin group.
Overrides:
RouteProperties.withOriginGroup(ResourceReference originGroup)Parameters:
withOriginPath
public RouteProperties 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.
Overrides:
RouteProperties.withOriginPath(String originPath)Parameters:
withPatternsToMatch
public RouteProperties withPatternsToMatch(List<String> patternsToMatch)
Set the patternsToMatch property: The route patterns of the rule.
Overrides:
RouteProperties.withPatternsToMatch(List<String> patternsToMatch)Parameters:
withRuleSets
public RouteProperties withRuleSets(List<ResourceReference> ruleSets)
Set the ruleSets property: rule sets referenced by this endpoint.
Overrides:
RouteProperties.withRuleSets(List<ResourceReference> ruleSets)Parameters:
withSupportedProtocols
public RouteProperties withSupportedProtocols(List<AfdEndpointProtocols> supportedProtocols)
Set the supportedProtocols property: List of supported protocols for this route.
Overrides:
RouteProperties.withSupportedProtocols(List<AfdEndpointProtocols> supportedProtocols)Parameters: