commonMain.aws.sdk.kotlin.services.greengrass.model.VersionInformation.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of greengrass-jvm Show documentation
Show all versions of greengrass-jvm Show documentation
The AWS SDK for Kotlin client for Greengrass
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.greengrass.model
/**
* Information about a version.
*/
public class VersionInformation private constructor(builder: Builder) {
/**
* The ARN of the version.
*/
public val arn: kotlin.String? = builder.arn
/**
* The time, in milliseconds since the epoch, when the version was created.
*/
public val creationTimestamp: kotlin.String? = builder.creationTimestamp
/**
* The ID of the parent definition that the version is associated with.
*/
public val id: kotlin.String? = builder.id
/**
* The ID of the version.
*/
public val version: kotlin.String? = builder.version
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.greengrass.model.VersionInformation = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("VersionInformation(")
append("arn=$arn,")
append("creationTimestamp=$creationTimestamp,")
append("id=$id,")
append("version=$version")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = arn?.hashCode() ?: 0
result = 31 * result + (creationTimestamp?.hashCode() ?: 0)
result = 31 * result + (id?.hashCode() ?: 0)
result = 31 * result + (version?.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 VersionInformation
if (arn != other.arn) return false
if (creationTimestamp != other.creationTimestamp) return false
if (id != other.id) return false
if (version != other.version) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.greengrass.model.VersionInformation = Builder(this).apply(block).build()
public class Builder {
/**
* The ARN of the version.
*/
public var arn: kotlin.String? = null
/**
* The time, in milliseconds since the epoch, when the version was created.
*/
public var creationTimestamp: kotlin.String? = null
/**
* The ID of the parent definition that the version is associated with.
*/
public var id: kotlin.String? = null
/**
* The ID of the version.
*/
public var version: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.greengrass.model.VersionInformation) : this() {
this.arn = x.arn
this.creationTimestamp = x.creationTimestamp
this.id = x.id
this.version = x.version
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.greengrass.model.VersionInformation = VersionInformation(this)
internal fun correctErrors(): Builder {
return this
}
}
}