All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.aws.sdk.kotlin.services.iot.model.ManagedJobTemplateSummary.kt Maven / Gradle / Ivy

// Code generated by smithy-kotlin-codegen. DO NOT EDIT!

package aws.sdk.kotlin.services.iot.model



/**
 * An object that contains information about the managed template.
 */
public class ManagedJobTemplateSummary private constructor(builder: Builder) {
    /**
     * The description for a managed template.
     */
    public val description: kotlin.String? = builder.description
    /**
     * A list of environments that are supported with the managed job template.
     */
    public val environments: List? = builder.environments
    /**
     * The Amazon Resource Name (ARN) for a managed template.
     */
    public val templateArn: kotlin.String? = builder.templateArn
    /**
     * The unique Name for a managed template.
     */
    public val templateName: kotlin.String? = builder.templateName
    /**
     * The version for a managed template.
     */
    public val templateVersion: kotlin.String? = builder.templateVersion

    public companion object {
        public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.iot.model.ManagedJobTemplateSummary = Builder().apply(block).build()
    }

    override fun toString(): kotlin.String = buildString {
        append("ManagedJobTemplateSummary(")
        append("description=$description,")
        append("environments=$environments,")
        append("templateArn=$templateArn,")
        append("templateName=$templateName,")
        append("templateVersion=$templateVersion")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = description?.hashCode() ?: 0
        result = 31 * result + (environments?.hashCode() ?: 0)
        result = 31 * result + (templateArn?.hashCode() ?: 0)
        result = 31 * result + (templateName?.hashCode() ?: 0)
        result = 31 * result + (templateVersion?.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 ManagedJobTemplateSummary

        if (description != other.description) return false
        if (environments != other.environments) return false
        if (templateArn != other.templateArn) return false
        if (templateName != other.templateName) return false
        if (templateVersion != other.templateVersion) return false

        return true
    }

    public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.iot.model.ManagedJobTemplateSummary = Builder(this).apply(block).build()

    public class Builder {
        /**
         * The description for a managed template.
         */
        public var description: kotlin.String? = null
        /**
         * A list of environments that are supported with the managed job template.
         */
        public var environments: List? = null
        /**
         * The Amazon Resource Name (ARN) for a managed template.
         */
        public var templateArn: kotlin.String? = null
        /**
         * The unique Name for a managed template.
         */
        public var templateName: kotlin.String? = null
        /**
         * The version for a managed template.
         */
        public var templateVersion: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.iot.model.ManagedJobTemplateSummary) : this() {
            this.description = x.description
            this.environments = x.environments
            this.templateArn = x.templateArn
            this.templateName = x.templateName
            this.templateVersion = x.templateVersion
        }

        @PublishedApi
        internal fun build(): aws.sdk.kotlin.services.iot.model.ManagedJobTemplateSummary = ManagedJobTemplateSummary(this)

        internal fun correctErrors(): Builder {
            return this
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy