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

aws.sdk.kotlin.services.sagemaker.model.UpdateImageRequest.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.sagemaker.model



class UpdateImageRequest private constructor(builder: BuilderImpl) {
    /**
     * A list of properties to delete. Only the Description and
     * DisplayName properties can be deleted.
     */
    val deleteProperties: List? = builder.deleteProperties
    /**
     * The new description for the image.
     */
    val description: String? = builder.description
    /**
     * The new display name for the image.
     */
    val displayName: String? = builder.displayName
    /**
     * The name of the image to update.
     */
    val imageName: String? = builder.imageName
    /**
     * The new Amazon Resource Name (ARN) for the IAM role that enables Amazon SageMaker to perform tasks on your behalf.
     */
    val roleArn: String? = builder.roleArn

    companion object {
        @JvmStatic
        fun fluentBuilder(): FluentBuilder = BuilderImpl()

        internal fun builder(): DslBuilder = BuilderImpl()

        operator fun invoke(block: DslBuilder.() -> kotlin.Unit): UpdateImageRequest = BuilderImpl().apply(block).build()

    }

    override fun toString(): kotlin.String = buildString {
        append("UpdateImageRequest(")
        append("deleteProperties=$deleteProperties,")
        append("description=$description,")
        append("displayName=$displayName,")
        append("imageName=$imageName,")
        append("roleArn=$roleArn)")
    }

    override fun hashCode(): kotlin.Int {
        var result = deleteProperties?.hashCode() ?: 0
        result = 31 * result + (description?.hashCode() ?: 0)
        result = 31 * result + (displayName?.hashCode() ?: 0)
        result = 31 * result + (imageName?.hashCode() ?: 0)
        result = 31 * result + (roleArn?.hashCode() ?: 0)
        return result
    }

    override fun equals(other: kotlin.Any?): kotlin.Boolean {
        if (this === other) return true
        if (javaClass != other?.javaClass) return false

        other as UpdateImageRequest

        if (deleteProperties != other.deleteProperties) return false
        if (description != other.description) return false
        if (displayName != other.displayName) return false
        if (imageName != other.imageName) return false
        if (roleArn != other.roleArn) return false

        return true
    }

    fun copy(block: DslBuilder.() -> kotlin.Unit = {}): UpdateImageRequest = BuilderImpl(this).apply(block).build()

    interface FluentBuilder {
        fun build(): UpdateImageRequest
        /**
         * A list of properties to delete. Only the Description and
         * DisplayName properties can be deleted.
         */
        fun deleteProperties(deleteProperties: List): FluentBuilder
        /**
         * The new description for the image.
         */
        fun description(description: String): FluentBuilder
        /**
         * The new display name for the image.
         */
        fun displayName(displayName: String): FluentBuilder
        /**
         * The name of the image to update.
         */
        fun imageName(imageName: String): FluentBuilder
        /**
         * The new Amazon Resource Name (ARN) for the IAM role that enables Amazon SageMaker to perform tasks on your behalf.
         */
        fun roleArn(roleArn: String): FluentBuilder
    }

    interface DslBuilder {
        /**
         * A list of properties to delete. Only the Description and
         * DisplayName properties can be deleted.
         */
        var deleteProperties: List?
        /**
         * The new description for the image.
         */
        var description: String?
        /**
         * The new display name for the image.
         */
        var displayName: String?
        /**
         * The name of the image to update.
         */
        var imageName: String?
        /**
         * The new Amazon Resource Name (ARN) for the IAM role that enables Amazon SageMaker to perform tasks on your behalf.
         */
        var roleArn: String?

        fun build(): UpdateImageRequest
    }

    private class BuilderImpl() : FluentBuilder, DslBuilder {
        override var deleteProperties: List? = null
        override var description: String? = null
        override var displayName: String? = null
        override var imageName: String? = null
        override var roleArn: String? = null

        constructor(x: UpdateImageRequest) : this() {
            this.deleteProperties = x.deleteProperties
            this.description = x.description
            this.displayName = x.displayName
            this.imageName = x.imageName
            this.roleArn = x.roleArn
        }

        override fun build(): UpdateImageRequest = UpdateImageRequest(this)
        override fun deleteProperties(deleteProperties: List): FluentBuilder = apply { this.deleteProperties = deleteProperties }
        override fun description(description: String): FluentBuilder = apply { this.description = description }
        override fun displayName(displayName: String): FluentBuilder = apply { this.displayName = displayName }
        override fun imageName(imageName: String): FluentBuilder = apply { this.imageName = imageName }
        override fun roleArn(roleArn: String): FluentBuilder = apply { this.roleArn = roleArn }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy