
commonMain.aws.sdk.kotlin.services.iottwinmaker.model.ComponentSummary.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.iottwinmaker.model
/**
* An object that returns information about a component summary.
*/
public class ComponentSummary private constructor(builder: Builder) {
/**
* The name of the component.
*/
public val componentName: kotlin.String = requireNotNull(builder.componentName) { "A non-null value must be provided for componentName" }
/**
* This string specifies the path to the composite component, starting from the top-level component.
*/
public val componentPath: kotlin.String? = builder.componentPath
/**
* The ID of the component type.
*/
public val componentTypeId: kotlin.String = requireNotNull(builder.componentTypeId) { "A non-null value must be provided for componentTypeId" }
/**
* The name of the property definition set in the request.
*/
public val definedIn: kotlin.String? = builder.definedIn
/**
* The description of the component request.
*/
public val description: kotlin.String? = builder.description
/**
* The property groups.
*/
public val propertyGroups: Map? = builder.propertyGroups
/**
* The status of the component type.
*/
public val status: aws.sdk.kotlin.services.iottwinmaker.model.Status? = builder.status
/**
* The `syncSource` of the sync job, if this entity was created by a sync job.
*/
public val syncSource: kotlin.String? = builder.syncSource
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.iottwinmaker.model.ComponentSummary = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("ComponentSummary(")
append("componentName=$componentName,")
append("componentPath=$componentPath,")
append("componentTypeId=$componentTypeId,")
append("definedIn=$definedIn,")
append("description=$description,")
append("propertyGroups=$propertyGroups,")
append("status=$status,")
append("syncSource=$syncSource")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = componentName.hashCode()
result = 31 * result + (componentPath?.hashCode() ?: 0)
result = 31 * result + (componentTypeId.hashCode())
result = 31 * result + (definedIn?.hashCode() ?: 0)
result = 31 * result + (description?.hashCode() ?: 0)
result = 31 * result + (propertyGroups?.hashCode() ?: 0)
result = 31 * result + (status?.hashCode() ?: 0)
result = 31 * result + (syncSource?.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 ComponentSummary
if (componentName != other.componentName) return false
if (componentPath != other.componentPath) return false
if (componentTypeId != other.componentTypeId) return false
if (definedIn != other.definedIn) return false
if (description != other.description) return false
if (propertyGroups != other.propertyGroups) return false
if (status != other.status) return false
if (syncSource != other.syncSource) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.iottwinmaker.model.ComponentSummary = Builder(this).apply(block).build()
public class Builder {
/**
* The name of the component.
*/
public var componentName: kotlin.String? = null
/**
* This string specifies the path to the composite component, starting from the top-level component.
*/
public var componentPath: kotlin.String? = null
/**
* The ID of the component type.
*/
public var componentTypeId: kotlin.String? = null
/**
* The name of the property definition set in the request.
*/
public var definedIn: kotlin.String? = null
/**
* The description of the component request.
*/
public var description: kotlin.String? = null
/**
* The property groups.
*/
public var propertyGroups: Map? = null
/**
* The status of the component type.
*/
public var status: aws.sdk.kotlin.services.iottwinmaker.model.Status? = null
/**
* The `syncSource` of the sync job, if this entity was created by a sync job.
*/
public var syncSource: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.iottwinmaker.model.ComponentSummary) : this() {
this.componentName = x.componentName
this.componentPath = x.componentPath
this.componentTypeId = x.componentTypeId
this.definedIn = x.definedIn
this.description = x.description
this.propertyGroups = x.propertyGroups
this.status = x.status
this.syncSource = x.syncSource
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.iottwinmaker.model.ComponentSummary = ComponentSummary(this)
/**
* construct an [aws.sdk.kotlin.services.iottwinmaker.model.Status] inside the given [block]
*/
public fun status(block: aws.sdk.kotlin.services.iottwinmaker.model.Status.Builder.() -> kotlin.Unit) {
this.status = aws.sdk.kotlin.services.iottwinmaker.model.Status.invoke(block)
}
internal fun correctErrors(): Builder {
if (componentName == null) componentName = ""
if (componentTypeId == null) componentTypeId = ""
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy