
commonMain.aws.sdk.kotlin.services.kendra.model.AuthenticationConfiguration.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.kendra.model
/**
* Provides the configuration information to connect to websites that require user authentication.
*/
public class AuthenticationConfiguration private constructor(builder: Builder) {
/**
* The list of configuration information that's required to connect to and crawl a website host using basic authentication credentials.
*
* The list includes the name and port number of the website host.
*/
public val basicAuthentication: List? = builder.basicAuthentication
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.kendra.model.AuthenticationConfiguration = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("AuthenticationConfiguration(")
append("basicAuthentication=$basicAuthentication")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = basicAuthentication?.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 AuthenticationConfiguration
if (basicAuthentication != other.basicAuthentication) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.kendra.model.AuthenticationConfiguration = Builder(this).apply(block).build()
public class Builder {
/**
* The list of configuration information that's required to connect to and crawl a website host using basic authentication credentials.
*
* The list includes the name and port number of the website host.
*/
public var basicAuthentication: List? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.kendra.model.AuthenticationConfiguration) : this() {
this.basicAuthentication = x.basicAuthentication
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.kendra.model.AuthenticationConfiguration = AuthenticationConfiguration(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy