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