public static class FilesystemSnapshotPolicy.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and 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 |
timeCreated(Date timeCreated)
The date and time the file system snapshot policy was created, expressed in RFC
3339 timestamp format.
|
public FilesystemSnapshotPolicy.Builder compartmentId(String compartmentId)
The OCID of the compartment that contains the file system snapshot policy.
compartmentId
- the value to setpublic 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
availabilityDomain
- the value to setpublic FilesystemSnapshotPolicy.Builder id(String id)
The OCID of the file system snapshot policy.
id
- the value to setpublic FilesystemSnapshotPolicy.Builder lifecycleState(FilesystemSnapshotPolicy.LifecycleState lifecycleState)
The current state of the file system snapshot policy.
lifecycleState
- the value to setpublic 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
timeCreated
- the value to setpublic 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
displayName
- the value to setpublic FilesystemSnapshotPolicy.Builder policyPrefix(String policyPrefix)
The prefix to apply to all snapshots created by this policy.
Example: acme
policyPrefix
- the value to setpublic FilesystemSnapshotPolicy.Builder schedules(List<SnapshotSchedule> schedules)
The list of associated snapshot schedules. A maximum of 10 schedules can be associated with a policy.
schedules
- the value to setpublic FilesystemSnapshotPolicy.Builder locks(List<ResourceLock> locks)
Locks associated with this resource.
locks
- the value to setpublic 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"}
freeformTags
- the value to setpublic 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"}}
definedTags
- the value to setpublic FilesystemSnapshotPolicy build()
public FilesystemSnapshotPolicy.Builder copy(FilesystemSnapshotPolicy model)
Copyright © 2016–2024. All rights reserved.