Package com.oracle.bmc.filestorage.model
Class CreateSnapshotDetails.Builder
- java.lang.Object
-
- com.oracle.bmc.filestorage.model.CreateSnapshotDetails.Builder
-
- Enclosing class:
- CreateSnapshotDetails
public static class CreateSnapshotDetails.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CreateSnapshotDetails
build()
CreateSnapshotDetails.Builder
copy(CreateSnapshotDetails model)
CreateSnapshotDetails.Builder
definedTags(Map<String,Map<String,Object>> definedTags)
Defined tags for this resource.CreateSnapshotDetails.Builder
expirationTime(Date expirationTime)
The time when this snapshot will be deleted.CreateSnapshotDetails.Builder
fileSystemId(String fileSystemId)
The OCID of the file system to take a snapshot of.CreateSnapshotDetails.Builder
freeformTags(Map<String,String> freeformTags)
Free-form tags for this resource.CreateSnapshotDetails.Builder
locks(List<ResourceLock> locks)
Locks associated with this resource.CreateSnapshotDetails.Builder
name(String name)
Name of the snapshot.
-
-
-
Method Detail
-
fileSystemId
public CreateSnapshotDetails.Builder fileSystemId(String fileSystemId)
The OCID of the file system to take a snapshot of.- Parameters:
fileSystemId
- the value to set- Returns:
- this builder
-
name
public CreateSnapshotDetails.Builder name(String name)
Name of the snapshot.This value is immutable. It must also be unique with respect to all other non-DELETED snapshots on the associated file system.
Avoid entering confidential information.
Example: Sunday
- Parameters:
name
- the value to set- Returns:
- this builder
-
expirationTime
public CreateSnapshotDetails.Builder expirationTime(Date expirationTime)
The time when this snapshot will be deleted.- Parameters:
expirationTime
- the value to set- Returns:
- this builder
-
freeformTags
public CreateSnapshotDetails.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 CreateSnapshotDetails.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
-
locks
public CreateSnapshotDetails.Builder locks(List<ResourceLock> locks)
Locks associated with this resource.- Parameters:
locks
- the value to set- Returns:
- this builder
-
build
public CreateSnapshotDetails build()
-
copy
public CreateSnapshotDetails.Builder copy(CreateSnapshotDetails model)
-
-