Class FileSystem
- java.lang.Object
-
- com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
-
- com.oracle.bmc.filestorage.model.FileSystem
-
@Generated(value="OracleSDKGenerator", comments="API Version: 20171215") public final class FileSystem extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
An NFS file system.To allow access to a file system, add it to an export set and associate the export set with a mount target. The same file system can be in multiple export sets and associated with multiple mount targets.
To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized, talk to an administrator. If you're an administrator who needs to write policies to give users access, see [Getting Started with Policies](https://docs.oracle.com/iaas/Content/Identity/Concepts/policygetstarted.htm).
Note: Objects should always be created or deserialized using theFileSystem.Builder
. This model distinguishes fields that are null because they are unset from fields that are explicitly set to null. This is done in the setter methods of theFileSystem.Builder
, which maintain a set of all explicitly set fields calledFileSystem.Builder.__explicitlySet__
. ThehashCode()
andequals(Object)
methods are implemented to take the explicitly set fields into account. The constructor, on the other hand, does not take the explicitly set fields into account (since the constructor cannot distinguish explicit null from unset null).
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
FileSystem.Builder
static class
FileSystem.CloneAttachStatus
Specifies whether the file system is attached to its parent file system.static class
FileSystem.LifecycleState
The current state of the file system.static class
FileSystem.QuotaEnforcementState
Displays the state of enforcement of quota rules on the file system.
-
Constructor Summary
Constructors Constructor Description FileSystem(String availabilityDomain, Long meteredBytes, String compartmentId, String displayName, String id, FileSystem.LifecycleState lifecycleState, Date timeCreated, Map<String,String> freeformTags, Map<String,Map<String,Object>> definedTags, Map<String,Map<String,Object>> systemTags, String kmsKeyId, SourceDetails sourceDetails, Boolean isCloneParent, Boolean isHydrated, Integer cloneCount, FileSystem.CloneAttachStatus cloneAttachStatus, List<ResourceLock> locks, String lifecycleDetails, Boolean isTargetable, String replicationTargetId, String filesystemSnapshotPolicyId, Boolean areQuotaRulesEnabled, FileSystem.QuotaEnforcementState quotaEnforcementState, Integer replicationSourceCount)
Deprecated.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static FileSystem.Builder
builder()
Create a new builder.boolean
equals(Object o)
Boolean
getAreQuotaRulesEnabled()
Specifies the enforcement of quota rules on the file system.String
getAvailabilityDomain()
The availability domain the file system is in.FileSystem.CloneAttachStatus
getCloneAttachStatus()
Specifies whether the file system is attached to its parent file system.Integer
getCloneCount()
Specifies the total number of children of a file system.String
getCompartmentId()
The OCID of the compartment that contains the file system.Map<String,Map<String,Object>>
getDefinedTags()
Defined tags for this resource.String
getDisplayName()
A user-friendly name.String
getFilesystemSnapshotPolicyId()
The OCID of the associated file system snapshot policy, which controls the frequency of snapshot creation and retention period of the taken snapshots.Map<String,String>
getFreeformTags()
Free-form tags for this resource.String
getId()
The OCID of the file system.Boolean
getIsCloneParent()
Specifies whether the file system has been cloned.Boolean
getIsHydrated()
Specifies whether the data has finished copying from the source to the clone.Boolean
getIsTargetable()
Specifies whether the file system can be used as a target file system for replication.String
getKmsKeyId()
The OCID of the KMS key which is the master encryption key for the file system.String
getLifecycleDetails()
Additional information about the current ‘lifecycleState’.FileSystem.LifecycleState
getLifecycleState()
The current state of the file system.List<ResourceLock>
getLocks()
Locks associated with this resource.Long
getMeteredBytes()
The number of bytes consumed by the file system, including any snapshots.FileSystem.QuotaEnforcementState
getQuotaEnforcementState()
Displays the state of enforcement of quota rules on the file system.Integer
getReplicationSourceCount()
Specifies the total number of replications for which this file system is a source.String
getReplicationTargetId()
The OCID of the replication target associated with the file system.SourceDetails
getSourceDetails()
Map<String,Map<String,Object>>
getSystemTags()
System tags for this resource.Date
getTimeCreated()
The date and time the file system was created, expressed in RFC 3339 timestamp format.int
hashCode()
FileSystem.Builder
toBuilder()
String
toString()
String
toString(boolean includeByteArrayContents)
Return a string representation of the object.
-
-
-
Constructor Detail
-
FileSystem
@Deprecated @ConstructorProperties({"availabilityDomain","meteredBytes","compartmentId","displayName","id","lifecycleState","timeCreated","freeformTags","definedTags","systemTags","kmsKeyId","sourceDetails","isCloneParent","isHydrated","cloneCount","cloneAttachStatus","locks","lifecycleDetails","isTargetable","replicationTargetId","filesystemSnapshotPolicyId","areQuotaRulesEnabled","quotaEnforcementState","replicationSourceCount"}) public FileSystem(String availabilityDomain, Long meteredBytes, String compartmentId, String displayName, String id, FileSystem.LifecycleState lifecycleState, Date timeCreated, Map<String,String> freeformTags, Map<String,Map<String,Object>> definedTags, Map<String,Map<String,Object>> systemTags, String kmsKeyId, SourceDetails sourceDetails, Boolean isCloneParent, Boolean isHydrated, Integer cloneCount, FileSystem.CloneAttachStatus cloneAttachStatus, List<ResourceLock> locks, String lifecycleDetails, Boolean isTargetable, String replicationTargetId, String filesystemSnapshotPolicyId, Boolean areQuotaRulesEnabled, FileSystem.QuotaEnforcementState quotaEnforcementState, Integer replicationSourceCount)
Deprecated.
-
-
Method Detail
-
builder
public static FileSystem.Builder builder()
Create a new builder.
-
toBuilder
public FileSystem.Builder toBuilder()
-
getAvailabilityDomain
public String getAvailabilityDomain()
The availability domain the file system is in.May be unset as a blank or NULL value.
Example: Uocm:PHX-AD-1
- Returns:
- the value
-
getMeteredBytes
public Long getMeteredBytes()
The number of bytes consumed by the file system, including any snapshots.This number reflects the metered size of the file system and is updated asynchronously with respect to updates to the file system. For more information, see File System Usage and Metering.
- Returns:
- the value
-
getCompartmentId
public String getCompartmentId()
The OCID of the compartment that contains the file system.- Returns:
- the value
-
getDisplayName
public String getDisplayName()
A user-friendly name.It does not have to be unique, and it is changeable. Avoid entering confidential information.
Example: My file system
- Returns:
- the value
-
getLifecycleState
public FileSystem.LifecycleState getLifecycleState()
The current state of the file system.- Returns:
- the value
-
getTimeCreated
public Date getTimeCreated()
The date and time the file system was created, expressed in RFC 3339 timestamp format.Example: 2016-08-25T21:10:29.600Z
- Returns:
- the value
-
getFreeformTags
public Map<String,String> getFreeformTags()
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”}
- Returns:
- the value
-
getDefinedTags
public Map<String,Map<String,Object>> getDefinedTags()
Defined tags for this resource.Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {“Operations”: {“CostCenter”: “42”}}
- Returns:
- the value
-
getSystemTags
public Map<String,Map<String,Object>> getSystemTags()
System tags for this resource.System tags are applied to resources by internal OCI services.
- Returns:
- the value
-
getKmsKeyId
public String getKmsKeyId()
The OCID of the KMS key which is the master encryption key for the file system.- Returns:
- the value
-
getSourceDetails
public SourceDetails getSourceDetails()
-
getIsCloneParent
public Boolean getIsCloneParent()
Specifies whether the file system has been cloned.- Returns:
- the value
-
getIsHydrated
public Boolean getIsHydrated()
Specifies whether the data has finished copying from the source to the clone.Hydration can take up to several hours to complete depending on the size of the source. The source and clone remain available during hydration, but there may be some performance impact. See Cloning a File System.
- Returns:
- the value
-
getCloneCount
public Integer getCloneCount()
Specifies the total number of children of a file system.- Returns:
- the value
-
getCloneAttachStatus
public FileSystem.CloneAttachStatus getCloneAttachStatus()
Specifies whether the file system is attached to its parent file system.- Returns:
- the value
-
getLocks
public List<ResourceLock> getLocks()
Locks associated with this resource.- Returns:
- the value
-
getLifecycleDetails
public String getLifecycleDetails()
Additional information about the current ‘lifecycleState’.- Returns:
- the value
-
getIsTargetable
public Boolean getIsTargetable()
Specifies whether the file system can be used as a target file system for replication.The system sets this value to true if the file system is unexported, hasn’t yet been specified as a target file system in any replication resource, and has no user snapshots. After the file system has been specified as a target in a replication, or if the file system contains user snapshots, the system sets this value to false. For more information, see Using Replication.
- Returns:
- the value
-
getReplicationTargetId
public String getReplicationTargetId()
The OCID of the replication target associated with the file system.Empty if the file system is not being used as target in a replication.
- Returns:
- the value
-
getFilesystemSnapshotPolicyId
public String getFilesystemSnapshotPolicyId()
The OCID of the associated file system snapshot policy, which controls the frequency of snapshot creation and retention period of the taken snapshots.- Returns:
- the value
-
getAreQuotaRulesEnabled
public Boolean getAreQuotaRulesEnabled()
Specifies the enforcement of quota rules on the file system.- Returns:
- the value
-
getQuotaEnforcementState
public FileSystem.QuotaEnforcementState getQuotaEnforcementState()
Displays the state of enforcement of quota rules on the file system.- Returns:
- the value
-
getReplicationSourceCount
public Integer getReplicationSourceCount()
Specifies the total number of replications for which this file system is a source.- Returns:
- the value
-
toString
public String toString()
- Overrides:
toString
in classcom.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
-
toString
public String toString(boolean includeByteArrayContents)
Return a string representation of the object.- Parameters:
includeByteArrayContents
- true to include the full contents of byte arrays- Returns:
- string representation
-
equals
public boolean equals(Object o)
- Overrides:
equals
in classcom.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classcom.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
-
-