Package zowe.client.sdk.zoslogs.response
Class ZosLogResponse
- java.lang.Object
-
- zowe.client.sdk.zoslogs.response.ZosLogResponse
-
public final class ZosLogResponse extends Object
Standard log response document. Represents the details about the messages and logs.Refactored as an immutable Jackson POJO without Optional or builder. Uses primitive
longdefaults for numeric fields when null.- Version:
- 5.0
- Author:
- Frank Giordano
-
-
Constructor Summary
Constructors Constructor Description ZosLogResponse(Long timeZone, Long nextTimeStamp, String source, Long totalItems, List<ZosLogItem> items)Jackson constructor for ZosLogResponse.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<ZosLogItem>getItems()Retrieve the list of log items.longgetNextTimeStamp()Retrieve the next timestamp.StringgetSource()Retrieve the source of the log.longgetTimeZone()Retrieve the timezone.longgetTotalItems()Retrieve the total number of items.StringtoString()Return string value representing ZosLogResponse object.
-
-
-
Constructor Detail
-
ZosLogResponse
public ZosLogResponse(Long timeZone, Long nextTimeStamp, String source, Long totalItems, List<ZosLogItem> items)
Jackson constructor for ZosLogResponse.- Parameters:
timeZone- Timezone value returned from responsenextTimeStamp- Next timestamp value returned from responsesource- Source string value returned from responsetotalItems- Total items count returned from responseitems- List of ZosLogItem messages returned from response
-
-
Method Detail
-
getTimeZone
public long getTimeZone()
Retrieve the timezone.- Returns:
- long value representing the timezone (0 if absent)
-
getNextTimeStamp
public long getNextTimeStamp()
Retrieve the next timestamp.- Returns:
- long value representing the next timestamp (0 if absent)
-
getSource
public String getSource()
Retrieve the source of the log.- Returns:
- source string
-
getTotalItems
public long getTotalItems()
Retrieve the total number of items.- Returns:
- long total number of messages (0 if absent)
-
getItems
public List<ZosLogItem> getItems()
Retrieve the list of log items.- Returns:
- list of
ZosLogItem
-
-