Package com.google.cloud.logging
Class LogDestinationName
java.lang.Object
com.google.cloud.logging.LogDestinationName
- All Implemented Interfaces:
Serializable
Class for specifying resource name of the log to which this log entry belongs (see 'logName'
parameter in https://cloud.google.com/logging/docs/reference/v2/rest/v2/LogEntry)
- See Also:
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic LogDestinationName
billingAccount
(String id) Returns an option which sets and validates project ID resource name for log entries.boolean
static LogDestinationName
Returns an option which sets and validates project ID resource name for log entries.static LogDestinationName
fromLogName
(LogName logName) Creates aLogDestinationName
object from givenLogName
.Returns ID value associated withLogDestinationName
objectReturns destination type option value associated withLogDestinationName
objectint
hashCode()
static LogDestinationName
organization
(String id) Returns an option which sets and validates project ID resource name for log entries.static LogDestinationName
Returns an option which sets and validates project ID resource name for log entries.Creates aLogEntry
object for given log ID.toString()
-
Method Details
-
project
Returns an option which sets and validates project ID resource name for log entries.- Parameters:
id
- corresponds to PROJECT_ID token in 'logName' field described in https://cloud.google.com/logging/docs/reference/v2/rest/v2/LogEntry
-
folder
Returns an option which sets and validates project ID resource name for log entries.- Parameters:
id
- corresponds to FOLDER_ID token in 'logName' field described in https://cloud.google.com/logging/docs/reference/v2/rest/v2/LogEntry
-
organization
Returns an option which sets and validates project ID resource name for log entries.- Parameters:
id
- corresponds to ORGANIZATION_ID token in 'logName' field described in https://cloud.google.com/logging/docs/reference/v2/rest/v2/LogEntry
-
billingAccount
Returns an option which sets and validates project ID resource name for log entries.- Parameters:
id
- corresponds to BILLING_ACCOUNT_ID token in 'logName' field described in https://cloud.google.com/logging/docs/reference/v2/rest/v2/LogEntry
-
toLogName
Creates aLogEntry
object for given log ID. -
getDestinationId
Returns ID value associated withLogDestinationName
object -
getDestinationType
Returns destination type option value associated withLogDestinationName
object -
fromLogName
Creates aLogDestinationName
object from givenLogName
. -
equals
-
hashCode
public int hashCode() -
toString
-