Class NotificationTokenRequestRepresentation
java.lang.Object
com.cumulocity.rest.representation.BaseResourceRepresentation
com.cumulocity.rest.representation.AbstractExtensibleRepresentation
com.cumulocity.rest.representation.reliable.notification.NotificationTokenRequestRepresentation
- All Implemented Interfaces:
ResourceRepresentation
,org.svenson.DynamicProperties
-
Constructor Summary
ConstructorDescriptionNotificationTokenRequestRepresentation
(String subscriber, String subscription, long expiresInMinutes, boolean shared) NotificationTokenRequestRepresentation
(String subscriber, String subscription, long expiresInMinutes, boolean shared, boolean nonPersistent) NotificationTokenRequestRepresentation
(String subscriber, String subscription, String type, boolean signed, long expiresInMinutes, boolean shared, boolean nonPersistent) -
Method Summary
Modifier and TypeMethodDescriptionlong
getType()
boolean
boolean
isShared()
boolean
isSigned()
void
setExpiresInMinutes
(long expiresInMinutes) void
setNonPersistent
(boolean nonPersistent) void
setShared
(boolean shared) void
setSigned
(boolean signed) void
setSubscriber
(String subscriber) void
setSubscription
(String subscription) void
Methods inherited from class com.cumulocity.rest.representation.AbstractExtensibleRepresentation
get, get, getAttrs, getProperty, hasProperty, propertyNames, removeProperty, set, set, set, setAttrs, setProperty
Methods inherited from class com.cumulocity.rest.representation.BaseResourceRepresentation
getSelf, getSelfDecoded, setSelf, toJSON, toString
-
Constructor Details
-
NotificationTokenRequestRepresentation
-
NotificationTokenRequestRepresentation
-
NotificationTokenRequestRepresentation
public NotificationTokenRequestRepresentation() -
NotificationTokenRequestRepresentation
-
-
Method Details
-
setSubscriber
-
setSubscription
-
setType
-
setSigned
public void setSigned(boolean signed) -
setExpiresInMinutes
public void setExpiresInMinutes(long expiresInMinutes) -
setNonPersistent
public void setNonPersistent(boolean nonPersistent) -
getSubscriber
-
getSubscription
-
getType
-
isSigned
@JSONProperty(ignoreIfNull=true) public boolean isSigned() -
getExpiresInMinutes
@JSONProperty(ignoreIfNull=true) public long getExpiresInMinutes() -
isNonPersistent
@JSONProperty(ignoreIfNull=true) public boolean isNonPersistent()
-