Class FileImportProperties

java.lang.Object
com.azure.resourcemanager.securityinsights.fluent.models.FileImportProperties

public final class FileImportProperties extends Object
Describes the FileImport's properties.
  • Constructor Details

    • FileImportProperties

      public FileImportProperties()
  • Method Details

    • ingestionMode

      public IngestionMode ingestionMode()
      Get the ingestionMode property: Describes how to ingest the records in the file.
      Returns:
      the ingestionMode value.
    • withIngestionMode

      public FileImportProperties withIngestionMode(IngestionMode ingestionMode)
      Set the ingestionMode property: Describes how to ingest the records in the file.
      Parameters:
      ingestionMode - the ingestionMode value to set.
      Returns:
      the FileImportProperties object itself.
    • contentType

      public FileImportContentType contentType()
      Get the contentType property: The content type of this file.
      Returns:
      the contentType value.
    • withContentType

      public FileImportProperties withContentType(FileImportContentType contentType)
      Set the contentType property: The content type of this file.
      Parameters:
      contentType - the contentType value to set.
      Returns:
      the FileImportProperties object itself.
    • createdTimeUtc

      public OffsetDateTime createdTimeUtc()
      Get the createdTimeUtc property: The time the file was imported.
      Returns:
      the createdTimeUtc value.
    • errorFile

      public FileMetadata errorFile()
      Get the errorFile property: Represents the error file (if the import was ingested with errors or failed the validation).
      Returns:
      the errorFile value.
    • errorsPreview

      public List<ValidationError> errorsPreview()
      Get the errorsPreview property: An ordered list of some of the errors that were encountered during validation.
      Returns:
      the errorsPreview value.
    • importFile

      public FileMetadata importFile()
      Get the importFile property: Represents the imported file.
      Returns:
      the importFile value.
    • withImportFile

      public FileImportProperties withImportFile(FileMetadata importFile)
      Set the importFile property: Represents the imported file.
      Parameters:
      importFile - the importFile value to set.
      Returns:
      the FileImportProperties object itself.
    • ingestedRecordCount

      public Integer ingestedRecordCount()
      Get the ingestedRecordCount property: The number of records that have been successfully ingested.
      Returns:
      the ingestedRecordCount value.
    • source

      public String source()
      Get the source property: The source for the data in the file.
      Returns:
      the source value.
    • withSource

      public FileImportProperties withSource(String source)
      Set the source property: The source for the data in the file.
      Parameters:
      source - the source value to set.
      Returns:
      the FileImportProperties object itself.
    • state

      public FileImportState state()
      Get the state property: The state of the file import.
      Returns:
      the state value.
    • totalRecordCount

      public Integer totalRecordCount()
      Get the totalRecordCount property: The number of records in the file.
      Returns:
      the totalRecordCount value.
    • validRecordCount

      public Integer validRecordCount()
      Get the validRecordCount property: The number of records that have passed validation.
      Returns:
      the validRecordCount value.
    • filesValidUntilTimeUtc

      public OffsetDateTime filesValidUntilTimeUtc()
      Get the filesValidUntilTimeUtc property: The time the files associated with this import are deleted from the storage account.
      Returns:
      the filesValidUntilTimeUtc value.
    • importValidUntilTimeUtc

      public OffsetDateTime importValidUntilTimeUtc()
      Get the importValidUntilTimeUtc property: The time the file import record is soft deleted from the database and history.
      Returns:
      the importValidUntilTimeUtc value.
    • validate

      public void validate()
      Validates the instance.
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.