Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT License. See License.txt in the project root for license information. Code generated by Microsoft (R) AutoRest Code Generator.
/** * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. * * Code generated by Microsoft (R) AutoRest Code Generator. */
package com.microsoft.azure.management.cdn.implementation; import java.util.List; import com.microsoft.azure.management.cdn.DeliveryRuleCondition; import com.microsoft.azure.management.cdn.DeliveryRuleAction; import com.microsoft.azure.management.cdn.MatchProcessingBehavior; import com.microsoft.azure.management.cdn.AfdProvisioningState; import com.microsoft.azure.management.cdn.DeploymentStatus; import com.microsoft.azure.management.cdn.SystemData; import com.fasterxml.jackson.annotation.JsonProperty; import com.microsoft.rest.serializer.JsonFlatten; import com.microsoft.azure.ProxyResource;
Friendly Rules name mapping to the any Rules or secret related information.
/** * Friendly Rules name mapping to the any Rules or secret related information. */
@JsonFlatten public class RuleInner extends ProxyResource {
The order in which the rules are applied for the endpoint. Possible values {0,1,2,3,………}. A rule with a lesser order will be applied before a rule with a greater order. Rule with order 0 is a special rule. It does not require any condition and actions listed in it will always be applied.
/** * The order in which the rules are applied for the endpoint. Possible * values {0,1,2,3,………}. A rule with a lesser order will be applied before * a rule with a greater order. Rule with order 0 is a special rule. It * does not require any condition and actions listed in it will always be * applied. */
@JsonProperty(value = "properties.order", required = true) private int order;
A list of conditions that must be matched for the actions to be executed.
/** * A list of conditions that must be matched for the actions to be * executed. */
@JsonProperty(value = "properties.conditions") private List<DeliveryRuleCondition> conditions;
A list of actions that are executed when all the conditions of a rule are satisfied.
/** * A list of actions that are executed when all the conditions of a rule * are satisfied. */
@JsonProperty(value = "properties.actions", required = true) private List<DeliveryRuleAction> actions;
If this rule is a match should the rules engine continue running the remaining rules or stop. If not present, defaults to Continue. Possible values include: 'Continue', 'Stop'.
/** * If this rule is a match should the rules engine continue running the * remaining rules or stop. If not present, defaults to Continue. Possible * values include: 'Continue', 'Stop'. */
@JsonProperty(value = "properties.matchProcessingBehavior") private MatchProcessingBehavior matchProcessingBehavior;
Provisioning status. Possible values include: 'Succeeded', 'Failed', 'Updating', 'Deleting', 'Creating'.
/** * Provisioning status. Possible values include: 'Succeeded', 'Failed', * 'Updating', 'Deleting', 'Creating'. */
@JsonProperty(value = "properties.provisioningState", access = JsonProperty.Access.WRITE_ONLY) private AfdProvisioningState provisioningState;
Possible values include: 'NotStarted', 'InProgress', 'Succeeded', 'Failed'.
/** * Possible values include: 'NotStarted', 'InProgress', 'Succeeded', * 'Failed'. */
@JsonProperty(value = "properties.deploymentStatus", access = JsonProperty.Access.WRITE_ONLY) private DeploymentStatus deploymentStatus;
The systemData property.
/** * The systemData property. */
@JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY) private SystemData systemData;
Get the order in which the rules are applied for the endpoint. Possible values {0,1,2,3,………}. A rule with a lesser order will be applied before a rule with a greater order. Rule with order 0 is a special rule. It does not require any condition and actions listed in it will always be applied.
Returns:the order value
/** * Get the order in which the rules are applied for the endpoint. Possible values {0,1,2,3,………}. A rule with a lesser order will be applied before a rule with a greater order. Rule with order 0 is a special rule. It does not require any condition and actions listed in it will always be applied. * * @return the order value */
public int order() { return this.order; }
Set the order in which the rules are applied for the endpoint. Possible values {0,1,2,3,………}. A rule with a lesser order will be applied before a rule with a greater order. Rule with order 0 is a special rule. It does not require any condition and actions listed in it will always be applied.
Params:
  • order – the order value to set
