Class ServerVulnerabilityAssessmentProperties

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

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

    • ServerVulnerabilityAssessmentProperties

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

    • storageContainerPath

      public String storageContainerPath()
      Get the storageContainerPath property: A blob storage container path to hold the scan results (e.g. https://myStorage.blob.core.windows.net/VaScans/).
      Returns:
      the storageContainerPath value.
    • withStorageContainerPath

      public ServerVulnerabilityAssessmentProperties 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/).
      Parameters:
      storageContainerPath - the storageContainerPath value to set.
      Returns:
      the ServerVulnerabilityAssessmentProperties object itself.
    • storageContainerSasKey

      public String 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 ServerVulnerabilityAssessmentProperties 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 ServerVulnerabilityAssessmentProperties object itself.
    • storageAccountAccessKey

      public String 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 ServerVulnerabilityAssessmentProperties 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 ServerVulnerabilityAssessmentProperties object itself.
    • recurringScans

      Get the recurringScans property: The recurring scans settings.
      Returns:
      the recurringScans value.
    • withRecurringScans

      Set the recurringScans property: The recurring scans settings.
      Parameters:
      recurringScans - the recurringScans value to set.
      Returns:
      the ServerVulnerabilityAssessmentProperties 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<ServerVulnerabilityAssessmentProperties>
      Throws:
      IOException
    • fromJson

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