Class NetworkSecurityProfile

java.lang.Object
com.azure.resourcemanager.search.models.NetworkSecurityProfile
All Implemented Interfaces:
com.azure.json.JsonSerializable<NetworkSecurityProfile>

public final class NetworkSecurityProfile extends Object implements com.azure.json.JsonSerializable<NetworkSecurityProfile>
Network security perimeter configuration profile.
  • Constructor Details

    • NetworkSecurityProfile

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

    • name

      public String name()
      Get the name property: Name of the profile.
      Returns:
      the name value.
    • withName

      public NetworkSecurityProfile withName(String name)
      Set the name property: Name of the profile.
      Parameters:
      name - the name value to set.
      Returns:
      the NetworkSecurityProfile object itself.
    • accessRulesVersion

      public Integer accessRulesVersion()
      Get the accessRulesVersion property: Current access rules version.
      Returns:
      the accessRulesVersion value.
    • withAccessRulesVersion

      public NetworkSecurityProfile withAccessRulesVersion(Integer accessRulesVersion)
      Set the accessRulesVersion property: Current access rules version.
      Parameters:
      accessRulesVersion - the accessRulesVersion value to set.
      Returns:
      the NetworkSecurityProfile object itself.
    • accessRules

      public List<AccessRule> accessRules()
      Get the accessRules property: List of Access Rules.
      Returns:
      the accessRules value.
    • withAccessRules

      public NetworkSecurityProfile withAccessRules(List<AccessRule> accessRules)
      Set the accessRules property: List of Access Rules.
      Parameters:
      accessRules - the accessRules value to set.
      Returns:
      the NetworkSecurityProfile object itself.
    • diagnosticSettingsVersion

      public Integer diagnosticSettingsVersion()
      Get the diagnosticSettingsVersion property: Current diagnostic settings version.
      Returns:
      the diagnosticSettingsVersion value.
    • withDiagnosticSettingsVersion

      public NetworkSecurityProfile withDiagnosticSettingsVersion(Integer diagnosticSettingsVersion)
      Set the diagnosticSettingsVersion property: Current diagnostic settings version.
      Parameters:
      diagnosticSettingsVersion - the diagnosticSettingsVersion value to set.
      Returns:
      the NetworkSecurityProfile object itself.
    • enabledLogCategories

      public List<String> enabledLogCategories()
      Get the enabledLogCategories property: List of log categories that are enabled.
      Returns:
      the enabledLogCategories value.
    • withEnabledLogCategories

      public NetworkSecurityProfile withEnabledLogCategories(List<String> enabledLogCategories)
      Set the enabledLogCategories property: List of log categories that are enabled.
      Parameters:
      enabledLogCategories - the enabledLogCategories value to set.
      Returns:
      the NetworkSecurityProfile 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<NetworkSecurityProfile>
      Throws:
      IOException
    • fromJson

      public static NetworkSecurityProfile fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of NetworkSecurityProfile from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of NetworkSecurityProfile 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 NetworkSecurityProfile.