commonMain.aws.sdk.kotlin.services.appflow.model.AuthParameter.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
/**
* Information about required authentication parameters.
*/
public class AuthParameter private constructor(builder: Builder) {
/**
* Contains default values for this authentication parameter that are supplied by the connector.
*/
public val connectorSuppliedValues: List? = builder.connectorSuppliedValues
/**
* A description about the authentication parameter.
*/
public val description: kotlin.String? = builder.description
/**
* Indicates whether this authentication parameter is required.
*/
public val isRequired: kotlin.Boolean = builder.isRequired
/**
* Indicates whether this authentication parameter is a sensitive field.
*/
public val isSensitiveField: kotlin.Boolean = builder.isSensitiveField
/**
* The authentication key required to authenticate with the connector.
*/
public val key: kotlin.String? = builder.key
/**
* Label used for authentication parameter.
*/
public val label: kotlin.String? = builder.label
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.appflow.model.AuthParameter = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("AuthParameter(")
append("connectorSuppliedValues=$connectorSuppliedValues,")
append("description=$description,")
append("isRequired=$isRequired,")
append("isSensitiveField=$isSensitiveField,")
append("key=$key,")
append("label=$label")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = connectorSuppliedValues?.hashCode() ?: 0
result = 31 * result + (description?.hashCode() ?: 0)
result = 31 * result + (isRequired.hashCode())
result = 31 * result + (isSensitiveField.hashCode())
result = 31 * result + (key?.hashCode() ?: 0)
result = 31 * result + (label?.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 AuthParameter
if (connectorSuppliedValues != other.connectorSuppliedValues) return false
if (description != other.description) return false
if (isRequired != other.isRequired) return false
if (isSensitiveField != other.isSensitiveField) return false
if (key != other.key) return false
if (label != other.label) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.appflow.model.AuthParameter = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* Contains default values for this authentication parameter that are supplied by the connector.
*/
public var connectorSuppliedValues: List? = null
/**
* A description about the authentication parameter.
*/
public var description: kotlin.String? = null
/**
* Indicates whether this authentication parameter is required.
*/
public var isRequired: kotlin.Boolean = false
/**
* Indicates whether this authentication parameter is a sensitive field.
*/
public var isSensitiveField: kotlin.Boolean = false
/**
* The authentication key required to authenticate with the connector.
*/
public var key: kotlin.String? = null
/**
* Label used for authentication parameter.
*/
public var label: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.appflow.model.AuthParameter) : this() {
this.connectorSuppliedValues = x.connectorSuppliedValues
this.description = x.description
this.isRequired = x.isRequired
this.isSensitiveField = x.isSensitiveField
this.key = x.key
this.label = x.label
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.appflow.model.AuthParameter = AuthParameter(this)
internal fun correctErrors(): Builder {
return this
}
}
}