Package com.ibm.cloud.is.vpc.v1.model
Class BackupPolicyJob
- java.lang.Object
-
- com.ibm.cloud.sdk.core.service.model.GenericModel
-
- com.ibm.cloud.is.vpc.v1.model.BackupPolicyJob
-
- All Implemented Interfaces:
com.ibm.cloud.sdk.core.service.model.ObjectModel
public class BackupPolicyJob extends com.ibm.cloud.sdk.core.service.model.GenericModel
BackupPolicyJob.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
BackupPolicyJob.JobType
The type of backup policy job.static interface
BackupPolicyJob.ResourceType
The resource type.static interface
BackupPolicyJob.Status
The status of the backup policy job.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Long
getAutoDeleteAfter()
Gets the autoDeleteAfter.BackupPolicyPlanReference
getBackupPolicyPlan()
Gets the backupPolicyPlan.Date
getCompletedAt()
Gets the completedAt.Date
getCreatedAt()
Gets the createdAt.String
getHref()
Gets the href.String
getId()
Gets the id.String
getJobType()
Gets the jobType.String
getResourceType()
Gets the resourceType.BackupPolicyJobSource
getSource()
Gets the source.String
getStatus()
Gets the status.List<BackupPolicyJobStatusReason>
getStatusReasons()
Gets the statusReasons.List<SnapshotReference>
getTargetSnapshots()
Gets the targetSnapshots.Boolean
isAutoDelete()
Gets the autoDelete.
-
-
-
Method Detail
-
isAutoDelete
public Boolean isAutoDelete()
Gets the autoDelete. Indicates whether this backup policy job will be automatically deleted after it completes. At present, this is always `true`, but may be modifiable in the future.- Returns:
- the autoDelete
-
getAutoDeleteAfter
public Long getAutoDeleteAfter()
Gets the autoDeleteAfter. If `auto_delete` is `true`, the days after completion that this backup policy job will be deleted. This value may be modifiable in the future.- Returns:
- the autoDeleteAfter
-
getBackupPolicyPlan
public BackupPolicyPlanReference getBackupPolicyPlan()
Gets the backupPolicyPlan. The backup policy plan operated this backup policy job (may be [deleted](https://cloud.ibm.com/apidocs/vpc#deleted-resources)).- Returns:
- the backupPolicyPlan
-
getCompletedAt
public Date getCompletedAt()
Gets the completedAt. The date and time that the backup policy job was completed. If absent, the backup policy job has not yet completed.- Returns:
- the completedAt
-
getCreatedAt
public Date getCreatedAt()
Gets the createdAt. The date and time that the backup policy job was created.- Returns:
- the createdAt
-
getHref
public String getHref()
Gets the href. The URL for this backup policy job.- Returns:
- the href
-
getId
public String getId()
Gets the id. The unique identifier for this backup policy job.- Returns:
- the id
-
getJobType
public String getJobType()
Gets the jobType. The type of backup policy job. The enumerated values for this property may [expand](https://cloud.ibm.com/apidocs/vpc#property-value-expansion) in the future.- Returns:
- the jobType
-
getResourceType
public String getResourceType()
Gets the resourceType. The resource type.- Returns:
- the resourceType
-
getSource
public BackupPolicyJobSource getSource()
Gets the source. The source this backup was created from (may be [deleted](https://cloud.ibm.com/apidocs/vpc#deleted-resources)).- Returns:
- the source
-
getStatus
public String getStatus()
Gets the status. The status of the backup policy job. The enumerated values for this property may [expand](https://cloud.ibm.com/apidocs/vpc#property-value-expansion) in the future.- Returns:
- the status
-
getStatusReasons
public List<BackupPolicyJobStatusReason> getStatusReasons()
Gets the statusReasons. The reasons for the current status (if any).- Returns:
- the statusReasons
-
getTargetSnapshots
public List<SnapshotReference> getTargetSnapshots()
Gets the targetSnapshots. The snapshots operated on by this backup policy job (may be [deleted](https://cloud.ibm.com/apidocs/vpc#deleted-resources)).- Returns:
- the targetSnapshots
-
-