-
public class BatchEventAttributesObject holding attributes to be associated to an event Keys should be made of letters, numbers or underscores ([a-z0-9_]) and can't be longer than 30 characters.
-
-
Constructor Summary
Constructors Constructor Description BatchEventAttributes()
-
Method Summary
Modifier and Type Method Description Map<String, EventTypedAttribute>getAttributes()Set<String>getTags()StringgetLabel()BatchEventAttributesput(@NonNull() String key, @NonNull() String value)Add a string attribute for the specified key BatchEventAttributesput(@NonNull() String key, @NonNull() URI value)Add an URL attribute for the specified key BatchEventAttributesput(@NonNull() String key, float value)Add a float attribute for the specified key BatchEventAttributesput(@NonNull() String key, double value)Add a double attribute for the specified key BatchEventAttributesput(@NonNull() String key, int value)Add a integer attribute for the specified key BatchEventAttributesput(@NonNull() String key, long value)Add a long attribute for the specified key BatchEventAttributesput(@NonNull() String key, boolean value)Add a boolean attribute for the specified key BatchEventAttributesput(@NonNull() String key, @NonNull() Date value)Add a date attribute for the specified key BatchEventAttributesput(@NonNull() String key, @NonNull() BatchEventAttributes value)Add an object attribute for the specified key BatchEventAttributesputObjectList(@NonNull() String key, @NonNull() List<BatchEventAttributes> value)Add a list of object attribute for the specified key BatchEventAttributesputStringList(@NonNull() String key, @NonNull() List<String> value)Add a list of string attribute for the specified key List<String>validateEventAttributes()Validate the event data. -
-
Method Detail
-
getAttributes
@NonNull() Map<String, EventTypedAttribute> getAttributes()
-
put
BatchEventAttributes put(@NonNull() String key, @NonNull() String value)
Add a string attribute for the specified key
- Parameters:
key- Attribute key.value- String value to add.
-
put
BatchEventAttributes put(@NonNull() String key, @NonNull() URI value)
Add an URL attribute for the specified key
- Parameters:
key- Attribute key.value- URL value to add.
-
put
BatchEventAttributes put(@NonNull() String key, float value)
Add a float attribute for the specified key
- Parameters:
key- Attribute key.value- Float value to add.
-
put
BatchEventAttributes put(@NonNull() String key, double value)
Add a double attribute for the specified key
- Parameters:
key- Attribute key.value- Double value to add.
-
put
BatchEventAttributes put(@NonNull() String key, int value)
Add a integer attribute for the specified key
- Parameters:
key- Attribute key.value- Integer value to add.
-
put
BatchEventAttributes put(@NonNull() String key, long value)
Add a long attribute for the specified key
- Parameters:
key- Attribute key.value- Long value to add.
-
put
BatchEventAttributes put(@NonNull() String key, boolean value)
Add a boolean attribute for the specified key
- Parameters:
key- Attribute key.value- Boolean value to add.
-
put
BatchEventAttributes put(@NonNull() String key, @NonNull() Date value)
Add a date attribute for the specified key
- Parameters:
key- Attribute key.value- Date value to add.
-
put
BatchEventAttributes put(@NonNull() String key, @NonNull() BatchEventAttributes value)
Add an object attribute for the specified key
- Parameters:
key- Attribute key.value- BatchEventAttributes value to add.
-
putObjectList
BatchEventAttributes putObjectList(@NonNull() String key, @NonNull() List<BatchEventAttributes> value)
Add a list of object attribute for the specified key
- Parameters:
key- Attribute key.value- A List of BatchEventAttributes value to add.
-
putStringList
BatchEventAttributes putStringList(@NonNull() String key, @NonNull() List<String> value)
Add a list of string attribute for the specified key
- Parameters:
key- Attribute key.value- A List of String value to add.
-
validateEventAttributes
List<String> validateEventAttributes()
Validate the event data.
-
-
-
-