Compartir a través de


FirewallPolicyRuleCollectionGroupDraftInner Class

public final class FirewallPolicyRuleCollectionGroupDraftInner
extends SubResource

Rule Collection Group resource.

Constructor Summary

Constructor Description
FirewallPolicyRuleCollectionGroupDraftInner()

Creates an instance of FirewallPolicyRuleCollectionGroupDraftInner class.

Method Summary

Modifier and Type Method and Description
static FirewallPolicyRuleCollectionGroupDraftInner fromJson(JsonReader jsonReader)

Reads an instance of FirewallPolicyRuleCollectionGroupDraftInner from the JsonReader.

String name()

Get the name property: The name of the resource that is unique within a resource group.

Integer priority()

Get the priority property: Priority of the Firewall Policy Rule Collection Group resource.

List<FirewallPolicyRuleCollection> ruleCollections()

Get the ruleCollections property: Group of Firewall Policy rule collections.

String size()

Get the size property: A read-only string that represents the size of the FirewallPolicyRuleCollectionGroupProperties in MB.

JsonWriter toJson(JsonWriter jsonWriter)
String type()

Get the type property: Rule Group type.

void validate()

Validates the instance.

FirewallPolicyRuleCollectionGroupDraftInner withId(String id)
FirewallPolicyRuleCollectionGroupDraftInner withName(String name)

Set the name property: The name of the resource that is unique within a resource group.

FirewallPolicyRuleCollectionGroupDraftInner withPriority(Integer priority)

Set the priority property: Priority of the Firewall Policy Rule Collection Group resource.

FirewallPolicyRuleCollectionGroupDraftInner withRuleCollections(List<FirewallPolicyRuleCollection> ruleCollections)

Set the ruleCollections property: Group of Firewall Policy rule collections.

Methods inherited from SubResource

Methods inherited from java.lang.Object

Constructor Details

FirewallPolicyRuleCollectionGroupDraftInner

public FirewallPolicyRuleCollectionGroupDraftInner()

Creates an instance of FirewallPolicyRuleCollectionGroupDraftInner class.

Method Details

fromJson

public static FirewallPolicyRuleCollectionGroupDraftInner fromJson(JsonReader jsonReader)

Reads an instance of FirewallPolicyRuleCollectionGroupDraftInner from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

name

public String name()

Get the name property: The name of the resource that is unique within a resource group. This name can be used to access the resource.

Returns:

the name value.

priority

public Integer priority()

Get the priority property: Priority of the Firewall Policy Rule Collection Group resource.

Returns:

the priority value.

ruleCollections

public List ruleCollections()

Get the ruleCollections property: Group of Firewall Policy rule collections.

Returns:

the ruleCollections value.

size

public String size()

Get the size property: A read-only string that represents the size of the FirewallPolicyRuleCollectionGroupProperties in MB. (ex 1.2MB).

Returns:

the size value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

FirewallPolicyRuleCollectionGroupDraftInner.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: Rule Group type.

Returns:

the type value.

validate

public void validate()

Validates the instance.

withId

public FirewallPolicyRuleCollectionGroupDraftInner withId(String id)

Overrides:

FirewallPolicyRuleCollectionGroupDraftInner.withId(String id)

Parameters:

id

withName

public FirewallPolicyRuleCollectionGroupDraftInner withName(String name)

Set the name property: The name of the resource that is unique within a resource group. This name can be used to access the resource.

Parameters:

name - the name value to set.

Returns:

the FirewallPolicyRuleCollectionGroupDraftInner object itself.

withPriority

public FirewallPolicyRuleCollectionGroupDraftInner withPriority(Integer priority)

Set the priority property: Priority of the Firewall Policy Rule Collection Group resource.

Parameters:

priority - the priority value to set.

Returns:

the FirewallPolicyRuleCollectionGroupDraftInner object itself.

withRuleCollections

public FirewallPolicyRuleCollectionGroupDraftInner withRuleCollections(List ruleCollections)

Set the ruleCollections property: Group of Firewall Policy rule collections.

Parameters:

ruleCollections - the ruleCollections value to set.

Returns:

the FirewallPolicyRuleCollectionGroupDraftInner object itself.

Applies to