Class NotificationToken
- java.lang.Object
-
- com.caplin.motif.config.definitions.common.NotificationToken
-
@Generated("org.openapitools.codegen.languages.SpringCodegen") public class NotificationToken extends java.lang.Object
Notification token representing a header or a message. Type Text can be used for plain text notification and type token with arguments for parameterised tokens.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
NotificationToken.TypeEnum
Type of the value.
-
Constructor Summary
Constructors Constructor Description NotificationToken()
NotificationToken(java.lang.String value, NotificationToken.TypeEnum type)
Constructor with only required parameters
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NotificationToken
arguments(java.util.Map<java.lang.String,DisplayFieldArgument> arguments)
boolean
equals(java.lang.Object o)
java.util.Map<java.lang.String,DisplayFieldArgument>
getArguments()
Key value pair representing each of the parameters of the token.@NotNull NotificationToken.TypeEnum
getType()
Type of the value.@NotNull java.lang.String
getValue()
The value to be applied to the template.int
hashCode()
NotificationToken
putArgumentsItem(java.lang.String key, DisplayFieldArgument argumentsItem)
void
setArguments(java.util.Map<java.lang.String,DisplayFieldArgument> arguments)
void
setType(NotificationToken.TypeEnum type)
void
setValue(java.lang.String value)
java.lang.String
toString()
NotificationToken
type(NotificationToken.TypeEnum type)
NotificationToken
value(java.lang.String value)
-
-
-
Constructor Detail
-
NotificationToken
public NotificationToken()
-
NotificationToken
public NotificationToken(java.lang.String value, NotificationToken.TypeEnum type)
Constructor with only required parameters
-
-
Method Detail
-
value
public NotificationToken value(java.lang.String value)
-
getValue
@NotNull public @NotNull java.lang.String getValue()
The value to be applied to the template.- Returns:
- value
-
setValue
public void setValue(java.lang.String value)
-
type
public NotificationToken type(NotificationToken.TypeEnum type)
-
getType
@NotNull public @NotNull NotificationToken.TypeEnum getType()
Type of the value. Used by the frontend for formatting. * `TEXT` - Plaintext value that should be displayed unmodified. * `TOKEN` - Translation token. The token must be known to the frontend.- Returns:
- type
-
setType
public void setType(NotificationToken.TypeEnum type)
-
arguments
public NotificationToken arguments(java.util.Map<java.lang.String,DisplayFieldArgument> arguments)
-
putArgumentsItem
public NotificationToken putArgumentsItem(java.lang.String key, DisplayFieldArgument argumentsItem)
-
getArguments
public java.util.Map<java.lang.String,DisplayFieldArgument> getArguments()
Key value pair representing each of the parameters of the token.- Returns:
- arguments
-
setArguments
public void setArguments(java.util.Map<java.lang.String,DisplayFieldArgument> arguments)
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-