
commonMain.aws.sdk.kotlin.services.ssmsap.model.ComponentSummary.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.ssmsap.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* The summary of the component.
*/
public class ComponentSummary private constructor(builder: Builder) {
/**
* The ID of the application.
*/
public val applicationId: kotlin.String? = builder.applicationId
/**
* The Amazon Resource Name (ARN) of the component summary.
*/
public val arn: kotlin.String? = builder.arn
/**
* The ID of the component.
*/
public val componentId: kotlin.String? = builder.componentId
/**
* The type of the component.
*/
public val componentType: aws.sdk.kotlin.services.ssmsap.model.ComponentType? = builder.componentType
/**
* The tags of the component.
*/
public val tags: Map? = builder.tags
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.ssmsap.model.ComponentSummary = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("ComponentSummary(")
append("applicationId=$applicationId,")
append("arn=$arn,")
append("componentId=$componentId,")
append("componentType=$componentType,")
append("tags=$tags")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = applicationId?.hashCode() ?: 0
result = 31 * result + (arn?.hashCode() ?: 0)
result = 31 * result + (componentId?.hashCode() ?: 0)
result = 31 * result + (componentType?.hashCode() ?: 0)
result = 31 * result + (tags?.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 (applicationId != other.applicationId) return false
if (arn != other.arn) return false
if (componentId != other.componentId) return false
if (componentType != other.componentType) return false
if (tags != other.tags) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.ssmsap.model.ComponentSummary = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The ID of the application.
*/
public var applicationId: kotlin.String? = null
/**
* The Amazon Resource Name (ARN) of the component summary.
*/
public var arn: kotlin.String? = null
/**
* The ID of the component.
*/
public var componentId: kotlin.String? = null
/**
* The type of the component.
*/
public var componentType: aws.sdk.kotlin.services.ssmsap.model.ComponentType? = null
/**
* The tags of the component.
*/
public var tags: Map? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.ssmsap.model.ComponentSummary) : this() {
this.applicationId = x.applicationId
this.arn = x.arn
this.componentId = x.componentId
this.componentType = x.componentType
this.tags = x.tags
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.ssmsap.model.ComponentSummary = ComponentSummary(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy