Package com.oracle.bmc.filestorage.model
Class FilesystemSnapshotPolicy.Builder
- java.lang.Object
-
- com.oracle.bmc.filestorage.model.FilesystemSnapshotPolicy.Builder
-
- Enclosing class:
- FilesystemSnapshotPolicy
public static class FilesystemSnapshotPolicy.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FilesystemSnapshotPolicy.Builder
availabilityDomain(String availabilityDomain)
The availability domain that the file system snapshot policy is in.FilesystemSnapshotPolicy
build()
FilesystemSnapshotPolicy.Builder
compartmentId(String compartmentId)
The OCID of the compartment that contains the file system snapshot policy.FilesystemSnapshotPolicy.Builder
copy(FilesystemSnapshotPolicy model)
FilesystemSnapshotPolicy.Builder
definedTags(Map<String,Map<String,Object>> definedTags)
Defined tags for this resource.FilesystemSnapshotPolicy.Builder
displayName(String displayName)
A user-friendly name.FilesystemSnapshotPolicy.Builder
freeformTags(Map<String,String> freeformTags)
Free-form tags for this resource.FilesystemSnapshotPolicy.Builder
id(String id)
The OCID of the file system snapshot policy.FilesystemSnapshotPolicy.Builder
lifecycleState(FilesystemSnapshotPolicy.LifecycleState lifecycleState)
The current state of the file system snapshot policy.FilesystemSnapshotPolicy.Builder
locks(List<ResourceLock> locks)
Locks associated with this resource.FilesystemSnapshotPolicy.Builder
policyPrefix(String policyPrefix)
The prefix to apply to all snapshots created by this policy.FilesystemSnapshotPolicy.Builder
schedules(List<SnapshotSchedule> schedules)
The list of associated snapshot schedules.FilesystemSnapshotPolicy.Builder
systemTags(Map<String,Map<String,Object>> systemTags)
System tags for this resource.FilesystemSnapshotPolicy.Builder
timeCreated(Date timeCreated)
The date and time the file system snapshot policy was created, expressed in RFC 3339 timestamp format.
-
-
-
Method Detail
-
compartmentId
public FilesystemSnapshotPolicy.Builder compartmentId(String compartmentId)
The OCID of the compartment that contains the file system snapshot policy.- Parameters:
compartmentId
- the value to set- Returns:
- this builder
-
availabilityDomain
public FilesystemSnapshotPolicy.Builder availabilityDomain(String availabilityDomain)
The availability domain that the file system snapshot policy is in.May be unset using a blank or NULL value.
Example: Uocm:PHX-AD-2
- Parameters:
availabilityDomain
- the value to set- Returns:
- this builder
-
id
public FilesystemSnapshotPolicy.Builder id(String id)
The OCID of the file system snapshot policy.- Parameters:
id
- the value to set- Returns:
- this builder
-
lifecycleState
public FilesystemSnapshotPolicy.Builder lifecycleState(FilesystemSnapshotPolicy.LifecycleState lifecycleState)
The current state of the file system snapshot policy.- Parameters:
lifecycleState
- the value to set- Returns:
- this builder
-
timeCreated
public FilesystemSnapshotPolicy.Builder timeCreated(Date timeCreated)
The date and time the file system snapshot policy was created, expressed in RFC 3339 timestamp format.Example: 2016-08-25T21:10:29.600Z
- Parameters:
timeCreated
- the value to set- Returns:
- this builder
-
displayName
public FilesystemSnapshotPolicy.Builder displayName(String displayName)
A user-friendly name.It does not have to be unique, and it is changeable. Avoid entering confidential information.
Example: policy1
- Parameters:
displayName
- the value to set- Returns:
- this builder
-
policyPrefix
public FilesystemSnapshotPolicy.Builder policyPrefix(String policyPrefix)
The prefix to apply to all snapshots created by this policy.Example: acme
- Parameters:
policyPrefix
- the value to set- Returns:
- this builder
-
schedules
public FilesystemSnapshotPolicy.Builder schedules(List<SnapshotSchedule> schedules)
The list of associated snapshot schedules.A maximum of 10 schedules can be associated with a policy.
- Parameters:
schedules
- the value to set- Returns:
- this builder
-
locks
public FilesystemSnapshotPolicy.Builder locks(List<ResourceLock> locks)
Locks associated with this resource.- Parameters:
locks
- the value to set- Returns:
- this builder
-
freeformTags
public FilesystemSnapshotPolicy.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 FilesystemSnapshotPolicy.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 FilesystemSnapshotPolicy.Builder systemTags(Map<String,Map<String,Object>> systemTags)
System tags for this resource.System tags are applied to resources by internal OCI services.
- Parameters:
systemTags
- the value to set- Returns:
- this builder
-
build
public FilesystemSnapshotPolicy build()
-
copy
public FilesystemSnapshotPolicy.Builder copy(FilesystemSnapshotPolicy model)
-
-