commonMain.aws.sdk.kotlin.services.greengrass.model.Deployment.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
/**
* Information about a deployment.
*/
public class Deployment private constructor(builder: Builder) {
/**
* The time, in milliseconds since the epoch, when the deployment was created.
*/
public val createdAt: kotlin.String? = builder.createdAt
/**
* The ARN of the deployment.
*/
public val deploymentArn: kotlin.String? = builder.deploymentArn
/**
* The ID of the deployment.
*/
public val deploymentId: kotlin.String? = builder.deploymentId
/**
* The type of the deployment.
*/
public val deploymentType: aws.sdk.kotlin.services.greengrass.model.DeploymentType? = builder.deploymentType
/**
* The ARN of the group for this deployment.
*/
public val groupArn: kotlin.String? = builder.groupArn
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.greengrass.model.Deployment = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("Deployment(")
append("createdAt=$createdAt,")
append("deploymentArn=$deploymentArn,")
append("deploymentId=$deploymentId,")
append("deploymentType=$deploymentType,")
append("groupArn=$groupArn")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = createdAt?.hashCode() ?: 0
result = 31 * result + (deploymentArn?.hashCode() ?: 0)
result = 31 * result + (deploymentId?.hashCode() ?: 0)
result = 31 * result + (deploymentType?.hashCode() ?: 0)
result = 31 * result + (groupArn?.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 Deployment
if (createdAt != other.createdAt) return false
if (deploymentArn != other.deploymentArn) return false
if (deploymentId != other.deploymentId) return false
if (deploymentType != other.deploymentType) return false
if (groupArn != other.groupArn) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.greengrass.model.Deployment = Builder(this).apply(block).build()
public class Builder {
/**
* The time, in milliseconds since the epoch, when the deployment was created.
*/
public var createdAt: kotlin.String? = null
/**
* The ARN of the deployment.
*/
public var deploymentArn: kotlin.String? = null
/**
* The ID of the deployment.
*/
public var deploymentId: kotlin.String? = null
/**
* The type of the deployment.
*/
public var deploymentType: aws.sdk.kotlin.services.greengrass.model.DeploymentType? = null
/**
* The ARN of the group for this deployment.
*/
public var groupArn: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.greengrass.model.Deployment) : this() {
this.createdAt = x.createdAt
this.deploymentArn = x.deploymentArn
this.deploymentId = x.deploymentId
this.deploymentType = x.deploymentType
this.groupArn = x.groupArn
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.greengrass.model.Deployment = Deployment(this)
internal fun correctErrors(): Builder {
return this
}
}
}