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

commonMain.aws.sdk.kotlin.services.mgn.model.DescribeReplicationConfigurationTemplatesRequest.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.mgn.model



class DescribeReplicationConfigurationTemplatesRequest private constructor(builder: Builder) {
    /**
     * Request to describe Replication Configuration template by max results.
     */
    val maxResults: kotlin.Int = builder.maxResults
    /**
     * Request to describe Replication Configuration template by next token.
     */
    val nextToken: kotlin.String? = builder.nextToken
    /**
     * Request to describe Replication Configuration template by template IDs.
     */
    val replicationConfigurationTemplateIDs: List? = builder.replicationConfigurationTemplateIDs

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

    override fun toString(): kotlin.String = buildString {
        append("DescribeReplicationConfigurationTemplatesRequest(")
        append("maxResults=$maxResults,")
        append("nextToken=$nextToken,")
        append("replicationConfigurationTemplateIDs=$replicationConfigurationTemplateIDs)")
    }

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

        if (maxResults != other.maxResults) return false
        if (nextToken != other.nextToken) return false
        if (replicationConfigurationTemplateIDs != other.replicationConfigurationTemplateIDs) return false

        return true
    }

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

    class Builder {
        /**
         * Request to describe Replication Configuration template by max results.
         */
        var maxResults: kotlin.Int = 0
        /**
         * Request to describe Replication Configuration template by next token.
         */
        var nextToken: kotlin.String? = null
        /**
         * Request to describe Replication Configuration template by template IDs.
         */
        var replicationConfigurationTemplateIDs: List? = null

        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.mgn.model.DescribeReplicationConfigurationTemplatesRequest) : this() {
            this.maxResults = x.maxResults
            this.nextToken = x.nextToken
            this.replicationConfigurationTemplateIDs = x.replicationConfigurationTemplateIDs
        }

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy