commonMain.aws.sdk.kotlin.services.appsync.model.GetIntrospectionSchemaRequest.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 GetIntrospectionSchemaRequest private constructor(builder: Builder) {
/**
* The API ID.
*/
public val apiId: kotlin.String? = builder.apiId
/**
* The schema format: SDL or JSON.
*/
public val format: aws.sdk.kotlin.services.appsync.model.OutputType? = builder.format
/**
* A flag that specifies whether the schema introspection should contain directives.
*/
public val includeDirectives: kotlin.Boolean? = builder.includeDirectives
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.appsync.model.GetIntrospectionSchemaRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("GetIntrospectionSchemaRequest(")
append("apiId=$apiId,")
append("format=$format,")
append("includeDirectives=$includeDirectives")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = apiId?.hashCode() ?: 0
result = 31 * result + (format?.hashCode() ?: 0)
result = 31 * result + (includeDirectives?.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 GetIntrospectionSchemaRequest
if (apiId != other.apiId) return false
if (format != other.format) return false
if (includeDirectives != other.includeDirectives) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.appsync.model.GetIntrospectionSchemaRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The API ID.
*/
public var apiId: kotlin.String? = null
/**
* The schema format: SDL or JSON.
*/
public var format: aws.sdk.kotlin.services.appsync.model.OutputType? = null
/**
* A flag that specifies whether the schema introspection should contain directives.
*/
public var includeDirectives: kotlin.Boolean? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.appsync.model.GetIntrospectionSchemaRequest) : this() {
this.apiId = x.apiId
this.format = x.format
this.includeDirectives = x.includeDirectives
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.appsync.model.GetIntrospectionSchemaRequest = GetIntrospectionSchemaRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}