public class JobProperties extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
JobProperties.JobStatus |
static class |
JobProperties.JobType |
| Constructor and Description |
|---|
JobProperties() |
| Modifier and Type | Method and Description |
|---|---|
static JobProperties |
createForExportJob(String outputBlobContainerUri,
Boolean excludeKeysInExport)
Creates an instance of JobProperties with parameters ready to start an Export job
|
static JobProperties |
createForExportJob(String outputBlobContainerUri,
Boolean excludeKeysInExport,
com.microsoft.azure.sdk.iot.deps.serializer.StorageAuthenticationType storageAuthenticationType)
Creates an instance of JobProperties with parameters ready to start an Export job
|
static JobProperties |
createForExportJob(String outputBlobContainerUri,
Boolean excludeKeysInExport,
com.microsoft.azure.sdk.iot.deps.serializer.StorageAuthenticationType storageAuthenticationType,
com.microsoft.azure.sdk.iot.deps.serializer.ManagedIdentity identity)
Creates an instance of JobProperties with parameters ready to start an Export job
|
static JobProperties |
createForImportJob(String inputBlobContainerUri,
String outputBlobContainerUri)
Creates an instance of JobProperties with parameters ready to start an Import job
|
static JobProperties |
createForImportJob(String inputBlobContainerUri,
String outputBlobContainerUri,
com.microsoft.azure.sdk.iot.deps.serializer.StorageAuthenticationType storageAuthenticationType)
Creates an instance of JobProperties with parameters ready to start an Import job
|
static JobProperties |
createForImportJob(String inputBlobContainerUri,
String outputBlobContainerUri,
com.microsoft.azure.sdk.iot.deps.serializer.StorageAuthenticationType storageAuthenticationType,
com.microsoft.azure.sdk.iot.deps.serializer.ManagedIdentity identity)
Creates an instance of JobProperties with parameters ready to start an Import job
|
Date |
getEndTimeUtc() |
boolean |
getExcludeKeysInExport() |
String |
getFailureReason() |
com.microsoft.azure.sdk.iot.deps.serializer.ManagedIdentity |
getIdentity() |
String |
getInputBlobContainerUri() |
String |
getJobId() |
String |
getOutputBlobContainerUri() |
int |
getProgress() |
Date |
getStartTimeUtc() |
JobProperties.JobStatus |
getStatus() |
com.microsoft.azure.sdk.iot.deps.serializer.StorageAuthenticationType |
getStorageAuthenticationType() |
JobProperties.JobType |
getType() |
void |
setEndTimeUtc(Date endTimeUtc) |
void |
setExcludeKeysInExport(boolean excludeKeysInExport) |
void |
setFailureReason(String failureReason) |
void |
setIdentity(com.microsoft.azure.sdk.iot.deps.serializer.ManagedIdentity identity) |
void |
setInputBlobContainerUri(String inputBlobContainerUri) |
void |
setJobId(String jobId)
Deprecated.
|
void |
setJobIdFinal(String jobId) |
void |
setOutputBlobContainerUri(String outputBlobContainerUri) |
void |
setProgress(int progress) |
void |
setStartTimeUtc(Date startTimeUtc) |
void |
setStatus(JobProperties.JobStatus status) |
void |
setStorageAuthenticationType(com.microsoft.azure.sdk.iot.deps.serializer.StorageAuthenticationType storageAuthenticationType) |
void |
setType(JobProperties.JobType type) |
public JobProperties.JobType getType()
public void setType(JobProperties.JobType type)
type - the type of job to execute.public String getJobId()
@Deprecated public void setJobId(String jobId) throws IllegalArgumentException
jobId - the job idIllegalArgumentException - if the provided jobId is nullpublic final void setJobIdFinal(String jobId) throws IllegalArgumentException
jobId - the job idIllegalArgumentException - if the provided jobId is nullpublic Date getStartTimeUtc()
public void setStartTimeUtc(Date startTimeUtc)
startTimeUtc - the UTC job start time.public Date getEndTimeUtc()
public void setEndTimeUtc(Date endTimeUtc)
endTimeUtc - the UTC job end time.public JobProperties.JobStatus getStatus()
public void setStatus(JobProperties.JobStatus status)
status - the job status.public int getProgress()
public void setProgress(int progress)
progress - the job progress.public String getFailureReason()
public void setFailureReason(String failureReason)
failureReason - the failure reason.public String getInputBlobContainerUri()
public void setInputBlobContainerUri(String inputBlobContainerUri)
inputBlobContainerUri - URI to a blob container that contains registry data to sync.
Including a SAS token is dependent on the StorageAuthenticationTypepublic String getOutputBlobContainerUri()
public void setOutputBlobContainerUri(String outputBlobContainerUri)
outputBlobContainerUri - URI to a blob container. This is used to output the status of the job and the results.
Including a SAS token is dependent on the StorageAuthenticationTypepublic com.microsoft.azure.sdk.iot.deps.serializer.StorageAuthenticationType getStorageAuthenticationType()
public void setStorageAuthenticationType(com.microsoft.azure.sdk.iot.deps.serializer.StorageAuthenticationType storageAuthenticationType)
storageAuthenticationType - Specifies authentication type being used for connecting to storage accountpublic boolean getExcludeKeysInExport()
public void setExcludeKeysInExport(boolean excludeKeysInExport)
excludeKeysInExport - optional for export jobs; ignored for other jobs. Default: false.
If false, authorization keys are included in export output. Keys are exported as null otherwise.public com.microsoft.azure.sdk.iot.deps.serializer.ManagedIdentity getIdentity()
public void setIdentity(com.microsoft.azure.sdk.iot.deps.serializer.ManagedIdentity identity)
identity - The managed identity used to access the storage account for import and export jobs.public static JobProperties createForImportJob(String inputBlobContainerUri, String outputBlobContainerUri)
inputBlobContainerUri - URI to a blob container that contains registry data to sync.
Including a SAS token is dependent on the StorageAuthenticationTypeoutputBlobContainerUri - URI to a blob container. This is used to output the status of the job and the results.
Including a SAS token is dependent on the StorageAuthenticationTypepublic static JobProperties createForImportJob(String inputBlobContainerUri, String outputBlobContainerUri, com.microsoft.azure.sdk.iot.deps.serializer.StorageAuthenticationType storageAuthenticationType)
inputBlobContainerUri - URI to a blob container that contains registry data to sync.
Including a SAS token is dependent on the StorageAuthenticationTypeoutputBlobContainerUri - URI to a blob container. This is used to output the status of the job and the results.
Including a SAS token is dependent on the StorageAuthenticationTypestorageAuthenticationType - Specifies authentication type being used for connecting to storage accountpublic static JobProperties createForImportJob(String inputBlobContainerUri, String outputBlobContainerUri, com.microsoft.azure.sdk.iot.deps.serializer.StorageAuthenticationType storageAuthenticationType, com.microsoft.azure.sdk.iot.deps.serializer.ManagedIdentity identity)
inputBlobContainerUri - URI to a blob container that contains registry data to sync.
Including a SAS token is dependent on the StorageAuthenticationTypeoutputBlobContainerUri - URI to a blob container. This is used to output the status of the job and the results.
Including a SAS token is dependent on the StorageAuthenticationTypestorageAuthenticationType - Specifies authentication type being used for connecting to storage accountidentity - the managed identity used to access the storage account for import jobs.public static JobProperties createForExportJob(String outputBlobContainerUri, Boolean excludeKeysInExport)
outputBlobContainerUri - URI to a blob container. This is used to output the status of the job and the results.
Including a SAS token is dependent on the StorageAuthenticationTypeexcludeKeysInExport - Indicates if authorization keys are included in export outputpublic static JobProperties createForExportJob(String outputBlobContainerUri, Boolean excludeKeysInExport, com.microsoft.azure.sdk.iot.deps.serializer.StorageAuthenticationType storageAuthenticationType)
outputBlobContainerUri - URI to a blob container. This is used to output the status of the job and the results.
Including a SAS token is dependent on the StorageAuthenticationTypeexcludeKeysInExport - Indicates if authorization keys are included in export outputstorageAuthenticationType - Specifies authentication type being used for connecting to storage accountpublic static JobProperties createForExportJob(String outputBlobContainerUri, Boolean excludeKeysInExport, com.microsoft.azure.sdk.iot.deps.serializer.StorageAuthenticationType storageAuthenticationType, com.microsoft.azure.sdk.iot.deps.serializer.ManagedIdentity identity)
outputBlobContainerUri - URI to a blob container. This is used to output the status of the job and the results.
Including a SAS token is dependent on the StorageAuthenticationTypeexcludeKeysInExport - Indicates if authorization keys are included in export outputstorageAuthenticationType - Specifies authentication type being used for connecting to storage accountidentity - the managed identity used to access the storage account for export jobs.Copyright © 2022. All rights reserved.