RouteUpdatePropertiesParameters Class
- java.
lang. Object - com.
azure. resourcemanager. cdn. fluent. models. RouteUpdatePropertiesParameters
- com.
Implements
public class RouteUpdatePropertiesParameters
implements JsonSerializable<RouteUpdatePropertiesParameters>
The JSON object that contains the properties of the domain to create.
Constructor Summary
| Constructor | Description |
|---|---|
| RouteUpdatePropertiesParameters() |
Creates an instance of Route |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
Afd |
cacheConfiguration()
Get the cache |
|
List<Activated |
customDomains()
Get the custom |
|
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 |
|
Link |
linkToDefaultDomain()
Get the link |
|
Resource |
originGroup()
Get the origin |
| String |
originPath()
Get the origin |
| List<String> |
patternsToMatch()
Get the patterns |
|
List<Resource |
ruleSets()
Get the rule |
|
List<Afd |
supportedProtocols()
Get the supported |
|
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 java.lang.Object
Constructor Details
RouteUpdatePropertiesParameters
public RouteUpdatePropertiesParameters()
Creates an instance of RouteUpdatePropertiesParameters 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:
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 RouteUpdatePropertiesParameters fromJson(JsonReader jsonReader)
Reads an instance of RouteUpdatePropertiesParameters 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:
linkToDefaultDomain
public LinkToDefaultDomain linkToDefaultDomain()
Get the linkToDefaultDomain property: whether this route will be linked to the default endpoint domain.
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:
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:
toJson
validate
public void validate()
Validates the instance.
withCacheConfiguration
public RouteUpdatePropertiesParameters 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 RouteUpdatePropertiesParameters withCustomDomains(List<ActivatedResourceReference> customDomains)
Set the customDomains property: Domains referenced by this endpoint.
Parameters:
Returns:
withEnabledState
public RouteUpdatePropertiesParameters withEnabledState(EnabledState enabledState)
Set the enabledState property: Whether to enable use of this rule. Permitted values are 'Enabled' or 'Disabled'.
Parameters:
Returns:
withForwardingProtocol
public RouteUpdatePropertiesParameters withForwardingProtocol(ForwardingProtocol forwardingProtocol)
Set the forwardingProtocol property: Protocol this rule will use when forwarding traffic to backends.
Parameters:
Returns:
withHttpsRedirect
public RouteUpdatePropertiesParameters 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 RouteUpdatePropertiesParameters withLinkToDefaultDomain(LinkToDefaultDomain linkToDefaultDomain)
Set the linkToDefaultDomain property: whether this route will be linked to the default endpoint domain.
Parameters:
Returns:
withOriginGroup
public RouteUpdatePropertiesParameters withOriginGroup(ResourceReference originGroup)
Set the originGroup property: A reference to the origin group.
Parameters:
Returns:
withOriginPath
public RouteUpdatePropertiesParameters 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 RouteUpdatePropertiesParameters withPatternsToMatch(List<String> patternsToMatch)
Set the patternsToMatch property: The route patterns of the rule.
Parameters:
Returns:
withRuleSets
public RouteUpdatePropertiesParameters withRuleSets(List<ResourceReference> ruleSets)
Set the ruleSets property: rule sets referenced by this endpoint.
Parameters:
Returns:
withSupportedProtocols
public RouteUpdatePropertiesParameters withSupportedProtocols(List<AfdEndpointProtocols> supportedProtocols)
Set the supportedProtocols property: List of supported protocols for this route.
Parameters:
Returns: