Class AuditProfile
- java.lang.Object
- 
- com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
- 
- com.oracle.bmc.datasafe.model.AuditProfile
 
 
- 
 @Generated(value="OracleSDKGenerator", comments="API Version: 20181201") public final class AuditProfile extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModelThe resource represents audit profile settings and audit configurations for the database target, and helps evaluate the initial audit data volume for configuring collection in Data Safe.The resource is also responsible for auto-discovery of audit trails in the database target during target’s registration. 
 Note: Objects should always be created or deserialized using theAuditProfile.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 theAuditProfile.Builder, which maintain a set of all explicitly set fields calledAuditProfile.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 classAuditProfile.Builder
 - 
Constructor SummaryConstructors Constructor Description AuditProfile(String id, String compartmentId, String displayName, Date timeCreated, Date timeUpdated, AuditProfileLifecycleState lifecycleState, String lifecycleDetails, String targetId, String description, List<AuditTrail> auditTrails, Boolean isPaidUsageEnabled, Integer onlineMonths, Integer offlineMonths, Long auditCollectedVolume, Boolean isOverrideGlobalRetentionSetting, Boolean isOverrideGlobalPaidUsage, String onlineMonthsSource, String offlineMonthsSource, String paidUsageSource, AuditProfileTargetType targetType, Map<String,String> freeformTags, Map<String,Map<String,Object>> definedTags, Map<String,Map<String,Object>> systemTags)Deprecated.
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static AuditProfile.Builderbuilder()Create a new builder.booleanequals(Object o)LonggetAuditCollectedVolume()Number of audit records collected in the current calendar month.List<AuditTrail>getAuditTrails()Contains the list of available audit trails on the target database.StringgetCompartmentId()The OCID of the compartment that contains the audit profile.Map<String,Map<String,Object>>getDefinedTags()Defined tags for this resource.StringgetDescription()The description of the audit profile.StringgetDisplayName()The display name of the audit profile.Map<String,String>getFreeformTags()Free-form tags for this resource.StringgetId()The OCID of the audit profile.BooleangetIsOverrideGlobalPaidUsage()Indicates whether audit paid usage settings specified at the target database level override both the global settings and the target group level paid usage settings.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.BooleangetIsPaidUsageEnabled()Indicates if you want to continue collecting audit records beyond the free limit of one million audit records per month per target database, potentially incurring additional charges.StringgetLifecycleDetails()Details about the current state of the audit profile in Data Safe.AuditProfileLifecycleStategetLifecycleState()The current state of the audit profile.IntegergetOfflineMonths()Number of months the audit records will be stored offline in the offline archive.StringgetOfflineMonthsSource()The name or the OCID of the resource from which the offline month retention setting is sourced.IntegergetOnlineMonths()Number of months the audit records will be stored online in the audit repository for immediate reporting and analysis.StringgetOnlineMonthsSource()The name or the OCID of the resource from which the online month retention setting is sourced.StringgetPaidUsageSource()The name or the OCID of the resource from which the paid usage setting is sourced.Map<String,Map<String,Object>>getSystemTags()System tags for this resource.StringgetTargetId()The OCID of the target database or target database group for which the audit profile is created.AuditProfileTargetTypegetTargetType()The resource type that is represented by the audit profile.DategetTimeCreated()The date and time the audit profile was created, in the format defined by RFC3339.DategetTimeUpdated()The date and time the audit profile was updated, in the format defined by RFC3339.inthashCode()AuditProfile.BuildertoBuilder()StringtoString()StringtoString(boolean includeByteArrayContents)Return a string representation of the object.
 
