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 SummaryNested Classes Modifier and Type Class Description static classChangeRetentionDetails.Builder
 - 
Constructor SummaryConstructors Constructor Description ChangeRetentionDetails(Integer onlineMonths, Integer offlineMonths, Boolean isOverrideGlobalRetentionSetting)Deprecated.
 - 
Method SummaryAll 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 set at the target level override both the global settings and the target group level audit retention settings.IntegergetOfflineMonths()Number of months the audit records will be stored offline in the offline archive.IntegergetOnlineMonths()Number of months the audit records will be stored online in the 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- 
builderpublic static ChangeRetentionDetails.Builder builder() Create a new builder.
 - 
toBuilderpublic ChangeRetentionDetails.Builder toBuilder() 
 - 
getOnlineMonthspublic Integer getOnlineMonths() Number of months the audit records will be stored online in the audit repository for immediate reporting and analysis.Minimum: 1; Maximum: 12 months - Returns:
- the value
 
 - 
getOfflineMonthspublic Integer getOfflineMonths() Number of months the audit records will be stored offline in the offline archive.Minimum: 0; Maximum: 72 months. If you have a requirement to store the audit data even longer in the offline archive, please contact the Oracle Support. - Returns:
- the value
 
 - 
getIsOverrideGlobalRetentionSettingpublic Boolean getIsOverrideGlobalRetentionSetting() Indicates whether audit retention settings like online and offline months set at the target level override both the global settings and the target group level audit retention settings.- Returns:
- the value
 
 - 
toStringpublic String toString() - Overrides:
- toStringin class- com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
 
 - 
toStringpublic 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
 
 - 
equalspublic boolean equals(Object o) - Overrides:
- equalsin class- com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
 
 - 
hashCodepublic int hashCode() - Overrides:
- hashCodein class- com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
 
 
- 
 
-