commonMain.aws.sdk.kotlin.services.outposts.model.AssetInstance.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of outposts-jvm Show documentation
Show all versions of outposts-jvm Show documentation
The AWS SDK for Kotlin client for Outposts
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.outposts.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* An Amazon EC2 instance.
*/
public class AssetInstance private constructor(builder: Builder) {
/**
* The ID of the Amazon Web Services account.
*/
public val accountId: kotlin.String? = builder.accountId
/**
* The ID of the asset.
*/
public val assetId: kotlin.String? = builder.assetId
/**
* The Amazon Web Services service name of the instance.
*/
public val awsServiceName: aws.sdk.kotlin.services.outposts.model.AwsServiceName? = builder.awsServiceName
/**
* The ID of the instance.
*/
public val instanceId: kotlin.String? = builder.instanceId
/**
* The type of instance.
*/
public val instanceType: kotlin.String? = builder.instanceType
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.outposts.model.AssetInstance = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("AssetInstance(")
append("accountId=$accountId,")
append("assetId=$assetId,")
append("awsServiceName=$awsServiceName,")
append("instanceId=$instanceId,")
append("instanceType=$instanceType")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = accountId?.hashCode() ?: 0
result = 31 * result + (assetId?.hashCode() ?: 0)
result = 31 * result + (awsServiceName?.hashCode() ?: 0)
result = 31 * result + (instanceId?.hashCode() ?: 0)
result = 31 * result + (instanceType?.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 AssetInstance
if (accountId != other.accountId) return false
if (assetId != other.assetId) return false
if (awsServiceName != other.awsServiceName) return false
if (instanceId != other.instanceId) return false
if (instanceType != other.instanceType) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.outposts.model.AssetInstance = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The ID of the Amazon Web Services account.
*/
public var accountId: kotlin.String? = null
/**
* The ID of the asset.
*/
public var assetId: kotlin.String? = null
/**
* The Amazon Web Services service name of the instance.
*/
public var awsServiceName: aws.sdk.kotlin.services.outposts.model.AwsServiceName? = null
/**
* The ID of the instance.
*/
public var instanceId: kotlin.String? = null
/**
* The type of instance.
*/
public var instanceType: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.outposts.model.AssetInstance) : this() {
this.accountId = x.accountId
this.assetId = x.assetId
this.awsServiceName = x.awsServiceName
this.instanceId = x.instanceId
this.instanceType = x.instanceType
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.outposts.model.AssetInstance = AssetInstance(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy