
commonMain.aws.sdk.kotlin.services.sms.model.NotifyAppValidationOutputRequest.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.sms.model
public class NotifyAppValidationOutputRequest private constructor(builder: Builder) {
/**
* The ID of the application.
*/
public val appId: kotlin.String? = builder.appId
/**
* The notification information.
*/
public val notificationContext: aws.sdk.kotlin.services.sms.model.NotificationContext? = builder.notificationContext
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.sms.model.NotifyAppValidationOutputRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("NotifyAppValidationOutputRequest(")
append("appId=$appId,")
append("notificationContext=$notificationContext")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = appId?.hashCode() ?: 0
result = 31 * result + (notificationContext?.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 NotifyAppValidationOutputRequest
if (appId != other.appId) return false
if (notificationContext != other.notificationContext) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.sms.model.NotifyAppValidationOutputRequest = Builder(this).apply(block).build()
public class Builder {
/**
* The ID of the application.
*/
public var appId: kotlin.String? = null
/**
* The notification information.
*/
public var notificationContext: aws.sdk.kotlin.services.sms.model.NotificationContext? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.sms.model.NotifyAppValidationOutputRequest) : this() {
this.appId = x.appId
this.notificationContext = x.notificationContext
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.sms.model.NotifyAppValidationOutputRequest = NotifyAppValidationOutputRequest(this)
/**
* construct an [aws.sdk.kotlin.services.sms.model.NotificationContext] inside the given [block]
*/
public fun notificationContext(block: aws.sdk.kotlin.services.sms.model.NotificationContext.Builder.() -> kotlin.Unit) {
this.notificationContext = aws.sdk.kotlin.services.sms.model.NotificationContext.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy