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

commonMain.aws.sdk.kotlin.services.greengrass.model.GetGroupVersionRequest.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 GetGroupVersionRequest private constructor(builder: Builder) {
    /**
     * The ID of the Greengrass group.
     */
    public val groupId: kotlin.String? = builder.groupId
    /**
     * The ID of the group version. This value maps to the ''Version'' property of the corresponding ''VersionInformation'' object, which is returned by ''ListGroupVersions'' requests. If the version is the last one that was associated with a group, the value also maps to the ''LatestVersion'' property of the corresponding ''GroupInformation'' object.
     */
    public val groupVersionId: kotlin.String? = builder.groupVersionId

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

    override fun toString(): kotlin.String = buildString {
        append("GetGroupVersionRequest(")
        append("groupId=$groupId,")
        append("groupVersionId=$groupVersionId")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = groupId?.hashCode() ?: 0
        result = 31 * result + (groupVersionId?.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 GetGroupVersionRequest

        if (groupId != other.groupId) return false
        if (groupVersionId != other.groupVersionId) return false

        return true
    }

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

    public class Builder {
        /**
         * The ID of the Greengrass group.
         */
        public var groupId: kotlin.String? = null
        /**
         * The ID of the group version. This value maps to the ''Version'' property of the corresponding ''VersionInformation'' object, which is returned by ''ListGroupVersions'' requests. If the version is the last one that was associated with a group, the value also maps to the ''LatestVersion'' property of the corresponding ''GroupInformation'' object.
         */
        public var groupVersionId: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.greengrass.model.GetGroupVersionRequest) : this() {
            this.groupId = x.groupId
            this.groupVersionId = x.groupVersionId
        }

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy