commonMain.aws.sdk.kotlin.services.snowdevicemanagement.model.ResourceSummary.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of snowdevicemanagement-jvm Show documentation
Show all versions of snowdevicemanagement-jvm Show documentation
The AWS SDK for Kotlin client for Snow Device Management
The newest version!
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.snowdevicemanagement.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* A summary of a resource available on the device.
*/
public class ResourceSummary private constructor(builder: Builder) {
/**
* The Amazon Resource Name (ARN) of the resource.
*/
public val arn: kotlin.String? = builder.arn
/**
* The ID of the resource.
*/
public val id: kotlin.String? = builder.id
/**
* The resource type.
*/
public val resourceType: kotlin.String = requireNotNull(builder.resourceType) { "A non-null value must be provided for resourceType" }
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.snowdevicemanagement.model.ResourceSummary = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("ResourceSummary(")
append("arn=$arn,")
append("id=$id,")
append("resourceType=$resourceType")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = arn?.hashCode() ?: 0
result = 31 * result + (id?.hashCode() ?: 0)
result = 31 * result + (resourceType.hashCode())
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 ResourceSummary
if (arn != other.arn) return false
if (id != other.id) return false
if (resourceType != other.resourceType) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.snowdevicemanagement.model.ResourceSummary = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The Amazon Resource Name (ARN) of the resource.
*/
public var arn: kotlin.String? = null
/**
* The ID of the resource.
*/
public var id: kotlin.String? = null
/**
* The resource type.
*/
public var resourceType: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.snowdevicemanagement.model.ResourceSummary) : this() {
this.arn = x.arn
this.id = x.id
this.resourceType = x.resourceType
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.snowdevicemanagement.model.ResourceSummary = ResourceSummary(this)
internal fun correctErrors(): Builder {
if (resourceType == null) resourceType = ""
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy