commonMain.aws.sdk.kotlin.services.sagemakeredge.model.EdgeDeployment.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sagemakeredge-jvm Show documentation
Show all versions of sagemakeredge-jvm Show documentation
The AWS SDK for Kotlin client for Sagemaker Edge
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.sagemakeredge.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* Information about a deployment on an edge device that is registered with SageMaker Edge Manager.
*/
public class EdgeDeployment private constructor(builder: Builder) {
/**
* Returns a list of Definition objects.
*/
public val definitions: List? = builder.definitions
/**
* The name and unique ID of the deployment.
*/
public val deploymentName: kotlin.String? = builder.deploymentName
/**
* Determines whether to rollback to previous configuration if deployment fails.
*/
public val failureHandlingPolicy: aws.sdk.kotlin.services.sagemakeredge.model.FailureHandlingPolicy? = builder.failureHandlingPolicy
/**
* The type of the deployment.
*/
public val type: aws.sdk.kotlin.services.sagemakeredge.model.DeploymentType? = builder.type
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.sagemakeredge.model.EdgeDeployment = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("EdgeDeployment(")
append("definitions=$definitions,")
append("deploymentName=$deploymentName,")
append("failureHandlingPolicy=$failureHandlingPolicy,")
append("type=$type")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = definitions?.hashCode() ?: 0
result = 31 * result + (deploymentName?.hashCode() ?: 0)
result = 31 * result + (failureHandlingPolicy?.hashCode() ?: 0)
result = 31 * result + (type?.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 EdgeDeployment
if (definitions != other.definitions) return false
if (deploymentName != other.deploymentName) return false
if (failureHandlingPolicy != other.failureHandlingPolicy) return false
if (type != other.type) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.sagemakeredge.model.EdgeDeployment = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* Returns a list of Definition objects.
*/
public var definitions: List? = null
/**
* The name and unique ID of the deployment.
*/
public var deploymentName: kotlin.String? = null
/**
* Determines whether to rollback to previous configuration if deployment fails.
*/
public var failureHandlingPolicy: aws.sdk.kotlin.services.sagemakeredge.model.FailureHandlingPolicy? = null
/**
* The type of the deployment.
*/
public var type: aws.sdk.kotlin.services.sagemakeredge.model.DeploymentType? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.sagemakeredge.model.EdgeDeployment) : this() {
this.definitions = x.definitions
this.deploymentName = x.deploymentName
this.failureHandlingPolicy = x.failureHandlingPolicy
this.type = x.type
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.sagemakeredge.model.EdgeDeployment = EdgeDeployment(this)
internal fun correctErrors(): Builder {
return this
}
}
}