commonMain.aws.sdk.kotlin.services.codebuild.model.DebugSession.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of codebuild-jvm Show documentation
Show all versions of codebuild-jvm Show documentation
The AWS SDK for Kotlin client for CodeBuild
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.codebuild.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* Contains information about the debug session for a build. For more information, see [Viewing a running build in Session Manager](https://docs.aws.amazon.com/codebuild/latest/userguide/session-manager.html).
*/
public class DebugSession private constructor(builder: Builder) {
/**
* Specifies if session debugging is enabled for this build.
*/
public val sessionEnabled: kotlin.Boolean? = builder.sessionEnabled
/**
* Contains the identifier of the Session Manager session used for the build. To work with the paused build, you open this session to examine, control, and resume the build.
*/
public val sessionTarget: kotlin.String? = builder.sessionTarget
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.codebuild.model.DebugSession = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("DebugSession(")
append("sessionEnabled=$sessionEnabled,")
append("sessionTarget=$sessionTarget")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = sessionEnabled?.hashCode() ?: 0
result = 31 * result + (sessionTarget?.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 DebugSession
if (sessionEnabled != other.sessionEnabled) return false
if (sessionTarget != other.sessionTarget) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.codebuild.model.DebugSession = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* Specifies if session debugging is enabled for this build.
*/
public var sessionEnabled: kotlin.Boolean? = null
/**
* Contains the identifier of the Session Manager session used for the build. To work with the paused build, you open this session to examine, control, and resume the build.
*/
public var sessionTarget: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.codebuild.model.DebugSession) : this() {
this.sessionEnabled = x.sessionEnabled
this.sessionTarget = x.sessionTarget
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.codebuild.model.DebugSession = DebugSession(this)
internal fun correctErrors(): Builder {
return this
}
}
}