commonMain.aws.sdk.kotlin.services.sagemakeredge.model.SendHeartbeatRequest.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
public class SendHeartbeatRequest private constructor(builder: Builder) {
/**
* For internal use. Returns a list of SageMaker Edge Manager agent operating metrics.
*/
public val agentMetrics: List? = builder.agentMetrics
/**
* Returns the version of the agent.
*/
public val agentVersion: kotlin.String? = builder.agentVersion
/**
* Returns the result of a deployment on the device.
*/
public val deploymentResult: aws.sdk.kotlin.services.sagemakeredge.model.DeploymentResult? = builder.deploymentResult
/**
* The name of the fleet that the device belongs to.
*/
public val deviceFleetName: kotlin.String? = builder.deviceFleetName
/**
* The unique name of the device.
*/
public val deviceName: kotlin.String? = builder.deviceName
/**
* Returns a list of models deployed on the the device.
*/
public val models: List? = builder.models
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.sagemakeredge.model.SendHeartbeatRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("SendHeartbeatRequest(")
append("agentMetrics=$agentMetrics,")
append("agentVersion=$agentVersion,")
append("deploymentResult=$deploymentResult,")
append("deviceFleetName=$deviceFleetName,")
append("deviceName=$deviceName,")
append("models=$models")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = agentMetrics?.hashCode() ?: 0
result = 31 * result + (agentVersion?.hashCode() ?: 0)
result = 31 * result + (deploymentResult?.hashCode() ?: 0)
result = 31 * result + (deviceFleetName?.hashCode() ?: 0)
result = 31 * result + (deviceName?.hashCode() ?: 0)
result = 31 * result + (models?.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 SendHeartbeatRequest
if (agentMetrics != other.agentMetrics) return false
if (agentVersion != other.agentVersion) return false
if (deploymentResult != other.deploymentResult) return false
if (deviceFleetName != other.deviceFleetName) return false
if (deviceName != other.deviceName) return false
if (models != other.models) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.sagemakeredge.model.SendHeartbeatRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* For internal use. Returns a list of SageMaker Edge Manager agent operating metrics.
*/
public var agentMetrics: List? = null
/**
* Returns the version of the agent.
*/
public var agentVersion: kotlin.String? = null
/**
* Returns the result of a deployment on the device.
*/
public var deploymentResult: aws.sdk.kotlin.services.sagemakeredge.model.DeploymentResult? = null
/**
* The name of the fleet that the device belongs to.
*/
public var deviceFleetName: kotlin.String? = null
/**
* The unique name of the device.
*/
public var deviceName: kotlin.String? = null
/**
* Returns a list of models deployed on the the device.
*/
public var models: List? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.sagemakeredge.model.SendHeartbeatRequest) : this() {
this.agentMetrics = x.agentMetrics
this.agentVersion = x.agentVersion
this.deploymentResult = x.deploymentResult
this.deviceFleetName = x.deviceFleetName
this.deviceName = x.deviceName
this.models = x.models
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.sagemakeredge.model.SendHeartbeatRequest = SendHeartbeatRequest(this)
/**
* construct an [aws.sdk.kotlin.services.sagemakeredge.model.DeploymentResult] inside the given [block]
*/
public fun deploymentResult(block: aws.sdk.kotlin.services.sagemakeredge.model.DeploymentResult.Builder.() -> kotlin.Unit) {
this.deploymentResult = aws.sdk.kotlin.services.sagemakeredge.model.DeploymentResult.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}