commonMain.aws.sdk.kotlin.services.nimble.model.EulaAcceptance.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
/**
* The acceptance of a EULA, required to use Amazon-provided streaming images.
*/
public class EulaAcceptance private constructor(builder: Builder) {
/**
* The ISO timestamp in seconds for when the EULA was accepted.
*/
public val acceptedAt: aws.smithy.kotlin.runtime.time.Instant? = builder.acceptedAt
/**
* The ID of the person who accepted the EULA.
*/
public val acceptedBy: kotlin.String? = builder.acceptedBy
/**
* The ID of the acceptee.
*/
public val accepteeId: kotlin.String? = builder.accepteeId
/**
* The EULA acceptance ID.
*/
public val eulaAcceptanceId: kotlin.String? = builder.eulaAcceptanceId
/**
* The EULA ID.
*/
public val eulaId: kotlin.String? = builder.eulaId
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.nimble.model.EulaAcceptance = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("EulaAcceptance(")
append("acceptedAt=$acceptedAt,")
append("acceptedBy=$acceptedBy,")
append("accepteeId=$accepteeId,")
append("eulaAcceptanceId=$eulaAcceptanceId,")
append("eulaId=$eulaId")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = acceptedAt?.hashCode() ?: 0
result = 31 * result + (acceptedBy?.hashCode() ?: 0)
result = 31 * result + (accepteeId?.hashCode() ?: 0)
result = 31 * result + (eulaAcceptanceId?.hashCode() ?: 0)
result = 31 * result + (eulaId?.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 EulaAcceptance
if (acceptedAt != other.acceptedAt) return false
if (acceptedBy != other.acceptedBy) return false
if (accepteeId != other.accepteeId) return false
if (eulaAcceptanceId != other.eulaAcceptanceId) return false
if (eulaId != other.eulaId) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.nimble.model.EulaAcceptance = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The ISO timestamp in seconds for when the EULA was accepted.
*/
public var acceptedAt: aws.smithy.kotlin.runtime.time.Instant? = null
/**
* The ID of the person who accepted the EULA.
*/
public var acceptedBy: kotlin.String? = null
/**
* The ID of the acceptee.
*/
public var accepteeId: kotlin.String? = null
/**
* The EULA acceptance ID.
*/
public var eulaAcceptanceId: kotlin.String? = null
/**
* The EULA ID.
*/
public var eulaId: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.nimble.model.EulaAcceptance) : this() {
this.acceptedAt = x.acceptedAt
this.acceptedBy = x.acceptedBy
this.accepteeId = x.accepteeId
this.eulaAcceptanceId = x.eulaAcceptanceId
this.eulaId = x.eulaId
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.nimble.model.EulaAcceptance = EulaAcceptance(this)
internal fun correctErrors(): Builder {
return this
}
}
}