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

commonMain.aws.sdk.kotlin.services.deadline.model.UpdateFleetRequest.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.deadline.model

import aws.smithy.kotlin.runtime.SdkDsl

public class UpdateFleetRequest private constructor(builder: Builder) {
    /**
     * The unique token which the server uses to recognize retries of the same request.
     */
    public val clientToken: kotlin.String? = builder.clientToken
    /**
     * The fleet configuration to update.
     */
    public val configuration: aws.sdk.kotlin.services.deadline.model.FleetConfiguration? = builder.configuration
    /**
     * The description of the fleet to update.
     *
     * This field can store any content. Escape or encode this content before displaying it on a webpage or any other system that might interpret the content of this field.
     */
    public val description: kotlin.String? = builder.description
    /**
     * The display name of the fleet to update.
     *
     * This field can store any content. Escape or encode this content before displaying it on a webpage or any other system that might interpret the content of this field.
     */
    public val displayName: kotlin.String? = builder.displayName
    /**
     * The farm ID to update.
     */
    public val farmId: kotlin.String? = builder.farmId
    /**
     * The fleet ID to update.
     */
    public val fleetId: kotlin.String? = builder.fleetId
    /**
     * The maximum number of workers in the fleet.
     */
    public val maxWorkerCount: kotlin.Int? = builder.maxWorkerCount
    /**
     * The minimum number of workers in the fleet.
     */
    public val minWorkerCount: kotlin.Int? = builder.minWorkerCount
    /**
     * The IAM role ARN that the fleet's workers assume while running jobs.
     */
    public val roleArn: kotlin.String? = builder.roleArn

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

    override fun toString(): kotlin.String = buildString {
        append("UpdateFleetRequest(")
        append("clientToken=$clientToken,")
        append("configuration=$configuration,")
        append("description=*** Sensitive Data Redacted ***,")
        append("displayName=$displayName,")
        append("farmId=$farmId,")
        append("fleetId=$fleetId,")
        append("maxWorkerCount=$maxWorkerCount,")
        append("minWorkerCount=$minWorkerCount,")
        append("roleArn=$roleArn")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = clientToken?.hashCode() ?: 0
        result = 31 * result + (configuration?.hashCode() ?: 0)
        result = 31 * result + (description?.hashCode() ?: 0)
        result = 31 * result + (displayName?.hashCode() ?: 0)
        result = 31 * result + (farmId?.hashCode() ?: 0)
        result = 31 * result + (fleetId?.hashCode() ?: 0)
        result = 31 * result + (maxWorkerCount ?: 0)
        result = 31 * result + (minWorkerCount ?: 0)
        result = 31 * result + (roleArn?.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 UpdateFleetRequest

        if (clientToken != other.clientToken) return false
        if (configuration != other.configuration) return false
        if (description != other.description) return false
        if (displayName != other.displayName) return false
        if (farmId != other.farmId) return false
        if (fleetId != other.fleetId) return false
        if (maxWorkerCount != other.maxWorkerCount) return false
        if (minWorkerCount != other.minWorkerCount) return false
        if (roleArn != other.roleArn) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * The unique token which the server uses to recognize retries of the same request.
         */
        public var clientToken: kotlin.String? = null
        /**
         * The fleet configuration to update.
         */
        public var configuration: aws.sdk.kotlin.services.deadline.model.FleetConfiguration? = null
        /**
         * The description of the fleet to update.
         *
         * This field can store any content. Escape or encode this content before displaying it on a webpage or any other system that might interpret the content of this field.
         */
        public var description: kotlin.String? = null
        /**
         * The display name of the fleet to update.
         *
         * This field can store any content. Escape or encode this content before displaying it on a webpage or any other system that might interpret the content of this field.
         */
        public var displayName: kotlin.String? = null
        /**
         * The farm ID to update.
         */
        public var farmId: kotlin.String? = null
        /**
         * The fleet ID to update.
         */
        public var fleetId: kotlin.String? = null
        /**
         * The maximum number of workers in the fleet.
         */
        public var maxWorkerCount: kotlin.Int? = null
        /**
         * The minimum number of workers in the fleet.
         */
        public var minWorkerCount: kotlin.Int? = null
        /**
         * The IAM role ARN that the fleet's workers assume while running jobs.
         */
        public var roleArn: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.deadline.model.UpdateFleetRequest) : this() {
            this.clientToken = x.clientToken
            this.configuration = x.configuration
            this.description = x.description
            this.displayName = x.displayName
            this.farmId = x.farmId
            this.fleetId = x.fleetId
            this.maxWorkerCount = x.maxWorkerCount
            this.minWorkerCount = x.minWorkerCount
            this.roleArn = x.roleArn
        }

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy