Package com.oracle.bmc.datasafe.model
Class ChangeRetentionDetails
- java.lang.Object
-
- com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
-
- com.oracle.bmc.datasafe.model.ChangeRetentionDetails
-
@Generated(value="OracleSDKGenerator", comments="API Version: 20181201") public final class ChangeRetentionDetails extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModelDetails for the audit retention months to be modified.
Note: Objects should always be created or deserialized using theChangeRetentionDetails.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 theChangeRetentionDetails.Builder, which maintain a set of all explicitly set fields calledChangeRetentionDetails.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 classChangeRetentionDetails.Builder
-
Constructor Summary
Constructors Constructor Description ChangeRetentionDetails(Integer onlineMonths, Integer offlineMonths, Boolean isOverrideGlobalRetentionSetting)Deprecated.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ChangeRetentionDetails.Builderbuilder()Create a new builder.booleanequals(Object o)BooleangetIsOverrideGlobalRetentionSetting()Indicates whether audit retention settings like online and offline months is set at the target level overriding the global audit retention settings.IntegergetOfflineMonths()Indicates the number of months the audit records will be stored offline in the Data Safe audit archive.IntegergetOnlineMonths()Indicates the number of months the audit records will be stored online in Oracle Data Safe audit repository for immediate reporting and analysis.inthashCode()ChangeRetentionDetails.BuildertoBuilder()StringtoString()StringtoString(boolean includeByteArrayContents)Return a string representation of the object.
-
-
-
Constructor Detail
-
ChangeRetentionDetails
@Deprecated @ConstructorProperties({"onlineMonths","offlineMonths","isOverrideGlobalRetentionSetting"}) public ChangeRetentionDetails(Integer onlineMonths, Integer offlineMonths, Boolean isOverrideGlobalRetentionSetting)
Deprecated.
-
-
Method Detail
-
builder
public static ChangeRetentionDetails.Builder builder()
Create a new builder.
-
toBuilder
public ChangeRetentionDetails.Builder toBuilder()
-
getOnlineMonths
public Integer getOnlineMonths()
Indicates the number of months the audit records will be stored online in Oracle Data Safe audit repository for immediate reporting and analysis.Minimum: 1; Maximum: 12 months
- Returns:
- the value
-
getOfflineMonths
public Integer getOfflineMonths()
Indicates the number of months the audit records will be stored offline in the Data Safe audit archive.Minimum: 0; Maximum: 72 months. If you have a requirement to store the audit data even longer in archive, please contact the Oracle Support.
- Returns:
- the value
-
getIsOverrideGlobalRetentionSetting
public Boolean getIsOverrideGlobalRetentionSetting()
Indicates whether audit retention settings like online and offline months is set at the target level overriding the global audit retention settings.- 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
-
-