commonMain.aws.sdk.kotlin.services.appsync.model.EvaluateMappingTemplateRequest.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of appsync-jvm Show documentation
Show all versions of appsync-jvm Show documentation
The AWS SDK for Kotlin client for AppSync
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.appsync.model
import aws.smithy.kotlin.runtime.SdkDsl
public class EvaluateMappingTemplateRequest private constructor(builder: Builder) {
/**
* The map that holds all of the contextual information for your resolver invocation. A `context` is required for this action.
*/
public val context: kotlin.String? = builder.context
/**
* The mapping template; this can be a request or response template. A `template` is required for this action.
*/
public val template: kotlin.String? = builder.template
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.appsync.model.EvaluateMappingTemplateRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("EvaluateMappingTemplateRequest(")
append("context=$context,")
append("template=$template")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = context?.hashCode() ?: 0
result = 31 * result + (template?.hashCode() ?: 0)
return result
}
override fun equals(other: kotlin.Any?): kotlin.Boolean {
if (this === other) return true
if (other == null || this::class != other::class) return false
other as EvaluateMappingTemplateRequest
if (context != other.context) return false
if (template != other.template) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.appsync.model.EvaluateMappingTemplateRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The map that holds all of the contextual information for your resolver invocation. A `context` is required for this action.
*/
public var context: kotlin.String? = null
/**
* The mapping template; this can be a request or response template. A `template` is required for this action.
*/
public var template: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.appsync.model.EvaluateMappingTemplateRequest) : this() {
this.context = x.context
this.template = x.template
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.appsync.model.EvaluateMappingTemplateRequest = EvaluateMappingTemplateRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}