public PatternToken addEnumerationsEntry(String key, Long value) {
        if (null == this.enumerations) {
            this.enumerations = new com.amazonaws.internal.SdkInternalMap<String, Long>();
        }
        if (this.enumerations.containsKey(key))
            throw new IllegalArgumentException("Duplicated keys (" + key.toString() + ") are provided.");
        this.enumerations.put(key, value);
        return this;
    }
Add a single Enumerations entry

@see PatternToken#withEnumerations
@returns a reference to this object so that method calls can be chained together.
aws-java-sdk-logs/src/main/java/com/amazonaws/services/logs/model/PatternToken.java