Class BackupPolicy
java.lang.Object
com.ibm.cloud.sdk.core.service.model.GenericModel
com.ibm.cloud.is.vpc.v1.model.BackupPolicy
- All Implemented Interfaces:
com.ibm.cloud.sdk.core.service.model.ObjectModel
- Direct Known Subclasses:
BackupPolicyMatchResourceTypeInstance
,BackupPolicyMatchResourceTypeShare
,BackupPolicyMatchResourceTypeVolume
public class BackupPolicy
extends com.ibm.cloud.sdk.core.service.model.GenericModel
BackupPolicy.
Classes which extend this class:
- BackupPolicyMatchResourceTypeInstance
- BackupPolicyMatchResourceTypeVolume
- BackupPolicyMatchResourceTypeShare
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interface
The health of this resource: - `ok`: No abnormal behavior detected - `degraded`: Experiencing compromised performance, capacity, or connectivity - `faulted`: Completely unreachable, inoperative, or otherwise entirely incapacitated - `inapplicable`: The health state does not apply because of the current lifecycle state.static interface
An item to include.static interface
The lifecycle state of the backup policy.static interface
The resource type this backup policy applies to.static interface
The resource type. -
Method Summary
Modifier and TypeMethodDescriptionGets the createdAt.getCrn()
Gets the crn.Gets the healthReasons.Gets the healthState.getHref()
Gets the href.getId()
Gets the id.Gets the includedContent.Gets the lastJobCompletedAt.Gets the lifecycleState.Gets the matchResourceType.Gets the matchUserTags.getName()
Gets the name.getPlans()
Gets the plans.Gets the resourceGroup.Gets the resourceType.getScope()
Gets the scope.Methods inherited from class com.ibm.cloud.sdk.core.service.model.GenericModel
equals, hashCode, toString
-
Method Details
-
getCreatedAt
Gets the createdAt. The date and time that the backup policy was created.- Returns:
- the createdAt
-
getCrn
-
getHealthReasons
Gets the healthReasons. The reasons for the current `health_state` (if any).- Returns:
- the healthReasons
-
getHealthState
Gets the healthState. The health of this resource: - `ok`: No abnormal behavior detected - `degraded`: Experiencing compromised performance, capacity, or connectivity - `faulted`: Completely unreachable, inoperative, or otherwise entirely incapacitated - `inapplicable`: The health state does not apply because of the current lifecycle state. A resource with a lifecycle state of `failed` or `deleting` will have a health state of `inapplicable`. A `pending` resource may also have this state.- Returns:
- the healthState
-
getHref
-
getId
-
getLastJobCompletedAt
Gets the lastJobCompletedAt. The date and time that the most recent job for this backup policy completed. If absent, no job has yet completed for this backup policy.- Returns:
- the lastJobCompletedAt
-
getLifecycleState
Gets the lifecycleState. The lifecycle state of the backup policy.- Returns:
- the lifecycleState
-
getMatchResourceType
Gets the matchResourceType. The resource type this backup policy applies to. Resources that have both a matching type and a matching user tag will be subject to the backup policy. The enumerated values for this property may [expand](https://cloud.ibm.com/apidocs/vpc#property-value-expansion) in the future.- Returns:
- the matchResourceType
-
getMatchUserTags
-
getName
Gets the name. The name for this backup policy. The name is unique across all backup policies in the region.- Returns:
- the name
-
getPlans
Gets the plans. The plans for the backup policy.- Returns:
- the plans
-
getResourceGroup
Gets the resourceGroup. The resource group for this backup policy.- Returns:
- the resourceGroup
-
getResourceType
-
getScope
Gets the scope. The scope for this backup policy.- Returns:
- the scope
-
getIncludedContent
Gets the includedContent. The included content for backups created using this policy: - `boot_volume`: Include the instance's boot volume. - `data_volumes`: Include the instance's data volumes. The enumerated values for this property may [expand](https://cloud.ibm.com/apidocs/vpc#property-value-expansion) in the future.- Returns:
- the includedContent
-