commonMain.aws.sdk.kotlin.services.appflow.model.DescribeConnectorEntityRequest.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
public class DescribeConnectorEntityRequest private constructor(builder: Builder) {
/**
* The version of the API that's used by the connector.
*/
public val apiVersion: kotlin.String? = builder.apiVersion
/**
* The entity name for that connector.
*/
public val connectorEntityName: kotlin.String? = builder.connectorEntityName
/**
* The name of the connector profile. The name is unique for each `ConnectorProfile` in the Amazon Web Services account.
*/
public val connectorProfileName: kotlin.String? = builder.connectorProfileName
/**
* The type of connector application, such as Salesforce, Amplitude, and so on.
*/
public val connectorType: aws.sdk.kotlin.services.appflow.model.ConnectorType? = builder.connectorType
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.appflow.model.DescribeConnectorEntityRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("DescribeConnectorEntityRequest(")
append("apiVersion=$apiVersion,")
append("connectorEntityName=$connectorEntityName,")
append("connectorProfileName=$connectorProfileName,")
append("connectorType=$connectorType")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = apiVersion?.hashCode() ?: 0
result = 31 * result + (connectorEntityName?.hashCode() ?: 0)
result = 31 * result + (connectorProfileName?.hashCode() ?: 0)
result = 31 * result + (connectorType?.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 DescribeConnectorEntityRequest
if (apiVersion != other.apiVersion) return false
if (connectorEntityName != other.connectorEntityName) return false
if (connectorProfileName != other.connectorProfileName) return false
if (connectorType != other.connectorType) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.appflow.model.DescribeConnectorEntityRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The version of the API that's used by the connector.
*/
public var apiVersion: kotlin.String? = null
/**
* The entity name for that connector.
*/
public var connectorEntityName: kotlin.String? = null
/**
* The name of the connector profile. The name is unique for each `ConnectorProfile` in the Amazon Web Services account.
*/
public var connectorProfileName: kotlin.String? = null
/**
* The type of connector application, such as Salesforce, Amplitude, and so on.
*/
public var connectorType: aws.sdk.kotlin.services.appflow.model.ConnectorType? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.appflow.model.DescribeConnectorEntityRequest) : this() {
this.apiVersion = x.apiVersion
this.connectorEntityName = x.connectorEntityName
this.connectorProfileName = x.connectorProfileName
this.connectorType = x.connectorType
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.appflow.model.DescribeConnectorEntityRequest = DescribeConnectorEntityRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}