commonMain.aws.sdk.kotlin.services.cognitosync.model.PushSync.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of cognitosync-jvm Show documentation
Show all versions of cognitosync-jvm Show documentation
The AWS SDK for Kotlin client for Cognito Sync
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.cognitosync.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* Configuration options to be applied to the identity pool.
*/
public class PushSync private constructor(builder: Builder) {
/**
* List of SNS platform application ARNs that could be used by clients.
*/
public val applicationArns: List? = builder.applicationArns
/**
* A role configured to allow Cognito to call SNS on behalf of the developer.
*/
public val roleArn: kotlin.String? = builder.roleArn
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.cognitosync.model.PushSync = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("PushSync(")
append("applicationArns=$applicationArns,")
append("roleArn=$roleArn")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = applicationArns?.hashCode() ?: 0
result = 31 * result + (roleArn?.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 PushSync
if (applicationArns != other.applicationArns) return false
if (roleArn != other.roleArn) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.cognitosync.model.PushSync = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* List of SNS platform application ARNs that could be used by clients.
*/
public var applicationArns: List? = null
/**
* A role configured to allow Cognito to call SNS on behalf of the developer.
*/
public var roleArn: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.cognitosync.model.PushSync) : this() {
this.applicationArns = x.applicationArns
this.roleArn = x.roleArn
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.cognitosync.model.PushSync = PushSync(this)
internal fun correctErrors(): Builder {
return this
}
}
}