RouteUpdatePropertiesParameters Class

  • java.lang.Object
    • com.azure.resourcemanager.cdn.fluent.models.RouteUpdatePropertiesParameters

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 RouteUpdatePropertiesParameters class.

Method Summary

Modifier and Type Method and Description
AfdRouteCacheConfiguration cacheConfiguration()

Get the cacheConfiguration property: The caching configuration for this route.

List<ActivatedResourceReference> customDomains()

Get the customDomains property: Domains referenced by this endpoint.

EnabledState enabledState()

Get the enabledState property: Whether to enable use of this rule.

String endpointName()

Get the endpointName property: The name of the endpoint which holds the route.

ForwardingProtocol forwardingProtocol()

Get the forwardingProtocol property: Protocol this rule will use when forwarding traffic to backends.

static RouteUpdatePropertiesParameters fromJson(JsonReader jsonReader)

Reads an instance of RouteUpdatePropertiesParameters from the JsonReader.

HttpsRedirect httpsRedirect()

Get the httpsRedirect property: Whether to automatically redirect HTTP traffic to HTTPS traffic.

LinkToDefaultDomain linkToDefaultDomain()

Get the linkToDefaultDomain property: whether this route will be linked to the default endpoint domain.

ResourceReference originGroup()

Get the originGroup property: A reference to the origin group.

String originPath()

Get the originPath property: A directory path on the origin that AzureFrontDoor can use to retrieve content from, e.g.

List<String> patternsToMatch()

Get the patternsToMatch property: The route patterns of the rule.

List<ResourceReference> ruleSets()

Get the ruleSets property: rule sets referenced by this endpoint.

List<AfdEndpointProtocols> supportedProtocols()

Get the supportedProtocols property: List of supported protocols for this route.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

RouteUpdatePropertiesParameters withCacheConfiguration(AfdRouteCacheConfiguration cacheConfiguration)

Set the cacheConfiguration property: The caching configuration for this route.

RouteUpdatePropertiesParameters withCustomDomains(List<ActivatedResourceReference> customDomains)

Set the customDomains property: Domains referenced by this endpoint.

RouteUpdatePropertiesParameters withEnabledState(EnabledState enabledState)

Set the enabledState property: Whether to enable use of this rule.

RouteUpdatePropertiesParameters withForwardingProtocol(ForwardingProtocol forwardingProtocol)

Set the forwardingProtocol property: Protocol this rule will use when forwarding traffic to backends.

RouteUpdatePropertiesParameters withHttpsRedirect(HttpsRedirect httpsRedirect)

Set the httpsRedirect property: Whether to automatically redirect HTTP traffic to HTTPS traffic.

RouteUpdatePropertiesParameters withLinkToDefaultDomain(LinkToDefaultDomain linkToDefaultDomain)

Set the linkToDefaultDomain property: whether this route will be linked to the default endpoint domain.

RouteUpdatePropertiesParameters withOriginGroup(ResourceReference originGroup)

Set the originGroup property: A reference to the origin group.

RouteUpdatePropertiesParameters withOriginPath(String originPath)

Set the originPath property: A directory path on the origin that AzureFrontDoor can use to retrieve content from, e.g.

RouteUpdatePropertiesParameters withPatternsToMatch(List<String> patternsToMatch)

Set the patternsToMatch property: The route patterns of the rule.

RouteUpdatePropertiesParameters withRuleSets(List<ResourceReference> ruleSets)

Set the ruleSets property: rule sets referenced by this endpoint.

RouteUpdatePropertiesParameters withSupportedProtocols(List<AfdEndpointProtocols> supportedProtocols)

Set the supportedProtocols property: List of supported protocols for this route.

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:

the cacheConfiguration value.

customDomains

public List<ActivatedResourceReference> customDomains()

Get the customDomains property: Domains referenced by this endpoint.

Returns:

the customDomains value.

enabledState

public EnabledState enabledState()

Get the enabledState property: Whether to enable use of this rule. Permitted values are 'Enabled' or 'Disabled'.

Returns:

the enabledState value.

endpointName

public String endpointName()

Get the endpointName property: The name of the endpoint which holds the route.

Returns:

the endpointName value.

