Class VulnerabilityAssessmentRecurringScansProperties

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

public final class VulnerabilityAssessmentRecurringScansProperties extends Object implements com.azure.json.JsonSerializable<VulnerabilityAssessmentRecurringScansProperties>
Properties of a Vulnerability Assessment recurring scans.
  • Constructor Details

    • VulnerabilityAssessmentRecurringScansProperties

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

    • isEnabled

      public Boolean isEnabled()
      Get the isEnabled property: Recurring scans state.
      Returns:
      the isEnabled value.
    • withIsEnabled

      public VulnerabilityAssessmentRecurringScansProperties withIsEnabled(Boolean isEnabled)
      Set the isEnabled property: Recurring scans state.
      Parameters:
      isEnabled - the isEnabled value to set.
      Returns:
      the VulnerabilityAssessmentRecurringScansProperties object itself.
    • emailSubscriptionAdmins

      public Boolean emailSubscriptionAdmins()
      Get the emailSubscriptionAdmins property: Specifies that the schedule scan notification will be is sent to the subscription administrators.
      Returns:
      the emailSubscriptionAdmins value.
    • withEmailSubscriptionAdmins

      public VulnerabilityAssessmentRecurringScansProperties withEmailSubscriptionAdmins(Boolean emailSubscriptionAdmins)
      Set the emailSubscriptionAdmins property: Specifies that the schedule scan notification will be is sent to the subscription administrators.
      Parameters:
      emailSubscriptionAdmins - the emailSubscriptionAdmins value to set.
      Returns:
      the VulnerabilityAssessmentRecurringScansProperties object itself.
    • emails

      public List<String> emails()
      Get the emails property: Specifies an array of e-mail addresses to which the scan notification is sent.
      Returns:
      the emails value.
    • withEmails

      Set the emails property: Specifies an array of e-mail addresses to which the scan notification is sent.
      Parameters:
      emails - the emails value to set.
      Returns:
      the VulnerabilityAssessmentRecurringScansProperties 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<VulnerabilityAssessmentRecurringScansProperties>
      Throws:
      IOException
    • fromJson

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