Class ActiveBaseSecurityAdminRule
java.lang.Object
com.azure.resourcemanager.network.models.ActiveBaseSecurityAdminRule
- All Implemented Interfaces:
com.azure.json.JsonSerializable<ActiveBaseSecurityAdminRule>
- Direct Known Subclasses:
ActiveDefaultSecurityAdminRule,ActiveSecurityAdminRule
public class ActiveBaseSecurityAdminRule
extends Object
implements com.azure.json.JsonSerializable<ActiveBaseSecurityAdminRule>
Network base admin rule.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of ActiveBaseSecurityAdminRule class. -
Method Summary
Modifier and TypeMethodDescriptionGet the commitTime property: Deployment time string.Get the configurationDescription property: A description of the security admin configuration.static ActiveBaseSecurityAdminRulefromJson(com.azure.json.JsonReader jsonReader) Reads an instance of ActiveBaseSecurityAdminRule from the JsonReader.id()Get the id property: Resource ID.kind()Get the kind property: Whether the rule is custom or default.region()Get the region property: Deployment region.Get the ruleCollectionAppliesToGroups property: Groups for rule collection.Get the ruleCollectionDescription property: A description of the rule collection.Get the ruleGroups property: Effective configuration groups.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withCommitTime(OffsetDateTime commitTime) Set the commitTime property: Deployment time string.withConfigurationDescription(String configurationDescription) Set the configurationDescription property: A description of the security admin configuration.Set the id property: Resource ID.withRegion(String region) Set the region property: Deployment region.withRuleCollectionAppliesToGroups(List<NetworkManagerSecurityGroupItem> ruleCollectionAppliesToGroups) Set the ruleCollectionAppliesToGroups property: Groups for rule collection.withRuleCollectionDescription(String ruleCollectionDescription) Set the ruleCollectionDescription property: A description of the rule collection.withRuleGroups(List<ConfigurationGroup> ruleGroups) Set the ruleGroups property: Effective configuration groups.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
ActiveBaseSecurityAdminRule
public ActiveBaseSecurityAdminRule()Creates an instance of ActiveBaseSecurityAdminRule class.
-
-
Method Details
-
kind
Get the kind property: Whether the rule is custom or default.- Returns:
- the kind value.
-
id
Get the id property: Resource ID.- Returns:
- the id value.
-
withId
Set the id property: Resource ID.- Parameters:
id- the id value to set.- Returns:
- the ActiveBaseSecurityAdminRule object itself.
-
commitTime
Get the commitTime property: Deployment time string.- Returns:
- the commitTime value.
-
withCommitTime
Set the commitTime property: Deployment time string.- Parameters:
commitTime- the commitTime value to set.- Returns:
- the ActiveBaseSecurityAdminRule object itself.
-
region
Get the region property: Deployment region.- Returns:
- the region value.
-
withRegion
Set the region property: Deployment region.- Parameters:
region- the region value to set.- Returns:
- the ActiveBaseSecurityAdminRule object itself.
-
configurationDescription
Get the configurationDescription property: A description of the security admin configuration.- Returns:
- the configurationDescription value.
-
withConfigurationDescription
Set the configurationDescription property: A description of the security admin configuration.- Parameters:
configurationDescription- the configurationDescription value to set.- Returns:
- the ActiveBaseSecurityAdminRule object itself.
-
ruleCollectionDescription
Get the ruleCollectionDescription property: A description of the rule collection.- Returns:
- the ruleCollectionDescription value.
-
withRuleCollectionDescription
Set the ruleCollectionDescription property: A description of the rule collection.- Parameters:
ruleCollectionDescription- the ruleCollectionDescription value to set.- Returns:
- the ActiveBaseSecurityAdminRule object itself.
-
ruleCollectionAppliesToGroups
Get the ruleCollectionAppliesToGroups property: Groups for rule collection.- Returns:
- the ruleCollectionAppliesToGroups value.
-
withRuleCollectionAppliesToGroups
public ActiveBaseSecurityAdminRule withRuleCollectionAppliesToGroups(List<NetworkManagerSecurityGroupItem> ruleCollectionAppliesToGroups) Set the ruleCollectionAppliesToGroups property: Groups for rule collection.- Parameters:
ruleCollectionAppliesToGroups- the ruleCollectionAppliesToGroups value to set.- Returns:
- the ActiveBaseSecurityAdminRule object itself.
-
ruleGroups
Get the ruleGroups property: Effective configuration groups.- Returns:
- the ruleGroups value.
-
withRuleGroups
Set the ruleGroups property: Effective configuration groups.- Parameters:
ruleGroups- the ruleGroups value to set.- Returns:
- the ActiveBaseSecurityAdminRule object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<ActiveBaseSecurityAdminRule>- Throws:
IOException
-
fromJson
public static ActiveBaseSecurityAdminRule fromJson(com.azure.json.JsonReader jsonReader) throws IOException 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.
-