JsonSerializationArgs

data class JsonSerializationArgs(val encoding: Output<Either<String, Encoding>>? = null, val format: Output<Either<String, JsonOutputSerializationFormat>>? = null, val type: Output<String>) : ConvertibleToJava<JsonSerializationArgs>

Describes how data from an input is serialized or how data is serialized when written to an output in JSON format.

Constructors

Link copied to clipboard
constructor(encoding: Output<Either<String, Encoding>>? = null, format: Output<Either<String, JsonOutputSerializationFormat>>? = null, type: Output<String>)

Properties

Link copied to clipboard
val encoding: Output<Either<String, Encoding>>? = null

Specifies the encoding of the incoming data in the case of input and the encoding of outgoing data in the case of output. Required on PUT (CreateOrReplace) requests.

Link copied to clipboard
val format: Output<Either<String, JsonOutputSerializationFormat>>? = null

This property only applies to JSON serialization of outputs only. It is not applicable to inputs. This property specifies the format of the JSON the output will be written in. The currently supported values are 'lineSeparated' indicating the output will be formatted by having each JSON object separated by a new line and 'array' indicating the output will be formatted as an array of JSON objects. Default value is 'lineSeparated' if left null.

Link copied to clipboard
val type: Output<String>

Indicates the type of serialization that the input or output uses. Required on PUT (CreateOrReplace) requests. Expected value is 'Json'.

Functions

Link copied to clipboard
open override fun toJava(): JsonSerializationArgs