
commonMain.aws.sdk.kotlin.services.ssm.model.ReviewInformation.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.ssm.model
import aws.smithy.kotlin.runtime.SdkDsl
import aws.smithy.kotlin.runtime.time.Instant
/**
* Information about the result of a document review request.
*/
public class ReviewInformation private constructor(builder: Builder) {
/**
* The time that the reviewer took action on the document review request.
*/
public val reviewedTime: aws.smithy.kotlin.runtime.time.Instant? = builder.reviewedTime
/**
* The reviewer assigned to take action on the document review request.
*/
public val reviewer: kotlin.String? = builder.reviewer
/**
* The current status of the document review request.
*/
public val status: aws.sdk.kotlin.services.ssm.model.ReviewStatus? = builder.status
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.ssm.model.ReviewInformation = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("ReviewInformation(")
append("reviewedTime=$reviewedTime,")
append("reviewer=$reviewer,")
append("status=$status")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = reviewedTime?.hashCode() ?: 0
result = 31 * result + (reviewer?.hashCode() ?: 0)
result = 31 * result + (status?.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 ReviewInformation
if (reviewedTime != other.reviewedTime) return false
if (reviewer != other.reviewer) return false
if (status != other.status) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.ssm.model.ReviewInformation = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The time that the reviewer took action on the document review request.
*/
public var reviewedTime: aws.smithy.kotlin.runtime.time.Instant? = null
/**
* The reviewer assigned to take action on the document review request.
*/
public var reviewer: kotlin.String? = null
/**
* The current status of the document review request.
*/
public var status: aws.sdk.kotlin.services.ssm.model.ReviewStatus? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.ssm.model.ReviewInformation) : this() {
this.reviewedTime = x.reviewedTime
this.reviewer = x.reviewer
this.status = x.status
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.ssm.model.ReviewInformation = ReviewInformation(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy