public static class QuotaEvent.Builder
extends java.lang.Object
| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
QuotaEvent.QuotaEventCloseable |
create()
Puts the given values in the MDC as a quota event.
|
QuotaEvent.Builder |
withFullResourceName(java.lang.String fullResourceName) |
QuotaEvent.Builder |
withMessageText(java.lang.String messageText) |
QuotaEvent.Builder |
withOperation(java.lang.String operation) |
QuotaEvent.Builder |
withQuotaName(java.lang.String quotaName) |
public QuotaEvent.Builder withMessageText(java.lang.String messageText)
messageText - Any additional description for the event.public QuotaEvent.Builder withFullResourceName(java.lang.String fullResourceName)
fullResourceName - The full path for the resource involved. For GCP, this would follow
https://google.aip.dev/122#full-resource-names.public QuotaEvent.Builder withQuotaName(java.lang.String quotaName)
quotaName - The full quota name. For GCP, this would look like:
example.googleapis.com/quota/namepublic QuotaEvent.Builder withOperation(java.lang.String operation)
operation - Name of the operation that generated this quota event, in snake-case.@Nullable public QuotaEvent.QuotaEventCloseable create()