commonMain.aws.sdk.kotlin.services.appflow.model.ConnectorProfileConfig.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
/**
* Defines the connector-specific configuration and credentials for the connector profile.
*/
public class ConnectorProfileConfig private constructor(builder: Builder) {
/**
* The connector-specific credentials required by each connector.
*/
public val connectorProfileCredentials: aws.sdk.kotlin.services.appflow.model.ConnectorProfileCredentials? = builder.connectorProfileCredentials
/**
* The connector-specific properties of the profile configuration.
*/
public val connectorProfileProperties: aws.sdk.kotlin.services.appflow.model.ConnectorProfileProperties? = builder.connectorProfileProperties
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.appflow.model.ConnectorProfileConfig = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("ConnectorProfileConfig(")
append("connectorProfileCredentials=$connectorProfileCredentials,")
append("connectorProfileProperties=$connectorProfileProperties")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = connectorProfileCredentials?.hashCode() ?: 0
result = 31 * result + (connectorProfileProperties?.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 ConnectorProfileConfig
if (connectorProfileCredentials != other.connectorProfileCredentials) return false
if (connectorProfileProperties != other.connectorProfileProperties) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.appflow.model.ConnectorProfileConfig = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The connector-specific credentials required by each connector.
*/
public var connectorProfileCredentials: aws.sdk.kotlin.services.appflow.model.ConnectorProfileCredentials? = null
/**
* The connector-specific properties of the profile configuration.
*/
public var connectorProfileProperties: aws.sdk.kotlin.services.appflow.model.ConnectorProfileProperties? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.appflow.model.ConnectorProfileConfig) : this() {
this.connectorProfileCredentials = x.connectorProfileCredentials
this.connectorProfileProperties = x.connectorProfileProperties
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.appflow.model.ConnectorProfileConfig = ConnectorProfileConfig(this)
/**
* construct an [aws.sdk.kotlin.services.appflow.model.ConnectorProfileCredentials] inside the given [block]
*/
public fun connectorProfileCredentials(block: aws.sdk.kotlin.services.appflow.model.ConnectorProfileCredentials.Builder.() -> kotlin.Unit) {
this.connectorProfileCredentials = aws.sdk.kotlin.services.appflow.model.ConnectorProfileCredentials.invoke(block)
}
/**
* construct an [aws.sdk.kotlin.services.appflow.model.ConnectorProfileProperties] inside the given [block]
*/
public fun connectorProfileProperties(block: aws.sdk.kotlin.services.appflow.model.ConnectorProfileProperties.Builder.() -> kotlin.Unit) {
this.connectorProfileProperties = aws.sdk.kotlin.services.appflow.model.ConnectorProfileProperties.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}