commonMain.aws.sdk.kotlin.services.greengrass.model.CreateDeploymentResponse.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of greengrass-jvm Show documentation
Show all versions of greengrass-jvm Show documentation
The AWS SDK for Kotlin client for Greengrass
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.greengrass.model
public class CreateDeploymentResponse private constructor(builder: Builder) {
/**
* The ARN of the deployment.
*/
public val deploymentArn: kotlin.String? = builder.deploymentArn
/**
* The ID of the deployment.
*/
public val deploymentId: kotlin.String? = builder.deploymentId
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.greengrass.model.CreateDeploymentResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("CreateDeploymentResponse(")
append("deploymentArn=$deploymentArn,")
append("deploymentId=$deploymentId")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = deploymentArn?.hashCode() ?: 0
result = 31 * result + (deploymentId?.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 CreateDeploymentResponse
if (deploymentArn != other.deploymentArn) return false
if (deploymentId != other.deploymentId) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.greengrass.model.CreateDeploymentResponse = Builder(this).apply(block).build()
public class Builder {
/**
* The ARN of the deployment.
*/
public var deploymentArn: kotlin.String? = null
/**
* The ID of the deployment.
*/
public var deploymentId: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.greengrass.model.CreateDeploymentResponse) : this() {
this.deploymentArn = x.deploymentArn
this.deploymentId = x.deploymentId
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.greengrass.model.CreateDeploymentResponse = CreateDeploymentResponse(this)
internal fun correctErrors(): Builder {
return this
}
}
}