
commonMain.aws.sdk.kotlin.services.codeguruprofiler.model.ProfileTime.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
/**
* Contains the start time of a profile.
*/
public class ProfileTime private constructor(builder: Builder) {
/**
* The start time of a profile. It 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 start: aws.smithy.kotlin.runtime.time.Instant? = builder.start
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.codeguruprofiler.model.ProfileTime = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("ProfileTime(")
append("start=$start")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = start?.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 ProfileTime
if (start != other.start) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.codeguruprofiler.model.ProfileTime = Builder(this).apply(block).build()
public class Builder {
/**
* The start time of a profile. It 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 start: aws.smithy.kotlin.runtime.time.Instant? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.codeguruprofiler.model.ProfileTime) : this() {
this.start = x.start
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.codeguruprofiler.model.ProfileTime = ProfileTime(this)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy