commonMain.aws.sdk.kotlin.services.codedeploy.model.BatchGetDeploymentInstancesRequest.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of codedeploy-jvm Show documentation
Show all versions of codedeploy-jvm Show documentation
The AWS SDK for Kotlin client for CodeDeploy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.codedeploy.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* Represents the input of a `BatchGetDeploymentInstances` operation.
*/
public class BatchGetDeploymentInstancesRequest private constructor(builder: Builder) {
/**
* The unique ID of a deployment.
*/
public val deploymentId: kotlin.String? = builder.deploymentId
/**
* The unique IDs of instances used in the deployment. The maximum number of instance IDs you can specify is 25.
*/
public val instanceIds: List? = builder.instanceIds
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.codedeploy.model.BatchGetDeploymentInstancesRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("BatchGetDeploymentInstancesRequest(")
append("deploymentId=$deploymentId,")
append("instanceIds=$instanceIds")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = deploymentId?.hashCode() ?: 0
result = 31 * result + (instanceIds?.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 BatchGetDeploymentInstancesRequest
if (deploymentId != other.deploymentId) return false
if (instanceIds != other.instanceIds) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.codedeploy.model.BatchGetDeploymentInstancesRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The unique ID of a deployment.
*/
public var deploymentId: kotlin.String? = null
/**
* The unique IDs of instances used in the deployment. The maximum number of instance IDs you can specify is 25.
*/
public var instanceIds: List? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.codedeploy.model.BatchGetDeploymentInstancesRequest) : this() {
this.deploymentId = x.deploymentId
this.instanceIds = x.instanceIds
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.codedeploy.model.BatchGetDeploymentInstancesRequest = BatchGetDeploymentInstancesRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}