public static final class ProtectionGroupSpec.Builder
extends java.lang.Object
ProtectionGroupSpec
.Constructor and Description |
---|
Builder(java.lang.String name,
TargetEntities targetEntities)
Constructor with parameters for the required properties of
ProtectionGroupSpec . |
Modifier and Type | Method and Description |
---|---|
ProtectionGroupSpec |
build() |
ProtectionGroupSpec.Builder |
setLocked(java.lang.Boolean locked)
Indicates if the protection group is to be locked.
|
ProtectionGroupSpec.Builder |
setSnapshotPolicies(java.util.List<SnapshotPolicy> snapshotPolicies)
Snapshot policy for the protection targets.
|
public Builder(java.lang.String name, TargetEntities targetEntities)
ProtectionGroupSpec
.public ProtectionGroupSpec.Builder setSnapshotPolicies(java.util.List<SnapshotPolicy> snapshotPolicies)
null
local protection will be skipped.snapshotPolicies
- New value for the property.public ProtectionGroupSpec.Builder setLocked(java.lang.Boolean locked)
null
the protection group will be considered as unlocked.locked
- New value for the property.public ProtectionGroupSpec build()