java.lang.Object
com.azure.resourcemanager.storageimportexport.models.JobDetails

public final class JobDetails extends Object
Specifies the job properties.
  • Constructor Details

    • JobDetails

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

    • storageAccountId

      public String storageAccountId()
      Get the storageAccountId property: The resource identifier of the storage account where data will be imported to or exported from.
      Returns:
      the storageAccountId value.
    • withStorageAccountId

      public JobDetails withStorageAccountId(String storageAccountId)
      Set the storageAccountId property: The resource identifier of the storage account where data will be imported to or exported from.
      Parameters:
      storageAccountId - the storageAccountId value to set.
      Returns:
      the JobDetails object itself.
    • jobType

      public String jobType()
      Get the jobType property: The type of job.
      Returns:
      the jobType value.
    • withJobType

      public JobDetails withJobType(String jobType)
      Set the jobType property: The type of job.
      Parameters:
      jobType - the jobType value to set.
      Returns:
      the JobDetails object itself.
    • returnAddress

      public ReturnAddress returnAddress()
      Get the returnAddress property: Specifies the return address information for the job.
      Returns:
      the returnAddress value.
    • withReturnAddress

      public JobDetails withReturnAddress(ReturnAddress returnAddress)
      Set the returnAddress property: Specifies the return address information for the job.
      Parameters:
      returnAddress - the returnAddress value to set.
      Returns:
      the JobDetails object itself.
    • returnShipping

      public ReturnShipping returnShipping()
      Get the returnShipping property: Specifies the return carrier and customer's account with the carrier.
      Returns:
      the returnShipping value.
    • withReturnShipping

      public JobDetails withReturnShipping(ReturnShipping returnShipping)
      Set the returnShipping property: Specifies the return carrier and customer's account with the carrier.
      Parameters:
      returnShipping - the returnShipping value to set.
      Returns:
      the JobDetails object itself.
    • shippingInformation

      public ShippingInformation shippingInformation()
      Get the shippingInformation property: Contains information about the Microsoft datacenter to which the drives should be shipped.
      Returns:
      the shippingInformation value.
    • withShippingInformation

      public JobDetails withShippingInformation(ShippingInformation shippingInformation)
      Set the shippingInformation property: Contains information about the Microsoft datacenter to which the drives should be shipped.
      Parameters:
      shippingInformation - the shippingInformation value to set.
      Returns:
      the JobDetails object itself.
    • deliveryPackage

      public DeliveryPackageInformation deliveryPackage()
      Get the deliveryPackage property: Contains information about the package being shipped by the customer to the Microsoft data center.
      Returns:
      the deliveryPackage value.
    • withDeliveryPackage

      public JobDetails withDeliveryPackage(DeliveryPackageInformation deliveryPackage)
      Set the deliveryPackage property: Contains information about the package being shipped by the customer to the Microsoft data center.
      Parameters:
      deliveryPackage - the deliveryPackage value to set.
      Returns:
      the JobDetails object itself.
    • returnPackage

      public PackageInformation returnPackage()
      Get the returnPackage property: Contains information about the package being shipped from the Microsoft data center to the customer to return the drives. The format is the same as the deliveryPackage property above. This property is not included if the drives have not yet been returned.
      Returns:
      the returnPackage value.
    • withReturnPackage

      public JobDetails withReturnPackage(PackageInformation returnPackage)
      Set the returnPackage property: Contains information about the package being shipped from the Microsoft data center to the customer to return the drives. The format is the same as the deliveryPackage property above. This property is not included if the drives have not yet been returned.
      Parameters:
      returnPackage - the returnPackage value to set.
      Returns:
      the JobDetails object itself.
    • diagnosticsPath

      public String diagnosticsPath()
      Get the diagnosticsPath property: The virtual blob directory to which the copy logs and backups of drive manifest files (if enabled) will be stored.
      Returns:
      the diagnosticsPath value.
    • withDiagnosticsPath

      public JobDetails withDiagnosticsPath(String diagnosticsPath)
      Set the diagnosticsPath property: The virtual blob directory to which the copy logs and backups of drive manifest files (if enabled) will be stored.
      Parameters:
      diagnosticsPath - the diagnosticsPath value to set.
      Returns:
      the JobDetails object itself.
    • logLevel

      public String logLevel()
      Get the logLevel property: Default value is Error. Indicates whether error logging or verbose logging will be enabled.
      Returns:
      the logLevel value.
    • withLogLevel

      public JobDetails withLogLevel(String logLevel)
      Set the logLevel property: Default value is Error. Indicates whether error logging or verbose logging will be enabled.
      Parameters:
      logLevel - the logLevel value to set.
      Returns:
      the JobDetails object itself.
    • backupDriveManifest

      public Boolean backupDriveManifest()
      Get the backupDriveManifest property: Default value is false. Indicates whether the manifest files on the drives should be copied to block blobs.
      Returns:
      the backupDriveManifest value.
    • withBackupDriveManifest

      public JobDetails withBackupDriveManifest(Boolean backupDriveManifest)
      Set the backupDriveManifest property: Default value is false. Indicates whether the manifest files on the drives should be copied to block blobs.
      Parameters:
      backupDriveManifest - the backupDriveManifest value to set.
      Returns:
      the JobDetails object itself.
    • state

      public String state()
      Get the state property: Current state of the job.
      Returns:
      the state value.
    • withState

      public JobDetails withState(String state)
      Set the state property: Current state of the job.
      Parameters:
      state - the state value to set.
      Returns:
      the JobDetails object itself.
    • cancelRequested

      public Boolean cancelRequested()
      Get the cancelRequested property: Indicates whether a request has been submitted to cancel the job.
      Returns:
      the cancelRequested value.
    • withCancelRequested

      public JobDetails withCancelRequested(Boolean cancelRequested)
      Set the cancelRequested property: Indicates whether a request has been submitted to cancel the job.
      Parameters:
      cancelRequested - the cancelRequested value to set.
      Returns:
      the JobDetails object itself.
    • percentComplete

      public Long percentComplete()
      Get the percentComplete property: Overall percentage completed for the job.
      Returns:
      the percentComplete value.
    • withPercentComplete

      public JobDetails withPercentComplete(Long percentComplete)
      Set the percentComplete property: Overall percentage completed for the job.
      Parameters:
      percentComplete - the percentComplete value to set.
      Returns:
      the JobDetails object itself.
    • incompleteBlobListUri

      public String incompleteBlobListUri()
      Get the incompleteBlobListUri property: A blob path that points to a block blob containing a list of blob names that were not exported due to insufficient drive space. If all blobs were exported successfully, then this element is not included in the response.
      Returns:
      the incompleteBlobListUri value.
    • withIncompleteBlobListUri

      public JobDetails withIncompleteBlobListUri(String incompleteBlobListUri)
      Set the incompleteBlobListUri property: A blob path that points to a block blob containing a list of blob names that were not exported due to insufficient drive space. If all blobs were exported successfully, then this element is not included in the response.
      Parameters:
      incompleteBlobListUri - the incompleteBlobListUri value to set.
      Returns:
      the JobDetails object itself.
    • driveList

      public List<DriveStatus> driveList()
      Get the driveList property: List of up to ten drives that comprise the job. The drive list is a required element for an import job; it is not specified for export jobs.
      Returns:
      the driveList value.
    • withDriveList

      public JobDetails withDriveList(List<DriveStatus> driveList)
      Set the driveList property: List of up to ten drives that comprise the job. The drive list is a required element for an import job; it is not specified for export jobs.
      Parameters:
      driveList - the driveList value to set.
      Returns:
      the JobDetails object itself.
    • export

      public Export export()
      Get the export property: A property containing information about the blobs to be exported for an export job. This property is included for export jobs only.
      Returns:
      the export value.
    • withExport

      public JobDetails withExport(Export export)
      Set the export property: A property containing information about the blobs to be exported for an export job. This property is included for export jobs only.
      Parameters:
      export - the export value to set.
      Returns:
      the JobDetails object itself.
    • provisioningState

      public String provisioningState()
      Get the provisioningState property: Specifies the provisioning state of the job.
      Returns:
      the provisioningState value.
    • withProvisioningState

      public JobDetails withProvisioningState(String provisioningState)
      Set the provisioningState property: Specifies the provisioning state of the job.
      Parameters:
      provisioningState - the provisioningState value to set.
      Returns:
      the JobDetails object itself.
    • encryptionKey

      public EncryptionKeyDetails encryptionKey()
      Get the encryptionKey property: Contains information about the encryption key.
      Returns:
      the encryptionKey value.
    • withEncryptionKey

      public JobDetails withEncryptionKey(EncryptionKeyDetails encryptionKey)
      Set the encryptionKey property: Contains information about the encryption key.
      Parameters:
      encryptionKey - the encryptionKey value to set.
      Returns:
      the JobDetails object itself.
    • validate

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