Class DatabaseVulnerabilityAssessmentInner
java.lang.Object
com.azure.core.management.ProxyResource
com.azure.resourcemanager.sql.fluent.models.DatabaseVulnerabilityAssessmentInner
- All Implemented Interfaces:
com.azure.json.JsonSerializable<com.azure.core.management.ProxyResource>
public final class DatabaseVulnerabilityAssessmentInner
extends com.azure.core.management.ProxyResource
A database vulnerability assessment.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of DatabaseVulnerabilityAssessmentInner class. -
Method Summary
Modifier and TypeMethodDescriptionfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of DatabaseVulnerabilityAssessmentInner from the JsonReader.id()Get the id property: Fully qualified resource Id for the resource.name()Get the name property: The name of the resource.Get the recurringScans property: The recurring scans settings.Get the storageAccountAccessKey property: Specifies the identifier key of the storage account for vulnerability assessment scan results.Get the storageContainerPath property: A blob storage container path to hold the scan results (e.g. https://myStorage.blob.core.windows.net/VaScans/).Get the storageContainerSasKey property: A shared access signature (SAS Key) that has write access to the blob container specified in 'storageContainerPath' parameter.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) type()Get the type property: The type of the resource.voidvalidate()Validates the instance.withRecurringScans(VulnerabilityAssessmentRecurringScansProperties recurringScans) Set the recurringScans property: The recurring scans settings.withStorageAccountAccessKey(String storageAccountAccessKey) Set the storageAccountAccessKey property: Specifies the identifier key of the storage account for vulnerability assessment scan results.withStorageContainerPath(String storageContainerPath) Set the storageContainerPath property: A blob storage container path to hold the scan results (e.g. https://myStorage.blob.core.windows.net/VaScans/).withStorageContainerSasKey(String storageContainerSasKey) Set the storageContainerSasKey property: A shared access signature (SAS Key) that has write access to the blob container specified in 'storageContainerPath' parameter.Methods inherited from class 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
-
DatabaseVulnerabilityAssessmentInner
public DatabaseVulnerabilityAssessmentInner()Creates an instance of DatabaseVulnerabilityAssessmentInner class.
-
-
Method Details
-
type
Get the type property: The type of the resource.- Overrides:
typein classcom.azure.core.management.ProxyResource- Returns:
- the type value.
-
name
Get the name property: The name of the resource.- Overrides:
namein classcom.azure.core.management.ProxyResource- Returns:
- the name value.
-
id
Get the id property: Fully qualified resource Id for the resource.- Overrides:
idin classcom.azure.core.management.ProxyResource- Returns:
- the id value.
-
storageContainerPath
Get the storageContainerPath property: A blob storage container path to hold the scan results (e.g. https://myStorage.blob.core.windows.net/VaScans/). It is required if server level vulnerability assessment policy doesn't set.- Returns:
- the storageContainerPath value.
-
withStorageContainerPath
Set the storageContainerPath property: A blob storage container path to hold the scan results (e.g. https://myStorage.blob.core.windows.net/VaScans/). It is required if server level vulnerability assessment policy doesn't set.- Parameters:
storageContainerPath- the storageContainerPath value to set.- Returns:
- the DatabaseVulnerabilityAssessmentInner object itself.
-
storageContainerSasKey
Get the storageContainerSasKey property: A shared access signature (SAS Key) that has write access to the blob container specified in 'storageContainerPath' parameter. If 'storageAccountAccessKey' isn't specified, StorageContainerSasKey is required. Applies only if the storage account is not behind a Vnet or a firewall.- Returns:
- the storageContainerSasKey value.
-
withStorageContainerSasKey
public DatabaseVulnerabilityAssessmentInner withStorageContainerSasKey(String storageContainerSasKey) Set the storageContainerSasKey property: A shared access signature (SAS Key) that has write access to the blob container specified in 'storageContainerPath' parameter. If 'storageAccountAccessKey' isn't specified, StorageContainerSasKey is required. Applies only if the storage account is not behind a Vnet or a firewall.- Parameters:
storageContainerSasKey- the storageContainerSasKey value to set.- Returns:
- the DatabaseVulnerabilityAssessmentInner object itself.
-
storageAccountAccessKey
Get the storageAccountAccessKey property: Specifies the identifier key of the storage account for vulnerability assessment scan results. If 'StorageContainerSasKey' isn't specified, storageAccountAccessKey is required. Applies only if the storage account is not behind a Vnet or a firewall.- Returns:
- the storageAccountAccessKey value.
-
withStorageAccountAccessKey
public DatabaseVulnerabilityAssessmentInner withStorageAccountAccessKey(String storageAccountAccessKey) Set the storageAccountAccessKey property: Specifies the identifier key of the storage account for vulnerability assessment scan results. If 'StorageContainerSasKey' isn't specified, storageAccountAccessKey is required. Applies only if the storage account is not behind a Vnet or a firewall.- Parameters:
storageAccountAccessKey- the storageAccountAccessKey value to set.- Returns:
- the DatabaseVulnerabilityAssessmentInner object itself.
-
recurringScans
Get the recurringScans property: The recurring scans settings.- Returns:
- the recurringScans value.
-
withRecurringScans
public DatabaseVulnerabilityAssessmentInner withRecurringScans(VulnerabilityAssessmentRecurringScansProperties recurringScans) Set the recurringScans property: The recurring scans settings.- Parameters:
recurringScans- the recurringScans value to set.- Returns:
- the DatabaseVulnerabilityAssessmentInner 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<com.azure.core.management.ProxyResource>- Overrides:
toJsonin classcom.azure.core.management.ProxyResource- Throws:
IOException
-
fromJson
public static DatabaseVulnerabilityAssessmentInner fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of DatabaseVulnerabilityAssessmentInner from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of DatabaseVulnerabilityAssessmentInner if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IllegalStateException- If the deserialized JSON object was missing any required properties.IOException- If an error occurs while reading the DatabaseVulnerabilityAssessmentInner.
-