Class InboundSecurityRuleInner
java.lang.Object
com.azure.core.management.SubResource
com.azure.resourcemanager.network.fluent.models.InboundSecurityRuleInner
- All Implemented Interfaces:
com.azure.json.JsonSerializable<com.azure.core.management.SubResource>
public final class InboundSecurityRuleInner
extends com.azure.core.management.SubResource
NVA Inbound Security Rule resource.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of InboundSecurityRuleInner class. -
Method Summary
Modifier and TypeMethodDescriptionetag()Get the etag property: A unique read-only string that changes whenever the resource is updated.static InboundSecurityRuleInnerfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of InboundSecurityRuleInner from the JsonReader.name()Get the name property: Name of security rule collection.Get the provisioningState property: The provisioning state of the resource.rules()Get the rules property: List of allowed rules.ruleType()Get the ruleType property: Rule Type.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) type()Get the type property: NVA inbound security rule type.voidvalidate()Validates the instance.Set the name property: Name of security rule collection.withRules(List<InboundSecurityRules> rules) Set the rules property: List of allowed rules.withRuleType(InboundSecurityRuleType ruleType) Set the ruleType property: Rule Type.Methods inherited from class com.azure.core.management.SubResource
idMethods 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
-
InboundSecurityRuleInner
public InboundSecurityRuleInner()Creates an instance of InboundSecurityRuleInner class.
-
-
Method Details
-
name
Get the name property: Name of security rule collection.- Returns:
- the name value.
-
withName
Set the name property: Name of security rule collection.- Parameters:
name- the name value to set.- Returns:
- the InboundSecurityRuleInner object itself.
-
etag
Get the etag property: A unique read-only string that changes whenever the resource is updated.- Returns:
- the etag value.
-
type
Get the type property: NVA inbound security rule type.- Returns:
- the type value.
-
withId
- Overrides:
withIdin classcom.azure.core.management.SubResource
-
ruleType
Get the ruleType property: Rule Type. This should be either AutoExpire or Permanent. Auto Expire Rule only creates NSG rules. Permanent Rule creates NSG rule and SLB LB Rule.- Returns:
- the ruleType value.
-
withRuleType
Set the ruleType property: Rule Type. This should be either AutoExpire or Permanent. Auto Expire Rule only creates NSG rules. Permanent Rule creates NSG rule and SLB LB Rule.- Parameters:
ruleType- the ruleType value to set.- Returns:
- the InboundSecurityRuleInner object itself.
-
rules
Get the rules property: List of allowed rules.- Returns:
- the rules value.
-
withRules
Set the rules property: List of allowed rules.- Parameters:
rules- the rules value to set.- Returns:
- the InboundSecurityRuleInner object itself.
-
provisioningState
Get the provisioningState property: The provisioning state of the resource.- Returns:
- the provisioningState value.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<com.azure.core.management.SubResource>- Overrides:
toJsonin classcom.azure.core.management.SubResource- Throws:
IOException
-
fromJson
public static InboundSecurityRuleInner fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of InboundSecurityRuleInner from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of InboundSecurityRuleInner 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 InboundSecurityRuleInner.
-