Returns:the RuleInner object itself.
/** * Set the order in which the rules are applied for the endpoint. Possible values {0,1,2,3,………}. A rule with a lesser order will be applied before a rule with a greater order. Rule with order 0 is a special rule. It does not require any condition and actions listed in it will always be applied. * * @param order the order value to set * @return the RuleInner object itself. */
public RuleInner withOrder(int order) { this.order = order; return this; }
Get a list of conditions that must be matched for the actions to be executed.
Returns:the conditions value
/** * Get a list of conditions that must be matched for the actions to be executed. * * @return the conditions value */
public List<DeliveryRuleCondition> conditions() { return this.conditions; }
Set a list of conditions that must be matched for the actions to be executed.
Params:
  • conditions – the conditions value to set
Returns:the RuleInner object itself.
/** * Set a list of conditions that must be matched for the actions to be executed. * * @param conditions the conditions value to set * @return the RuleInner object itself. */
public RuleInner withConditions(List<DeliveryRuleCondition> conditions) { this.conditions = conditions; return this; }
Get a list of actions that are executed when all the conditions of a rule are satisfied.
Returns:the actions value
/** * Get a list of actions that are executed when all the conditions of a rule are satisfied. * * @return the actions value */
public List<DeliveryRuleAction> actions() { return this.actions; }
Set a list of actions that are executed when all the conditions of a rule are satisfied.
Params:
  • actions – the actions value to set
Returns:the RuleInner object itself.
/** * Set a list of actions that are executed when all the conditions of a rule are satisfied. * * @param actions the actions value to set * @return the RuleInner object itself. */
public RuleInner withActions(List<DeliveryRuleAction> actions) { this.actions = actions; return this; }
Get if this rule is a match should the rules engine continue running the remaining rules or stop. If not present, defaults to Continue. Possible values include: 'Continue', 'Stop'.
Returns:the matchProcessingBehavior value
/** * Get if this rule is a match should the rules engine continue running the remaining rules or stop. If not present, defaults to Continue. Possible values include: 'Continue', 'Stop'. * * @return the matchProcessingBehavior value */
public MatchProcessingBehavior matchProcessingBehavior() { return this.matchProcessingBehavior; }
Set if this rule is a match should the rules engine continue running the remaining rules or stop. If not present, defaults to Continue. Possible values include: 'Continue', 'Stop'.
Params:
  • matchProcessingBehavior – the matchProcessingBehavior value to set
Returns:the RuleInner object itself.
/** * Set if this rule is a match should the rules engine continue running the remaining rules or stop. If not present, defaults to Continue. Possible values include: 'Continue', 'Stop'. * * @param matchProcessingBehavior the matchProcessingBehavior value to set * @return the RuleInner object itself. */
public RuleInner withMatchProcessingBehavior(MatchProcessingBehavior matchProcessingBehavior) { this.matchProcessingBehavior = matchProcessingBehavior; return this; }
Get provisioning status. Possible values include: 'Succeeded', 'Failed', 'Updating', 'Deleting', 'Creating'.
Returns:the provisioningState value
/** * Get provisioning status. Possible values include: 'Succeeded', 'Failed', 'Updating', 'Deleting', 'Creating'. * * @return the provisioningState value */
public AfdProvisioningState provisioningState() { return this.provisioningState; }
Get possible values include: 'NotStarted', 'InProgress', 'Succeeded', 'Failed'.
Returns:the deploymentStatus value
/** * Get possible values include: 'NotStarted', 'InProgress', 'Succeeded', 'Failed'. * * @return the deploymentStatus value */
public DeploymentStatus deploymentStatus() { return this.deploymentStatus; }
Get the systemData value.
Returns:the systemData value
/** * Get the systemData value. * * @return the systemData value */
public SystemData systemData() { return this.systemData; } }