Class TransformationNotificationsParser
java.lang.Object
com.cognite.client.servicesV1.parser.TransformationNotificationsParser
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 -
Method Summary
Modifier and TypeMethodDescriptionstatic Transformation.NotificationBuilds an objectTransformation.Notificationfrom json value.static List<Transformation.Notification>Builds a List ofTransformation.Notificationfrom json value.Builds a request insert item object fromTransformation.Notification.Subscription.
-
Constructor Details
-
TransformationNotificationsParser
public TransformationNotificationsParser()
-
-
Method Details
-
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
-