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

commonMain.aws.sdk.kotlin.services.codepipeline.model.PollForThirdPartyJobsRequest.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.codepipeline.model

import aws.smithy.kotlin.runtime.SdkDsl

/**
 * Represents the input of a `PollForThirdPartyJobs` action.
 */
public class PollForThirdPartyJobsRequest private constructor(builder: Builder) {
    /**
     * Represents information about an action type.
     */
    public val actionTypeId: aws.sdk.kotlin.services.codepipeline.model.ActionTypeId? = builder.actionTypeId
    /**
     * The maximum number of jobs to return in a poll for jobs call.
     */
    public val maxBatchSize: kotlin.Int? = builder.maxBatchSize

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

    override fun toString(): kotlin.String = buildString {
        append("PollForThirdPartyJobsRequest(")
        append("actionTypeId=$actionTypeId,")
        append("maxBatchSize=$maxBatchSize")
        append(")")
    }

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

        if (actionTypeId != other.actionTypeId) return false
        if (maxBatchSize != other.maxBatchSize) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * Represents information about an action type.
         */
        public var actionTypeId: aws.sdk.kotlin.services.codepipeline.model.ActionTypeId? = null
        /**
         * The maximum number of jobs to return in a poll for jobs call.
         */
        public var maxBatchSize: kotlin.Int? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.codepipeline.model.PollForThirdPartyJobsRequest) : this() {
            this.actionTypeId = x.actionTypeId
            this.maxBatchSize = x.maxBatchSize
        }

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

        /**
         * construct an [aws.sdk.kotlin.services.codepipeline.model.ActionTypeId] inside the given [block]
         */
        public fun actionTypeId(block: aws.sdk.kotlin.services.codepipeline.model.ActionTypeId.Builder.() -> kotlin.Unit) {
            this.actionTypeId = aws.sdk.kotlin.services.codepipeline.model.ActionTypeId.invoke(block)
        }

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy