commonMain.aws.sdk.kotlin.services.personalize.model.Dataset.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of personalize-jvm Show documentation
Show all versions of personalize-jvm Show documentation
The AWS SDK for Kotlin client for Personalize
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.personalize.model
import aws.smithy.kotlin.runtime.SdkDsl
import aws.smithy.kotlin.runtime.time.Instant
/**
* Provides metadata for a dataset.
*/
public class Dataset private constructor(builder: Builder) {
/**
* The creation date and time (in Unix time) of the dataset.
*/
public val creationDateTime: aws.smithy.kotlin.runtime.time.Instant? = builder.creationDateTime
/**
* The Amazon Resource Name (ARN) of the dataset that you want metadata for.
*/
public val datasetArn: kotlin.String? = builder.datasetArn
/**
* The Amazon Resource Name (ARN) of the dataset group.
*/
public val datasetGroupArn: kotlin.String? = builder.datasetGroupArn
/**
* One of the following values:
* + Interactions
* + Items
* + Users
* + Actions
* + Action_Interactions
*/
public val datasetType: kotlin.String? = builder.datasetType
/**
* A time stamp that shows when the dataset was updated.
*/
public val lastUpdatedDateTime: aws.smithy.kotlin.runtime.time.Instant? = builder.lastUpdatedDateTime
/**
* Describes the latest update to the dataset.
*/
public val latestDatasetUpdate: aws.sdk.kotlin.services.personalize.model.DatasetUpdateSummary? = builder.latestDatasetUpdate
/**
* The name of the dataset.
*/
public val name: kotlin.String? = builder.name
/**
* The ARN of the associated schema.
*/
public val schemaArn: kotlin.String? = builder.schemaArn
/**
* The status of the dataset.
*
* A dataset can be in one of the following states:
* + CREATE PENDING > CREATE IN_PROGRESS > ACTIVE -or- CREATE FAILED
* + DELETE PENDING > DELETE IN_PROGRESS
*/
public val status: kotlin.String? = builder.status
/**
* The ID of the event tracker for an Action interactions dataset. You specify the tracker's ID in the `PutActionInteractions` API operation. Amazon Personalize uses it to direct new data to the Action interactions dataset in your dataset group.
*/
public val trackingId: kotlin.String? = builder.trackingId
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.personalize.model.Dataset = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("Dataset(")
append("creationDateTime=$creationDateTime,")
append("datasetArn=$datasetArn,")
append("datasetGroupArn=$datasetGroupArn,")
append("datasetType=$datasetType,")
append("lastUpdatedDateTime=$lastUpdatedDateTime,")
append("latestDatasetUpdate=$latestDatasetUpdate,")
append("name=$name,")
append("schemaArn=$schemaArn,")
append("status=$status,")
append("trackingId=$trackingId")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = creationDateTime?.hashCode() ?: 0
result = 31 * result + (datasetArn?.hashCode() ?: 0)
result = 31 * result + (datasetGroupArn?.hashCode() ?: 0)
result = 31 * result + (datasetType?.hashCode() ?: 0)
result = 31 * result + (lastUpdatedDateTime?.hashCode() ?: 0)
result = 31 * result + (latestDatasetUpdate?.hashCode() ?: 0)
result = 31 * result + (name?.hashCode() ?: 0)
result = 31 * result + (schemaArn?.hashCode() ?: 0)
result = 31 * result + (status?.hashCode() ?: 0)
result = 31 * result + (trackingId?.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 Dataset
if (creationDateTime != other.creationDateTime) return false
if (datasetArn != other.datasetArn) return false
if (datasetGroupArn != other.datasetGroupArn) return false
if (datasetType != other.datasetType) return false
if (lastUpdatedDateTime != other.lastUpdatedDateTime) return false
if (latestDatasetUpdate != other.latestDatasetUpdate) return false
if (name != other.name) return false
if (schemaArn != other.schemaArn) return false
if (status != other.status) return false
if (trackingId != other.trackingId) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.personalize.model.Dataset = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The creation date and time (in Unix time) of the dataset.
*/
public var creationDateTime: aws.smithy.kotlin.runtime.time.Instant? = null
/**
* The Amazon Resource Name (ARN) of the dataset that you want metadata for.
*/
public var datasetArn: kotlin.String? = null
/**
* The Amazon Resource Name (ARN) of the dataset group.
*/
public var datasetGroupArn: kotlin.String? = null
/**
* One of the following values:
* + Interactions
* + Items
* + Users
* + Actions
* + Action_Interactions
*/
public var datasetType: kotlin.String? = null
/**
* A time stamp that shows when the dataset was updated.
*/
public var lastUpdatedDateTime: aws.smithy.kotlin.runtime.time.Instant? = null
/**
* Describes the latest update to the dataset.
*/
public var latestDatasetUpdate: aws.sdk.kotlin.services.personalize.model.DatasetUpdateSummary? = null
/**
* The name of the dataset.
*/
public var name: kotlin.String? = null
/**
* The ARN of the associated schema.
*/
public var schemaArn: kotlin.String? = null
/**
* The status of the dataset.
*
* A dataset can be in one of the following states:
* + CREATE PENDING > CREATE IN_PROGRESS > ACTIVE -or- CREATE FAILED
* + DELETE PENDING > DELETE IN_PROGRESS
*/
public var status: kotlin.String? = null
/**
* The ID of the event tracker for an Action interactions dataset. You specify the tracker's ID in the `PutActionInteractions` API operation. Amazon Personalize uses it to direct new data to the Action interactions dataset in your dataset group.
*/
public var trackingId: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.personalize.model.Dataset) : this() {
this.creationDateTime = x.creationDateTime
this.datasetArn = x.datasetArn
this.datasetGroupArn = x.datasetGroupArn
this.datasetType = x.datasetType
this.lastUpdatedDateTime = x.lastUpdatedDateTime
this.latestDatasetUpdate = x.latestDatasetUpdate
this.name = x.name
this.schemaArn = x.schemaArn
this.status = x.status
this.trackingId = x.trackingId
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.personalize.model.Dataset = Dataset(this)
/**
* construct an [aws.sdk.kotlin.services.personalize.model.DatasetUpdateSummary] inside the given [block]
*/
public fun latestDatasetUpdate(block: aws.sdk.kotlin.services.personalize.model.DatasetUpdateSummary.Builder.() -> kotlin.Unit) {
this.latestDatasetUpdate = aws.sdk.kotlin.services.personalize.model.DatasetUpdateSummary.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}