commonMain.aws.sdk.kotlin.services.glue.model.UserDefinedFunctionInput.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of glue-jvm Show documentation
Show all versions of glue-jvm Show documentation
The AWS SDK for Kotlin client for Glue
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.glue.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* A structure used to create or update a user-defined function.
*/
public class UserDefinedFunctionInput private constructor(builder: Builder) {
/**
* The Java class that contains the function code.
*/
public val className: kotlin.String? = builder.className
/**
* The name of the function.
*/
public val functionName: kotlin.String? = builder.functionName
/**
* The owner of the function.
*/
public val ownerName: kotlin.String? = builder.ownerName
/**
* The owner type.
*/
public val ownerType: aws.sdk.kotlin.services.glue.model.PrincipalType? = builder.ownerType
/**
* The resource URIs for the function.
*/
public val resourceUris: List? = builder.resourceUris
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.glue.model.UserDefinedFunctionInput = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("UserDefinedFunctionInput(")
append("className=$className,")
append("functionName=$functionName,")
append("ownerName=$ownerName,")
append("ownerType=$ownerType,")
append("resourceUris=$resourceUris")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = className?.hashCode() ?: 0
result = 31 * result + (functionName?.hashCode() ?: 0)
result = 31 * result + (ownerName?.hashCode() ?: 0)
result = 31 * result + (ownerType?.hashCode() ?: 0)
result = 31 * result + (resourceUris?.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 UserDefinedFunctionInput
if (className != other.className) return false
if (functionName != other.functionName) return false
if (ownerName != other.ownerName) return false
if (ownerType != other.ownerType) return false
if (resourceUris != other.resourceUris) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.glue.model.UserDefinedFunctionInput = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The Java class that contains the function code.
*/
public var className: kotlin.String? = null
/**
* The name of the function.
*/
public var functionName: kotlin.String? = null
/**
* The owner of the function.
*/
public var ownerName: kotlin.String? = null
/**
* The owner type.
*/
public var ownerType: aws.sdk.kotlin.services.glue.model.PrincipalType? = null
/**
* The resource URIs for the function.
*/
public var resourceUris: List? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.glue.model.UserDefinedFunctionInput) : this() {
this.className = x.className
this.functionName = x.functionName
this.ownerName = x.ownerName
this.ownerType = x.ownerType
this.resourceUris = x.resourceUris
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.glue.model.UserDefinedFunctionInput = UserDefinedFunctionInput(this)
internal fun correctErrors(): Builder {
return this
}
}
}