commonMain.aws.sdk.kotlin.services.pinpointsmsvoicev2.model.PutKeywordResponse.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pinpointsmsvoicev2-jvm Show documentation
Show all versions of pinpointsmsvoicev2-jvm Show documentation
The AWS SDK for Kotlin client for Pinpoint SMS Voice V2
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.pinpointsmsvoicev2.model
import aws.smithy.kotlin.runtime.SdkDsl
public class PutKeywordResponse private constructor(builder: Builder) {
/**
* The keyword that was added.
*/
public val keyword: kotlin.String? = builder.keyword
/**
* The action to perform when the keyword is used.
*/
public val keywordAction: aws.sdk.kotlin.services.pinpointsmsvoicev2.model.KeywordAction? = builder.keywordAction
/**
* The message associated with the keyword.
*/
public val keywordMessage: kotlin.String? = builder.keywordMessage
/**
* The PhoneNumberId or PoolId that the keyword was associated with.
*/
public val originationIdentity: kotlin.String? = builder.originationIdentity
/**
* The PhoneNumberArn or PoolArn that the keyword was associated with.
*/
public val originationIdentityArn: kotlin.String? = builder.originationIdentityArn
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.pinpointsmsvoicev2.model.PutKeywordResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("PutKeywordResponse(")
append("keyword=$keyword,")
append("keywordAction=$keywordAction,")
append("keywordMessage=$keywordMessage,")
append("originationIdentity=$originationIdentity,")
append("originationIdentityArn=$originationIdentityArn")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = keyword?.hashCode() ?: 0
result = 31 * result + (keywordAction?.hashCode() ?: 0)
result = 31 * result + (keywordMessage?.hashCode() ?: 0)
result = 31 * result + (originationIdentity?.hashCode() ?: 0)
result = 31 * result + (originationIdentityArn?.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 PutKeywordResponse
if (keyword != other.keyword) return false
if (keywordAction != other.keywordAction) return false
if (keywordMessage != other.keywordMessage) return false
if (originationIdentity != other.originationIdentity) return false
if (originationIdentityArn != other.originationIdentityArn) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.pinpointsmsvoicev2.model.PutKeywordResponse = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The keyword that was added.
*/
public var keyword: kotlin.String? = null
/**
* The action to perform when the keyword is used.
*/
public var keywordAction: aws.sdk.kotlin.services.pinpointsmsvoicev2.model.KeywordAction? = null
/**
* The message associated with the keyword.
*/
public var keywordMessage: kotlin.String? = null
/**
* The PhoneNumberId or PoolId that the keyword was associated with.
*/
public var originationIdentity: kotlin.String? = null
/**
* The PhoneNumberArn or PoolArn that the keyword was associated with.
*/
public var originationIdentityArn: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.pinpointsmsvoicev2.model.PutKeywordResponse) : this() {
this.keyword = x.keyword
this.keywordAction = x.keywordAction
this.keywordMessage = x.keywordMessage
this.originationIdentity = x.originationIdentity
this.originationIdentityArn = x.originationIdentityArn
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.pinpointsmsvoicev2.model.PutKeywordResponse = PutKeywordResponse(this)
internal fun correctErrors(): Builder {
return this
}
}
}