
commonMain.aws.sdk.kotlin.services.iottwinmaker.model.ComponentResponse.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 type create or update request.
*/
public class ComponentResponse private constructor(builder: Builder) {
/**
* This flag notes whether all `compositeComponents` are returned in the API response.
*/
public val areAllCompositeComponentsReturned: kotlin.Boolean? = builder.areAllCompositeComponentsReturned
/**
* This flag notes whether all properties of the component are returned in the API response. The maximum number of properties returned is 800.
*/
public val areAllPropertiesReturned: kotlin.Boolean? = builder.areAllPropertiesReturned
/**
* The name of the component.
*/
public val componentName: kotlin.String? = builder.componentName
/**
* The ID of the component type.
*/
public val componentTypeId: kotlin.String? = builder.componentTypeId
/**
* This lists objects that contain information about the `compositeComponents`.
*/
public val compositeComponents: Map? = builder.compositeComponents
/**
* The name of the property definition set in the request.
*/
public val definedIn: kotlin.String? = builder.definedIn
/**
* The description of the component type.
*/
public val description: kotlin.String? = builder.description
/**
* An object that maps strings to the properties to set in the component type. Each string in the mapping must be unique to this object.
*/
public val properties: Map? = builder.properties
/**
* 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.ComponentResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("ComponentResponse(")
append("areAllCompositeComponentsReturned=$areAllCompositeComponentsReturned,")
append("areAllPropertiesReturned=$areAllPropertiesReturned,")
append("componentName=$componentName,")
append("componentTypeId=$componentTypeId,")
append("compositeComponents=$compositeComponents,")
append("definedIn=$definedIn,")
append("description=$description,")
append("properties=$properties,")
append("propertyGroups=$propertyGroups,")
append("status=$status,")
append("syncSource=$syncSource")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = areAllCompositeComponentsReturned?.hashCode() ?: 0
result = 31 * result + (areAllPropertiesReturned?.hashCode() ?: 0)
result = 31 * result + (componentName?.hashCode() ?: 0)
result = 31 * result + (componentTypeId?.hashCode() ?: 0)
result = 31 * result + (compositeComponents?.hashCode() ?: 0)
result = 31 * result + (definedIn?.hashCode() ?: 0)
result = 31 * result + (description?.hashCode() ?: 0)
result = 31 * result + (properties?.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 ComponentResponse
if (areAllCompositeComponentsReturned != other.areAllCompositeComponentsReturned) return false
if (areAllPropertiesReturned != other.areAllPropertiesReturned) return false
if (componentName != other.componentName) return false
if (componentTypeId != other.componentTypeId) return false
if (compositeComponents != other.compositeComponents) return false
if (definedIn != other.definedIn) return false
if (description != other.description) return false
if (properties != other.properties) 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.ComponentResponse = Builder(this).apply(block).build()
public class Builder {
/**
* This flag notes whether all `compositeComponents` are returned in the API response.
*/
public var areAllCompositeComponentsReturned: kotlin.Boolean? = null
/**
* This flag notes whether all properties of the component are returned in the API response. The maximum number of properties returned is 800.
*/
public var areAllPropertiesReturned: kotlin.Boolean? = null
/**
* The name of the component.
*/
public var componentName: kotlin.String? = null
/**
* The ID of the component type.
*/
public var componentTypeId: kotlin.String? = null
/**
* This lists objects that contain information about the `compositeComponents`.
*/
public var compositeComponents: Map? = null
/**
* The name of the property definition set in the request.
*/
public var definedIn: kotlin.String? = null
/**
* The description of the component type.
*/
public var description: kotlin.String? = null
/**
* An object that maps strings to the properties to set in the component type. Each string in the mapping must be unique to this object.
*/
public var properties: Map? = 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.ComponentResponse) : this() {
this.areAllCompositeComponentsReturned = x.areAllCompositeComponentsReturned
this.areAllPropertiesReturned = x.areAllPropertiesReturned
this.componentName = x.componentName
this.componentTypeId = x.componentTypeId
this.compositeComponents = x.compositeComponents
this.definedIn = x.definedIn
this.description = x.description
this.properties = x.properties
this.propertyGroups = x.propertyGroups
this.status = x.status
this.syncSource = x.syncSource
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.iottwinmaker.model.ComponentResponse = ComponentResponse(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 {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy