
commonMain.aws.sdk.kotlin.services.codecommit.model.ReactionValueFormats.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
/**
* Information about the values for reactions to a comment. CodeCommit supports a limited set of reactions.
*/
public class ReactionValueFormats private constructor(builder: Builder) {
/**
* The Emoji Version 1.0 graphic of the reaction. These graphics are interpreted slightly differently on different operating systems.
*/
public val emoji: kotlin.String? = builder.emoji
/**
* The emoji short code for the reaction. Short codes are interpreted slightly differently on different operating systems.
*/
public val shortCode: kotlin.String? = builder.shortCode
/**
* The Unicode codepoint for the reaction.
*/
public val unicode: kotlin.String? = builder.unicode
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.codecommit.model.ReactionValueFormats = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("ReactionValueFormats(")
append("emoji=$emoji,")
append("shortCode=$shortCode,")
append("unicode=$unicode")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = emoji?.hashCode() ?: 0
result = 31 * result + (shortCode?.hashCode() ?: 0)
result = 31 * result + (unicode?.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 ReactionValueFormats
if (emoji != other.emoji) return false
if (shortCode != other.shortCode) return false
if (unicode != other.unicode) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.codecommit.model.ReactionValueFormats = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The Emoji Version 1.0 graphic of the reaction. These graphics are interpreted slightly differently on different operating systems.
*/
public var emoji: kotlin.String? = null
/**
* The emoji short code for the reaction. Short codes are interpreted slightly differently on different operating systems.
*/
public var shortCode: kotlin.String? = null
/**
* The Unicode codepoint for the reaction.
*/
public var unicode: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.codecommit.model.ReactionValueFormats) : this() {
this.emoji = x.emoji
this.shortCode = x.shortCode
this.unicode = x.unicode
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.codecommit.model.ReactionValueFormats = ReactionValueFormats(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy