
commonMain.aws.sdk.kotlin.services.nimble.model.StudioComponentSummary.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.nimble.model
import aws.smithy.kotlin.runtime.time.Instant
/**
* The studio component's summary.
*/
public class StudioComponentSummary private constructor(builder: Builder) {
/**
* The ISO timestamp in seconds for when the resource was created.
*/
public val createdAt: aws.smithy.kotlin.runtime.time.Instant? = builder.createdAt
/**
* The user ID of the user that created the studio component.
*/
public val createdBy: kotlin.String? = builder.createdBy
/**
* The description.
*/
public val description: kotlin.String? = builder.description
/**
* The name for the studio component.
*/
public val name: kotlin.String? = builder.name
/**
* The unique identifier for a studio component resource.
*/
public val studioComponentId: kotlin.String? = builder.studioComponentId
/**
* The specific subtype of a studio component.
*/
public val subtype: aws.sdk.kotlin.services.nimble.model.StudioComponentSubtype? = builder.subtype
/**
* The type of the studio component.
*/
public val type: aws.sdk.kotlin.services.nimble.model.StudioComponentType? = builder.type
/**
* The ISO timestamp in seconds for when the resource was updated.
*/
public val updatedAt: aws.smithy.kotlin.runtime.time.Instant? = builder.updatedAt
/**
* The user ID of the user that most recently updated the resource.
*/
public val updatedBy: kotlin.String? = builder.updatedBy
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.nimble.model.StudioComponentSummary = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("StudioComponentSummary(")
append("createdAt=$createdAt,")
append("createdBy=$createdBy,")
append("description=*** Sensitive Data Redacted ***,")
append("name=*** Sensitive Data Redacted ***,")
append("studioComponentId=$studioComponentId,")
append("subtype=$subtype,")
append("type=$type,")
append("updatedAt=$updatedAt,")
append("updatedBy=$updatedBy")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = createdAt?.hashCode() ?: 0
result = 31 * result + (createdBy?.hashCode() ?: 0)
result = 31 * result + (description?.hashCode() ?: 0)
result = 31 * result + (name?.hashCode() ?: 0)
result = 31 * result + (studioComponentId?.hashCode() ?: 0)
result = 31 * result + (subtype?.hashCode() ?: 0)
result = 31 * result + (type?.hashCode() ?: 0)
result = 31 * result + (updatedAt?.hashCode() ?: 0)
result = 31 * result + (updatedBy?.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 StudioComponentSummary
if (createdAt != other.createdAt) return false
if (createdBy != other.createdBy) return false
if (description != other.description) return false
if (name != other.name) return false
if (studioComponentId != other.studioComponentId) return false
if (subtype != other.subtype) return false
if (type != other.type) return false
if (updatedAt != other.updatedAt) return false
if (updatedBy != other.updatedBy) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.nimble.model.StudioComponentSummary = Builder(this).apply(block).build()
public class Builder {
/**
* The ISO timestamp in seconds for when the resource was created.
*/
public var createdAt: aws.smithy.kotlin.runtime.time.Instant? = null
/**
* The user ID of the user that created the studio component.
*/
public var createdBy: kotlin.String? = null
/**
* The description.
*/
public var description: kotlin.String? = null
/**
* The name for the studio component.
*/
public var name: kotlin.String? = null
/**
* The unique identifier for a studio component resource.
*/
public var studioComponentId: kotlin.String? = null
/**
* The specific subtype of a studio component.
*/
public var subtype: aws.sdk.kotlin.services.nimble.model.StudioComponentSubtype? = null
/**
* The type of the studio component.
*/
public var type: aws.sdk.kotlin.services.nimble.model.StudioComponentType? = null
/**
* The ISO timestamp in seconds for when the resource was updated.
*/
public var updatedAt: aws.smithy.kotlin.runtime.time.Instant? = null
/**
* The user ID of the user that most recently updated the resource.
*/
public var updatedBy: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.nimble.model.StudioComponentSummary) : this() {
this.createdAt = x.createdAt
this.createdBy = x.createdBy
this.description = x.description
this.name = x.name
this.studioComponentId = x.studioComponentId
this.subtype = x.subtype
this.type = x.type
this.updatedAt = x.updatedAt
this.updatedBy = x.updatedBy
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.nimble.model.StudioComponentSummary = StudioComponentSummary(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy