commonMain.aws.sdk.kotlin.services.nimble.model.Eula.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of nimble-jvm Show documentation
Show all versions of nimble-jvm Show documentation
The AWS SDK for Kotlin client for nimble
The newest version!
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.nimble.model
import aws.smithy.kotlin.runtime.SdkDsl
import aws.smithy.kotlin.runtime.time.Instant
/**
* Represents a EULA resource.
*/
public class Eula private constructor(builder: Builder) {
/**
* The EULA content.
*/
public val content: kotlin.String? = builder.content
/**
* The ISO timestamp in seconds for when the resource was created.
*/
public val createdAt: aws.smithy.kotlin.runtime.time.Instant? = builder.createdAt
/**
* The EULA ID.
*/
public val eulaId: kotlin.String? = builder.eulaId
/**
* The name for the EULA.
*/
public val name: kotlin.String? = builder.name
/**
* The ISO timestamp in seconds for when the resource was updated.
*/
public val updatedAt: aws.smithy.kotlin.runtime.time.Instant? = builder.updatedAt
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.nimble.model.Eula = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("Eula(")
append("content=$content,")
append("createdAt=$createdAt,")
append("eulaId=$eulaId,")
append("name=$name,")
append("updatedAt=$updatedAt")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = content?.hashCode() ?: 0
result = 31 * result + (createdAt?.hashCode() ?: 0)
result = 31 * result + (eulaId?.hashCode() ?: 0)
result = 31 * result + (name?.hashCode() ?: 0)
result = 31 * result + (updatedAt?.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 Eula
if (content != other.content) return false
if (createdAt != other.createdAt) return false
if (eulaId != other.eulaId) return false
if (name != other.name) return false
if (updatedAt != other.updatedAt) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.nimble.model.Eula = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The EULA content.
*/
public var content: kotlin.String? = null
/**
* The ISO timestamp in seconds for when the resource was created.
*/
public var createdAt: aws.smithy.kotlin.runtime.time.Instant? = null
/**
* The EULA ID.
*/
public var eulaId: kotlin.String? = null
/**
* The name for the EULA.
*/
public var name: kotlin.String? = null
/**
* The ISO timestamp in seconds for when the resource was updated.
*/
public var updatedAt: aws.smithy.kotlin.runtime.time.Instant? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.nimble.model.Eula) : this() {
this.content = x.content
this.createdAt = x.createdAt
this.eulaId = x.eulaId
this.name = x.name
this.updatedAt = x.updatedAt
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.nimble.model.Eula = Eula(this)
internal fun correctErrors(): Builder {
return this
}
}
}