commonMain.aws.sdk.kotlin.services.amplifybackend.model.BackendAuthAppleProviderConfig.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of amplifybackend-jvm Show documentation
Show all versions of amplifybackend-jvm Show documentation
The AWS SDK for Kotlin client for AmplifyBackend
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.amplifybackend.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* Describes Apple social federation configurations for allowing your app users to sign in using OAuth.
*/
public class BackendAuthAppleProviderConfig private constructor(builder: Builder) {
/**
* Describes the client_id (also called Services ID) that comes from Apple.
*/
public val clientId: kotlin.String? = builder.clientId
/**
* Describes the key_id that comes from Apple.
*/
public val keyId: kotlin.String? = builder.keyId
/**
* Describes the private_key that comes from Apple.
*/
public val privateKey: kotlin.String? = builder.privateKey
/**
* Describes the team_id that comes from Apple.
*/
public val teamId: kotlin.String? = builder.teamId
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.amplifybackend.model.BackendAuthAppleProviderConfig = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("BackendAuthAppleProviderConfig(")
append("*** Sensitive Data Redacted ***")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = clientId?.hashCode() ?: 0
result = 31 * result + (keyId?.hashCode() ?: 0)
result = 31 * result + (privateKey?.hashCode() ?: 0)
result = 31 * result + (teamId?.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 BackendAuthAppleProviderConfig
if (clientId != other.clientId) return false
if (keyId != other.keyId) return false
if (privateKey != other.privateKey) return false
if (teamId != other.teamId) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.amplifybackend.model.BackendAuthAppleProviderConfig = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* Describes the client_id (also called Services ID) that comes from Apple.
*/
public var clientId: kotlin.String? = null
/**
* Describes the key_id that comes from Apple.
*/
public var keyId: kotlin.String? = null
/**
* Describes the private_key that comes from Apple.
*/
public var privateKey: kotlin.String? = null
/**
* Describes the team_id that comes from Apple.
*/
public var teamId: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.amplifybackend.model.BackendAuthAppleProviderConfig) : this() {
this.clientId = x.clientId
this.keyId = x.keyId
this.privateKey = x.privateKey
this.teamId = x.teamId
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.amplifybackend.model.BackendAuthAppleProviderConfig = BackendAuthAppleProviderConfig(this)
internal fun correctErrors(): Builder {
return this
}
}
}