public final class LogDestinationName extends Object
Modifier and Type | Class and Description |
---|---|
static class |
LogDestinationName.DestinationType |
Modifier and Type | Method and Description |
---|---|
static LogDestinationName |
billingAccount(String id)
Returns an option which sets and validates project ID resource name for log entries.
|
boolean |
equals(Object obj) |
static LogDestinationName |
folder(String id)
Returns an option which sets and validates project ID resource name for log entries.
|
static LogDestinationName |
fromLogName(LogName logName)
Creates a
LogDestinationName object from given LogName . |
String |
getDestinationId()
Returns ID value associated with
LogDestinationName object |
LogDestinationName.DestinationType |
getDestinationType()
Returns destination type option value associated with
LogDestinationName object |
int |
hashCode() |
static LogDestinationName |
organization(String id)
Returns an option which sets and validates project ID resource name for log entries.
|
static LogDestinationName |
project(String id)
Returns an option which sets and validates project ID resource name for log entries.
|
LogName |
toLogName(String logId)
Creates a
LogEntry object for given log ID. |
String |
toString() |
public static LogDestinationName project(String id)
id
- corresponds to PROJECT_ID token in 'logName' field described in
https://cloud.google.com/logging/docs/reference/v2/rest/v2/LogEntrypublic static LogDestinationName folder(String id)
id
- corresponds to FOLDER_ID token in 'logName' field described in
https://cloud.google.com/logging/docs/reference/v2/rest/v2/LogEntrypublic static LogDestinationName organization(String id)
id
- corresponds to ORGANIZATION_ID token in 'logName' field described in
https://cloud.google.com/logging/docs/reference/v2/rest/v2/LogEntrypublic static LogDestinationName billingAccount(String id)
id
- corresponds to BILLING_ACCOUNT_ID token in 'logName' field described in
https://cloud.google.com/logging/docs/reference/v2/rest/v2/LogEntrypublic String getDestinationId()
LogDestinationName
objectpublic LogDestinationName.DestinationType getDestinationType()
LogDestinationName
objectpublic static LogDestinationName fromLogName(LogName logName)
LogDestinationName
object from given LogName
.Copyright © 2023 Google LLC. All rights reserved.