commonMain.aws.sdk.kotlin.services.apprunner.model.ConnectionSummary.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of apprunner-jvm Show documentation
Show all versions of apprunner-jvm Show documentation
The AWS SDK for Kotlin client for AppRunner
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.apprunner.model
import aws.smithy.kotlin.runtime.SdkDsl
import aws.smithy.kotlin.runtime.time.Instant
/**
* Provides summary information about an App Runner connection resource.
*/
public class ConnectionSummary private constructor(builder: Builder) {
/**
* The Amazon Resource Name (ARN) of this connection.
*/
public val connectionArn: kotlin.String? = builder.connectionArn
/**
* The customer-provided connection name.
*/
public val connectionName: kotlin.String? = builder.connectionName
/**
* The App Runner connection creation time, expressed as a Unix time stamp.
*/
public val createdAt: aws.smithy.kotlin.runtime.time.Instant? = builder.createdAt
/**
* The source repository provider.
*/
public val providerType: aws.sdk.kotlin.services.apprunner.model.ProviderType? = builder.providerType
/**
* The current state of the App Runner connection. When the state is `AVAILABLE`, you can use the connection to create an App Runner service.
*/
public val status: aws.sdk.kotlin.services.apprunner.model.ConnectionStatus? = builder.status
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.apprunner.model.ConnectionSummary = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("ConnectionSummary(")
append("connectionArn=$connectionArn,")
append("connectionName=$connectionName,")
append("createdAt=$createdAt,")
append("providerType=$providerType,")
append("status=$status")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = connectionArn?.hashCode() ?: 0
result = 31 * result + (connectionName?.hashCode() ?: 0)
result = 31 * result + (createdAt?.hashCode() ?: 0)
result = 31 * result + (providerType?.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 ConnectionSummary
if (connectionArn != other.connectionArn) return false
if (connectionName != other.connectionName) return false
if (createdAt != other.createdAt) return false
if (providerType != other.providerType) return false
if (status != other.status) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.apprunner.model.ConnectionSummary = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The Amazon Resource Name (ARN) of this connection.
*/
public var connectionArn: kotlin.String? = null
/**
* The customer-provided connection name.
*/
public var connectionName: kotlin.String? = null
/**
* The App Runner connection creation time, expressed as a Unix time stamp.
*/
public var createdAt: aws.smithy.kotlin.runtime.time.Instant? = null
/**
* The source repository provider.
*/
public var providerType: aws.sdk.kotlin.services.apprunner.model.ProviderType? = null
/**
* The current state of the App Runner connection. When the state is `AVAILABLE`, you can use the connection to create an App Runner service.
*/
public var status: aws.sdk.kotlin.services.apprunner.model.ConnectionStatus? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.apprunner.model.ConnectionSummary) : this() {
this.connectionArn = x.connectionArn
this.connectionName = x.connectionName
this.createdAt = x.createdAt
this.providerType = x.providerType
this.status = x.status
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.apprunner.model.ConnectionSummary = ConnectionSummary(this)
internal fun correctErrors(): Builder {
return this
}
}
}