All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.aws.sdk.kotlin.services.appflow.model.CustomConnectorProfileProperties.kt Maven / Gradle / Ivy

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

/**
 * The profile properties required by the custom connector.
 */
public class CustomConnectorProfileProperties private constructor(builder: Builder) {
    /**
     * The OAuth 2.0 properties required for OAuth 2.0 authentication.
     */
    public val oAuth2Properties: aws.sdk.kotlin.services.appflow.model.OAuth2Properties? = builder.oAuth2Properties
    /**
     * A map of properties that are required to create a profile for the custom connector.
     */
    public val profileProperties: Map? = builder.profileProperties

    public companion object {
        public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.appflow.model.CustomConnectorProfileProperties = Builder().apply(block).build()
    }

    override fun toString(): kotlin.String = buildString {
        append("CustomConnectorProfileProperties(")
        append("oAuth2Properties=$oAuth2Properties,")
        append("profileProperties=$profileProperties")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = oAuth2Properties?.hashCode() ?: 0
        result = 31 * result + (profileProperties?.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 CustomConnectorProfileProperties

        if (oAuth2Properties != other.oAuth2Properties) return false
        if (profileProperties != other.profileProperties) return false

        return true
    }

    public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.appflow.model.CustomConnectorProfileProperties = Builder(this).apply(block).build()

    @SdkDsl
    public class Builder {
        /**
         * The OAuth 2.0 properties required for OAuth 2.0 authentication.
         */
        public var oAuth2Properties: aws.sdk.kotlin.services.appflow.model.OAuth2Properties? = null
        /**
         * A map of properties that are required to create a profile for the custom connector.
         */
        public var profileProperties: Map? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.appflow.model.CustomConnectorProfileProperties) : this() {
            this.oAuth2Properties = x.oAuth2Properties
            this.profileProperties = x.profileProperties
        }

        @PublishedApi
        internal fun build(): aws.sdk.kotlin.services.appflow.model.CustomConnectorProfileProperties = CustomConnectorProfileProperties(this)

        /**
         * construct an [aws.sdk.kotlin.services.appflow.model.OAuth2Properties] inside the given [block]
         */
        public fun oAuth2Properties(block: aws.sdk.kotlin.services.appflow.model.OAuth2Properties.Builder.() -> kotlin.Unit) {
            this.oAuth2Properties = aws.sdk.kotlin.services.appflow.model.OAuth2Properties.invoke(block)
        }

        internal fun correctErrors(): Builder {
            return this
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy