Class LogDestinationName (3.16.2)
Stay organized with collections
Save and categorize content based on your preferences.
public final class LogDestinationName extends Option
Inheritance
Object >
com.google.cloud.logging.Option >
LogDestinationName
Inherited Members
com.google.cloud.logging.Option.equals(java.lang.Object)
com.google.cloud.logging.Option.hashCode()
com.google.cloud.logging.Option.toString()
Static Methods
billingAccount(String id)
public static LogDestinationName billingAccount(String id)
Returns an option which sets and validates project ID resource name for log entries.
folder(String id)
public static LogDestinationName folder(String id)
Returns an option which sets and validates project ID resource name for log entries.
fromLogName(LogName logName)
public static LogDestinationName fromLogName(LogName logName)
Creates a LogDestinationName
object from given LogName
.
Parameter |
---|
Name | Description |
logName | LogName
|
organization(String id)
public static LogDestinationName organization(String id)
Returns an option which sets and validates project ID resource name for log entries.
project(String id)
public static LogDestinationName project(String id)
Returns an option which sets and validates project ID resource name for log entries.
Methods
getDestinationId()
public String getDestinationId()
Returns ID value associated with LogDestinationName
object
getDestinationType()
public LogDestinationName.DestinationType getDestinationType()
Returns destination type option value associated with LogDestinationName
object
toLogName(String logId)
public LogName toLogName(String logId)
Creates a LogEntry
object for given log ID.
Parameter |
---|
Name | Description |
logId | String
|
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-09-10 UTC.
[{
"type": "thumb-down",
"id": "hardToUnderstand",
"label":"Hard to understand"
},{
"type": "thumb-down",
"id": "incorrectInformationOrSampleCode",
"label":"Incorrect information or sample code"
},{
"type": "thumb-down",
"id": "missingTheInformationSamplesINeed",
"label":"Missing the information/samples I need"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"Other"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"Easy to understand"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"Solved my problem"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"Other"
}]
{"lastModified": "Last updated 2024-09-10 UTC."}