commonMain.aws.sdk.kotlin.services.datapipeline.model.SetStatusRequest.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of datapipeline-jvm Show documentation
Show all versions of datapipeline-jvm Show documentation
The AWS SDK for Kotlin client for Data Pipeline
The newest version!
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.datapipeline.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* Contains the parameters for SetStatus.
*/
public class SetStatusRequest private constructor(builder: Builder) {
/**
* The IDs of the objects. The corresponding objects can be either physical or components, but not a mix of both types.
*/
public val objectIds: List? = builder.objectIds
/**
* The ID of the pipeline that contains the objects.
*/
public val pipelineId: kotlin.String? = builder.pipelineId
/**
* The status to be set on all the objects specified in `objectIds`. For components, use `PAUSE` or `RESUME`. For instances, use `TRY_CANCEL`, `RERUN`, or `MARK_FINISHED`.
*/
public val status: kotlin.String? = builder.status
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.datapipeline.model.SetStatusRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("SetStatusRequest(")
append("objectIds=$objectIds,")
append("pipelineId=$pipelineId,")
append("status=$status")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = objectIds?.hashCode() ?: 0
result = 31 * result + (pipelineId?.hashCode() ?: 0)
result = 31 * result + (status?.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 SetStatusRequest
if (objectIds != other.objectIds) return false
if (pipelineId != other.pipelineId) return false
if (status != other.status) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.datapipeline.model.SetStatusRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The IDs of the objects. The corresponding objects can be either physical or components, but not a mix of both types.
*/
public var objectIds: List? = null
/**
* The ID of the pipeline that contains the objects.
*/
public var pipelineId: kotlin.String? = null
/**
* The status to be set on all the objects specified in `objectIds`. For components, use `PAUSE` or `RESUME`. For instances, use `TRY_CANCEL`, `RERUN`, or `MARK_FINISHED`.
*/
public var status: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.datapipeline.model.SetStatusRequest) : this() {
this.objectIds = x.objectIds
this.pipelineId = x.pipelineId
this.status = x.status
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.datapipeline.model.SetStatusRequest = SetStatusRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy