commonMain.aws.sdk.kotlin.services.codedeploy.model.GetDeploymentGroupResponse.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 `GetDeploymentGroup` operation.
*/
public class GetDeploymentGroupResponse private constructor(builder: Builder) {
/**
* Information about the deployment group.
*/
public val deploymentGroupInfo: aws.sdk.kotlin.services.codedeploy.model.DeploymentGroupInfo? = builder.deploymentGroupInfo
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.codedeploy.model.GetDeploymentGroupResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("GetDeploymentGroupResponse(")
append("deploymentGroupInfo=$deploymentGroupInfo")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = deploymentGroupInfo?.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 GetDeploymentGroupResponse
if (deploymentGroupInfo != other.deploymentGroupInfo) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.codedeploy.model.GetDeploymentGroupResponse = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* Information about the deployment group.
*/
public var deploymentGroupInfo: aws.sdk.kotlin.services.codedeploy.model.DeploymentGroupInfo? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.codedeploy.model.GetDeploymentGroupResponse) : this() {
this.deploymentGroupInfo = x.deploymentGroupInfo
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.codedeploy.model.GetDeploymentGroupResponse = GetDeploymentGroupResponse(this)
/**
* construct an [aws.sdk.kotlin.services.codedeploy.model.DeploymentGroupInfo] inside the given [block]
*/
public fun deploymentGroupInfo(block: aws.sdk.kotlin.services.codedeploy.model.DeploymentGroupInfo.Builder.() -> kotlin.Unit) {
this.deploymentGroupInfo = aws.sdk.kotlin.services.codedeploy.model.DeploymentGroupInfo.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}