commonMain.aws.sdk.kotlin.services.appflow.model.CustomAuthConfig.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
The newest version!
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.appflow.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* Configuration information required for custom authentication.
*/
public class CustomAuthConfig private constructor(builder: Builder) {
/**
* Information about authentication parameters required for authentication.
*/
public val authParameters: List? = builder.authParameters
/**
* The authentication type that the custom connector uses.
*/
public val customAuthenticationType: kotlin.String? = builder.customAuthenticationType
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.appflow.model.CustomAuthConfig = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("CustomAuthConfig(")
append("authParameters=$authParameters,")
append("customAuthenticationType=$customAuthenticationType")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = authParameters?.hashCode() ?: 0
result = 31 * result + (customAuthenticationType?.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 CustomAuthConfig
if (authParameters != other.authParameters) return false
if (customAuthenticationType != other.customAuthenticationType) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.appflow.model.CustomAuthConfig = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* Information about authentication parameters required for authentication.
*/
public var authParameters: List? = null
/**
* The authentication type that the custom connector uses.
*/
public var customAuthenticationType: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.appflow.model.CustomAuthConfig) : this() {
this.authParameters = x.authParameters
this.customAuthenticationType = x.customAuthenticationType
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.appflow.model.CustomAuthConfig = CustomAuthConfig(this)
internal fun correctErrors(): Builder {
return this
}
}
}