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

commonMain.aws.sdk.kotlin.services.migrationhubconfig.model.DescribeHomeRegionControlsRequest.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.migrationhubconfig.model

import aws.smithy.kotlin.runtime.SdkDsl

public class DescribeHomeRegionControlsRequest private constructor(builder: Builder) {
    /**
     * The `ControlID` is a unique identifier string of your `HomeRegionControl` object.
     */
    public val controlId: kotlin.String? = builder.controlId
    /**
     * The name of the home region you'd like to view.
     */
    public val homeRegion: kotlin.String? = builder.homeRegion
    /**
     * The maximum number of filtering results to display per page.
     */
    public val maxResults: kotlin.Int? = builder.maxResults
    /**
     * If a `NextToken` was returned by a previous call, more results are available. To retrieve the next page of results, make the call again using the returned token in `NextToken`.
     */
    public val nextToken: kotlin.String? = builder.nextToken
    /**
     * The target parameter specifies the identifier to which the home region is applied, which is always of type `ACCOUNT`. It applies the home region to the current `ACCOUNT`.
     */
    public val target: aws.sdk.kotlin.services.migrationhubconfig.model.Target? = builder.target

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

    override fun toString(): kotlin.String = buildString {
        append("DescribeHomeRegionControlsRequest(")
        append("controlId=$controlId,")
        append("homeRegion=$homeRegion,")
        append("maxResults=$maxResults,")
        append("nextToken=$nextToken,")
        append("target=$target")
        append(")")
    }

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

        if (controlId != other.controlId) return false
        if (homeRegion != other.homeRegion) return false
        if (maxResults != other.maxResults) return false
        if (nextToken != other.nextToken) return false
        if (target != other.target) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * The `ControlID` is a unique identifier string of your `HomeRegionControl` object.
         */
        public var controlId: kotlin.String? = null
        /**
         * The name of the home region you'd like to view.
         */
        public var homeRegion: kotlin.String? = null
        /**
         * The maximum number of filtering results to display per page.
         */
        public var maxResults: kotlin.Int? = null
        /**
         * If a `NextToken` was returned by a previous call, more results are available. To retrieve the next page of results, make the call again using the returned token in `NextToken`.
         */
        public var nextToken: kotlin.String? = null
        /**
         * The target parameter specifies the identifier to which the home region is applied, which is always of type `ACCOUNT`. It applies the home region to the current `ACCOUNT`.
         */
        public var target: aws.sdk.kotlin.services.migrationhubconfig.model.Target? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.migrationhubconfig.model.DescribeHomeRegionControlsRequest) : this() {
            this.controlId = x.controlId
            this.homeRegion = x.homeRegion
            this.maxResults = x.maxResults
            this.nextToken = x.nextToken
            this.target = x.target
        }

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

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy