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

commonMain.aws.sdk.kotlin.services.ssm.model.DescribePatchPropertiesRequest.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.ssm.model



public class DescribePatchPropertiesRequest private constructor(builder: Builder) {
    /**
     * The maximum number of items to return for this call. The call also returns a token that you can specify in a subsequent call to get the next set of results.
     */
    public val maxResults: kotlin.Int? = builder.maxResults
    /**
     * The token for the next set of items to return. (You received this token from a previous call.)
     */
    public val nextToken: kotlin.String? = builder.nextToken
    /**
     * The operating system type for which to list patches.
     */
    public val operatingSystem: aws.sdk.kotlin.services.ssm.model.OperatingSystem? = builder.operatingSystem
    /**
     * Indicates whether to list patches for the Windows operating system or for applications released by Microsoft. Not applicable for the Linux or macOS operating systems.
     */
    public val patchSet: aws.sdk.kotlin.services.ssm.model.PatchSet? = builder.patchSet
    /**
     * The patch property for which you want to view patch details.
     */
    public val property: aws.sdk.kotlin.services.ssm.model.PatchProperty? = builder.property

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

    override fun toString(): kotlin.String = buildString {
        append("DescribePatchPropertiesRequest(")
        append("maxResults=$maxResults,")
        append("nextToken=$nextToken,")
        append("operatingSystem=$operatingSystem,")
        append("patchSet=$patchSet,")
        append("property=$property")
        append(")")
    }

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

        if (maxResults != other.maxResults) return false
        if (nextToken != other.nextToken) return false
        if (operatingSystem != other.operatingSystem) return false
        if (patchSet != other.patchSet) return false
        if (property != other.property) return false

        return true
    }

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

    public class Builder {
        /**
         * The maximum number of items to return for this call. The call also returns a token that you can specify in a subsequent call to get the next set of results.
         */
        public var maxResults: kotlin.Int? = null
        /**
         * The token for the next set of items to return. (You received this token from a previous call.)
         */
        public var nextToken: kotlin.String? = null
        /**
         * The operating system type for which to list patches.
         */
        public var operatingSystem: aws.sdk.kotlin.services.ssm.model.OperatingSystem? = null
        /**
         * Indicates whether to list patches for the Windows operating system or for applications released by Microsoft. Not applicable for the Linux or macOS operating systems.
         */
        public var patchSet: aws.sdk.kotlin.services.ssm.model.PatchSet? = null
        /**
         * The patch property for which you want to view patch details.
         */
        public var property: aws.sdk.kotlin.services.ssm.model.PatchProperty? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.ssm.model.DescribePatchPropertiesRequest) : this() {
            this.maxResults = x.maxResults
            this.nextToken = x.nextToken
            this.operatingSystem = x.operatingSystem
            this.patchSet = x.patchSet
            this.property = x.property
        }

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy