commonMain.aws.sdk.kotlin.services.codestarconnections.model.SyncBlockerSummary.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of codestarconnections-jvm Show documentation
Show all versions of codestarconnections-jvm Show documentation
The AWS SDK for Kotlin client for CodeStar connections
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.codestarconnections.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* A summary for sync blockers.
*/
public class SyncBlockerSummary private constructor(builder: Builder) {
/**
* The latest events for a sync blocker summary.
*/
public val latestBlockers: List? = builder.latestBlockers
/**
* The parent resource name for a sync blocker summary.
*/
public val parentResourceName: kotlin.String? = builder.parentResourceName
/**
* The resource name for sync blocker summary.
*/
public val resourceName: kotlin.String = requireNotNull(builder.resourceName) { "A non-null value must be provided for resourceName" }
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.codestarconnections.model.SyncBlockerSummary = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("SyncBlockerSummary(")
append("latestBlockers=$latestBlockers,")
append("parentResourceName=$parentResourceName,")
append("resourceName=$resourceName")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = latestBlockers?.hashCode() ?: 0
result = 31 * result + (parentResourceName?.hashCode() ?: 0)
result = 31 * result + (resourceName.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 SyncBlockerSummary
if (latestBlockers != other.latestBlockers) return false
if (parentResourceName != other.parentResourceName) return false
if (resourceName != other.resourceName) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.codestarconnections.model.SyncBlockerSummary = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The latest events for a sync blocker summary.
*/
public var latestBlockers: List? = null
/**
* The parent resource name for a sync blocker summary.
*/
public var parentResourceName: kotlin.String? = null
/**
* The resource name for sync blocker summary.
*/
public var resourceName: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.codestarconnections.model.SyncBlockerSummary) : this() {
this.latestBlockers = x.latestBlockers
this.parentResourceName = x.parentResourceName
this.resourceName = x.resourceName
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.codestarconnections.model.SyncBlockerSummary = SyncBlockerSummary(this)
internal fun correctErrors(): Builder {
if (resourceName == null) resourceName = ""
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy