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
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic LogDestinationNamebillingAccount(String id) Returns an option which sets and validates project ID resource name for log entries.booleanstatic LogDestinationNameReturns an option which sets and validates project ID resource name for log entries.static LogDestinationNamefromLogName(LogName logName) Creates aLogDestinationNameobject from givenLogName.Returns ID value associated withLogDestinationNameobjectReturns destination type option value associated withLogDestinationNameobjectinthashCode()static LogDestinationNameorganization(String id) Returns an option which sets and validates project ID resource name for log entries.static LogDestinationNameReturns an option which sets and validates project ID resource name for log entries.Creates aLogEntryobject 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 aLogEntryobject for given log ID. -
getDestinationId
Returns ID value associated withLogDestinationNameobject -
getDestinationType
Returns destination type option value associated withLogDestinationNameobject -
fromLogName
Creates aLogDestinationNameobject from givenLogName. -
equals
-
hashCode
public int hashCode() -
toString
-