commonMain.aws.sdk.kotlin.services.appflow.model.DescribeConnectorEntityResponse.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of appflow-jvm Show documentation
Show all versions of appflow-jvm Show documentation
The AWS SDK for Kotlin client for Appflow
The newest version!
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.appflow.model
import aws.smithy.kotlin.runtime.SdkDsl
public class DescribeConnectorEntityResponse private constructor(builder: Builder) {
/**
* Describes the fields for that connector entity. For example, for an *account* entity, the fields would be *account name*, *account ID*, and so on.
*/
public val connectorEntityFields: List = requireNotNull(builder.connectorEntityFields) { "A non-null value must be provided for connectorEntityFields" }
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.appflow.model.DescribeConnectorEntityResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("DescribeConnectorEntityResponse(")
append("connectorEntityFields=$connectorEntityFields")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = connectorEntityFields.hashCode()
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 DescribeConnectorEntityResponse
if (connectorEntityFields != other.connectorEntityFields) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.appflow.model.DescribeConnectorEntityResponse = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* Describes the fields for that connector entity. For example, for an *account* entity, the fields would be *account name*, *account ID*, and so on.
*/
public var connectorEntityFields: List? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.appflow.model.DescribeConnectorEntityResponse) : this() {
this.connectorEntityFields = x.connectorEntityFields
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.appflow.model.DescribeConnectorEntityResponse = DescribeConnectorEntityResponse(this)
internal fun correctErrors(): Builder {
if (connectorEntityFields == null) connectorEntityFields = emptyList()
return this
}
}
}