commonMain.aws.sdk.kotlin.services.codegurureviewer.model.DescribeCodeReviewRequest.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of codegurureviewer-jvm Show documentation
Show all versions of codegurureviewer-jvm Show documentation
The AWS SDK for Kotlin client for CodeGuru Reviewer
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.codegurureviewer.model
import aws.smithy.kotlin.runtime.SdkDsl
public class DescribeCodeReviewRequest private constructor(builder: Builder) {
/**
* The Amazon Resource Name (ARN) of the [CodeReview](https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_CodeReview.html) object.
*/
public val codeReviewArn: kotlin.String? = builder.codeReviewArn
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.codegurureviewer.model.DescribeCodeReviewRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("DescribeCodeReviewRequest(")
append("codeReviewArn=$codeReviewArn")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = codeReviewArn?.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 DescribeCodeReviewRequest
if (codeReviewArn != other.codeReviewArn) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.codegurureviewer.model.DescribeCodeReviewRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The Amazon Resource Name (ARN) of the [CodeReview](https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_CodeReview.html) object.
*/
public var codeReviewArn: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.codegurureviewer.model.DescribeCodeReviewRequest) : this() {
this.codeReviewArn = x.codeReviewArn
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.codegurureviewer.model.DescribeCodeReviewRequest = DescribeCodeReviewRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}