Package com.oracle.bmc.datasafe.model
Class AuditSpecification
- java.lang.Object
- 
- com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
- 
- com.oracle.bmc.datasafe.model.AuditSpecification
 
 
- 
 @Generated(value="OracleSDKGenerator", comments="API Version: 20181201") public final class AuditSpecification extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModelRepresents an audit policy relevant for the target database.The audit policy could be in any one of the following 3 states in the target database 1) Created and enabled 2) Created but not enabled 3) Not created For more details on relevant audit policies for the target database, refer to documentation.
 Note: Objects should always be created or deserialized using theAuditSpecification.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 theAuditSpecification.Builder, which maintain a set of all explicitly set fields calledAuditSpecification.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 classAuditSpecification.Builderstatic classAuditSpecification.EnabledEntitiesIndicates on whom the audit policy is enabled.static classAuditSpecification.EnableStatusIndicates whether the policy has been enabled, disabled or partially enabled in the target database.
 - 
Constructor SummaryConstructors Constructor Description AuditSpecification(String auditPolicyName, List<String> databasePolicyNames, AuditPolicyCategory auditPolicyCategory, AuditSpecification.EnableStatus enableStatus, String partiallyEnabledMsg, Boolean isEnabledForAllUsers, Boolean isViewOnly, Boolean isSeededInTarget, Boolean isSeededInDataSafe, Boolean isCreated, AuditSpecification.EnabledEntities enabledEntities)Deprecated.
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static AuditSpecification.Builderbuilder()Create a new builder.booleanequals(Object o)AuditPolicyCategorygetAuditPolicyCategory()The category to which the audit policy belongs.StringgetAuditPolicyName()Indicates the audit policy name.List<String>getDatabasePolicyNames()Indicates the names of corresponding database policy ( or policies) in the target database.AuditSpecification.EnabledEntitiesgetEnabledEntities()Indicates on whom the audit policy is enabled.AuditSpecification.EnableStatusgetEnableStatus()Indicates whether the policy has been enabled, disabled or partially enabled in the target database.BooleangetIsCreated()Indicates whether the policy is already created on the target database.BooleangetIsEnabledForAllUsers()Indicates whether the policy by default is enabled for all users with no flexibility to alter the enablement conditions.BooleangetIsSeededInDataSafe()Indicates whether the audit policy is one of the seeded policies provided by Oracle Data Safe.BooleangetIsSeededInTarget()Indicates whether the audit policy is one of the predefined policies provided by Oracle Database.BooleangetIsViewOnly()Indicates whether the audit policy is available for provisioning/ de-provisioning from Oracle Data Safe, or is only available for displaying the current provisioning status from the target.StringgetPartiallyEnabledMsg()Provides information about the policy that has been only partially enabled.inthashCode()AuditSpecification.BuildertoBuilder()StringtoString()StringtoString(boolean includeByteArrayContents)Return a string representation of the object.
 
- 
- 
- 
Constructor Detail- 
AuditSpecification@Deprecated @ConstructorProperties({"auditPolicyName","databasePolicyNames","auditPolicyCategory","enableStatus","partiallyEnabledMsg","isEnabledForAllUsers","isViewOnly","isSeededInTarget","isSeededInDataSafe","isCreated","enabledEntities"}) public AuditSpecification(String auditPolicyName, List<String> databasePolicyNames, AuditPolicyCategory auditPolicyCategory, AuditSpecification.EnableStatus enableStatus, String partiallyEnabledMsg, Boolean isEnabledForAllUsers, Boolean isViewOnly, Boolean isSeededInTarget, Boolean isSeededInDataSafe, Boolean isCreated, AuditSpecification.EnabledEntities enabledEntities) Deprecated.
 
- 
 - 
Method Detail- 
builderpublic static AuditSpecification.Builder builder() Create a new builder.
 - 
toBuilderpublic AuditSpecification.Builder toBuilder() 
 - 
getAuditPolicyNamepublic String getAuditPolicyName() Indicates the audit policy name.Refer to the documentation for seeded audit policy names. For custom policies, refer to the user-defined policy name created in the target database. - Returns:
- the value
 
 - 
getDatabasePolicyNamespublic List<String> getDatabasePolicyNames() Indicates the names of corresponding database policy ( or policies) in the target database.- Returns:
- the value
 
 - 
getAuditPolicyCategorypublic AuditPolicyCategory getAuditPolicyCategory() The category to which the audit policy belongs.- Returns:
- the value
 
 - 
getEnableStatuspublic AuditSpecification.EnableStatus getEnableStatus() Indicates whether the policy has been enabled, disabled or partially enabled in the target database.The status is PARTIALLY_ENABLED if any of the constituent database audit policies is not enabled. - Returns:
- the value
 
 - 
getPartiallyEnabledMsgpublic String getPartiallyEnabledMsg() Provides information about the policy that has been only partially enabled.- Returns:
- the value
 
 - 
getIsEnabledForAllUserspublic Boolean getIsEnabledForAllUsers() Indicates whether the policy by default is enabled for all users with no flexibility to alter the enablement conditions.- Returns:
- the value
 
 - 
getIsViewOnlypublic Boolean getIsViewOnly() Indicates whether the audit policy is available for provisioning/ de-provisioning from Oracle Data Safe, or is only available for displaying the current provisioning status from the target.- Returns:
- the value
 
 - 
getIsSeededInTargetpublic Boolean getIsSeededInTarget() Indicates whether the audit policy is one of the predefined policies provided by Oracle Database.- Returns:
- the value
 
 - 
getIsSeededInDataSafepublic Boolean getIsSeededInDataSafe() Indicates whether the audit policy is one of the seeded policies provided by Oracle Data Safe.- Returns:
- the value
 
 - 
getIsCreatedpublic Boolean getIsCreated() Indicates whether the policy is already created on the target database.- Returns:
- the value
 
 - 
getEnabledEntitiespublic AuditSpecification.EnabledEntities getEnabledEntities() Indicates on whom the audit policy is enabled.- 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
 
 
- 
 
-