
commonMain.aws.sdk.kotlin.services.sns.model.CreatePlatformApplicationResponse.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.sns.model
/**
* Response from CreatePlatformApplication action.
*/
public class CreatePlatformApplicationResponse private constructor(builder: Builder) {
/**
* `PlatformApplicationArn` is returned.
*/
public val platformApplicationArn: kotlin.String? = builder.platformApplicationArn
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.sns.model.CreatePlatformApplicationResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("CreatePlatformApplicationResponse(")
append("platformApplicationArn=$platformApplicationArn")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = platformApplicationArn?.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 CreatePlatformApplicationResponse
if (platformApplicationArn != other.platformApplicationArn) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.sns.model.CreatePlatformApplicationResponse = Builder(this).apply(block).build()
public class Builder {
/**
* `PlatformApplicationArn` is returned.
*/
public var platformApplicationArn: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.sns.model.CreatePlatformApplicationResponse) : this() {
this.platformApplicationArn = x.platformApplicationArn
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.sns.model.CreatePlatformApplicationResponse = CreatePlatformApplicationResponse(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy