Class TransformationNotificationsParser
- java.lang.Object
-
- com.cognite.client.servicesV1.parser.TransformationNotificationsParser
-
public class TransformationNotificationsParser extends Object
This class contains a set of methods to help parsing file objects between Cognite api representations (json and proto) and typed objects.
-
-
Constructor Summary
Constructors Constructor Description TransformationNotificationsParser()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Transformation.NotificationparseTransformationNotifications(String json)Builds an objectTransformation.Notificationfrom json value.static List<Transformation.Notification>parseTransformationNotificationsToList(String json)Builds a List ofTransformation.Notificationfrom json value.static Map<String,Object>toRequestInsertItem(Transformation.Notification.Subscription element)Builds a request insert item object fromTransformation.Notification.Subscription.
-
-
-
Method Detail
-
parseTransformationNotifications
public static Transformation.Notification parseTransformationNotifications(String json) throws com.fasterxml.jackson.core.JsonProcessingException
Builds an objectTransformation.Notificationfrom json value.- Parameters:
json-- Returns:
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
toRequestInsertItem
public static Map<String,Object> toRequestInsertItem(Transformation.Notification.Subscription element) throws Exception
Builds a request insert item object fromTransformation.Notification.Subscription. An insert item object creates a new Transformation.Notification.Subscribe object in the Cognite system.- Parameters:
element-- Returns:
- Throws:
Exception
-
parseTransformationNotificationsToList
public static List<Transformation.Notification> parseTransformationNotificationsToList(String json) throws com.fasterxml.jackson.core.JsonProcessingException
Builds a List ofTransformation.Notificationfrom json value.- Parameters:
json-- Returns:
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-