Class NspAccessRuleProperties
java.lang.Object
com.azure.resourcemanager.storage.models.NspAccessRuleProperties
- All Implemented Interfaces:
com.azure.json.JsonSerializable<NspAccessRuleProperties>
public final class NspAccessRuleProperties
extends Object
implements com.azure.json.JsonSerializable<NspAccessRuleProperties>
Properties of Access Rule.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of NspAccessRuleProperties class. -
Method Summary
Modifier and TypeMethodDescriptionGet the addressPrefixes property: Address prefixes in the CIDR format for inbound rules.Get the direction property: Direction of Access Rule.static NspAccessRulePropertiesfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of NspAccessRuleProperties from the JsonReader.Get the fullyQualifiedDomainNames property: FQDN for outbound rules.Get the networkSecurityPerimeters property: NetworkSecurityPerimeters for inbound rules.Get the subscriptions property: Subscriptions for inbound rules.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withAddressPrefixes(List<String> addressPrefixes) Set the addressPrefixes property: Address prefixes in the CIDR format for inbound rules.withDirection(NspAccessRuleDirection direction) Set the direction property: Direction of Access Rule.withSubscriptions(List<NspAccessRulePropertiesSubscriptionsItem> subscriptions) Set the subscriptions property: Subscriptions for inbound rules.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
-
NspAccessRuleProperties
public NspAccessRuleProperties()Creates an instance of NspAccessRuleProperties class.
-
-
Method Details
-
direction
Get the direction property: Direction of Access Rule.- Returns:
- the direction value.
-
withDirection
Set the direction property: Direction of Access Rule.- Parameters:
direction- the direction value to set.- Returns:
- the NspAccessRuleProperties object itself.
-
addressPrefixes
Get the addressPrefixes property: Address prefixes in the CIDR format for inbound rules.- Returns:
- the addressPrefixes value.
-
withAddressPrefixes
Set the addressPrefixes property: Address prefixes in the CIDR format for inbound rules.- Parameters:
addressPrefixes- the addressPrefixes value to set.- Returns:
- the NspAccessRuleProperties object itself.
-
subscriptions
Get the subscriptions property: Subscriptions for inbound rules.- Returns:
- the subscriptions value.
-
withSubscriptions
public NspAccessRuleProperties withSubscriptions(List<NspAccessRulePropertiesSubscriptionsItem> subscriptions) Set the subscriptions property: Subscriptions for inbound rules.- Parameters:
subscriptions- the subscriptions value to set.- Returns:
- the NspAccessRuleProperties object itself.
-
networkSecurityPerimeters
Get the networkSecurityPerimeters property: NetworkSecurityPerimeters for inbound rules.- Returns:
- the networkSecurityPerimeters value.
-
fullyQualifiedDomainNames
Get the fullyQualifiedDomainNames property: FQDN for outbound rules.- Returns:
- the fullyQualifiedDomainNames 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<NspAccessRuleProperties>- Throws:
IOException
-
fromJson
public static NspAccessRuleProperties fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of NspAccessRuleProperties from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of NspAccessRuleProperties 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 NspAccessRuleProperties.
-