VulnerabilityAssessmentRecurringScansProperties Class

  • java.lang.Object
    • com.azure.resourcemanager.sql.models.VulnerabilityAssessmentRecurringScansProperties

Implements

public final class VulnerabilityAssessmentRecurringScansProperties
implements JsonSerializable<VulnerabilityAssessmentRecurringScansProperties>

Properties of a Vulnerability Assessment recurring scans.

Constructor Summary

Constructor Description
VulnerabilityAssessmentRecurringScansProperties()

Creates an instance of VulnerabilityAssessmentRecurringScansProperties class.

Method Summary

Modifier and Type Method and Description
Boolean emailSubscriptionAdmins()

Get the emailSubscriptionAdmins property: Specifies that the schedule scan notification will be is sent to the subscription administrators.

List<String> emails()

Get the emails property: Specifies an array of e-mail addresses to which the scan notification is sent.

static VulnerabilityAssessmentRecurringScansProperties fromJson(JsonReader jsonReader)

Reads an instance of VulnerabilityAssessmentRecurringScansProperties from the JsonReader.

Boolean isEnabled()

Get the isEnabled property: Recurring scans state.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

VulnerabilityAssessmentRecurringScansProperties withEmailSubscriptionAdmins(Boolean emailSubscriptionAdmins)

Set the emailSubscriptionAdmins property: Specifies that the schedule scan notification will be is sent to the subscription administrators.

VulnerabilityAssessmentRecurringScansProperties withEmails(List<String> emails)

Set the emails property: Specifies an array of e-mail addresses to which the scan notification is sent.

VulnerabilityAssessmentRecurringScansProperties withIsEnabled(Boolean isEnabled)

Set the isEnabled property: Recurring scans state.

Methods inherited from java.lang.Object

Constructor Details

VulnerabilityAssessmentRecurringScansProperties

public VulnerabilityAssessmentRecurringScansProperties()

Creates an instance of VulnerabilityAssessmentRecurringScansProperties class.

Method Details

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.

emails

public List emails()

Get the emails property: Specifies an array of e-mail addresses to which the scan notification is sent.

Returns:

the emails value.

fromJson

public static VulnerabilityAssessmentRecurringScansProperties fromJson(JsonReader jsonReader)

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.

isEnabled

public Boolean isEnabled()

Get the isEnabled property: Recurring scans state.

Returns:

the isEnabled value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

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.

withEmails

public VulnerabilityAssessmentRecurringScansProperties withEmails(List emails)

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.

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.

Applies to