commonMain.aws.sdk.kotlin.services.codestarconnections.model.UpdateSyncBlockerResponse.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
public class UpdateSyncBlockerResponse private constructor(builder: Builder) {
/**
* The parent resource name for the sync blocker.
*/
public val parentResourceName: kotlin.String? = builder.parentResourceName
/**
* The resource name for the sync blocker.
*/
public val resourceName: kotlin.String = requireNotNull(builder.resourceName) { "A non-null value must be provided for resourceName" }
/**
* Information about the sync blocker to be updated.
*/
public val syncBlocker: aws.sdk.kotlin.services.codestarconnections.model.SyncBlocker? = builder.syncBlocker
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.codestarconnections.model.UpdateSyncBlockerResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("UpdateSyncBlockerResponse(")
append("parentResourceName=$parentResourceName,")
append("resourceName=$resourceName,")
append("syncBlocker=$syncBlocker")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = parentResourceName?.hashCode() ?: 0
result = 31 * result + (resourceName.hashCode())
result = 31 * result + (syncBlocker?.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 UpdateSyncBlockerResponse
if (parentResourceName != other.parentResourceName) return false
if (resourceName != other.resourceName) return false
if (syncBlocker != other.syncBlocker) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.codestarconnections.model.UpdateSyncBlockerResponse = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The parent resource name for the sync blocker.
*/
public var parentResourceName: kotlin.String? = null
/**
* The resource name for the sync blocker.
*/
public var resourceName: kotlin.String? = null
/**
* Information about the sync blocker to be updated.
*/
public var syncBlocker: aws.sdk.kotlin.services.codestarconnections.model.SyncBlocker? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.codestarconnections.model.UpdateSyncBlockerResponse) : this() {
this.parentResourceName = x.parentResourceName
this.resourceName = x.resourceName
this.syncBlocker = x.syncBlocker
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.codestarconnections.model.UpdateSyncBlockerResponse = UpdateSyncBlockerResponse(this)
/**
* construct an [aws.sdk.kotlin.services.codestarconnections.model.SyncBlocker] inside the given [block]
*/
public fun syncBlocker(block: aws.sdk.kotlin.services.codestarconnections.model.SyncBlocker.Builder.() -> kotlin.Unit) {
this.syncBlocker = aws.sdk.kotlin.services.codestarconnections.model.SyncBlocker.invoke(block)
}
internal fun correctErrors(): Builder {
if (resourceName == null) resourceName = ""
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy