com.pulumi.awsnative.apigatewayv2.kotlin.ModelArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-aws-native-kotlin Show documentation
Show all versions of pulumi-aws-native-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.awsnative.apigatewayv2.kotlin
import com.pulumi.awsnative.apigatewayv2.ModelArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Any
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
* The ``AWS::ApiGatewayV2::Model`` resource updates data model for a WebSocket API. For more information, see [Model Selection Expressions](https://docs.aws.amazon.com/apigateway/latest/developerguide/apigateway-websocket-api-selection-expressions.html#apigateway-websocket-api-model-selection-expressions) in the *API Gateway Developer Guide*.
* @property apiId The API identifier.
* @property contentType The content-type for the model, for example, "application/json".
* @property description The description of the model.
* @property name The name of the model.
* @property schema The schema for the model. For application/json models, this should be JSON schema draft 4 model.
* Search the [CloudFormation User Guide](https://docs.aws.amazon.com/cloudformation/) for `AWS::ApiGatewayV2::Model` for more information about the expected schema for this property.
*/
public data class ModelArgs(
public val apiId: Output? = null,
public val contentType: Output? = null,
public val description: Output? = null,
public val name: Output? = null,
public val schema: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.awsnative.apigatewayv2.ModelArgs =
com.pulumi.awsnative.apigatewayv2.ModelArgs.builder()
.apiId(apiId?.applyValue({ args0 -> args0 }))
.contentType(contentType?.applyValue({ args0 -> args0 }))
.description(description?.applyValue({ args0 -> args0 }))
.name(name?.applyValue({ args0 -> args0 }))
.schema(schema?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [ModelArgs].
*/
@PulumiTagMarker
public class ModelArgsBuilder internal constructor() {
private var apiId: Output? = null
private var contentType: Output? = null
private var description: Output? = null
private var name: Output? = null
private var schema: Output? = null
/**
* @param value The API identifier.
*/
@JvmName("okrpqxgaeaxbnorr")
public suspend fun apiId(`value`: Output) {
this.apiId = value
}
/**
* @param value The content-type for the model, for example, "application/json".
*/
@JvmName("foxqcfwqtvvqwavn")
public suspend fun contentType(`value`: Output) {
this.contentType = value
}
/**
* @param value The description of the model.
*/
@JvmName("xpogclucemklhexf")
public suspend fun description(`value`: Output) {
this.description = value
}
/**
* @param value The name of the model.
*/
@JvmName("ggsalymdkooaemgg")
public suspend fun name(`value`: Output) {
this.name = value
}
/**
* @param value The schema for the model. For application/json models, this should be JSON schema draft 4 model.
* Search the [CloudFormation User Guide](https://docs.aws.amazon.com/cloudformation/) for `AWS::ApiGatewayV2::Model` for more information about the expected schema for this property.
*/
@JvmName("bcwykckuydxiqrtl")
public suspend fun schema(`value`: Output) {
this.schema = value
}
/**
* @param value The API identifier.
*/
@JvmName("lmcqvubnblarpnoc")
public suspend fun apiId(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.apiId = mapped
}
/**
* @param value The content-type for the model, for example, "application/json".
*/
@JvmName("sondedrltowgpspr")
public suspend fun contentType(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.contentType = mapped
}
/**
* @param value The description of the model.
*/
@JvmName("mcjejvjrovarbfjy")
public suspend fun description(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.description = mapped
}
/**
* @param value The name of the model.
*/
@JvmName("dmqcdmidcnpkgfpl")
public suspend fun name(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.name = mapped
}
/**
* @param value The schema for the model. For application/json models, this should be JSON schema draft 4 model.
* Search the [CloudFormation User Guide](https://docs.aws.amazon.com/cloudformation/) for `AWS::ApiGatewayV2::Model` for more information about the expected schema for this property.
*/
@JvmName("jocceuechayiyeqp")
public suspend fun schema(`value`: Any?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.schema = mapped
}
internal fun build(): ModelArgs = ModelArgs(
apiId = apiId,
contentType = contentType,
description = description,
name = name,
schema = schema,
)
}