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

commonMain.aws.sdk.kotlin.services.appstream.model.DescribeImagePermissionsRequest.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.appstream.model



public class DescribeImagePermissionsRequest private constructor(builder: Builder) {
    /**
     * The maximum size of each page of results.
     */
    public val maxResults: kotlin.Int? = builder.maxResults
    /**
     * The name of the private image for which to describe permissions. The image must be one that you own.
     */
    public val name: kotlin.String? = builder.name
    /**
     * The pagination token to use to retrieve the next page of results for this operation. If this value is null, it retrieves the first page.
     */
    public val nextToken: kotlin.String? = builder.nextToken
    /**
     * The 12-digit identifier of one or more AWS accounts with which the image is shared.
     */
    public val sharedAwsAccountIds: List? = builder.sharedAwsAccountIds

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

    override fun toString(): kotlin.String = buildString {
        append("DescribeImagePermissionsRequest(")
        append("maxResults=$maxResults,")
        append("name=$name,")
        append("nextToken=$nextToken,")
        append("sharedAwsAccountIds=$sharedAwsAccountIds)")
    }

    override fun hashCode(): kotlin.Int {
        var result = maxResults ?: 0
        result = 31 * result + (name?.hashCode() ?: 0)
        result = 31 * result + (nextToken?.hashCode() ?: 0)
        result = 31 * result + (sharedAwsAccountIds?.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 DescribeImagePermissionsRequest

        if (maxResults != other.maxResults) return false
        if (name != other.name) return false
        if (nextToken != other.nextToken) return false
        if (sharedAwsAccountIds != other.sharedAwsAccountIds) return false

        return true
    }

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

    public class Builder {
        /**
         * The maximum size of each page of results.
         */
        public var maxResults: kotlin.Int? = null
        /**
         * The name of the private image for which to describe permissions. The image must be one that you own.
         */
        public var name: kotlin.String? = null
        /**
         * The pagination token to use to retrieve the next page of results for this operation. If this value is null, it retrieves the first page.
         */
        public var nextToken: kotlin.String? = null
        /**
         * The 12-digit identifier of one or more AWS accounts with which the image is shared.
         */
        public var sharedAwsAccountIds: List? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.appstream.model.DescribeImagePermissionsRequest) : this() {
            this.maxResults = x.maxResults
            this.name = x.name
            this.nextToken = x.nextToken
            this.sharedAwsAccountIds = x.sharedAwsAccountIds
        }

        @PublishedApi
        internal fun build(): aws.sdk.kotlin.services.appstream.model.DescribeImagePermissionsRequest = DescribeImagePermissionsRequest(this)
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy