
aws.sdk.kotlin.services.pinpoint.model.EndpointBatchRequest.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.pinpoint.model
/**
* Specifies a batch of endpoints to create or update and the settings and attributes to set or change for each endpoint.
*/
class EndpointBatchRequest private constructor(builder: Builder) {
/**
* An array that defines the endpoints to create or update and, for each endpoint, the property values to set or change. An array can contain a maximum of 100 items.
*/
val item: List? = builder.item
companion object {
operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.pinpoint.model.EndpointBatchRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("EndpointBatchRequest(")
append("item=$item)")
}
override fun hashCode(): kotlin.Int {
var result = item?.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 EndpointBatchRequest
if (item != other.item) return false
return true
}
inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.pinpoint.model.EndpointBatchRequest = Builder(this).apply(block).build()
class Builder {
/**
* An array that defines the endpoints to create or update and, for each endpoint, the property values to set or change. An array can contain a maximum of 100 items.
*/
var item: List? = null
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.pinpoint.model.EndpointBatchRequest) : this() {
this.item = x.item
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.pinpoint.model.EndpointBatchRequest = EndpointBatchRequest(this)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy