
commonMain.aws.sdk.kotlin.services.codeguruprofiler.model.TimestampStructure.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.codeguruprofiler.model
import aws.smithy.kotlin.runtime.time.Instant
/**
* A data type that contains a `Timestamp` object. This is specified using the ISO 8601 format. For example, 2020-06-01T13:15:02.001Z represents 1 millisecond past June 1, 2020 1:15:02 PM UTC.
*/
public class TimestampStructure private constructor(builder: Builder) {
/**
* A `Timestamp`. This is specified using the ISO 8601 format. For example, 2020-06-01T13:15:02.001Z represents 1 millisecond past June 1, 2020 1:15:02 PM UTC.
*/
public val value: aws.smithy.kotlin.runtime.time.Instant? = builder.value
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.codeguruprofiler.model.TimestampStructure = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("TimestampStructure(")
append("value=$value")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = value?.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 TimestampStructure
if (value != other.value) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.codeguruprofiler.model.TimestampStructure = Builder(this).apply(block).build()
public class Builder {
/**
* A `Timestamp`. This is specified using the ISO 8601 format. For example, 2020-06-01T13:15:02.001Z represents 1 millisecond past June 1, 2020 1:15:02 PM UTC.
*/
public var value: aws.smithy.kotlin.runtime.time.Instant? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.codeguruprofiler.model.TimestampStructure) : this() {
this.value = x.value
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.codeguruprofiler.model.TimestampStructure = TimestampStructure(this)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy