commonMain.aws.sdk.kotlin.services.greengrass.model.SubscriptionDefinitionVersion.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of greengrass-jvm Show documentation
Show all versions of greengrass-jvm Show documentation
The AWS SDK for Kotlin client for Greengrass
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.greengrass.model
/**
* Information about a subscription definition version.
*/
public class SubscriptionDefinitionVersion private constructor(builder: Builder) {
/**
* A list of subscriptions.
*/
public val subscriptions: List? = builder.subscriptions
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.greengrass.model.SubscriptionDefinitionVersion = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("SubscriptionDefinitionVersion(")
append("subscriptions=$subscriptions")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = subscriptions?.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 SubscriptionDefinitionVersion
if (subscriptions != other.subscriptions) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.greengrass.model.SubscriptionDefinitionVersion = Builder(this).apply(block).build()
public class Builder {
/**
* A list of subscriptions.
*/
public var subscriptions: List? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.greengrass.model.SubscriptionDefinitionVersion) : this() {
this.subscriptions = x.subscriptions
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.greengrass.model.SubscriptionDefinitionVersion = SubscriptionDefinitionVersion(this)
internal fun correctErrors(): Builder {
return this
}
}
}