commonMain.aws.sdk.kotlin.services.finspacedata.model.CreateDataViewRequest.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of finspacedata-jvm Show documentation
Show all versions of finspacedata-jvm Show documentation
The AWS SDK for Kotlin client for finspace data
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.finspacedata.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* Request for creating a data view.
*/
public class CreateDataViewRequest private constructor(builder: Builder) {
/**
* Beginning time to use for the Dataview. The value is determined as epoch time in milliseconds. For example, the value for Monday, November 1, 2021 12:00:00 PM UTC is specified as 1635768000000.
*/
public val asOfTimestamp: kotlin.Long? = builder.asOfTimestamp
/**
* Flag to indicate Dataview should be updated automatically.
*/
public val autoUpdate: kotlin.Boolean? = builder.autoUpdate
/**
* A token that ensures idempotency. This token expires in 10 minutes.
*/
public val clientToken: kotlin.String? = builder.clientToken
/**
* The unique Dataset identifier that is used to create a Dataview.
*/
public val datasetId: kotlin.String? = builder.datasetId
/**
* Options that define the destination type for the Dataview.
*/
public val destinationTypeParams: aws.sdk.kotlin.services.finspacedata.model.DataViewDestinationTypeParams? = builder.destinationTypeParams
/**
* Ordered set of column names used to partition data.
*/
public val partitionColumns: List? = builder.partitionColumns
/**
* Columns to be used for sorting the data.
*/
public val sortColumns: List? = builder.sortColumns
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.finspacedata.model.CreateDataViewRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("CreateDataViewRequest(")
append("asOfTimestamp=$asOfTimestamp,")
append("autoUpdate=$autoUpdate,")
append("clientToken=$clientToken,")
append("datasetId=$datasetId,")
append("destinationTypeParams=$destinationTypeParams,")
append("partitionColumns=$partitionColumns,")
append("sortColumns=$sortColumns")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = asOfTimestamp?.hashCode() ?: 0
result = 31 * result + (autoUpdate?.hashCode() ?: 0)
result = 31 * result + (clientToken?.hashCode() ?: 0)
result = 31 * result + (datasetId?.hashCode() ?: 0)
result = 31 * result + (destinationTypeParams?.hashCode() ?: 0)
result = 31 * result + (partitionColumns?.hashCode() ?: 0)
result = 31 * result + (sortColumns?.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 CreateDataViewRequest
if (asOfTimestamp != other.asOfTimestamp) return false
if (autoUpdate != other.autoUpdate) return false
if (clientToken != other.clientToken) return false
if (datasetId != other.datasetId) return false
if (destinationTypeParams != other.destinationTypeParams) return false
if (partitionColumns != other.partitionColumns) return false
if (sortColumns != other.sortColumns) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.finspacedata.model.CreateDataViewRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* Beginning time to use for the Dataview. The value is determined as epoch time in milliseconds. For example, the value for Monday, November 1, 2021 12:00:00 PM UTC is specified as 1635768000000.
*/
public var asOfTimestamp: kotlin.Long? = null
/**
* Flag to indicate Dataview should be updated automatically.
*/
public var autoUpdate: kotlin.Boolean? = null
/**
* A token that ensures idempotency. This token expires in 10 minutes.
*/
public var clientToken: kotlin.String? = null
/**
* The unique Dataset identifier that is used to create a Dataview.
*/
public var datasetId: kotlin.String? = null
/**
* Options that define the destination type for the Dataview.
*/
public var destinationTypeParams: aws.sdk.kotlin.services.finspacedata.model.DataViewDestinationTypeParams? = null
/**
* Ordered set of column names used to partition data.
*/
public var partitionColumns: List? = null
/**
* Columns to be used for sorting the data.
*/
public var sortColumns: List? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.finspacedata.model.CreateDataViewRequest) : this() {
this.asOfTimestamp = x.asOfTimestamp
this.autoUpdate = x.autoUpdate
this.clientToken = x.clientToken
this.datasetId = x.datasetId
this.destinationTypeParams = x.destinationTypeParams
this.partitionColumns = x.partitionColumns
this.sortColumns = x.sortColumns
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.finspacedata.model.CreateDataViewRequest = CreateDataViewRequest(this)
/**
* construct an [aws.sdk.kotlin.services.finspacedata.model.DataViewDestinationTypeParams] inside the given [block]
*/
public fun destinationTypeParams(block: aws.sdk.kotlin.services.finspacedata.model.DataViewDestinationTypeParams.Builder.() -> kotlin.Unit) {
this.destinationTypeParams = aws.sdk.kotlin.services.finspacedata.model.DataViewDestinationTypeParams.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy