commonMain.aws.sdk.kotlin.services.codegurureviewer.model.DescribeRecommendationFeedbackRequest.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 DescribeRecommendationFeedbackRequest 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
/**
* The recommendation ID that can be used to track the provided recommendations and then to collect the feedback.
*/
public val recommendationId: kotlin.String? = builder.recommendationId
/**
* Optional parameter to describe the feedback for a given user. If this is not supplied, it defaults to the user making the request.
*
* The `UserId` is an IAM principal that can be specified as an Amazon Web Services account ID or an Amazon Resource Name (ARN). For more information, see [ Specifying a Principal](https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements_principal.html#Principal_specifying) in the *Amazon Web Services Identity and Access Management User Guide*.
*/
public val userId: kotlin.String? = builder.userId
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.codegurureviewer.model.DescribeRecommendationFeedbackRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("DescribeRecommendationFeedbackRequest(")
append("codeReviewArn=$codeReviewArn,")
append("recommendationId=$recommendationId,")
append("userId=$userId")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = codeReviewArn?.hashCode() ?: 0
result = 31 * result + (recommendationId?.hashCode() ?: 0)
result = 31 * result + (userId?.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 DescribeRecommendationFeedbackRequest
if (codeReviewArn != other.codeReviewArn) return false
if (recommendationId != other.recommendationId) return false
if (userId != other.userId) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.codegurureviewer.model.DescribeRecommendationFeedbackRequest = 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
/**
* The recommendation ID that can be used to track the provided recommendations and then to collect the feedback.
*/
public var recommendationId: kotlin.String? = null
/**
* Optional parameter to describe the feedback for a given user. If this is not supplied, it defaults to the user making the request.
*
* The `UserId` is an IAM principal that can be specified as an Amazon Web Services account ID or an Amazon Resource Name (ARN). For more information, see [ Specifying a Principal](https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements_principal.html#Principal_specifying) in the *Amazon Web Services Identity and Access Management User Guide*.
*/
public var userId: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.codegurureviewer.model.DescribeRecommendationFeedbackRequest) : this() {
this.codeReviewArn = x.codeReviewArn
this.recommendationId = x.recommendationId
this.userId = x.userId
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.codegurureviewer.model.DescribeRecommendationFeedbackRequest = DescribeRecommendationFeedbackRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}