commonMain.aws.sdk.kotlin.services.appsync.model.DataSourceIntrospectionModelField.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
/**
* Represents the fields that were retrieved from the introspected data.
*/
public class DataSourceIntrospectionModelField private constructor(builder: Builder) {
/**
* The length value of the introspected field.
*/
public val length: kotlin.Long = builder.length
/**
* The name of the field that was retrieved from the introspected data.
*/
public val name: kotlin.String? = builder.name
/**
* The `DataSourceIntrospectionModelFieldType` object data.
*/
public val type: aws.sdk.kotlin.services.appsync.model.DataSourceIntrospectionModelFieldType? = builder.type
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.appsync.model.DataSourceIntrospectionModelField = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("DataSourceIntrospectionModelField(")
append("length=$length,")
append("name=$name,")
append("type=$type")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = length.hashCode()
result = 31 * result + (name?.hashCode() ?: 0)
result = 31 * result + (type?.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 DataSourceIntrospectionModelField
if (length != other.length) return false
if (name != other.name) return false
if (type != other.type) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.appsync.model.DataSourceIntrospectionModelField = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The length value of the introspected field.
*/
public var length: kotlin.Long = 0L
/**
* The name of the field that was retrieved from the introspected data.
*/
public var name: kotlin.String? = null
/**
* The `DataSourceIntrospectionModelFieldType` object data.
*/
public var type: aws.sdk.kotlin.services.appsync.model.DataSourceIntrospectionModelFieldType? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.appsync.model.DataSourceIntrospectionModelField) : this() {
this.length = x.length
this.name = x.name
this.type = x.type
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.appsync.model.DataSourceIntrospectionModelField = DataSourceIntrospectionModelField(this)
/**
* construct an [aws.sdk.kotlin.services.appsync.model.DataSourceIntrospectionModelFieldType] inside the given [block]
*/
public fun type(block: aws.sdk.kotlin.services.appsync.model.DataSourceIntrospectionModelFieldType.Builder.() -> kotlin.Unit) {
this.type = aws.sdk.kotlin.services.appsync.model.DataSourceIntrospectionModelFieldType.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}