
commonMain.aws.sdk.kotlin.services.codecommit.model.UpdatePullRequestDescriptionRequest.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
public class UpdatePullRequestDescriptionRequest private constructor(builder: Builder) {
/**
* The updated content of the description for the pull request. This content replaces the existing description.
*/
public val description: kotlin.String? = builder.description
/**
* The system-generated ID of the pull request. To get this ID, use ListPullRequests.
*/
public val pullRequestId: kotlin.String? = builder.pullRequestId
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.codecommit.model.UpdatePullRequestDescriptionRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("UpdatePullRequestDescriptionRequest(")
append("description=$description,")
append("pullRequestId=$pullRequestId")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = description?.hashCode() ?: 0
result = 31 * result + (pullRequestId?.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 UpdatePullRequestDescriptionRequest
if (description != other.description) return false
if (pullRequestId != other.pullRequestId) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.codecommit.model.UpdatePullRequestDescriptionRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The updated content of the description for the pull request. This content replaces the existing description.
*/
public var description: kotlin.String? = null
/**
* The system-generated ID of the pull request. To get this ID, use ListPullRequests.
*/
public var pullRequestId: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.codecommit.model.UpdatePullRequestDescriptionRequest) : this() {
this.description = x.description
this.pullRequestId = x.pullRequestId
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.codecommit.model.UpdatePullRequestDescriptionRequest = UpdatePullRequestDescriptionRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy