Package com.google.cloud.logging
Class SinkInfo.Destination.LoggingBucketDestination
- java.lang.Object
-
- com.google.cloud.logging.SinkInfo.Destination
-
- com.google.cloud.logging.SinkInfo.Destination.LoggingBucketDestination
-
- All Implemented Interfaces:
Serializable
- Enclosing class:
- SinkInfo.Destination
public static final class SinkInfo.Destination.LoggingBucketDestination extends SinkInfo.Destination
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.google.cloud.logging.SinkInfo.Destination
SinkInfo.Destination.BucketDestination, SinkInfo.Destination.DatasetDestination, SinkInfo.Destination.LoggingBucketDestination, SinkInfo.Destination.TopicDestination, SinkInfo.Destination.Type
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)StringgetBucket()Returns the name of the logging bucket this destination represents.StringgetLocation()Returns the name of the bucket location this destination represents.StringgetProject()Returns the name of the project where the Google Cloud BigQuery dataset resides.inthashCode()static SinkInfo.Destination.LoggingBucketDestinationof(String location, String bucket)Creates aDatasetDestinationobject given the name of the dataset to be used as sink destination.static SinkInfo.Destination.LoggingBucketDestinationof(String project, String location, String bucket)Creates aDatasetDestinationobject given the name of the project and dataset to be used as sink destination.StringtoString()-
Methods inherited from class com.google.cloud.logging.SinkInfo.Destination
getType
-
-
-
-
Method Detail
-
getProject
public String getProject()
Returns the name of the project where the Google Cloud BigQuery dataset resides. Ifnull, the default project is used.
-
getLocation
public String getLocation()
Returns the name of the bucket location this destination represents.
-
getBucket
public String getBucket()
Returns the name of the logging bucket this destination represents.
-
of
public static SinkInfo.Destination.LoggingBucketDestination of(String project, String location, String bucket)
Creates aDatasetDestinationobject given the name of the project and dataset to be used as sink destination.
-
of
public static SinkInfo.Destination.LoggingBucketDestination of(String location, String bucket)
Creates aDatasetDestinationobject given the name of the dataset to be used as sink destination. Dataset is assumed to reside in the default project.
-
-