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
ConstructorsConstructorDescriptionNotificationTokenRequestRepresentation(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 TypeMethodDescriptionlonggetType()booleanbooleanisShared()booleanisSigned()voidsetExpiresInMinutes(long expiresInMinutes) voidsetNonPersistent(boolean nonPersistent) voidsetShared(boolean shared) voidsetSigned(boolean signed) voidsetSubscriber(String subscriber) voidsetSubscription(String subscription) voidMethods inherited from class com.cumulocity.rest.representation.AbstractExtensibleRepresentation
get, get, getAttrs, getProperty, hasProperty, propertyNames, removeProperty, set, set, set, setAttrs, setPropertyMethods 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()
-