commonMain.aws.sdk.kotlin.services.databrew.model.ViewFrame.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of databrew-jvm Show documentation
Show all versions of databrew-jvm Show documentation
The AWS Kotlin client for DataBrew
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.databrew.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* Represents the data being transformed during an action.
*/
public class ViewFrame private constructor(builder: Builder) {
/**
* Controls if analytics computation is enabled or disabled. Enabled by default.
*/
public val analytics: aws.sdk.kotlin.services.databrew.model.AnalyticsMode? = builder.analytics
/**
* The number of columns to include in the view frame, beginning with the `StartColumnIndex` value and ignoring any columns in the `HiddenColumns` list.
*/
public val columnRange: kotlin.Int? = builder.columnRange
/**
* A list of columns to hide in the view frame.
*/
public val hiddenColumns: List? = builder.hiddenColumns
/**
* The number of rows to include in the view frame, beginning with the `StartRowIndex` value.
*/
public val rowRange: kotlin.Int? = builder.rowRange
/**
* The starting index for the range of columns to return in the view frame.
*/
public val startColumnIndex: kotlin.Int = requireNotNull(builder.startColumnIndex) { "A non-null value must be provided for startColumnIndex" }
/**
* The starting index for the range of rows to return in the view frame.
*/
public val startRowIndex: kotlin.Int? = builder.startRowIndex
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.databrew.model.ViewFrame = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("ViewFrame(")
append("analytics=$analytics,")
append("columnRange=$columnRange,")
append("hiddenColumns=$hiddenColumns,")
append("rowRange=$rowRange,")
append("startColumnIndex=$startColumnIndex,")
append("startRowIndex=$startRowIndex")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = analytics?.hashCode() ?: 0
result = 31 * result + (columnRange ?: 0)
result = 31 * result + (hiddenColumns?.hashCode() ?: 0)
result = 31 * result + (rowRange ?: 0)
result = 31 * result + (startColumnIndex)
result = 31 * result + (startRowIndex ?: 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 ViewFrame
if (analytics != other.analytics) return false
if (columnRange != other.columnRange) return false
if (hiddenColumns != other.hiddenColumns) return false
if (rowRange != other.rowRange) return false
if (startColumnIndex != other.startColumnIndex) return false
if (startRowIndex != other.startRowIndex) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.databrew.model.ViewFrame = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* Controls if analytics computation is enabled or disabled. Enabled by default.
*/
public var analytics: aws.sdk.kotlin.services.databrew.model.AnalyticsMode? = null
/**
* The number of columns to include in the view frame, beginning with the `StartColumnIndex` value and ignoring any columns in the `HiddenColumns` list.
*/
public var columnRange: kotlin.Int? = null
/**
* A list of columns to hide in the view frame.
*/
public var hiddenColumns: List? = null
/**
* The number of rows to include in the view frame, beginning with the `StartRowIndex` value.
*/
public var rowRange: kotlin.Int? = null
/**
* The starting index for the range of columns to return in the view frame.
*/
public var startColumnIndex: kotlin.Int? = null
/**
* The starting index for the range of rows to return in the view frame.
*/
public var startRowIndex: kotlin.Int? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.databrew.model.ViewFrame) : this() {
this.analytics = x.analytics
this.columnRange = x.columnRange
this.hiddenColumns = x.hiddenColumns
this.rowRange = x.rowRange
this.startColumnIndex = x.startColumnIndex
this.startRowIndex = x.startRowIndex
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.databrew.model.ViewFrame = ViewFrame(this)
internal fun correctErrors(): Builder {
if (startColumnIndex == null) startColumnIndex = 0
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy