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

commonMain.aws.sdk.kotlin.services.greengrass.model.GetFunctionDefinitionResponse.kt Maven / Gradle / Ivy

There is a newer version: 1.3.34
Show newest version
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!

package aws.sdk.kotlin.services.greengrass.model



public class GetFunctionDefinitionResponse private constructor(builder: Builder) {
    /**
     * The ARN of the definition.
     */
    public val arn: kotlin.String? = builder.arn
    /**
     * The time, in milliseconds since the epoch, when the definition was created.
     */
    public val creationTimestamp: kotlin.String? = builder.creationTimestamp
    /**
     * The ID of the definition.
     */
    public val id: kotlin.String? = builder.id
    /**
     * The time, in milliseconds since the epoch, when the definition was last updated.
     */
    public val lastUpdatedTimestamp: kotlin.String? = builder.lastUpdatedTimestamp
    /**
     * The ID of the latest version associated with the definition.
     */
    public val latestVersion: kotlin.String? = builder.latestVersion
    /**
     * The ARN of the latest version associated with the definition.
     */
    public val latestVersionArn: kotlin.String? = builder.latestVersionArn
    /**
     * The name of the definition.
     */
    public val name: kotlin.String? = builder.name
    /**
     * Tag(s) attached to the resource arn.
     */
    public val tags: Map? = builder.tags

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

    override fun toString(): kotlin.String = buildString {
        append("GetFunctionDefinitionResponse(")
        append("arn=$arn,")
        append("creationTimestamp=$creationTimestamp,")
        append("id=$id,")
        append("lastUpdatedTimestamp=$lastUpdatedTimestamp,")
        append("latestVersion=$latestVersion,")
        append("latestVersionArn=$latestVersionArn,")
        append("name=$name,")
        append("tags=$tags")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = arn?.hashCode() ?: 0
        result = 31 * result + (creationTimestamp?.hashCode() ?: 0)
        result = 31 * result + (id?.hashCode() ?: 0)
        result = 31 * result + (lastUpdatedTimestamp?.hashCode() ?: 0)
        result = 31 * result + (latestVersion?.hashCode() ?: 0)
        result = 31 * result + (latestVersionArn?.hashCode() ?: 0)
        result = 31 * result + (name?.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 GetFunctionDefinitionResponse

        if (arn != other.arn) return false
        if (creationTimestamp != other.creationTimestamp) return false
        if (id != other.id) return false
        if (lastUpdatedTimestamp != other.lastUpdatedTimestamp) return false
        if (latestVersion != other.latestVersion) return false
        if (latestVersionArn != other.latestVersionArn) return false
        if (name != other.name) return false
        if (tags != other.tags) return false

        return true
    }

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

    public class Builder {
        /**
         * The ARN of the definition.
         */
        public var arn: kotlin.String? = null
        /**
         * The time, in milliseconds since the epoch, when the definition was created.
         */
        public var creationTimestamp: kotlin.String? = null
        /**
         * The ID of the definition.
         */
        public var id: kotlin.String? = null
        /**
         * The time, in milliseconds since the epoch, when the definition was last updated.
         */
        public var lastUpdatedTimestamp: kotlin.String? = null
        /**
         * The ID of the latest version associated with the definition.
         */
        public var latestVersion: kotlin.String? = null
        /**
         * The ARN of the latest version associated with the definition.
         */
        public var latestVersionArn: kotlin.String? = null
        /**
         * The name of the definition.
         */
        public var name: kotlin.String? = null
        /**
         * Tag(s) attached to the resource arn.
         */
        public var tags: Map? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.greengrass.model.GetFunctionDefinitionResponse) : this() {
            this.arn = x.arn
            this.creationTimestamp = x.creationTimestamp
            this.id = x.id
            this.lastUpdatedTimestamp = x.lastUpdatedTimestamp
            this.latestVersion = x.latestVersion
            this.latestVersionArn = x.latestVersionArn
            this.name = x.name
            this.tags = x.tags
        }

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy