ActiveBaseSecurityAdminRule Class

  • java.lang.Object
    • com.azure.resourcemanager.network.models.ActiveBaseSecurityAdminRule

Implements

public class ActiveBaseSecurityAdminRule
implements JsonSerializable<ActiveBaseSecurityAdminRule>

Network base admin rule.

Constructor Summary

Constructor Description
ActiveBaseSecurityAdminRule()

Creates an instance of ActiveBaseSecurityAdminRule class.

Method Summary

Modifier and Type Method and Description
OffsetDateTime commitTime()

Get the commitTime property: Deployment time string.

String configurationDescription()

Get the configurationDescription property: A description of the security admin configuration.

static ActiveBaseSecurityAdminRule fromJson(JsonReader jsonReader)

Reads an instance of ActiveBaseSecurityAdminRule from the JsonReader.

String id()

Get the id property: Resource ID.

EffectiveAdminRuleKind kind()

Get the kind property: Whether the rule is custom or default.

String region()

Get the region property: Deployment region.

List<NetworkManagerSecurityGroupItem> ruleCollectionAppliesToGroups()

Get the ruleCollectionAppliesToGroups property: Groups for rule collection.

String ruleCollectionDescription()

Get the ruleCollectionDescription property: A description of the rule collection.

List<ConfigurationGroup> ruleGroups()

Get the ruleGroups property: Effective configuration groups.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

ActiveBaseSecurityAdminRule withCommitTime(OffsetDateTime commitTime)

Set the commitTime property: Deployment time string.

ActiveBaseSecurityAdminRule withConfigurationDescription(String configurationDescription)

Set the configurationDescription property: A description of the security admin configuration.

ActiveBaseSecurityAdminRule withId(String id)

Set the id property: Resource ID.

ActiveBaseSecurityAdminRule withRegion(String region)

Set the region property: Deployment region.

ActiveBaseSecurityAdminRule withRuleCollectionAppliesToGroups(List<NetworkManagerSecurityGroupItem> ruleCollectionAppliesToGroups)

Set the ruleCollectionAppliesToGroups property: Groups for rule collection.

ActiveBaseSecurityAdminRule withRuleCollectionDescription(String ruleCollectionDescription)

Set the ruleCollectionDescription property: A description of the rule collection.

ActiveBaseSecurityAdminRule withRuleGroups(List<ConfigurationGroup> ruleGroups)

Set the ruleGroups property: Effective configuration groups.

Methods inherited from java.lang.Object

Constructor Details

ActiveBaseSecurityAdminRule

public ActiveBaseSecurityAdminRule()

Creates an instance of ActiveBaseSecurityAdminRule class.

Method Details

commitTime

public OffsetDateTime commitTime()

Get the commitTime property: Deployment time string.

Returns:

the commitTime value.

configurationDescription

public String configurationDescription()

Get the configurationDescription property: A description of the security admin configuration.

Returns:

the configurationDescription value.

fromJson

public static ActiveBaseSecurityAdminRule fromJson(JsonReader jsonReader)

Reads an instance of ActiveBaseSecurityAdminRule from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

id

public String id()

Get the id property: Resource ID.

Returns:

the id value.

kind

public EffectiveAdminRuleKind kind()

Get the kind property: Whether the rule is custom or default.

Returns:

the kind value.

region

public String region()

Get the region property: Deployment region.

Returns:

the region value.

ruleCollectionAppliesToGroups

public List ruleCollectionAppliesToGroups()

Get the ruleCollectionAppliesToGroups property: Groups for rule collection.

Returns:

the ruleCollectionAppliesToGroups value.

ruleCollectionDescription

public String ruleCollectionDescription()

Get the ruleCollectionDescription property: A description of the rule collection.

Returns:

the ruleCollectionDescription value.

ruleGroups

public List ruleGroups()

Get the ruleGroups property: Effective configuration groups.

Returns:

the ruleGroups value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withCommitTime

public ActiveBaseSecurityAdminRule withCommitTime(OffsetDateTime commitTime)

Set the commitTime property: Deployment time string.

Parameters:

commitTime - the commitTime value to set.

Returns:

the ActiveBaseSecurityAdminRule object itself.

withConfigurationDescription

public ActiveBaseSecurityAdminRule withConfigurationDescription(String configurationDescription)

Set the configurationDescription property: A description of the security admin configuration.

Parameters:

configurationDescription - the configurationDescription value to set.

Returns:

the ActiveBaseSecurityAdminRule object itself.

withId

public ActiveBaseSecurityAdminRule withId(String id)

Set the id property: Resource ID.

Parameters:

id - the id value to set.

Returns:

the ActiveBaseSecurityAdminRule object itself.

withRegion

public ActiveBaseSecurityAdminRule withRegion(String region)

Set the region property: Deployment region.

Parameters:

region - the region value to set.

Returns:

the ActiveBaseSecurityAdminRule object itself.

withRuleCollectionAppliesToGroups

public ActiveBaseSecurityAdminRule withRuleCollectionAppliesToGroups(List ruleCollectionAppliesToGroups)

Set the ruleCollectionAppliesToGroups property: Groups for rule collection.

Parameters:

ruleCollectionAppliesToGroups - the ruleCollectionAppliesToGroups value to set.

Returns:

the ActiveBaseSecurityAdminRule object itself.

withRuleCollectionDescription

public ActiveBaseSecurityAdminRule withRuleCollectionDescription(String ruleCollectionDescription)

Set the ruleCollectionDescription property: A description of the rule collection.

Parameters:

ruleCollectionDescription - the ruleCollectionDescription value to set.

Returns:

the ActiveBaseSecurityAdminRule object itself.

withRuleGroups

public ActiveBaseSecurityAdminRule withRuleGroups(List ruleGroups)

Set the ruleGroups property: Effective configuration groups.

Parameters:

ruleGroups - the ruleGroups value to set.

Returns:

the ActiveBaseSecurityAdminRule object itself.

Applies to