
commonMain.aws.sdk.kotlin.services.sns.model.Endpoint.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.sns.model
/**
* The endpoint for mobile app and device.
*/
public class Endpoint private constructor(builder: Builder) {
/**
* Attributes for endpoint.
*/
public val attributes: Map? = builder.attributes
/**
* The `EndpointArn` for mobile app and device.
*/
public val endpointArn: kotlin.String? = builder.endpointArn
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.sns.model.Endpoint = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("Endpoint(")
append("attributes=$attributes,")
append("endpointArn=$endpointArn")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = attributes?.hashCode() ?: 0
result = 31 * result + (endpointArn?.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 Endpoint
if (attributes != other.attributes) return false
if (endpointArn != other.endpointArn) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.sns.model.Endpoint = Builder(this).apply(block).build()
public class Builder {
/**
* Attributes for endpoint.
*/
public var attributes: Map? = null
/**
* The `EndpointArn` for mobile app and device.
*/
public var endpointArn: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.sns.model.Endpoint) : this() {
this.attributes = x.attributes
this.endpointArn = x.endpointArn
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.sns.model.Endpoint = Endpoint(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy