Package com.oracle.bmc.datasafe.model
Class DatabaseTableAccessEntrySummary.Builder
- java.lang.Object
-
- com.oracle.bmc.datasafe.model.DatabaseTableAccessEntrySummary.Builder
-
- Enclosing class:
- DatabaseTableAccessEntrySummary
public static class DatabaseTableAccessEntrySummary.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DatabaseTableAccessEntrySummary.Builder
accessThroughObject(String accessThroughObject)
A non-null value in this field indicates the object through which user has access to table, possible values could be table or view.DatabaseTableAccessEntrySummary.Builder
accessType(AccessType accessType)
The type of the access the user has on the table, there can be one or more from SELECT, UPDATE, INSERT, OWNER or DELETE.DatabaseTableAccessEntrySummary.Builder
areAllTablesAccessible(Boolean areAllTablesAccessible)
Indicates whether the user has access to all the tables in the schema.DatabaseTableAccessEntrySummary
build()
DatabaseTableAccessEntrySummary.Builder
columnName(String columnName)
If there are column level privileges on a table or view.DatabaseTableAccessEntrySummary.Builder
copy(DatabaseTableAccessEntrySummary model)
DatabaseTableAccessEntrySummary.Builder
grantee(String grantee)
Grantee is the user who can access the tableDatabaseTableAccessEntrySummary.Builder
grantFromRole(String grantFromRole)
This can be empty in case of direct grant, in case of indirect grant, this attribute displays the name of the role which is granted to the user though which the user has access to the table.DatabaseTableAccessEntrySummary.Builder
grantor(String grantor)
The one who granted this privilege.DatabaseTableAccessEntrySummary.Builder
isAccessConstrainedByDatabaseVault(Boolean isAccessConstrainedByDatabaseVault)
Indicates whether the table access is constrained via Oracle Database Vault.DatabaseTableAccessEntrySummary.Builder
isAccessConstrainedByLabelSecurity(Boolean isAccessConstrainedByLabelSecurity)
Indicates whether the table access is constrained via Oracle Label Security.DatabaseTableAccessEntrySummary.Builder
isAccessConstrainedByRealApplicationSecurity(Boolean isAccessConstrainedByRealApplicationSecurity)
Indicates whether the table access is constrained via Real Application Security.DatabaseTableAccessEntrySummary.Builder
isAccessConstrainedByRedaction(Boolean isAccessConstrainedByRedaction)
Indicates whether the table access is constrained via Oracle Data Redaction.DatabaseTableAccessEntrySummary.Builder
isAccessConstrainedBySqlFirewall(Boolean isAccessConstrainedBySqlFirewall)
Indicates whether the table access is constrained via Oracle Database SQL Firewall.DatabaseTableAccessEntrySummary.Builder
isAccessConstrainedByView(Boolean isAccessConstrainedByView)
Indicates whether the access is constrained on a table via a view.DatabaseTableAccessEntrySummary.Builder
isAccessConstrainedByVirtualPrivateDatabase(Boolean isAccessConstrainedByVirtualPrivateDatabase)
Indicates whether the table access is constrained via Virtual Private Database.DatabaseTableAccessEntrySummary.Builder
isSensitive(Boolean isSensitive)
Indicates whether the table is marked as sensitive.DatabaseTableAccessEntrySummary.Builder
key(String key)
The unique key that identifies the table access report.DatabaseTableAccessEntrySummary.Builder
privilege(PrivilegeName privilege)
Name of the privilege.DatabaseTableAccessEntrySummary.Builder
privilegeGrantable(PrivilegeGrantableOption privilegeGrantable)
Whether grantee can grant this privilege to other users.DatabaseTableAccessEntrySummary.Builder
privilegeType(String privilegeType)
Type of the privilege user has, this includes System Privilege, Schema Privilege, Object Privilege, Column Privilege, Owner or Schema Privilege on a schema.DatabaseTableAccessEntrySummary.Builder
tableName(String tableName)
Name of the database table the user has access to.DatabaseTableAccessEntrySummary.Builder
tableSchema(String tableSchema)
Name of the schema the table belongs to.DatabaseTableAccessEntrySummary.Builder
targetId(String targetId)
The OCID of the of the target database.
-
-
-
Method Detail
-
key
public DatabaseTableAccessEntrySummary.Builder key(String key)
The unique key that identifies the table access report.It is numeric and unique within a security policy report.
- Parameters:
key
- the value to set- Returns:
- this builder
-
grantee
public DatabaseTableAccessEntrySummary.Builder grantee(String grantee)
Grantee is the user who can access the table- Parameters:
grantee
- the value to set- Returns:
- this builder
-
grantFromRole
public DatabaseTableAccessEntrySummary.Builder grantFromRole(String grantFromRole)
This can be empty in case of direct grant, in case of indirect grant, this attribute displays the name of the role which is granted to the user though which the user has access to the table.- Parameters:
grantFromRole
- the value to set- Returns:
- this builder
-
accessType
public DatabaseTableAccessEntrySummary.Builder accessType(AccessType accessType)
The type of the access the user has on the table, there can be one or more from SELECT, UPDATE, INSERT, OWNER or DELETE.- Parameters:
accessType
- the value to set- Returns:
- this builder
-
tableSchema
public DatabaseTableAccessEntrySummary.Builder tableSchema(String tableSchema)
Name of the schema the table belongs to.- Parameters:
tableSchema
- the value to set- Returns:
- this builder
-
tableName
public DatabaseTableAccessEntrySummary.Builder tableName(String tableName)
Name of the database table the user has access to.- Parameters:
tableName
- the value to set- Returns:
- this builder
-
privilegeType
public DatabaseTableAccessEntrySummary.Builder privilegeType(String privilegeType)
Type of the privilege user has, this includes System Privilege, Schema Privilege, Object Privilege, Column Privilege, Owner or Schema Privilege on a schema.- Parameters:
privilegeType
- the value to set- Returns:
- this builder
-
targetId
public DatabaseTableAccessEntrySummary.Builder targetId(String targetId)
The OCID of the of the target database.- Parameters:
targetId
- the value to set- Returns:
- this builder
-
accessThroughObject
public DatabaseTableAccessEntrySummary.Builder accessThroughObject(String accessThroughObject)
A non-null value in this field indicates the object through which user has access to table, possible values could be table or view.- Parameters:
accessThroughObject
- the value to set- Returns:
- this builder
-
privilege
public DatabaseTableAccessEntrySummary.Builder privilege(PrivilegeName privilege)
Name of the privilege.- Parameters:
privilege
- the value to set- Returns:
- this builder
-
privilegeGrantable
public DatabaseTableAccessEntrySummary.Builder privilegeGrantable(PrivilegeGrantableOption privilegeGrantable)
Whether grantee can grant this privilege to other users.Privileges can be granted to a user or role with GRANT_OPTION or ADMIN_OPTION
- Parameters:
privilegeGrantable
- the value to set- Returns:
- this builder
-
columnName
public DatabaseTableAccessEntrySummary.Builder columnName(String columnName)
If there are column level privileges on a table or view.- Parameters:
columnName
- the value to set- Returns:
- this builder
-
grantor
public DatabaseTableAccessEntrySummary.Builder grantor(String grantor)
The one who granted this privilege.- Parameters:
grantor
- the value to set- Returns:
- this builder
-
areAllTablesAccessible
public DatabaseTableAccessEntrySummary.Builder areAllTablesAccessible(Boolean areAllTablesAccessible)
Indicates whether the user has access to all the tables in the schema.- Parameters:
areAllTablesAccessible
- the value to set- Returns:
- this builder
-
isAccessConstrainedByView
public DatabaseTableAccessEntrySummary.Builder isAccessConstrainedByView(Boolean isAccessConstrainedByView)
Indicates whether the access is constrained on a table via a view.- Parameters:
isAccessConstrainedByView
- the value to set- Returns:
- this builder
-
isAccessConstrainedByLabelSecurity
public DatabaseTableAccessEntrySummary.Builder isAccessConstrainedByLabelSecurity(Boolean isAccessConstrainedByLabelSecurity)
Indicates whether the table access is constrained via Oracle Label Security.- Parameters:
isAccessConstrainedByLabelSecurity
- the value to set- Returns:
- this builder
-
isAccessConstrainedByDatabaseVault
public DatabaseTableAccessEntrySummary.Builder isAccessConstrainedByDatabaseVault(Boolean isAccessConstrainedByDatabaseVault)
Indicates whether the table access is constrained via Oracle Database Vault.- Parameters:
isAccessConstrainedByDatabaseVault
- the value to set- Returns:
- this builder
-
isAccessConstrainedByVirtualPrivateDatabase
public DatabaseTableAccessEntrySummary.Builder isAccessConstrainedByVirtualPrivateDatabase(Boolean isAccessConstrainedByVirtualPrivateDatabase)
Indicates whether the table access is constrained via Virtual Private Database.- Parameters:
isAccessConstrainedByVirtualPrivateDatabase
- the value to set- Returns:
- this builder
-
isAccessConstrainedByRedaction
public DatabaseTableAccessEntrySummary.Builder isAccessConstrainedByRedaction(Boolean isAccessConstrainedByRedaction)
Indicates whether the table access is constrained via Oracle Data Redaction.- Parameters:
isAccessConstrainedByRedaction
- the value to set- Returns:
- this builder
-
isAccessConstrainedByRealApplicationSecurity
public DatabaseTableAccessEntrySummary.Builder isAccessConstrainedByRealApplicationSecurity(Boolean isAccessConstrainedByRealApplicationSecurity)
Indicates whether the table access is constrained via Real Application Security.- Parameters:
isAccessConstrainedByRealApplicationSecurity
- the value to set- Returns:
- this builder
-
isAccessConstrainedBySqlFirewall
public DatabaseTableAccessEntrySummary.Builder isAccessConstrainedBySqlFirewall(Boolean isAccessConstrainedBySqlFirewall)
Indicates whether the table access is constrained via Oracle Database SQL Firewall.- Parameters:
isAccessConstrainedBySqlFirewall
- the value to set- Returns:
- this builder
-
isSensitive
public DatabaseTableAccessEntrySummary.Builder isSensitive(Boolean isSensitive)
Indicates whether the table is marked as sensitive.- Parameters:
isSensitive
- the value to set- Returns:
- this builder
-
build
public DatabaseTableAccessEntrySummary build()
-
copy
public DatabaseTableAccessEntrySummary.Builder copy(DatabaseTableAccessEntrySummary model)
-
-