RuleSetInner Class

public final class RuleSetInner
extends ProxyResource

Friendly RuleSet name mapping to the any RuleSet or secret related information.

Constructor Summary

Constructor Description
RuleSetInner()

Creates an instance of RuleSetInner class.

Method Summary

Modifier and Type Method and Description
Boolean batchMode()

Get the batchMode property: Indicates whether rule set is in batch mode.

DeploymentStatus deploymentStatus()

Get the deploymentStatus property: The deploymentStatus property.

static RuleSetInner fromJson(JsonReader jsonReader)

Reads an instance of RuleSetInner from the JsonReader.

String id()

Get the id property: Fully qualified resource Id for the resource.

String name()

Get the name property: The name of the resource.

String profileName()

Get the profileName property: The name of the profile which holds the rule set.

AfdProvisioningState provisioningState()

Get the provisioningState property: Provisioning status.

List<BatchRuleProperties> rules()

Get the rules property: A list of rules that are part of this rule set provided the rule set is in batch mode.

SystemData systemData()

Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.

JsonWriter toJson(JsonWriter jsonWriter)
String type()

Get the type property: The type of the resource.

void validate()

Validates the instance.

RuleSetInner withBatchMode(Boolean batchMode)

Set the batchMode property: Indicates whether rule set is in batch mode.

RuleSetInner withRules(List<BatchRuleProperties> rules)

Set the rules property: A list of rules that are part of this rule set provided the rule set is in batch mode.

Methods inherited from ProxyResource

Methods inherited from java.lang.Object

Constructor Details

RuleSetInner

public RuleSetInner()

Creates an instance of RuleSetInner class.

Method Details

batchMode

public Boolean batchMode()

Get the batchMode property: Indicates whether rule set is in batch mode. When batch mode is enabled, rules will be processed in a batch along with the rule set. When batch mode is disabled, rules would need to be processed independently. This property can only be set during rule set creation and cannot be updated later. For switching modes, a new rule set needs to be created with the desired mode and rules need to be migrated to the new rule set.

Returns:

the batchMode value.

deploymentStatus

public DeploymentStatus deploymentStatus()

Get the deploymentStatus property: The deploymentStatus property.

Returns:

the deploymentStatus value.

fromJson

public static RuleSetInner fromJson(JsonReader jsonReader)

Reads an instance of RuleSetInner from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of RuleSetInner if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

id

public String id()

Get the id property: Fully qualified resource Id for the resource.

Overrides:

RuleSetInner.id()

Returns:

the id value.

name

public String name()

Get the name property: The name of the resource.

Overrides:

RuleSetInner.name()

Returns:

the name value.

profileName

public String profileName()

Get the profileName property: The name of the profile which holds the rule set.

Returns:

the profileName value.

provisioningState

public AfdProvisioningState provisioningState()

Get the provisioningState property: Provisioning status.

Returns:

the provisioningState value.

rules

public List<BatchRuleProperties> rules()

Get the rules property: A list of rules that are part of this rule set provided the rule set is in batch mode. This property will be ignored if the rule set is not in batch mode.

Returns:

the rules value.

systemData

public SystemData systemData()

Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.

Returns:

the systemData value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

RuleSetInner.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: The type of the resource.

Overrides:

RuleSetInner.type()

Returns:

the type value.

validate

public void validate()

Validates the instance.

withBatchMode

public RuleSetInner withBatchMode(Boolean batchMode)

Set the batchMode property: Indicates whether rule set is in batch mode. When batch mode is enabled, rules will be processed in a batch along with the rule set. When batch mode is disabled, rules would need to be processed independently. This property can only be set during rule set creation and cannot be updated later. For switching modes, a new rule set needs to be created with the desired mode and rules need to be migrated to the new rule set.

Parameters:

batchMode - the batchMode value to set.

Returns:

the RuleSetInner object itself.

withRules

public RuleSetInner withRules(List<BatchRuleProperties> rules)

Set the rules property: A list of rules that are part of this rule set provided the rule set is in batch mode. This property will be ignored if the rule set is not in batch mode.

Parameters:

rules - the rules value to set.

Returns:

the RuleSetInner object itself.

Applies to