Class NspAccessRuleProperties

java.lang.Object
com.azure.resourcemanager.network.fluent.models.NspAccessRuleProperties
All Implemented Interfaces:
com.azure.json.JsonSerializable<NspAccessRuleProperties>

public final class NspAccessRuleProperties extends Object implements com.azure.json.JsonSerializable<NspAccessRuleProperties>
Properties of NSP access rule.
  • Constructor Details

    • NspAccessRuleProperties

      public NspAccessRuleProperties()
      Creates an instance of NspAccessRuleProperties class.
  • Method Details

    • provisioningState

      public NspProvisioningState provisioningState()
      Get the provisioningState property: The provisioning state of the scope assignment resource.
      Returns:
      the provisioningState value.
    • direction

      public AccessRuleDirection direction()
      Get the direction property: Direction that specifies whether the access rules is inbound/outbound.
      Returns:
      the direction value.
    • withDirection

      public NspAccessRuleProperties withDirection(AccessRuleDirection direction)
      Set the direction property: Direction that specifies whether the access rules is inbound/outbound.
      Parameters:
      direction - the direction value to set.
      Returns:
      the NspAccessRuleProperties object itself.
    • addressPrefixes

      public List<String> addressPrefixes()
      Get the addressPrefixes property: Inbound address prefixes (IPv4/IPv6).
      Returns:
      the addressPrefixes value.
    • withAddressPrefixes

      public NspAccessRuleProperties withAddressPrefixes(List<String> addressPrefixes)
      Set the addressPrefixes property: Inbound address prefixes (IPv4/IPv6).
      Parameters:
      addressPrefixes - the addressPrefixes value to set.
      Returns:
      the NspAccessRuleProperties object itself.
    • fullyQualifiedDomainNames

      public List<String> fullyQualifiedDomainNames()
      Get the fullyQualifiedDomainNames property: Outbound rules in fully qualified domain name format.
      Returns:
      the fullyQualifiedDomainNames value.
    • withFullyQualifiedDomainNames

      public NspAccessRuleProperties withFullyQualifiedDomainNames(List<String> fullyQualifiedDomainNames)
      Set the fullyQualifiedDomainNames property: Outbound rules in fully qualified domain name format.
      Parameters:
      fullyQualifiedDomainNames - the fullyQualifiedDomainNames value to set.
      Returns:
      the NspAccessRuleProperties object itself.
    • subscriptions

      public List<SubscriptionId> subscriptions()
      Get the subscriptions property: List of subscription ids.
      Returns:
      the subscriptions value.
    • withSubscriptions

      public NspAccessRuleProperties withSubscriptions(List<SubscriptionId> subscriptions)
      Set the subscriptions property: List of subscription ids.
      Parameters:
      subscriptions - the subscriptions value to set.
      Returns:
      the NspAccessRuleProperties object itself.
    • networkSecurityPerimeters

      public List<PerimeterBasedAccessRule> networkSecurityPerimeters()
      Get the networkSecurityPerimeters property: Rule specified by the perimeter id.
      Returns:
      the networkSecurityPerimeters value.
    • emailAddresses

      public List<String> emailAddresses()
      Get the emailAddresses property: Outbound rules in email address format. This access rule type is currently unavailable for use.
      Returns:
      the emailAddresses value.
    • withEmailAddresses

      public NspAccessRuleProperties withEmailAddresses(List<String> emailAddresses)
      Set the emailAddresses property: Outbound rules in email address format. This access rule type is currently unavailable for use.
      Parameters:
      emailAddresses - the emailAddresses value to set.
      Returns:
      the NspAccessRuleProperties object itself.
    • phoneNumbers

      public List<String> phoneNumbers()
      Get the phoneNumbers property: Outbound rules in phone number format. This access rule type is currently unavailable for use.
      Returns:
      the phoneNumbers value.
    • withPhoneNumbers

      public NspAccessRuleProperties withPhoneNumbers(List<String> phoneNumbers)
      Set the phoneNumbers property: Outbound rules in phone number format. This access rule type is currently unavailable for use.
      Parameters:
      phoneNumbers - the phoneNumbers value to set.
      Returns:
      the NspAccessRuleProperties object itself.
    • serviceTags

      public List<String> serviceTags()
      Get the serviceTags property: Inbound rules of type service tag. This access rule type is currently unavailable for use.
      Returns:
      the serviceTags value.
    • withServiceTags

      public NspAccessRuleProperties withServiceTags(List<String> serviceTags)
      Set the serviceTags property: Inbound rules of type service tag. This access rule type is currently unavailable for use.
      Parameters:
      serviceTags - the serviceTags value to set.
      Returns:
      the NspAccessRuleProperties object itself.
    • validate

      public void validate()
      Validates the instance.
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.
    • toJson

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.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.