commonMain.aws.sdk.kotlin.services.appsync.model.DeleteFunctionRequest.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 DeleteFunctionRequest private constructor(builder: Builder) {
/**
* The GraphQL API ID.
*/
public val apiId: kotlin.String? = builder.apiId
/**
* The `Function` ID.
*/
public val functionId: kotlin.String? = builder.functionId
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.appsync.model.DeleteFunctionRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("DeleteFunctionRequest(")
append("apiId=$apiId,")
append("functionId=$functionId")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = apiId?.hashCode() ?: 0
result = 31 * result + (functionId?.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 DeleteFunctionRequest
if (apiId != other.apiId) return false
if (functionId != other.functionId) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.appsync.model.DeleteFunctionRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The GraphQL API ID.
*/
public var apiId: kotlin.String? = null
/**
* The `Function` ID.
*/
public var functionId: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.appsync.model.DeleteFunctionRequest) : this() {
this.apiId = x.apiId
this.functionId = x.functionId
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.appsync.model.DeleteFunctionRequest = DeleteFunctionRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}