Package org.apache.cassandra.audit
Class AuditLogEntry.Builder
- java.lang.Object
-
- org.apache.cassandra.audit.AuditLogEntry.Builder
-
- Enclosing class:
- AuditLogEntry
public static class AuditLogEntry.Builder extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description Builder(AuditLogEntry entry)Builder(AuditLogEntryType type)Builder(QueryState queryState)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidappendToOperation(java.lang.String str)AuditLogEntrybuild()AuditLogEntry.BuildersetBatch(java.util.UUID batch)AuditLogEntry.BuildersetKeyspace(java.lang.String keyspace)AuditLogEntry.BuildersetKeyspace(CQLStatement statement)AuditLogEntry.BuildersetKeyspace(QueryState queryState, CQLStatement statement)AuditLogEntry.BuildersetOperation(java.lang.String operation)AuditLogEntry.BuildersetOptions(QueryOptions options)AuditLogEntry.BuildersetScope(CQLStatement statement)AuditLogEntry.BuildersetTimestamp(long timestampMillis)AuditLogEntry.BuildersetType(AuditLogEntryType type)AuditLogEntry.BuildersetUser(java.lang.String user)
-
-
-
Constructor Detail
-
Builder
public Builder(QueryState queryState)
-
Builder
public Builder(AuditLogEntry entry)
-
Builder
public Builder(AuditLogEntryType type)
-
-
Method Detail
-
setType
public AuditLogEntry.Builder setType(AuditLogEntryType type)
-
setUser
public AuditLogEntry.Builder setUser(java.lang.String user)
-
setBatch
public AuditLogEntry.Builder setBatch(java.util.UUID batch)
-
setTimestamp
public AuditLogEntry.Builder setTimestamp(long timestampMillis)
-
setKeyspace
public AuditLogEntry.Builder setKeyspace(QueryState queryState, @Nullable CQLStatement statement)
-
setKeyspace
public AuditLogEntry.Builder setKeyspace(java.lang.String keyspace)
-
setKeyspace
public AuditLogEntry.Builder setKeyspace(CQLStatement statement)
-
setScope
public AuditLogEntry.Builder setScope(CQLStatement statement)
-
setOperation
public AuditLogEntry.Builder setOperation(java.lang.String operation)
-
appendToOperation
public void appendToOperation(java.lang.String str)
-
setOptions
public AuditLogEntry.Builder setOptions(QueryOptions options)
-
build
public AuditLogEntry build()
-
-