commonMain.aws.sdk.kotlin.services.codepipeline.model.ExecutorConfiguration.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of codepipeline-jvm Show documentation
Show all versions of codepipeline-jvm Show documentation
The AWS SDK for Kotlin client for CodePipeline
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.codepipeline.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* The action engine, or executor, related to the supported integration model used to create and update the action type. The available executor types are `Lambda` and `JobWorker`.
*/
public class ExecutorConfiguration private constructor(builder: Builder) {
/**
* Details about the `JobWorker` executor of the action type.
*/
public val jobWorkerExecutorConfiguration: aws.sdk.kotlin.services.codepipeline.model.JobWorkerExecutorConfiguration? = builder.jobWorkerExecutorConfiguration
/**
* Details about the `Lambda` executor of the action type.
*/
public val lambdaExecutorConfiguration: aws.sdk.kotlin.services.codepipeline.model.LambdaExecutorConfiguration? = builder.lambdaExecutorConfiguration
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.codepipeline.model.ExecutorConfiguration = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("ExecutorConfiguration(")
append("jobWorkerExecutorConfiguration=$jobWorkerExecutorConfiguration,")
append("lambdaExecutorConfiguration=$lambdaExecutorConfiguration")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = jobWorkerExecutorConfiguration?.hashCode() ?: 0
result = 31 * result + (lambdaExecutorConfiguration?.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 ExecutorConfiguration
if (jobWorkerExecutorConfiguration != other.jobWorkerExecutorConfiguration) return false
if (lambdaExecutorConfiguration != other.lambdaExecutorConfiguration) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.codepipeline.model.ExecutorConfiguration = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* Details about the `JobWorker` executor of the action type.
*/
public var jobWorkerExecutorConfiguration: aws.sdk.kotlin.services.codepipeline.model.JobWorkerExecutorConfiguration? = null
/**
* Details about the `Lambda` executor of the action type.
*/
public var lambdaExecutorConfiguration: aws.sdk.kotlin.services.codepipeline.model.LambdaExecutorConfiguration? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.codepipeline.model.ExecutorConfiguration) : this() {
this.jobWorkerExecutorConfiguration = x.jobWorkerExecutorConfiguration
this.lambdaExecutorConfiguration = x.lambdaExecutorConfiguration
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.codepipeline.model.ExecutorConfiguration = ExecutorConfiguration(this)
/**
* construct an [aws.sdk.kotlin.services.codepipeline.model.JobWorkerExecutorConfiguration] inside the given [block]
*/
public fun jobWorkerExecutorConfiguration(block: aws.sdk.kotlin.services.codepipeline.model.JobWorkerExecutorConfiguration.Builder.() -> kotlin.Unit) {
this.jobWorkerExecutorConfiguration = aws.sdk.kotlin.services.codepipeline.model.JobWorkerExecutorConfiguration.invoke(block)
}
/**
* construct an [aws.sdk.kotlin.services.codepipeline.model.LambdaExecutorConfiguration] inside the given [block]
*/
public fun lambdaExecutorConfiguration(block: aws.sdk.kotlin.services.codepipeline.model.LambdaExecutorConfiguration.Builder.() -> kotlin.Unit) {
this.lambdaExecutorConfiguration = aws.sdk.kotlin.services.codepipeline.model.LambdaExecutorConfiguration.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy