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.ExplicitlySetBmcModel
Represents 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 Summary
Nested Classes Modifier and Type Class Description static class
AuditSpecification.Builder
static class
AuditSpecification.EnabledEntities
Indicates on whom the audit policy is enabled.static class
AuditSpecification.EnableStatus
Indicates whether the policy has been enabled, disabled or partially enabled in the target database.
-
Constructor Summary
Constructors 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 Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static AuditSpecification.Builder
builder()
Create a new builder.boolean
equals(Object o)
AuditPolicyCategory
getAuditPolicyCategory()
The category to which the audit policy belongs.String
getAuditPolicyName()
Indicates the audit policy name.List<String>
getDatabasePolicyNames()
Indicates the names of corresponding database policy ( or policies) in the target database.AuditSpecification.EnabledEntities
getEnabledEntities()
Indicates on whom the audit policy is enabled.AuditSpecification.EnableStatus
getEnableStatus()
Indicates whether the policy has been enabled, disabled or partially enabled in the target database.Boolean
getIsCreated()
Indicates whether the policy is already created on the target database.Boolean
getIsEnabledForAllUsers()
Indicates whether the policy by default is enabled for all users with no flexibility to alter the enablement conditions.Boolean
getIsSeededInDataSafe()
Indicates whether the audit policy is one of the seeded policies provided by Oracle Data Safe.Boolean
getIsSeededInTarget()
Indicates whether the audit policy is one of the predefined policies provided by Oracle Database.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.String
getPartiallyEnabledMsg()
Provides information about the policy that has been only partially enabled.int
hashCode()
AuditSpecification.Builder
toBuilder()
String
toString()
String
toString(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
-
builder
public static AuditSpecification.Builder builder()
Create a new builder.
-
toBuilder
public AuditSpecification.Builder toBuilder()
-
getAuditPolicyName
public 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
-
getDatabasePolicyNames
public List<String> getDatabasePolicyNames()
Indicates the names of corresponding database policy ( or policies) in the target database.- Returns:
- the value
-
getAuditPolicyCategory
public AuditPolicyCategory getAuditPolicyCategory()
The category to which the audit policy belongs.- Returns:
- the value
-
getEnableStatus
public 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
-
getPartiallyEnabledMsg
public String getPartiallyEnabledMsg()
Provides information about the policy that has been only partially enabled.- Returns:
- the value
-
getIsEnabledForAllUsers
public Boolean getIsEnabledForAllUsers()
Indicates whether the policy by default is enabled for all users with no flexibility to alter the enablement conditions.- Returns:
- the value
-
getIsViewOnly
public 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
-
getIsSeededInTarget
public Boolean getIsSeededInTarget()
Indicates whether the audit policy is one of the predefined policies provided by Oracle Database.- Returns:
- the value
-
getIsSeededInDataSafe
public Boolean getIsSeededInDataSafe()
Indicates whether the audit policy is one of the seeded policies provided by Oracle Data Safe.- Returns:
- the value
-
getIsCreated
public Boolean getIsCreated()
Indicates whether the policy is already created on the target database.- Returns:
- the value
-
getEnabledEntities
public AuditSpecification.EnabledEntities getEnabledEntities()
Indicates on whom the audit policy is enabled.- 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
-
-