commonMain.aws.sdk.kotlin.services.datapipeline.model.ActivatePipelineRequest.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.datapipeline.model
import aws.smithy.kotlin.runtime.SdkDsl
import aws.smithy.kotlin.runtime.time.Instant
/**
* Contains the parameters for ActivatePipeline.
*/
public class ActivatePipelineRequest private constructor(builder: Builder) {
/**
* A list of parameter values to pass to the pipeline at activation.
*/
public val parameterValues: List? = builder.parameterValues
/**
* The ID of the pipeline.
*/
public val pipelineId: kotlin.String? = builder.pipelineId
/**
* The date and time to resume the pipeline. By default, the pipeline resumes from the last completed execution.
*/
public val startTimestamp: aws.smithy.kotlin.runtime.time.Instant? = builder.startTimestamp
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.datapipeline.model.ActivatePipelineRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("ActivatePipelineRequest(")
append("parameterValues=$parameterValues,")
append("pipelineId=$pipelineId,")
append("startTimestamp=$startTimestamp")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = parameterValues?.hashCode() ?: 0
result = 31 * result + (pipelineId?.hashCode() ?: 0)
result = 31 * result + (startTimestamp?.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 ActivatePipelineRequest
if (parameterValues != other.parameterValues) return false
if (pipelineId != other.pipelineId) return false
if (startTimestamp != other.startTimestamp) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.datapipeline.model.ActivatePipelineRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* A list of parameter values to pass to the pipeline at activation.
*/
public var parameterValues: List? = null
/**
* The ID of the pipeline.
*/
public var pipelineId: kotlin.String? = null
/**
* The date and time to resume the pipeline. By default, the pipeline resumes from the last completed execution.
*/
public var startTimestamp: aws.smithy.kotlin.runtime.time.Instant? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.datapipeline.model.ActivatePipelineRequest) : this() {
this.parameterValues = x.parameterValues
this.pipelineId = x.pipelineId
this.startTimestamp = x.startTimestamp
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.datapipeline.model.ActivatePipelineRequest = ActivatePipelineRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy