commonMain.aws.sdk.kotlin.services.appflow.model.AmplitudeConnectorProfileCredentials.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
/**
* The connector-specific credentials required when using Amplitude.
*/
public class AmplitudeConnectorProfileCredentials private constructor(builder: Builder) {
/**
* A unique alphanumeric identifier used to authenticate a user, developer, or calling program to your API.
*/
public val apiKey: kotlin.String = requireNotNull(builder.apiKey) { "A non-null value must be provided for apiKey" }
/**
* The Secret Access Key portion of the credentials.
*/
public val secretKey: kotlin.String = requireNotNull(builder.secretKey) { "A non-null value must be provided for secretKey" }
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.appflow.model.AmplitudeConnectorProfileCredentials = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("AmplitudeConnectorProfileCredentials(")
append("apiKey=*** Sensitive Data Redacted ***,")
append("secretKey=*** Sensitive Data Redacted ***")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = apiKey.hashCode()
result = 31 * result + (secretKey.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 AmplitudeConnectorProfileCredentials
if (apiKey != other.apiKey) return false
if (secretKey != other.secretKey) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.appflow.model.AmplitudeConnectorProfileCredentials = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* A unique alphanumeric identifier used to authenticate a user, developer, or calling program to your API.
*/
public var apiKey: kotlin.String? = null
/**
* The Secret Access Key portion of the credentials.
*/
public var secretKey: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.appflow.model.AmplitudeConnectorProfileCredentials) : this() {
this.apiKey = x.apiKey
this.secretKey = x.secretKey
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.appflow.model.AmplitudeConnectorProfileCredentials = AmplitudeConnectorProfileCredentials(this)
internal fun correctErrors(): Builder {
if (apiKey == null) apiKey = ""
if (secretKey == null) secretKey = ""
return this
}
}
}