public static class CreateKeyTabKerberosAuditEvent.CreateKeyTabKerberosAuditEventBuilder extends AbstractAuditEvent.AbstractAuditEventBuilder<T,TBuilder>
Modifier and Type | Field and Description |
---|---|
protected String |
operation
Description of the operation
|
protected String |
reasonOfFailure
Reason of failure, if it is not null, then the request is considered as failed
|
protected Long |
requestId
ID of the related request
|
protected Long |
taskId
ID of the related task
|
Modifier and Type | Method and Description |
---|---|
protected void |
buildAuditMessage(StringBuilder builder)
Builds and audit log message based on the member variables
|
boolean |
hasPrincipal() |
protected CreateKeyTabKerberosAuditEvent |
newAuditEvent()
Creates a new audit event instance from this builder.
|
CreateKeyTabKerberosAuditEvent.CreateKeyTabKerberosAuditEventBuilder |
withHostName(String hostName) |
CreateKeyTabKerberosAuditEvent.CreateKeyTabKerberosAuditEventBuilder |
withKeyTabFilePath(String keyTabFilePath) |
TBuilder |
withOperation(String operation) |
CreateKeyTabKerberosAuditEvent.CreateKeyTabKerberosAuditEventBuilder |
withPrincipal(String principal) |
TBuilder |
withReasonOfFailure(String reasonOfFailure) |
TBuilder |
withRequestId(Long requestId) |
TBuilder |
withTaskId(Long taskId) |
build, self, withTimestamp
protected String operation
protected String reasonOfFailure
protected Long requestId
protected Long taskId
protected void buildAuditMessage(StringBuilder builder)
builder
- builder for the audit event details.protected CreateKeyTabKerberosAuditEvent newAuditEvent()
newAuditEvent
in class AbstractAuditEvent.AbstractAuditEventBuilder<CreateKeyTabKerberosAuditEvent,CreateKeyTabKerberosAuditEvent.CreateKeyTabKerberosAuditEventBuilder>
public CreateKeyTabKerberosAuditEvent.CreateKeyTabKerberosAuditEventBuilder withKeyTabFilePath(String keyTabFilePath)
public CreateKeyTabKerberosAuditEvent.CreateKeyTabKerberosAuditEventBuilder withHostName(String hostName)
public CreateKeyTabKerberosAuditEvent.CreateKeyTabKerberosAuditEventBuilder withPrincipal(String principal)
public boolean hasPrincipal()
public TBuilder withOperation(String operation)
public TBuilder withReasonOfFailure(String reasonOfFailure)
public TBuilder withRequestId(Long requestId)
public TBuilder withTaskId(Long taskId)
Copyright © 2022 Apache Software Foundation. All rights reserved.