Class NspAccessRuleInner

java.lang.Object
com.azure.core.management.ProxyResource
All Implemented Interfaces:
com.azure.json.JsonSerializable<com.azure.core.management.ProxyResource>

public final class NspAccessRuleInner extends SecurityPerimeterProxyResource
The NSP access rule resource.
  • Constructor Details

    • NspAccessRuleInner

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

    • systemData

      public SecurityPerimeterSystemData systemData()
      Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.
      Overrides:
      systemData in class SecurityPerimeterProxyResource
      Returns:
      the systemData value.
    • type

      public String type()
      Get the type property: The type of the resource.
      Overrides:
      type in class SecurityPerimeterProxyResource
      Returns:
      the type value.
    • name

      public String name()
      Get the name property: The name of the resource.
      Overrides:
      name in class SecurityPerimeterProxyResource
      Returns:
      the name value.
    • id

      public String id()
      Get the id property: Fully qualified resource Id for the resource.
      Overrides:
      id in class SecurityPerimeterProxyResource
      Returns:
      the id value.
    • 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 NspAccessRuleInner 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 NspAccessRuleInner object itself.
    • addressPrefixes

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

      public NspAccessRuleInner withAddressPrefixes(List<String> addressPrefixes)
      Set the addressPrefixes property: Inbound address prefixes (IPv4/IPv6).
      Parameters:
      addressPrefixes - the addressPrefixes value to set.
      Returns:
      the NspAccessRuleInner 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 NspAccessRuleInner 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 NspAccessRuleInner object itself.
    • subscriptions

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

      public NspAccessRuleInner withSubscriptions(List<SubscriptionId> subscriptions)
      Set the subscriptions property: List of subscription ids.
      Parameters:
      subscriptions - the subscriptions value to set.
      Returns:
      the NspAccessRuleInner 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 NspAccessRuleInner 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 NspAccessRuleInner 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 NspAccessRuleInner 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 NspAccessRuleInner 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 NspAccessRuleInner 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 NspAccessRuleInner object itself.
    • validate

      public void validate()
      Validates the instance.
      Overrides:
      validate in class SecurityPerimeterProxyResource
      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<com.azure.core.management.ProxyResource>
      Overrides:
      toJson in class SecurityPerimeterProxyResource
      Throws:
      IOException
    • fromJson

      public static NspAccessRuleInner fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of NspAccessRuleInner from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of NspAccessRuleInner if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
      Throws:
      IllegalStateException - If the deserialized JSON object was missing any required properties.
      IOException - If an error occurs while reading the NspAccessRuleInner.