Class EffectiveDefaultSecurityAdminRule
java.lang.Object
com.azure.resourcemanager.network.models.EffectiveBaseSecurityAdminRule
com.azure.resourcemanager.network.models.EffectiveDefaultSecurityAdminRule
- All Implemented Interfaces:
com.azure.json.JsonSerializable<EffectiveBaseSecurityAdminRule>
Network default admin rule.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of EffectiveDefaultSecurityAdminRule class. -
Method Summary
Modifier and TypeMethodDescriptionaccess()Get the access property: Indicates the access allowed for this particular rule.Get the description property: A description for this rule.Get the destinationPortRanges property: The destination port ranges.Get the destinations property: The destination address prefixes.Get the direction property: Indicates if the traffic matched against the rule in inbound or outbound.flag()Get the flag property: Default rule flag.fromJson(com.azure.json.JsonReader jsonReader) Reads an instance of EffectiveDefaultSecurityAdminRule from the JsonReader.kind()Get the kind property: Whether the rule is custom or default.priority()Get the priority property: The priority of the rule.protocol()Get the protocol property: Network protocol this rule applies to.Get the provisioningState property: The provisioning state of the resource.Get the resourceGuid property: Unique identifier for this resource.Get the sourcePortRanges property: The source port ranges.sources()Get the sources property: The CIDR or source IP ranges.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withConfigurationDescription(String configurationDescription) Set the configurationDescription property: A description of the security admin configuration.Set the flag property: Default rule flag.Set the id property: Resource ID.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 com.azure.resourcemanager.network.models.EffectiveBaseSecurityAdminRule
configurationDescription, id, ruleCollectionAppliesToGroups, ruleCollectionDescription, ruleGroupsMethods 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
-
EffectiveDefaultSecurityAdminRule
public EffectiveDefaultSecurityAdminRule()Creates an instance of EffectiveDefaultSecurityAdminRule class.
-
-
Method Details
-
kind
Get the kind property: Whether the rule is custom or default.- Overrides:
kindin classEffectiveBaseSecurityAdminRule- Returns:
- the kind value.
-
withId
Set the id property: Resource ID.- Overrides:
withIdin classEffectiveBaseSecurityAdminRule- Parameters:
id- the id value to set.- Returns:
- the EffectiveBaseSecurityAdminRule object itself.
-
withConfigurationDescription
public EffectiveDefaultSecurityAdminRule withConfigurationDescription(String configurationDescription) Set the configurationDescription property: A description of the security admin configuration.- Overrides:
withConfigurationDescriptionin classEffectiveBaseSecurityAdminRule- Parameters:
configurationDescription- the configurationDescription value to set.- Returns:
- the EffectiveBaseSecurityAdminRule object itself.
-
withRuleCollectionDescription
public EffectiveDefaultSecurityAdminRule withRuleCollectionDescription(String ruleCollectionDescription) Set the ruleCollectionDescription property: A description of the rule collection.- Overrides:
withRuleCollectionDescriptionin classEffectiveBaseSecurityAdminRule- Parameters:
ruleCollectionDescription- the ruleCollectionDescription value to set.- Returns:
- the EffectiveBaseSecurityAdminRule object itself.
-
withRuleCollectionAppliesToGroups
public EffectiveDefaultSecurityAdminRule withRuleCollectionAppliesToGroups(List<NetworkManagerSecurityGroupItem> ruleCollectionAppliesToGroups) Set the ruleCollectionAppliesToGroups property: Groups for rule collection.- Overrides:
withRuleCollectionAppliesToGroupsin classEffectiveBaseSecurityAdminRule- Parameters:
ruleCollectionAppliesToGroups- the ruleCollectionAppliesToGroups value to set.- Returns:
- the EffectiveBaseSecurityAdminRule object itself.
-
withRuleGroups
Set the ruleGroups property: Effective configuration groups.- Overrides:
withRuleGroupsin classEffectiveBaseSecurityAdminRule- Parameters:
ruleGroups- the ruleGroups value to set.- Returns:
- the EffectiveBaseSecurityAdminRule object itself.
-
description
Get the description property: A description for this rule. Restricted to 140 chars.- Returns:
- the description value.
-
flag
Get the flag property: Default rule flag.- Returns:
- the flag value.
-
withFlag
Set the flag property: Default rule flag.- Parameters:
flag- the flag value to set.- Returns:
- the EffectiveDefaultSecurityAdminRule object itself.
-
protocol
Get the protocol property: Network protocol this rule applies to.- Returns:
- the protocol value.
-
sources
Get the sources property: The CIDR or source IP ranges.- Returns:
- the sources value.
-
destinations
Get the destinations property: The destination address prefixes. CIDR or destination IP ranges.- Returns:
- the destinations value.
-
sourcePortRanges
Get the sourcePortRanges property: The source port ranges.- Returns:
- the sourcePortRanges value.
-
destinationPortRanges
Get the destinationPortRanges property: The destination port ranges.- Returns:
- the destinationPortRanges value.
-
access
Get the access property: Indicates the access allowed for this particular rule.- Returns:
- the access value.
-
priority
Get the priority property: The priority of the rule. The value can be between 1 and 4096. The priority number must be unique for each rule in the collection. The lower the priority number, the higher the priority of the rule.- Returns:
- the priority value.
-
direction
Get the direction property: Indicates if the traffic matched against the rule in inbound or outbound.- Returns:
- the direction value.
-
provisioningState
Get the provisioningState property: The provisioning state of the resource.- Returns:
- the provisioningState value.
-
resourceGuid
Get the resourceGuid property: Unique identifier for this resource.- Returns:
- the resourceGuid value.
-
validate
public void validate()Validates the instance.- Overrides:
validatein classEffectiveBaseSecurityAdminRule- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<EffectiveBaseSecurityAdminRule>- Overrides:
toJsonin classEffectiveBaseSecurityAdminRule- Throws:
IOException
-
fromJson
public static EffectiveDefaultSecurityAdminRule fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of EffectiveDefaultSecurityAdminRule from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of EffectiveDefaultSecurityAdminRule 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 EffectiveDefaultSecurityAdminRule.
-