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

commonMain.aws.sdk.kotlin.services.datasync.model.GenerateRecommendationsRequest.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.datasync.model

import aws.smithy.kotlin.runtime.SdkDsl

public class GenerateRecommendationsRequest private constructor(builder: Builder) {
    /**
     * Specifies the Amazon Resource Name (ARN) of the discovery job that collects information about your on-premises storage system.
     */
    public val discoveryJobArn: kotlin.String? = builder.discoveryJobArn
    /**
     * Specifies the universally unique identifiers (UUIDs) of the resources in your storage system that you want recommendations on.
     */
    public val resourceIds: List? = builder.resourceIds
    /**
     * Specifies the type of resource in your storage system that you want recommendations on.
     */
    public val resourceType: aws.sdk.kotlin.services.datasync.model.DiscoveryResourceType? = builder.resourceType

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

    override fun toString(): kotlin.String = buildString {
        append("GenerateRecommendationsRequest(")
        append("discoveryJobArn=$discoveryJobArn,")
        append("resourceIds=$resourceIds,")
        append("resourceType=$resourceType")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = discoveryJobArn?.hashCode() ?: 0
        result = 31 * result + (resourceIds?.hashCode() ?: 0)
        result = 31 * result + (resourceType?.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 GenerateRecommendationsRequest

        if (discoveryJobArn != other.discoveryJobArn) return false
        if (resourceIds != other.resourceIds) return false
        if (resourceType != other.resourceType) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * Specifies the Amazon Resource Name (ARN) of the discovery job that collects information about your on-premises storage system.
         */
        public var discoveryJobArn: kotlin.String? = null
        /**
         * Specifies the universally unique identifiers (UUIDs) of the resources in your storage system that you want recommendations on.
         */
        public var resourceIds: List? = null
        /**
         * Specifies the type of resource in your storage system that you want recommendations on.
         */
        public var resourceType: aws.sdk.kotlin.services.datasync.model.DiscoveryResourceType? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.datasync.model.GenerateRecommendationsRequest) : this() {
            this.discoveryJobArn = x.discoveryJobArn
            this.resourceIds = x.resourceIds
            this.resourceType = x.resourceType
        }

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy