Class TieringConfiguration
- java.lang.Object
-
- com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
-
- com.oracle.bmc.lustrefilestorage.model.TieringConfiguration
-
@Generated(value="OracleSDKGenerator", comments="API Version: 20250228") public final class TieringConfiguration extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModelTiering configuration for a Lustre file system.Tiering archives eligible file data to Object Storage while keeping files visible at their original Lustre paths, and restores archived data transparently when accessed. When policyMode is CUSTOM, this object includes the custom policy rules configured for the file system. When policyMode is DEFAULT, the service applies the built-in tiering policy rule, which archives files larger than 1 MB that have not been accessed for more than 30 days.
Note: Objects should always be created or deserialized using theTieringConfiguration.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 theTieringConfiguration.Builder, which maintain a set of all explicitly set fields calledTieringConfiguration.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 classTieringConfiguration.Builderstatic classTieringConfiguration.PolicyModeWhether the service default policy rule or custom policy rules are used.
-
Constructor Summary
Constructors Constructor Description TieringConfiguration(Boolean isEnabled, TieringConfiguration.PolicyMode policyMode, Integer ruleCount, List<TieringPolicyRule> rules)Deprecated.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static TieringConfiguration.Builderbuilder()Create a new builder.booleanequals(Object o)BooleangetIsEnabled()Whether tiering is enabled for the Lustre file system.TieringConfiguration.PolicyModegetPolicyMode()Whether the service default policy rule or custom policy rules are used.IntegergetRuleCount()Service-computed number of custom tiering policy rules.List<TieringPolicyRule>getRules()Custom tiering policy rules configured for the Lustre file system.inthashCode()TieringConfiguration.BuildertoBuilder()StringtoString()StringtoString(boolean includeByteArrayContents)Return a string representation of the object.
-
-
-
Constructor Detail
-
TieringConfiguration
@Deprecated @ConstructorProperties({"isEnabled","policyMode","ruleCount","rules"}) public TieringConfiguration(Boolean isEnabled, TieringConfiguration.PolicyMode policyMode, Integer ruleCount, List<TieringPolicyRule> rules)
Deprecated.
-
-
Method Detail
-
builder
public static TieringConfiguration.Builder builder()
Create a new builder.
-
toBuilder
public TieringConfiguration.Builder toBuilder()
-
getIsEnabled
public Boolean getIsEnabled()
Whether tiering is enabled for the Lustre file system.- Returns:
- the value
-
getPolicyMode
public TieringConfiguration.PolicyMode getPolicyMode()
Whether the service default policy rule or custom policy rules are used.When set to DEFAULT, the service applies the built-in tiering policy rule, which archives files larger than 1 MB that have not been accessed for more than 30 days. When set to CUSTOM, the service uses the policy rules configured in rules.
- Returns:
- the value
-
getRuleCount
public Integer getRuleCount()
Service-computed number of custom tiering policy rules.- Returns:
- the value
-
getRules
public List<TieringPolicyRule> getRules()
Custom tiering policy rules configured for the Lustre file system.This property is only applicable when policyMode is CUSTOM. When policyMode is DEFAULT, the service applies the built-in tiering policy rule instead. An enabled custom policy contains 1 to 50 rules. When tiering is disabled, custom policy rules are optional.
- Returns:
- the value
-
toString
public String toString()
- Overrides:
toStringin 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:
equalsin classcom.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
-
hashCode
public int hashCode()
- Overrides:
hashCodein classcom.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
-
-