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

commonMain.aws.sdk.kotlin.services.gamelift.model.DescribeFleetLocationAttributesRequest.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.gamelift.model



public class DescribeFleetLocationAttributesRequest private constructor(builder: Builder) {
    /**
     * A unique identifier for the fleet to retrieve remote locations for. You can use either the fleet ID or ARN value.
     */
    public val fleetId: kotlin.String? = builder.fleetId
    /**
     * The maximum number of results to return. Use this parameter with `NextToken` to get results as a set of sequential pages. This limit is not currently enforced.
     */
    public val limit: kotlin.Int? = builder.limit
    /**
     * A list of fleet locations to retrieve information for. Specify locations in the form of an Amazon Web Services Region code, such as `us-west-2`.
     */
    public val locations: List? = builder.locations
    /**
     * A token that indicates the start of the next sequential page of results. Use the token that is returned with a previous call to this operation. To start at the beginning of the result set, do not specify a value.
     */
    public val nextToken: kotlin.String? = builder.nextToken

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

    override fun toString(): kotlin.String = buildString {
        append("DescribeFleetLocationAttributesRequest(")
        append("fleetId=$fleetId,")
        append("limit=$limit,")
        append("locations=$locations,")
        append("nextToken=$nextToken")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = fleetId?.hashCode() ?: 0
        result = 31 * result + (limit ?: 0)
        result = 31 * result + (locations?.hashCode() ?: 0)
        result = 31 * result + (nextToken?.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 DescribeFleetLocationAttributesRequest

        if (fleetId != other.fleetId) return false
        if (limit != other.limit) return false
        if (locations != other.locations) return false
        if (nextToken != other.nextToken) return false

        return true
    }

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

    public class Builder {
        /**
         * A unique identifier for the fleet to retrieve remote locations for. You can use either the fleet ID or ARN value.
         */
        public var fleetId: kotlin.String? = null
        /**
         * The maximum number of results to return. Use this parameter with `NextToken` to get results as a set of sequential pages. This limit is not currently enforced.
         */
        public var limit: kotlin.Int? = null
        /**
         * A list of fleet locations to retrieve information for. Specify locations in the form of an Amazon Web Services Region code, such as `us-west-2`.
         */
        public var locations: List? = null
        /**
         * A token that indicates the start of the next sequential page of results. Use the token that is returned with a previous call to this operation. To start at the beginning of the result set, do not specify a value.
         */
        public var nextToken: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.gamelift.model.DescribeFleetLocationAttributesRequest) : this() {
            this.fleetId = x.fleetId
            this.limit = x.limit
            this.locations = x.locations
            this.nextToken = x.nextToken
        }

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy