QueryLiteral

data class QueryLiteral(val key: String, val value: String)

Trait that adds a static key=value pair to a form-url encoded object

Example

This would add Action=FooOperation&Version=2015-03-31 as key/value pairs to the serialized form of the object

val OBJ_DESCRIPTOR = SdkObjectDescriptor.build {
trait(QueryLiteral("Action", "FooOperation")
trait(QueryLiteral("Version", "2015-03-31")
}

Constructors

Link copied to clipboard
constructor(key: String, value: String)

Properties

Link copied to clipboard
val key: String
Link copied to clipboard