Class NotificationListingParameters
- java.lang.Object
-
- com.carfey.ops.api.bean.notification.NotificationListingParameters
-
public class NotificationListingParameters extends java.lang.ObjectUsed to filter aNotificationListingviaNotificationManager.- Since:
- 3.0
-
-
Constructor Summary
Constructors Constructor Description NotificationListingParameters()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<Category>getCategories()If non-empty, limits results to those matching a supplied category.com.carfey.jdk.lang.DateTimegetEndDate()Limits the listing to the selected end time (based on scheduled time).java.util.List<LogLevel>getLevels()If non-empty, limits results to those matching a supplied severity log level.com.carfey.jdk.lang.DateTimegetStartDate()Limits the listing to the selected start time (based on scheduled time).java.lang.StringgetStartKey()Used to fetch a subsequent page of results, based on the key returned byNotificationListing.voidsetCategories(java.util.List<Category> categories)voidsetEndDate(com.carfey.jdk.lang.DateTime endDate)voidsetLevels(java.util.List<LogLevel> levels)voidsetStartDate(com.carfey.jdk.lang.DateTime startDate)voidsetStartKey(java.lang.String startKey)java.lang.StringtoString()NotificationListingParameterswithCategories(java.util.List<Category> categories)NotificationListingParameterswithEndDate(com.carfey.jdk.lang.DateTime endDate)NotificationListingParameterswithLevels(java.util.List<LogLevel> levels)NotificationListingParameterswithStartDate(com.carfey.jdk.lang.DateTime startDate)NotificationListingParameterswithStartKey(java.lang.String startKey)
-
-
-
Method Detail
-
getStartDate
public com.carfey.jdk.lang.DateTime getStartDate()
Limits the listing to the selected start time (based on scheduled time). Defaults to 24 hours ago.- Returns:
- start date
-
setStartDate
public void setStartDate(com.carfey.jdk.lang.DateTime startDate)
-
withStartDate
public NotificationListingParameters withStartDate(com.carfey.jdk.lang.DateTime startDate)
-
getEndDate
public com.carfey.jdk.lang.DateTime getEndDate()
Limits the listing to the selected end time (based on scheduled time). Defaults to 24 hours after start date.- Returns:
- end date
-
setEndDate
public void setEndDate(com.carfey.jdk.lang.DateTime endDate)
-
withEndDate
public NotificationListingParameters withEndDate(com.carfey.jdk.lang.DateTime endDate)
-
getCategories
public java.util.List<Category> getCategories()
If non-empty, limits results to those matching a supplied category.- Returns:
- categories
-
setCategories
public void setCategories(java.util.List<Category> categories)
-
withCategories
public NotificationListingParameters withCategories(java.util.List<Category> categories)
-
getLevels
public java.util.List<LogLevel> getLevels()
If non-empty, limits results to those matching a supplied severity log level.- Returns:
- log levels
-
setLevels
public void setLevels(java.util.List<LogLevel> levels)
-
withLevels
public NotificationListingParameters withLevels(java.util.List<LogLevel> levels)
-
getStartKey
public java.lang.String getStartKey()
Used to fetch a subsequent page of results, based on the key returned byNotificationListing.- Returns:
- start key
-
setStartKey
public void setStartKey(java.lang.String startKey)
-
withStartKey
public NotificationListingParameters withStartKey(java.lang.String startKey)
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-