Class NspAccessRuleProperties

java.lang.Object
com.azure.resourcemanager.eventhubs.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 Details

    • NspAccessRuleProperties

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

    • direction

      public NspAccessRuleDirection direction()
      Get the direction property: Direction of Access Rule.
      Returns:
      the direction value.
    • withDirection

      public NspAccessRuleProperties withDirection(NspAccessRuleDirection direction)
      Set the direction property: Direction of Access Rule.
      Parameters:
      direction - the direction value to set.
      Returns:
      the NspAccessRuleProperties object itself.
    • addressPrefixes

      public List<String> addressPrefixes()
      Get the addressPrefixes property: Address prefixes in the CIDR format for inbound rules.
      Returns:
      the addressPrefixes value.
    • withAddressPrefixes

      public NspAccessRuleProperties withAddressPrefixes(List<String> addressPrefixes)
      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

      public List<NetworkSecurityPerimeter> networkSecurityPerimeters()
      Get the networkSecurityPerimeters property: NetworkSecurityPerimeters for inbound rules.
      Returns:
      the networkSecurityPerimeters value.
    • fullyQualifiedDomainNames

      public List<String> 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

      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.