commonMain.aws.sdk.kotlin.services.codedeploy.model.BatchGetDeploymentInstancesResponse.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 output of a `BatchGetDeploymentInstances` operation.
*/
public class BatchGetDeploymentInstancesResponse private constructor(builder: Builder) {
/**
* Information about errors that might have occurred during the API call.
*/
public val errorMessage: kotlin.String? = builder.errorMessage
/**
* Information about the instance.
*/
public val instancesSummary: List? = builder.instancesSummary
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.codedeploy.model.BatchGetDeploymentInstancesResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("BatchGetDeploymentInstancesResponse(")
append("errorMessage=$errorMessage,")
append("instancesSummary=$instancesSummary")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = errorMessage?.hashCode() ?: 0
result = 31 * result + (instancesSummary?.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 BatchGetDeploymentInstancesResponse
if (errorMessage != other.errorMessage) return false
if (instancesSummary != other.instancesSummary) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.codedeploy.model.BatchGetDeploymentInstancesResponse = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* Information about errors that might have occurred during the API call.
*/
public var errorMessage: kotlin.String? = null
/**
* Information about the instance.
*/
public var instancesSummary: List? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.codedeploy.model.BatchGetDeploymentInstancesResponse) : this() {
this.errorMessage = x.errorMessage
this.instancesSummary = x.instancesSummary
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.codedeploy.model.BatchGetDeploymentInstancesResponse = BatchGetDeploymentInstancesResponse(this)
internal fun correctErrors(): Builder {
return this
}
}
}