Class LogStream

java.lang.Object
com.auth0.json.mgmt.logstreams.LogStream

public class LogStream extends Object
Represents an Auth0 Log Stream object. Related to the LogStreamsEntity
  • Constructor Details

    • LogStream

      public LogStream(String type)
      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 the type field to the update API.
  • Method Details

    • getId

      public String getId()
      Get the ID of this Log Stream.
      Returns:
      The ID of this Log Stream.
    • getName

      public String getName()
      Get the name of this Log Stream.
      Returns:
      The name of this Log Stream.
    • setName

      public void setName(String name)
      Sets the name of this Log Stream.
      Parameters:
      name - the name to set.
    • getType

      public String getType()
      Gets the type of this Log Stream.
      Returns:
      The type of this Log Stream.
    • getStatus

      public String getStatus()
      Gets the status of this Log Stream.
      Returns:
      The status of this Log Stream.
    • setStatus

      public void setStatus(String status)
      Sets the status of this Log Stream.
      Parameters:
      status - The status to set.
    • getSink

      public Map<String,Object> getSink()
      Gets the sink of this Log Stream.
      Returns:
      the sink of this Log Stream.
    • setSink

      public void setSink(Map<String,Object> sink)
      Sets the sink of this Log Stream.
      Parameters:
      sink - A key-value map representing the sink to set.
    • getFilters

      public List<LogStreamFilter> getFilters()
      Returns:
      the log stream filters
    • setFilters

      public void setFilters(List<LogStreamFilter> filters)
      Set the log stream filters.
      Parameters:
      filters - the filters to set for the log stream.