forwardingProtocol

public ForwardingProtocol forwardingProtocol()

Get the forwardingProtocol property: Protocol this rule will use when forwarding traffic to backends.

Returns:

the forwardingProtocol value.

fromJson

public static RouteUpdatePropertiesParameters fromJson(JsonReader jsonReader)

Reads an instance of RouteUpdatePropertiesParameters from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of RouteUpdatePropertiesParameters 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 RouteUpdatePropertiesParameters.

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:

the httpsRedirect value.

linkToDefaultDomain

public LinkToDefaultDomain linkToDefaultDomain()

Get the linkToDefaultDomain property: whether this route will be linked to the default endpoint domain.

Returns:

the linkToDefaultDomain value.

originGroup

public ResourceReference originGroup()

Get the originGroup property: A reference to the origin group.

Returns:

the originGroup value.

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:

the originPath value.

patternsToMatch

public List<String> patternsToMatch()

Get the patternsToMatch property: The route patterns of the rule.

Returns:

the patternsToMatch value.

ruleSets

public List<ResourceReference> ruleSets()

Get the ruleSets property: rule sets referenced by this endpoint.

Returns:

the ruleSets value.

supportedProtocols

public List<AfdEndpointProtocols> supportedProtocols()

Get the supportedProtocols property: List of supported protocols for this route.

Returns:

the supportedProtocols value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

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:

cacheConfiguration - the cacheConfiguration value to set.

Returns:

the RouteUpdatePropertiesParameters object itself.

withCustomDomains

public RouteUpdatePropertiesParameters withCustomDomains(List<ActivatedResourceReference> customDomains)

Set the customDomains property: Domains referenced by this endpoint.

Parameters:

customDomains - the customDomains value to set.

Returns:

the RouteUpdatePropertiesParameters object itself.

withEnabledState

public RouteUpdatePropertiesParameters withEnabledState(EnabledState enabledState)

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 RouteUpdatePropertiesParameters object itself.

withForwardingProtocol

public RouteUpdatePropertiesParameters withForwardingProtocol(ForwardingProtocol forwardingProtocol)

Set the forwardingProtocol property: Protocol this rule will use when forwarding traffic to backends.

Parameters:

forwardingProtocol - the forwardingProtocol value to set.

Returns:

the RouteUpdatePropertiesParameters object itself.

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:

httpsRedirect - the httpsRedirect value to set.

Returns:

the RouteUpdatePropertiesParameters object itself.

withLinkToDefaultDomain

public RouteUpdatePropertiesParameters withLinkToDefaultDomain(LinkToDefaultDomain linkToDefaultDomain)

Set the linkToDefaultDomain property: whether this route will be linked to the default endpoint domain.

Parameters:

linkToDefaultDomain - the linkToDefaultDomain value to set.

Returns:

the RouteUpdatePropertiesParameters object itself.

withOriginGroup

public RouteUpdatePropertiesParameters withOriginGroup(ResourceReference originGroup)

Set the originGroup property: A reference to the origin group.

Parameters:

originGroup - the originGroup value to set.

Returns:

the RouteUpdatePropertiesParameters object itself.

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:

originPath - the originPath value to set.

Returns:

the RouteUpdatePropertiesParameters object itself.

withPatternsToMatch

public RouteUpdatePropertiesParameters withPatternsToMatch(List<String> patternsToMatch)

Set the patternsToMatch property: The route patterns of the rule.

Parameters:

patternsToMatch - the patternsToMatch value to set.

Returns:

the RouteUpdatePropertiesParameters object itself.

withRuleSets

public RouteUpdatePropertiesParameters withRuleSets(List<ResourceReference> ruleSets)

Set the ruleSets property: rule sets referenced by this endpoint.

Parameters:

ruleSets - the ruleSets value to set.

Returns:

the RouteUpdatePropertiesParameters object itself.

withSupportedProtocols

public RouteUpdatePropertiesParameters withSupportedProtocols(List<AfdEndpointProtocols> supportedProtocols)

Set the supportedProtocols property: List of supported protocols for this route.

Parameters:

supportedProtocols - the supportedProtocols value to set.

Returns:

the RouteUpdatePropertiesParameters object itself.

Applies to