commonMain.aws.sdk.kotlin.services.datazone.model.TimeSeriesDataPointFormOutput.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of datazone-jvm Show documentation
Show all versions of datazone-jvm Show documentation
The AWS SDK for Kotlin client for DataZone
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.datazone.model
import aws.smithy.kotlin.runtime.SdkDsl
import aws.smithy.kotlin.runtime.time.Instant
/**
* The time series data points form.
*/
public class TimeSeriesDataPointFormOutput private constructor(builder: Builder) {
/**
* The content of the time series data points form.
*/
public val content: kotlin.String? = builder.content
/**
* The name of the time series data points form.
*/
public val formName: kotlin.String = requireNotNull(builder.formName) { "A non-null value must be provided for formName" }
/**
* The ID of the time series data points form.
*/
public val id: kotlin.String? = builder.id
/**
* The timestamp of the time series data points form.
*/
public val timestamp: aws.smithy.kotlin.runtime.time.Instant = requireNotNull(builder.timestamp) { "A non-null value must be provided for timestamp" }
/**
* The ID of the type of the time series data points form.
*/
public val typeIdentifier: kotlin.String = requireNotNull(builder.typeIdentifier) { "A non-null value must be provided for typeIdentifier" }
/**
* The revision type of the time series data points form.
*/
public val typeRevision: kotlin.String? = builder.typeRevision
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.datazone.model.TimeSeriesDataPointFormOutput = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("TimeSeriesDataPointFormOutput(")
append("content=$content,")
append("formName=$formName,")
append("id=$id,")
append("timestamp=$timestamp,")
append("typeIdentifier=$typeIdentifier,")
append("typeRevision=$typeRevision")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = content?.hashCode() ?: 0
result = 31 * result + (formName.hashCode())
result = 31 * result + (id?.hashCode() ?: 0)
result = 31 * result + (timestamp.hashCode())
result = 31 * result + (typeIdentifier.hashCode())
result = 31 * result + (typeRevision?.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 TimeSeriesDataPointFormOutput
if (content != other.content) return false
if (formName != other.formName) return false
if (id != other.id) return false
if (timestamp != other.timestamp) return false
if (typeIdentifier != other.typeIdentifier) return false
if (typeRevision != other.typeRevision) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.datazone.model.TimeSeriesDataPointFormOutput = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The content of the time series data points form.
*/
public var content: kotlin.String? = null
/**
* The name of the time series data points form.
*/
public var formName: kotlin.String? = null
/**
* The ID of the time series data points form.
*/
public var id: kotlin.String? = null
/**
* The timestamp of the time series data points form.
*/
public var timestamp: aws.smithy.kotlin.runtime.time.Instant? = null
/**
* The ID of the type of the time series data points form.
*/
public var typeIdentifier: kotlin.String? = null
/**
* The revision type of the time series data points form.
*/
public var typeRevision: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.datazone.model.TimeSeriesDataPointFormOutput) : this() {
this.content = x.content
this.formName = x.formName
this.id = x.id
this.timestamp = x.timestamp
this.typeIdentifier = x.typeIdentifier
this.typeRevision = x.typeRevision
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.datazone.model.TimeSeriesDataPointFormOutput = TimeSeriesDataPointFormOutput(this)
internal fun correctErrors(): Builder {
if (formName == null) formName = ""
if (timestamp == null) timestamp = Instant.fromEpochSeconds(0)
if (typeIdentifier == null) typeIdentifier = ""
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy