commonMain.aws.sdk.kotlin.services.amplifybackend.model.ImportBackendAuthRequest.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
/**
* The request body for ImportBackendAuth.
*/
public class ImportBackendAuthRequest private constructor(builder: Builder) {
/**
* The app ID.
*/
public val appId: kotlin.String? = builder.appId
/**
* The name of the backend environment.
*/
public val backendEnvironmentName: kotlin.String? = builder.backendEnvironmentName
/**
* The ID of the Amazon Cognito identity pool.
*/
public val identityPoolId: kotlin.String? = builder.identityPoolId
/**
* The ID of the Amazon Cognito native client.
*/
public val nativeClientId: kotlin.String? = builder.nativeClientId
/**
* The ID of the Amazon Cognito user pool.
*/
public val userPoolId: kotlin.String? = builder.userPoolId
/**
* The ID of the Amazon Cognito web client.
*/
public val webClientId: kotlin.String? = builder.webClientId
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.amplifybackend.model.ImportBackendAuthRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("ImportBackendAuthRequest(")
append("appId=$appId,")
append("backendEnvironmentName=$backendEnvironmentName,")
append("identityPoolId=$identityPoolId,")
append("nativeClientId=$nativeClientId,")
append("userPoolId=$userPoolId,")
append("webClientId=$webClientId")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = appId?.hashCode() ?: 0
result = 31 * result + (backendEnvironmentName?.hashCode() ?: 0)
result = 31 * result + (identityPoolId?.hashCode() ?: 0)
result = 31 * result + (nativeClientId?.hashCode() ?: 0)
result = 31 * result + (userPoolId?.hashCode() ?: 0)
result = 31 * result + (webClientId?.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 ImportBackendAuthRequest
if (appId != other.appId) return false
if (backendEnvironmentName != other.backendEnvironmentName) return false
if (identityPoolId != other.identityPoolId) return false
if (nativeClientId != other.nativeClientId) return false
if (userPoolId != other.userPoolId) return false
if (webClientId != other.webClientId) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.amplifybackend.model.ImportBackendAuthRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The app ID.
*/
public var appId: kotlin.String? = null
/**
* The name of the backend environment.
*/
public var backendEnvironmentName: kotlin.String? = null
/**
* The ID of the Amazon Cognito identity pool.
*/
public var identityPoolId: kotlin.String? = null
/**
* The ID of the Amazon Cognito native client.
*/
public var nativeClientId: kotlin.String? = null
/**
* The ID of the Amazon Cognito user pool.
*/
public var userPoolId: kotlin.String? = null
/**
* The ID of the Amazon Cognito web client.
*/
public var webClientId: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.amplifybackend.model.ImportBackendAuthRequest) : this() {
this.appId = x.appId
this.backendEnvironmentName = x.backendEnvironmentName
this.identityPoolId = x.identityPoolId
this.nativeClientId = x.nativeClientId
this.userPoolId = x.userPoolId
this.webClientId = x.webClientId
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.amplifybackend.model.ImportBackendAuthRequest = ImportBackendAuthRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}