Class BulkCreateUnifiedAuditPolicyDetails


  • @Generated(value="OracleSDKGenerator",
               comments="API Version: 20181201")
    public final class BulkCreateUnifiedAuditPolicyDetails
    extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
    The details required to bulk create unified audit policies.
    Note: Objects should always be created or deserialized using the BulkCreateUnifiedAuditPolicyDetails.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 BulkCreateUnifiedAuditPolicyDetails.Builder, which maintain a set of all explicitly set fields called BulkCreateUnifiedAuditPolicyDetails.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).
    • Constructor Detail

      • BulkCreateUnifiedAuditPolicyDetails

        @Deprecated
        @ConstructorProperties({"securityPolicyId","targetId","unifiedAuditPolicyDefinitionIds","policyNames","compartmentId","shouldPreserveCasing"})
        public BulkCreateUnifiedAuditPolicyDetails​(String securityPolicyId,
                                                   String targetId,
                                                   List<String> unifiedAuditPolicyDefinitionIds,
                                                   List<String> policyNames,
                                                   String compartmentId,
                                                   Boolean shouldPreserveCasing)
        Deprecated.
    • Method Detail

      • getSecurityPolicyId

        public String getSecurityPolicyId()
        The OCID of the security policy corresponding to the unified audit policy.
        Returns:
        the value
      • getTargetId

        public String getTargetId()
        The OCID of the target database.
        Returns:
        the value
      • getUnifiedAuditPolicyDefinitionIds

        public List<String> getUnifiedAuditPolicyDefinitionIds()
        The list of unified audit policy definition ocids.

        If unified audit policy definition ids are provided, the imported audit policy will be associated to the specified unified audit policy definition based on the policy name. Else, for every audit policy that gets imported, a new unified audit policy definition will be created.

        Returns:
        the value
      • getPolicyNames

        public List<String> getPolicyNames()
        The list of unified audit policy names to be imported.
        Returns:
        the value
      • getCompartmentId

        public String getCompartmentId()
        The OCID of the compartment in which to create the unified audit policy.
        Returns:
        the value
      • getShouldPreserveCasing

        public Boolean getShouldPreserveCasing()
        Indicates whether the casing of the policy names provided in the request payload should be preserved during creation.

        By default all policy names will be converted to upper case.

        Returns:
        the value
      • toString

        public String toString()
        Overrides:
        toString in class com.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 class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel