Class SyncJobSummary.Builder
- java.lang.Object
-
- com.oracle.bmc.lustrefilestorage.model.SyncJobSummary.Builder
-
- Enclosing class:
- SyncJobSummary
public static class SyncJobSummary.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SyncJobSummarybuild()SyncJobSummary.BuilderbytesTransferred(Long bytesTransferred)Bytes transferred during the sync.SyncJobSummary.Buildercopy(SyncJobSummary model)SyncJobSummary.BuilderdefinedTags(Map<String,Map<String,Object>> definedTags)Defined tags for this resource.SyncJobSummary.BuilderfreeformTags(Map<String,String> freeformTags)Free-form tags for this resource.SyncJobSummary.Builderid(String id)The OCID of the sync job.SyncJobSummary.BuilderisOverwrite(Boolean isOverwrite)The flag is an identifier to tell whether this specific job run has overwrite enabled.SyncJobSummary.BuilderjobType(SyncJobSummary.JobType jobType)The type of the sync job.SyncJobSummary.BuilderlifecycleDetails(String lifecycleDetails)A message that describes the current state of the sync job in more detail.SyncJobSummary.BuilderlifecycleState(SyncJob.LifecycleState lifecycleState)The current state of the sync job.SyncJobSummary.BuilderlustreFileSystemPath(String lustreFileSystemPath)The path in the Lustre file system used for this Object Storage link.SyncJobSummary.BuilderobjectStoragePath(String objectStoragePath)The Object Storage namespace and bucket name, including optional object prefix string, to use as the source for imports or destination for exports.SyncJobSummary.BuilderobjectsTransferred(Long objectsTransferred)Count of total files transferred successfully.SyncJobSummary.BuilderskippedErrorCount(Long skippedErrorCount)Count of files or objects that failed to export or import due to errors.SyncJobSummary.BuildersystemTags(Map<String,Map<String,Object>> systemTags)System tags for this resource.SyncJobSummary.BuildertimeFinished(Date timeFinished)The date and time the job finished, expressed in RFC 3339 timestamp format.SyncJobSummary.BuildertimeStarted(Date timeStarted)The date and time the job was started, expressed in RFC 3339 timestamp format.SyncJobSummary.BuildertotalObjectsScanned(Long totalObjectsScanned)Total object count for scanned files for import or export as part of this sync job.
-
-
-
Method Detail
-
id
public SyncJobSummary.Builder id(String id)
The OCID of the sync job.- Parameters:
id- the value to set- Returns:
- this builder
-
jobType
public SyncJobSummary.Builder jobType(SyncJobSummary.JobType jobType)
The type of the sync job.- Parameters:
jobType- the value to set- Returns:
- this builder
-
lifecycleState
public SyncJobSummary.Builder lifecycleState(SyncJob.LifecycleState lifecycleState)
The current state of the sync job.- Parameters:
lifecycleState- the value to set- Returns:
- this builder
-
lifecycleDetails
public SyncJobSummary.Builder lifecycleDetails(String lifecycleDetails)
A message that describes the current state of the sync job in more detail.For example, can be used to provide actionable information for a resource in the Failed state.
- Parameters:
lifecycleDetails- the value to set- Returns:
- this builder
-
freeformTags
public SyncJobSummary.Builder freeformTags(Map<String,String> freeformTags)
Free-form tags for this resource.Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags.
Example: {"Department": "Finance"}
- Parameters:
freeformTags- the value to set- Returns:
- this builder
-
definedTags
public SyncJobSummary.Builder definedTags(Map<String,Map<String,Object>> definedTags)
Defined tags for this resource.Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
Example: {"Operations": {"CostCenter": "42"}}
- Parameters:
definedTags- the value to set- Returns:
- this builder
-
systemTags
public SyncJobSummary.Builder systemTags(Map<String,Map<String,Object>> systemTags)
System tags for this resource.Each key is predefined and scoped to a namespace.
Example: {"orcl-cloud": {"free-tier-retained": "true"}}
- Parameters:
systemTags- the value to set- Returns:
- this builder
-
isOverwrite
public SyncJobSummary.Builder isOverwrite(Boolean isOverwrite)
The flag is an identifier to tell whether this specific job run has overwrite enabled.If isOverwrite is false, the file to be imported or exported will be skipped if it already exists. If isOverwrite is true, the file to be imported or exported will be overwritten if it already exists.
- Parameters:
isOverwrite- the value to set- Returns:
- this builder
-
totalObjectsScanned
public SyncJobSummary.Builder totalObjectsScanned(Long totalObjectsScanned)
Total object count for scanned files for import or export as part of this sync job.- Parameters:
totalObjectsScanned- the value to set- Returns:
- this builder
-
objectsTransferred
public SyncJobSummary.Builder objectsTransferred(Long objectsTransferred)
Count of total files transferred successfully.- Parameters:
objectsTransferred- the value to set- Returns:
- this builder
-
bytesTransferred
public SyncJobSummary.Builder bytesTransferred(Long bytesTransferred)
Bytes transferred during the sync.This value changes while sync is still in progress.
- Parameters:
bytesTransferred- the value to set- Returns:
- this builder
-
skippedErrorCount
public SyncJobSummary.Builder skippedErrorCount(Long skippedErrorCount)
Count of files or objects that failed to export or import due to errors.- Parameters:
skippedErrorCount- the value to set- Returns:
- this builder
-
timeStarted
public SyncJobSummary.Builder timeStarted(Date timeStarted)
The date and time the job was started, expressed in RFC 3339 timestamp format.Example: 2020-07-25T21:10:29.600Z
- Parameters:
timeStarted- the value to set- Returns:
- this builder
-
timeFinished
public SyncJobSummary.Builder timeFinished(Date timeFinished)
The date and time the job finished, expressed in RFC 3339 timestamp format.Example: 2024-07-21T20:10:29.600Z
- Parameters:
timeFinished- the value to set- Returns:
- this builder
-
lustreFileSystemPath
public SyncJobSummary.Builder lustreFileSystemPath(String lustreFileSystemPath)
The path in the Lustre file system used for this Object Storage link.Example: myFileSystem/mount/myDirectory
- Parameters:
lustreFileSystemPath- the value to set- Returns:
- this builder
-
objectStoragePath
public SyncJobSummary.Builder objectStoragePath(String objectStoragePath)
The Object Storage namespace and bucket name, including optional object prefix string, to use as the source for imports or destination for exports.Example: objectStorageNamespace:/bucketName/optionalFolder/optionalPrefix
- Parameters:
objectStoragePath- the value to set- Returns:
- this builder
-
build
public SyncJobSummary build()
-
copy
public SyncJobSummary.Builder copy(SyncJobSummary model)
-
-