
commonMain.aws.sdk.kotlin.services.codecommit.model.ApprovalStateChangedEventMetadata.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.codecommit.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* Returns information about a change in the approval state for a pull request.
*/
public class ApprovalStateChangedEventMetadata private constructor(builder: Builder) {
/**
* The approval status for the pull request.
*/
public val approvalStatus: aws.sdk.kotlin.services.codecommit.model.ApprovalState? = builder.approvalStatus
/**
* The revision ID of the pull request when the approval state changed.
*/
public val revisionId: kotlin.String? = builder.revisionId
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.codecommit.model.ApprovalStateChangedEventMetadata = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("ApprovalStateChangedEventMetadata(")
append("approvalStatus=$approvalStatus,")
append("revisionId=$revisionId")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = approvalStatus?.hashCode() ?: 0
result = 31 * result + (revisionId?.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 ApprovalStateChangedEventMetadata
if (approvalStatus != other.approvalStatus) return false
if (revisionId != other.revisionId) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.codecommit.model.ApprovalStateChangedEventMetadata = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The approval status for the pull request.
*/
public var approvalStatus: aws.sdk.kotlin.services.codecommit.model.ApprovalState? = null
/**
* The revision ID of the pull request when the approval state changed.
*/
public var revisionId: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.codecommit.model.ApprovalStateChangedEventMetadata) : this() {
this.approvalStatus = x.approvalStatus
this.revisionId = x.revisionId
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.codecommit.model.ApprovalStateChangedEventMetadata = ApprovalStateChangedEventMetadata(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy