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

commonMain.aws.sdk.kotlin.services.lightsail.model.GetBundlesRequest.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.lightsail.model

import aws.smithy.kotlin.runtime.SdkDsl

public class GetBundlesRequest private constructor(builder: Builder) {
    /**
     * Returns a list of bundles that are specific to Lightsail for Research.
     *
     * You must use this parameter to view Lightsail for Research bundles.
     */
    public val appCategory: aws.sdk.kotlin.services.lightsail.model.AppCategory? = builder.appCategory
    /**
     * A Boolean value that indicates whether to include inactive (unavailable) bundles in the response of your request.
     */
    public val includeInactive: kotlin.Boolean? = builder.includeInactive
    /**
     * The token to advance to the next page of results from your request.
     *
     * To get a page token, perform an initial `GetBundles` request. If your results are paginated, the response will return a next page token that you can specify as the page token in a subsequent request.
     */
    public val pageToken: kotlin.String? = builder.pageToken

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

    override fun toString(): kotlin.String = buildString {
        append("GetBundlesRequest(")
        append("appCategory=$appCategory,")
        append("includeInactive=$includeInactive,")
        append("pageToken=$pageToken")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = appCategory?.hashCode() ?: 0
        result = 31 * result + (includeInactive?.hashCode() ?: 0)
        result = 31 * result + (pageToken?.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 GetBundlesRequest

        if (appCategory != other.appCategory) return false
        if (includeInactive != other.includeInactive) return false
        if (pageToken != other.pageToken) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * Returns a list of bundles that are specific to Lightsail for Research.
         *
         * You must use this parameter to view Lightsail for Research bundles.
         */
        public var appCategory: aws.sdk.kotlin.services.lightsail.model.AppCategory? = null
        /**
         * A Boolean value that indicates whether to include inactive (unavailable) bundles in the response of your request.
         */
        public var includeInactive: kotlin.Boolean? = null
        /**
         * The token to advance to the next page of results from your request.
         *
         * To get a page token, perform an initial `GetBundles` request. If your results are paginated, the response will return a next page token that you can specify as the page token in a subsequent request.
         */
        public var pageToken: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.lightsail.model.GetBundlesRequest) : this() {
            this.appCategory = x.appCategory
            this.includeInactive = x.includeInactive
            this.pageToken = x.pageToken
        }

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy