Package com.oracle.bmc.datasafe.model
Class BulkCreateUnifiedAuditPolicyDetails
- java.lang.Object
-
- com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
-
- com.oracle.bmc.datasafe.model.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 theBulkCreateUnifiedAuditPolicyDetails.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 theBulkCreateUnifiedAuditPolicyDetails.Builder
, which maintain a set of all explicitly set fields calledBulkCreateUnifiedAuditPolicyDetails.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
BulkCreateUnifiedAuditPolicyDetails.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static BulkCreateUnifiedAuditPolicyDetails.Builder
builder()
Create a new builder.boolean
equals(Object o)
String
getCompartmentId()
The OCID of the compartment in which to create the unified audit policy.List<String>
getPolicyNames()
The list of unified audit policy names to be imported.String
getSecurityPolicyId()
The OCID of the security policy corresponding to the unified audit policy.Boolean
getShouldPreserveCasing()
Indicates whether the casing of the policy names provided in the request payload should be preserved during creation.String
getTargetId()
The OCID of the target database.List<String>
getUnifiedAuditPolicyDefinitionIds()
The list of unified audit policy definition ocids.int
hashCode()
BulkCreateUnifiedAuditPolicyDetails.Builder
toBuilder()
String
toString()
String
toString(boolean includeByteArrayContents)
Return a string representation of the object.
-
-
-
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
-
builder
public static BulkCreateUnifiedAuditPolicyDetails.Builder builder()
Create a new builder.
-
toBuilder
public BulkCreateUnifiedAuditPolicyDetails.Builder toBuilder()
-
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 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
-
-