You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
How about some Builders in lambda-java-events #566
The core AWS Java/Kotlin libraries provide builders for just about every object. Builders abound! In the aws-lambda-java-events library we get sad old POJOs.
I guess I could do this, but its not winning any awards:
val messageAttribute =SQSEvent.MessageAttribute()
messageAttribute.stringValue ="Still have to do this on two lines"val sqsMessage =SQSEvent.SQSMessage()
sqsMessage.body = objectMapper.writeValueAsString(DummyMessage(name ="Bob"))
sqsMessage.messageAttributes =mapOf("So-Much-Typing" to messageAttribute)
I'm using SQSEvent as an example because that's what I was working with today. But same goes for SNSEvent, S3Event, ScheduleEvent, LexEvent...
Activity