commonMain.aws.sdk.kotlin.services.appflow.model.SourceFieldProperties.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
/**
* The properties that can be applied to a field when the connector is being used as a source.
*/
public class SourceFieldProperties private constructor(builder: Builder) {
/**
* Indicates if the field can be queried.
*/
public val isQueryable: kotlin.Boolean = builder.isQueryable
/**
* Indicates whether the field can be returned in a search result.
*/
public val isRetrievable: kotlin.Boolean = builder.isRetrievable
/**
* Indicates if this timestamp field can be used for incremental queries.
*/
public val isTimestampFieldForIncrementalQueries: kotlin.Boolean = builder.isTimestampFieldForIncrementalQueries
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.appflow.model.SourceFieldProperties = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("SourceFieldProperties(")
append("isQueryable=$isQueryable,")
append("isRetrievable=$isRetrievable,")
append("isTimestampFieldForIncrementalQueries=$isTimestampFieldForIncrementalQueries")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = isQueryable.hashCode()
result = 31 * result + (isRetrievable.hashCode())
result = 31 * result + (isTimestampFieldForIncrementalQueries.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 SourceFieldProperties
if (isQueryable != other.isQueryable) return false
if (isRetrievable != other.isRetrievable) return false
if (isTimestampFieldForIncrementalQueries != other.isTimestampFieldForIncrementalQueries) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.appflow.model.SourceFieldProperties = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* Indicates if the field can be queried.
*/
public var isQueryable: kotlin.Boolean = false
/**
* Indicates whether the field can be returned in a search result.
*/
public var isRetrievable: kotlin.Boolean = false
/**
* Indicates if this timestamp field can be used for incremental queries.
*/
public var isTimestampFieldForIncrementalQueries: kotlin.Boolean = false
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.appflow.model.SourceFieldProperties) : this() {
this.isQueryable = x.isQueryable
this.isRetrievable = x.isRetrievable
this.isTimestampFieldForIncrementalQueries = x.isTimestampFieldForIncrementalQueries
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.appflow.model.SourceFieldProperties = SourceFieldProperties(this)
internal fun correctErrors(): Builder {
return this
}
}
}