commonMain.aws.sdk.kotlin.services.iotanalytics.model.DatasetActionSummary.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of iotanalytics-jvm Show documentation
Show all versions of iotanalytics-jvm Show documentation
The AWS SDK for Kotlin client for IoTAnalytics
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.iotanalytics.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* Information about the action that automatically creates the dataset's contents.
*/
public class DatasetActionSummary private constructor(builder: Builder) {
/**
* The name of the action that automatically creates the dataset's contents.
*/
public val actionName: kotlin.String? = builder.actionName
/**
* The type of action by which the dataset's contents are automatically created.
*/
public val actionType: aws.sdk.kotlin.services.iotanalytics.model.DatasetActionType? = builder.actionType
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.iotanalytics.model.DatasetActionSummary = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("DatasetActionSummary(")
append("actionName=$actionName,")
append("actionType=$actionType")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = actionName?.hashCode() ?: 0
result = 31 * result + (actionType?.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 DatasetActionSummary
if (actionName != other.actionName) return false
if (actionType != other.actionType) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.iotanalytics.model.DatasetActionSummary = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The name of the action that automatically creates the dataset's contents.
*/
public var actionName: kotlin.String? = null
/**
* The type of action by which the dataset's contents are automatically created.
*/
public var actionType: aws.sdk.kotlin.services.iotanalytics.model.DatasetActionType? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.iotanalytics.model.DatasetActionSummary) : this() {
this.actionName = x.actionName
this.actionType = x.actionType
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.iotanalytics.model.DatasetActionSummary = DatasetActionSummary(this)
internal fun correctErrors(): Builder {
return this
}
}
}