commonMain.aws.sdk.kotlin.services.cleanrooms.model.ProtectedQuerySummary.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of cleanrooms-jvm Show documentation
Show all versions of cleanrooms-jvm Show documentation
The AWS SDK for Kotlin client for CleanRooms
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.cleanrooms.model
import aws.smithy.kotlin.runtime.SdkDsl
import aws.smithy.kotlin.runtime.time.Instant
/**
* The protected query summary for the objects listed by the request.
*/
public class ProtectedQuerySummary private constructor(builder: Builder) {
/**
* The time the protected query was created.
*/
public val createTime: aws.smithy.kotlin.runtime.time.Instant = requireNotNull(builder.createTime) { "A non-null value must be provided for createTime" }
/**
* The unique ID of the protected query.
*/
public val id: kotlin.String = requireNotNull(builder.id) { "A non-null value must be provided for id" }
/**
* The unique ARN for the membership that initiated the protected query.
*/
public val membershipArn: kotlin.String = requireNotNull(builder.membershipArn) { "A non-null value must be provided for membershipArn" }
/**
* The unique ID for the membership that initiated the protected query.
*/
public val membershipId: kotlin.String = requireNotNull(builder.membershipId) { "A non-null value must be provided for membershipId" }
/**
* The receiver configuration.
*/
public val receiverConfigurations: List = builder.receiverConfigurations
/**
* The status of the protected query. Value values are `SUBMITTED`, `STARTED`, `CANCELLED`, `CANCELLING`, `FAILED`, `SUCCESS`, `TIMED_OUT`.
*/
public val status: aws.sdk.kotlin.services.cleanrooms.model.ProtectedQueryStatus = requireNotNull(builder.status) { "A non-null value must be provided for status" }
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.cleanrooms.model.ProtectedQuerySummary = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("ProtectedQuerySummary(")
append("createTime=$createTime,")
append("id=$id,")
append("membershipArn=$membershipArn,")
append("membershipId=$membershipId,")
append("receiverConfigurations=$receiverConfigurations,")
append("status=$status")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = createTime.hashCode()
result = 31 * result + (id.hashCode())
result = 31 * result + (membershipArn.hashCode())
result = 31 * result + (membershipId.hashCode())
result = 31 * result + (receiverConfigurations.hashCode())
result = 31 * result + (status.hashCode())
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 ProtectedQuerySummary
if (createTime != other.createTime) return false
if (id != other.id) return false
if (membershipArn != other.membershipArn) return false
if (membershipId != other.membershipId) return false
if (receiverConfigurations != other.receiverConfigurations) return false
if (status != other.status) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.cleanrooms.model.ProtectedQuerySummary = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The time the protected query was created.
*/
public var createTime: aws.smithy.kotlin.runtime.time.Instant? = null
/**
* The unique ID of the protected query.
*/
public var id: kotlin.String? = null
/**
* The unique ARN for the membership that initiated the protected query.
*/
public var membershipArn: kotlin.String? = null
/**
* The unique ID for the membership that initiated the protected query.
*/
public var membershipId: kotlin.String? = null
/**
* The receiver configuration.
*/
public var receiverConfigurations: List = listOf()
/**
* The status of the protected query. Value values are `SUBMITTED`, `STARTED`, `CANCELLED`, `CANCELLING`, `FAILED`, `SUCCESS`, `TIMED_OUT`.
*/
public var status: aws.sdk.kotlin.services.cleanrooms.model.ProtectedQueryStatus? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.cleanrooms.model.ProtectedQuerySummary) : this() {
this.createTime = x.createTime
this.id = x.id
this.membershipArn = x.membershipArn
this.membershipId = x.membershipId
this.receiverConfigurations = x.receiverConfigurations
this.status = x.status
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.cleanrooms.model.ProtectedQuerySummary = ProtectedQuerySummary(this)
internal fun correctErrors(): Builder {
if (createTime == null) createTime = Instant.fromEpochSeconds(0)
if (id == null) id = ""
if (membershipArn == null) membershipArn = ""
if (membershipId == null) membershipId = ""
if (status == null) status = ProtectedQueryStatus.SdkUnknown("no value provided")
return this
}
}
}