
commonMain.aws.sdk.kotlin.services.codeguruprofiler.model.SubmitFeedbackRequest.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.codeguruprofiler.model
/**
* The structure representing the SubmitFeedbackRequest.
*/
public class SubmitFeedbackRequest private constructor(builder: Builder) {
/**
* The universally unique identifier (UUID) of the `AnomalyInstance`[](https://docs.aws.amazon.com/codeguru/latest/profiler-api/API_AnomalyInstance.html) object that is included in the analysis data.
*/
public val anomalyInstanceId: kotlin.String? = requireNotNull(builder.anomalyInstanceId) { "A non-null value must be provided for anomalyInstanceId" }
/**
* Optional feedback about this anomaly.
*/
public val comment: kotlin.String? = builder.comment
/**
* The name of the profiling group that is associated with the analysis data.
*/
public val profilingGroupName: kotlin.String? = requireNotNull(builder.profilingGroupName) { "A non-null value must be provided for profilingGroupName" }
/**
* The feedback tpye. Thee are two valid values, `Positive` and `Negative`.
*/
public val type: aws.sdk.kotlin.services.codeguruprofiler.model.FeedbackType? = builder.type
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.codeguruprofiler.model.SubmitFeedbackRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("SubmitFeedbackRequest(")
append("anomalyInstanceId=$anomalyInstanceId,")
append("comment=$comment,")
append("profilingGroupName=$profilingGroupName,")
append("type=$type")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = anomalyInstanceId?.hashCode() ?: 0
result = 31 * result + (comment?.hashCode() ?: 0)
result = 31 * result + (profilingGroupName?.hashCode() ?: 0)
result = 31 * result + (type?.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 SubmitFeedbackRequest
if (anomalyInstanceId != other.anomalyInstanceId) return false
if (comment != other.comment) return false
if (profilingGroupName != other.profilingGroupName) return false
if (type != other.type) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.codeguruprofiler.model.SubmitFeedbackRequest = Builder(this).apply(block).build()
public class Builder {
/**
* The universally unique identifier (UUID) of the `AnomalyInstance`[](https://docs.aws.amazon.com/codeguru/latest/profiler-api/API_AnomalyInstance.html) object that is included in the analysis data.
*/
public var anomalyInstanceId: kotlin.String? = null
/**
* Optional feedback about this anomaly.
*/
public var comment: kotlin.String? = null
/**
* The name of the profiling group that is associated with the analysis data.
*/
public var profilingGroupName: kotlin.String? = null
/**
* The feedback tpye. Thee are two valid values, `Positive` and `Negative`.
*/
public var type: aws.sdk.kotlin.services.codeguruprofiler.model.FeedbackType? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.codeguruprofiler.model.SubmitFeedbackRequest) : this() {
this.anomalyInstanceId = x.anomalyInstanceId
this.comment = x.comment
this.profilingGroupName = x.profilingGroupName
this.type = x.type
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.codeguruprofiler.model.SubmitFeedbackRequest = SubmitFeedbackRequest(this)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy