
commonMain.aws.sdk.kotlin.services.iot.model.RelatedResource.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.iot.model
/**
* Information about a related resource.
*/
public class RelatedResource private constructor(builder: Builder) {
/**
* Other information about the resource.
*/
public val additionalInfo: Map? = builder.additionalInfo
/**
* Information that identifies the resource.
*/
public val resourceIdentifier: aws.sdk.kotlin.services.iot.model.ResourceIdentifier? = builder.resourceIdentifier
/**
* The type of resource.
*/
public val resourceType: aws.sdk.kotlin.services.iot.model.ResourceType? = builder.resourceType
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.iot.model.RelatedResource = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("RelatedResource(")
append("additionalInfo=$additionalInfo,")
append("resourceIdentifier=$resourceIdentifier,")
append("resourceType=$resourceType")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = additionalInfo?.hashCode() ?: 0
result = 31 * result + (resourceIdentifier?.hashCode() ?: 0)
result = 31 * result + (resourceType?.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 RelatedResource
if (additionalInfo != other.additionalInfo) return false
if (resourceIdentifier != other.resourceIdentifier) return false
if (resourceType != other.resourceType) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.iot.model.RelatedResource = Builder(this).apply(block).build()
public class Builder {
/**
* Other information about the resource.
*/
public var additionalInfo: Map? = null
/**
* Information that identifies the resource.
*/
public var resourceIdentifier: aws.sdk.kotlin.services.iot.model.ResourceIdentifier? = null
/**
* The type of resource.
*/
public var resourceType: aws.sdk.kotlin.services.iot.model.ResourceType? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.iot.model.RelatedResource) : this() {
this.additionalInfo = x.additionalInfo
this.resourceIdentifier = x.resourceIdentifier
this.resourceType = x.resourceType
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.iot.model.RelatedResource = RelatedResource(this)
/**
* construct an [aws.sdk.kotlin.services.iot.model.ResourceIdentifier] inside the given [block]
*/
public fun resourceIdentifier(block: aws.sdk.kotlin.services.iot.model.ResourceIdentifier.Builder.() -> kotlin.Unit) {
this.resourceIdentifier = aws.sdk.kotlin.services.iot.model.ResourceIdentifier.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy