commonMain.aws.sdk.kotlin.services.appflow.model.CustomAuthCredentials.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of appflow-jvm Show documentation
Show all versions of appflow-jvm Show documentation
The AWS SDK for Kotlin client for Appflow
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.appflow.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* The custom credentials required for custom authentication.
*/
public class CustomAuthCredentials private constructor(builder: Builder) {
/**
* A map that holds custom authentication credentials.
*/
public val credentialsMap: Map? = builder.credentialsMap
/**
* The custom authentication type that the connector uses.
*/
public val customAuthenticationType: kotlin.String = requireNotNull(builder.customAuthenticationType) { "A non-null value must be provided for customAuthenticationType" }
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.appflow.model.CustomAuthCredentials = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("CustomAuthCredentials(")
append("credentialsMap=*** Sensitive Data Redacted ***,")
append("customAuthenticationType=$customAuthenticationType")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = credentialsMap?.hashCode() ?: 0
result = 31 * result + (customAuthenticationType.hashCode())
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 CustomAuthCredentials
if (credentialsMap != other.credentialsMap) return false
if (customAuthenticationType != other.customAuthenticationType) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.appflow.model.CustomAuthCredentials = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* A map that holds custom authentication credentials.
*/
public var credentialsMap: Map? = null
/**
* The custom authentication type that the connector uses.
*/
public var customAuthenticationType: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.appflow.model.CustomAuthCredentials) : this() {
this.credentialsMap = x.credentialsMap
this.customAuthenticationType = x.customAuthenticationType
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.appflow.model.CustomAuthCredentials = CustomAuthCredentials(this)
internal fun correctErrors(): Builder {
if (customAuthenticationType == null) customAuthenticationType = ""
return this
}
}
}