Package com.auth0.json.mgmt.logstreams
Class LogStream
java.lang.Object
com.auth0.json.mgmt.logstreams.LogStream
Represents an Auth0 Log Stream object. Related to the LogStreamsEntity
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetId()Get the ID of this Log Stream.getName()Get the name of this Log Stream.getSink()Gets the sink of this Log Stream.Gets the status of this Log Stream.getType()Gets the type of this Log Stream.voidsetFilters(List<LogStreamFilter> filters) Set the log stream filters.voidSets the name of this Log Stream.voidSets the sink of this Log Stream.voidSets the status of this Log Stream.
-
Constructor Details
-
LogStream
Creates a new LogStream instance and sets the type, which cannot be changed once set.- Parameters:
type- The type of the Log Stream.
-
LogStream
public LogStream()Creates a new empty LogStream. Use this when you need to create an instance for use with an update request, as you cannot send thetypefield to the update API.
-
-
Method Details
-
getId
Get the ID of this Log Stream.- Returns:
- The ID of this Log Stream.
-
getName
Get the name of this Log Stream.- Returns:
- The name of this Log Stream.
-
setName
Sets the name of this Log Stream.- Parameters:
name- the name to set.
-
getType
Gets the type of this Log Stream.- Returns:
- The type of this Log Stream.
-
getStatus
Gets the status of this Log Stream.- Returns:
- The status of this Log Stream.
-
setStatus
Sets the status of this Log Stream.- Parameters:
status- The status to set.
-
getSink
Gets the sink of this Log Stream.- Returns:
- the sink of this Log Stream.
-
setSink
Sets the sink of this Log Stream.- Parameters:
sink- A key-value map representing the sink to set.
-
getFilters
- Returns:
- the log stream filters
-
setFilters
Set the log stream filters.- Parameters:
filters- the filters to set for the log stream.
-