- 
- 
- 
Constructor Detail- 
AuditProfile@Deprecated @ConstructorProperties({"id","compartmentId","displayName","timeCreated","timeUpdated","lifecycleState","lifecycleDetails","targetId","description","auditTrails","isPaidUsageEnabled","onlineMonths","offlineMonths","auditCollectedVolume","isOverrideGlobalRetentionSetting","isOverrideGlobalPaidUsage","onlineMonthsSource","offlineMonthsSource","paidUsageSource","targetType","freeformTags","definedTags","systemTags"}) public AuditProfile(String id, String compartmentId, String displayName, Date timeCreated, Date timeUpdated, AuditProfileLifecycleState lifecycleState, String lifecycleDetails, String targetId, String description, List<AuditTrail> auditTrails, Boolean isPaidUsageEnabled, Integer onlineMonths, Integer offlineMonths, Long auditCollectedVolume, Boolean isOverrideGlobalRetentionSetting, Boolean isOverrideGlobalPaidUsage, String onlineMonthsSource, String offlineMonthsSource, String paidUsageSource, AuditProfileTargetType targetType, Map<String,String> freeformTags, Map<String,Map<String,Object>> definedTags, Map<String,Map<String,Object>> systemTags) Deprecated.
 
- 
 - 
Method Detail- 
builderpublic static AuditProfile.Builder builder() Create a new builder.
 - 
toBuilderpublic AuditProfile.Builder toBuilder() 
 - 
getIdpublic String getId() The OCID of the audit profile.- Returns:
- the value
 
 - 
getCompartmentIdpublic String getCompartmentId() The OCID of the compartment that contains the audit profile.- Returns:
- the value
 
 - 
getDisplayNamepublic String getDisplayName() The display name of the audit profile.- Returns:
- the value
 
 - 
getTimeCreatedpublic Date getTimeCreated() The date and time the audit profile was created, in the format defined by RFC3339.- Returns:
- the value
 
 - 
getTimeUpdatedpublic Date getTimeUpdated() The date and time the audit profile was updated, in the format defined by RFC3339.- Returns:
- the value
 
 - 
getLifecycleStatepublic AuditProfileLifecycleState getLifecycleState() The current state of the audit profile.- Returns:
- the value
 
 - 
getLifecycleDetailspublic String getLifecycleDetails() Details about the current state of the audit profile in Data Safe.- Returns:
- the value
 
 - 
getTargetIdpublic String getTargetId() The OCID of the target database or target database group for which the audit profile is created.- Returns:
- the value
 
 - 
getDescriptionpublic String getDescription() The description of the audit profile.- Returns:
- the value
 
 - 
getAuditTrailspublic List<AuditTrail> getAuditTrails() Contains the list of available audit trails on the target database.- Returns:
- the value
 
 - 
getIsPaidUsageEnabledpublic Boolean getIsPaidUsageEnabled() Indicates if you want to continue collecting audit records beyond the free limit of one million audit records per month per target database, potentially incurring additional charges.The default value is inherited from the global settings. You can change at the global level or at the target level. - Returns:
- the value
 
 - 
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
 
 - 
getAuditCollectedVolumepublic Long getAuditCollectedVolume() Number of audit records collected in the current calendar month.Audit records for the Data Safe service account are excluded and are not counted towards your monthly free limit. - 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
 
 - 
getIsOverrideGlobalPaidUsagepublic Boolean getIsOverrideGlobalPaidUsage() Indicates whether audit paid usage settings specified at the target database level override both the global settings and the target group level paid usage settings.Enabling paid usage continues the collection of audit records beyond the free limit of one million audit records per month per target database, potentially incurring additional charges. For more information, see Data Safe Price List. - Returns:
- the value
 
 - 
getOnlineMonthsSourcepublic String getOnlineMonthsSource() The name or the OCID of the resource from which the online month retention setting is sourced.For example, a global setting or a target database group OCID. - Returns:
- the value
 
 - 
getOfflineMonthsSourcepublic String getOfflineMonthsSource() The name or the OCID of the resource from which the offline month retention setting is sourced.For example, a global setting or a target database group OCID. - Returns:
- the value
 
 - 
getPaidUsageSourcepublic String getPaidUsageSource() The name or the OCID of the resource from which the paid usage setting is sourced.For example, a global setting or a target database group OCID. - Returns:
- the value
 
 - 
getTargetTypepublic AuditProfileTargetType getTargetType() The resource type that is represented by the audit profile.- Returns:
- the value
 
 - 
getFreeformTagspublic 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
 
 - 
getDefinedTagspublic 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
 
 - 
getSystemTagspublic Map<String,Map<String,Object>> getSystemTags() System tags for this resource.Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {“orcl-cloud”: {“free-tier-retained”: “true”}} - 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
 
 
- 
 
-