
commonMain.aws.sdk.kotlin.services.iottwinmaker.model.FunctionRequest.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.iottwinmaker.model
/**
* The function request body.
*/
public class FunctionRequest private constructor(builder: Builder) {
/**
* The data connector.
*/
public val implementedBy: aws.sdk.kotlin.services.iottwinmaker.model.DataConnector? = builder.implementedBy
/**
* The required properties of the function.
*/
public val requiredProperties: List? = builder.requiredProperties
/**
* The scope of the function.
*/
public val scope: aws.sdk.kotlin.services.iottwinmaker.model.Scope? = builder.scope
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.iottwinmaker.model.FunctionRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("FunctionRequest(")
append("implementedBy=$implementedBy,")
append("requiredProperties=$requiredProperties,")
append("scope=$scope")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = implementedBy?.hashCode() ?: 0
result = 31 * result + (requiredProperties?.hashCode() ?: 0)
result = 31 * result + (scope?.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 FunctionRequest
if (implementedBy != other.implementedBy) return false
if (requiredProperties != other.requiredProperties) return false
if (scope != other.scope) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.iottwinmaker.model.FunctionRequest = Builder(this).apply(block).build()
public class Builder {
/**
* The data connector.
*/
public var implementedBy: aws.sdk.kotlin.services.iottwinmaker.model.DataConnector? = null
/**
* The required properties of the function.
*/
public var requiredProperties: List? = null
/**
* The scope of the function.
*/
public var scope: aws.sdk.kotlin.services.iottwinmaker.model.Scope? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.iottwinmaker.model.FunctionRequest) : this() {
this.implementedBy = x.implementedBy
this.requiredProperties = x.requiredProperties
this.scope = x.scope
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.iottwinmaker.model.FunctionRequest = FunctionRequest(this)
/**
* construct an [aws.sdk.kotlin.services.iottwinmaker.model.DataConnector] inside the given [block]
*/
public fun implementedBy(block: aws.sdk.kotlin.services.iottwinmaker.model.DataConnector.Builder.() -> kotlin.Unit) {
this.implementedBy = aws.sdk.kotlin.services.iottwinmaker.model.DataConnector.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy