commonMain.aws.sdk.kotlin.services.appflow.model.PrivateConnectionProvisioningState.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
/**
* Specifies the private connection provisioning state.
*/
public class PrivateConnectionProvisioningState private constructor(builder: Builder) {
/**
* Specifies the private connection provisioning failure cause.
*/
public val failureCause: aws.sdk.kotlin.services.appflow.model.PrivateConnectionProvisioningFailureCause? = builder.failureCause
/**
* Specifies the private connection provisioning failure reason.
*/
public val failureMessage: kotlin.String? = builder.failureMessage
/**
* Specifies the private connection provisioning status.
*/
public val status: aws.sdk.kotlin.services.appflow.model.PrivateConnectionProvisioningStatus? = builder.status
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.appflow.model.PrivateConnectionProvisioningState = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("PrivateConnectionProvisioningState(")
append("failureCause=$failureCause,")
append("failureMessage=$failureMessage,")
append("status=$status")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = failureCause?.hashCode() ?: 0
result = 31 * result + (failureMessage?.hashCode() ?: 0)
result = 31 * result + (status?.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 PrivateConnectionProvisioningState
if (failureCause != other.failureCause) return false
if (failureMessage != other.failureMessage) return false
if (status != other.status) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.appflow.model.PrivateConnectionProvisioningState = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* Specifies the private connection provisioning failure cause.
*/
public var failureCause: aws.sdk.kotlin.services.appflow.model.PrivateConnectionProvisioningFailureCause? = null
/**
* Specifies the private connection provisioning failure reason.
*/
public var failureMessage: kotlin.String? = null
/**
* Specifies the private connection provisioning status.
*/
public var status: aws.sdk.kotlin.services.appflow.model.PrivateConnectionProvisioningStatus? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.appflow.model.PrivateConnectionProvisioningState) : this() {
this.failureCause = x.failureCause
this.failureMessage = x.failureMessage
this.status = x.status
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.appflow.model.PrivateConnectionProvisioningState = PrivateConnectionProvisioningState(this)
internal fun correctErrors(): Builder {
return this
}
}
}