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
public class NotificationTokenRequestRepresentation extends AbstractExtensibleRepresentation
-
-
Constructor Summary
Constructors Constructor Description NotificationTokenRequestRepresentation()NotificationTokenRequestRepresentation(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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longgetExpiresInMinutes()StringgetSubscriber()StringgetSubscription()StringgetType()booleanisNonPersistent()booleanisShared()booleanisSigned()voidsetExpiresInMinutes(long expiresInMinutes)voidsetNonPersistent(boolean nonPersistent)voidsetShared(boolean shared)voidsetSigned(boolean signed)voidsetSubscriber(String subscriber)voidsetSubscription(String subscription)voidsetType(String type)-
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 Detail
-
NotificationTokenRequestRepresentation
public NotificationTokenRequestRepresentation(String subscriber, String subscription, long expiresInMinutes, boolean shared)
-
NotificationTokenRequestRepresentation
public NotificationTokenRequestRepresentation(String subscriber, String subscription, long expiresInMinutes, boolean shared, boolean nonPersistent)
-
NotificationTokenRequestRepresentation
public NotificationTokenRequestRepresentation()
-
-
Method Detail
-
setSubscriber
public void setSubscriber(String subscriber)
-
setSubscription
public void setSubscription(String subscription)
-
setType
public void setType(String type)
-
setSigned
public void setSigned(boolean signed)
-
setExpiresInMinutes
public void setExpiresInMinutes(long expiresInMinutes)
-
setShared
public void setShared(boolean shared)
-
setNonPersistent
public void setNonPersistent(boolean nonPersistent)
-
getSubscriber
@JSONProperty(ignoreIfNull=true) public String getSubscriber()
-
getSubscription
@JSONProperty(ignoreIfNull=true) public String getSubscription()
-
getType
@JSONProperty(ignoreIfNull=true) public String getType()
-
isSigned
@JSONProperty(ignoreIfNull=true) public boolean isSigned()
-
getExpiresInMinutes
@JSONProperty(ignoreIfNull=true) public long getExpiresInMinutes()
-
isShared
@JSONProperty(ignoreIfNull=true) public boolean isShared()
-
isNonPersistent
@JSONProperty(ignoreIfNull=true) public boolean isNonPersistent()
-
-