commonMain.aws.sdk.kotlin.services.amplifybackend.model.UpdateBackendAuthResourceConfig.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
/**
* Defines the resource configuration when updating an authentication resource in your Amplify project.
*/
public class UpdateBackendAuthResourceConfig private constructor(builder: Builder) {
/**
* Defines the service name to use when configuring an authentication resource in your Amplify project.
*/
public val authResources: aws.sdk.kotlin.services.amplifybackend.model.AuthResources? = builder.authResources
/**
* Describes the authorization configuration for the Amazon Cognito identity pool, provisioned as a part of your auth resource in the Amplify project.
*/
public val identityPoolConfigs: aws.sdk.kotlin.services.amplifybackend.model.UpdateBackendAuthIdentityPoolConfig? = builder.identityPoolConfigs
/**
* Defines the service name to use when configuring an authentication resource in your Amplify project.
*/
public val service: aws.sdk.kotlin.services.amplifybackend.model.Service? = builder.service
/**
* Describes the authentication configuration for the Amazon Cognito user pool, provisioned as a part of your auth resource in the Amplify project.
*/
public val userPoolConfigs: aws.sdk.kotlin.services.amplifybackend.model.UpdateBackendAuthUserPoolConfig? = builder.userPoolConfigs
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.amplifybackend.model.UpdateBackendAuthResourceConfig = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("UpdateBackendAuthResourceConfig(")
append("authResources=$authResources,")
append("identityPoolConfigs=$identityPoolConfigs,")
append("service=$service,")
append("userPoolConfigs=$userPoolConfigs")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = authResources?.hashCode() ?: 0
result = 31 * result + (identityPoolConfigs?.hashCode() ?: 0)
result = 31 * result + (service?.hashCode() ?: 0)
result = 31 * result + (userPoolConfigs?.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 UpdateBackendAuthResourceConfig
if (authResources != other.authResources) return false
if (identityPoolConfigs != other.identityPoolConfigs) return false
if (service != other.service) return false
if (userPoolConfigs != other.userPoolConfigs) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.amplifybackend.model.UpdateBackendAuthResourceConfig = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* Defines the service name to use when configuring an authentication resource in your Amplify project.
*/
public var authResources: aws.sdk.kotlin.services.amplifybackend.model.AuthResources? = null
/**
* Describes the authorization configuration for the Amazon Cognito identity pool, provisioned as a part of your auth resource in the Amplify project.
*/
public var identityPoolConfigs: aws.sdk.kotlin.services.amplifybackend.model.UpdateBackendAuthIdentityPoolConfig? = null
/**
* Defines the service name to use when configuring an authentication resource in your Amplify project.
*/
public var service: aws.sdk.kotlin.services.amplifybackend.model.Service? = null
/**
* Describes the authentication configuration for the Amazon Cognito user pool, provisioned as a part of your auth resource in the Amplify project.
*/
public var userPoolConfigs: aws.sdk.kotlin.services.amplifybackend.model.UpdateBackendAuthUserPoolConfig? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.amplifybackend.model.UpdateBackendAuthResourceConfig) : this() {
this.authResources = x.authResources
this.identityPoolConfigs = x.identityPoolConfigs
this.service = x.service
this.userPoolConfigs = x.userPoolConfigs
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.amplifybackend.model.UpdateBackendAuthResourceConfig = UpdateBackendAuthResourceConfig(this)
/**
* construct an [aws.sdk.kotlin.services.amplifybackend.model.UpdateBackendAuthIdentityPoolConfig] inside the given [block]
*/
public fun identityPoolConfigs(block: aws.sdk.kotlin.services.amplifybackend.model.UpdateBackendAuthIdentityPoolConfig.Builder.() -> kotlin.Unit) {
this.identityPoolConfigs = aws.sdk.kotlin.services.amplifybackend.model.UpdateBackendAuthIdentityPoolConfig.invoke(block)
}
/**
* construct an [aws.sdk.kotlin.services.amplifybackend.model.UpdateBackendAuthUserPoolConfig] inside the given [block]
*/
public fun userPoolConfigs(block: aws.sdk.kotlin.services.amplifybackend.model.UpdateBackendAuthUserPoolConfig.Builder.() -> kotlin.Unit) {
this.userPoolConfigs = aws.sdk.kotlin.services.amplifybackend.model.UpdateBackendAuthUserPoolConfig.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}