@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 the AuditSpecification.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 the AuditSpecification.Builder
, which maintain a
set of all explicitly set fields called AuditSpecification.Builder.__explicitlySet__
. The hashCode()
and equals(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
).
Modifier and Type | Class and 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.
|
EXPLICITLY_SET_FILTER_NAME, EXPLICITLY_SET_PROPERTY_NAME
Constructor and 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.
|
Modifier and Type | Method and 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.
|
markPropertyAsExplicitlySet, wasPropertyExplicitlySet
@Deprecated @ConstructorProperties(value={"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)
public static AuditSpecification.Builder builder()
Create a new builder.
public AuditSpecification.Builder toBuilder()
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.
public List<String> getDatabasePolicyNames()
Indicates the names of corresponding database policy ( or policies) in the target database.
public AuditPolicyCategory getAuditPolicyCategory()
The category to which the audit policy belongs.
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.
public String getPartiallyEnabledMsg()
Provides information about the policy that has been only partially enabled.
public Boolean getIsEnabledForAllUsers()
Indicates whether the policy by default is enabled for all users with no flexibility to alter the enablement conditions.
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.
public Boolean getIsSeededInTarget()
Indicates whether the audit policy is one of the predefined policies provided by Oracle Database.
public Boolean getIsSeededInDataSafe()
Indicates whether the audit policy is one of the seeded policies provided by Oracle Data Safe.
public Boolean getIsCreated()
Indicates whether the policy is already created on the target database.
public AuditSpecification.EnabledEntities getEnabledEntities()
Indicates on whom the audit policy is enabled.
public String toString()
toString
in class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
public String toString(boolean includeByteArrayContents)
Return a string representation of the object.
includeByteArrayContents
- true to include the full contents of byte arrayspublic boolean equals(Object o)
equals
in class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
public int hashCode()
hashCode
in class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
Copyright © 2016–2024. All rights reserved.