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.ExplicitlySetBmcModel
Details 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 class
ChangeRetentionDetails.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.Builder
builder()
Create a new builder.boolean
equals(Object o)
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.Integer
getOfflineMonths()
Number of months the audit records will be stored offline in the offline archive.Integer
getOnlineMonths()
Number of months the audit records will be stored online in the audit repository for immediate reporting and analysis.int
hashCode()
ChangeRetentionDetails.Builder
toBuilder()
String
toString()
String
toString(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()
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
-
getOfflineMonths
public 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
-
getIsOverrideGlobalRetentionSetting
public 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
-
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
-
-