@Immutable public abstract class Annotation extends Object
| Modifier and Type | Method and Description |
|---|---|
static Annotation |
fromDescription(String description)
Returns a new
Annotation with the given description. |
static Annotation |
fromDescriptionAndAttributes(String description,
Map<String,AttributeValue> attributes)
Returns a new
Annotation with the given description and set of attributes. |
abstract Map<String,AttributeValue> |
getAttributes()
Return the attributes of the
Annotation. |
abstract String |
getDescription()
Return the description of the
Annotation. |
public static Annotation fromDescription(String description)
Annotation with the given description.description - the text description of the Annotation.Annotation with the given description.NullPointerException - if description is null.public static Annotation fromDescriptionAndAttributes(String description, Map<String,AttributeValue> attributes)
Annotation with the given description and set of attributes.description - the text description of the Annotation.attributes - the attributes of the Annotation.Annotation with the given description and set of attributes.NullPointerException - if description or attributes are null.public abstract String getDescription()
Annotation.Annotation.public abstract Map<String,AttributeValue> getAttributes()
Annotation.Annotation.