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 Summary
ConstructorsConstructorDescriptionCreates an instance of VulnerabilityAssessmentRecurringScansProperties class. -
Method Summary
Modifier and TypeMethodDescriptionemails()Get the emails property: Specifies an array of e-mail addresses to which the scan notification is sent.Get the emailSubscriptionAdmins property: Specifies that the schedule scan notification will be is sent to the subscription administrators.fromJson(com.azure.json.JsonReader jsonReader) Reads an instance of VulnerabilityAssessmentRecurringScansProperties from the JsonReader.Get the isEnabled property: Recurring scans state.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withEmails(List<String> emails) Set the emails property: Specifies an array of e-mail addresses to which the scan notification is sent.withEmailSubscriptionAdmins(Boolean emailSubscriptionAdmins) Set the emailSubscriptionAdmins property: Specifies that the schedule scan notification will be is sent to the subscription administrators.withIsEnabled(Boolean isEnabled) Set the isEnabled property: Recurring scans state.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
VulnerabilityAssessmentRecurringScansProperties
public VulnerabilityAssessmentRecurringScansProperties()Creates an instance of VulnerabilityAssessmentRecurringScansProperties class.
-
-
Method Details
-
isEnabled
Get the isEnabled property: Recurring scans state.- Returns:
- the isEnabled value.
-
withIsEnabled
Set the isEnabled property: Recurring scans state.- Parameters:
isEnabled- the isEnabled value to set.- Returns:
- the VulnerabilityAssessmentRecurringScansProperties object itself.
-
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
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
- Specified by:
toJsonin interfacecom.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.
-