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

commonMain.aws.sdk.kotlin.services.deadline.model.UpdateStorageProfileRequest.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 UpdateStorageProfileRequest 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 display name of the storage profile 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 file system location names to add.
     */
    public val fileSystemLocationsToAdd: List? = builder.fileSystemLocationsToAdd
    /**
     * The file system location names to remove.
     */
    public val fileSystemLocationsToRemove: List? = builder.fileSystemLocationsToRemove
    /**
     * The OS system to update.
     */
    public val osFamily: aws.sdk.kotlin.services.deadline.model.StorageProfileOperatingSystemFamily? = builder.osFamily
    /**
     * The storage profile ID to update.
     */
    public val storageProfileId: kotlin.String? = builder.storageProfileId

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

    override fun toString(): kotlin.String = buildString {
        append("UpdateStorageProfileRequest(")
        append("clientToken=$clientToken,")
        append("displayName=$displayName,")
        append("farmId=$farmId,")
        append("fileSystemLocationsToAdd=*** Sensitive Data Redacted ***,")
        append("fileSystemLocationsToRemove=*** Sensitive Data Redacted ***,")
        append("osFamily=$osFamily,")
        append("storageProfileId=$storageProfileId")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = clientToken?.hashCode() ?: 0
        result = 31 * result + (displayName?.hashCode() ?: 0)
        result = 31 * result + (farmId?.hashCode() ?: 0)
        result = 31 * result + (fileSystemLocationsToAdd?.hashCode() ?: 0)
        result = 31 * result + (fileSystemLocationsToRemove?.hashCode() ?: 0)
        result = 31 * result + (osFamily?.hashCode() ?: 0)
        result = 31 * result + (storageProfileId?.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 UpdateStorageProfileRequest

        if (clientToken != other.clientToken) return false
        if (displayName != other.displayName) return false
        if (farmId != other.farmId) return false
        if (fileSystemLocationsToAdd != other.fileSystemLocationsToAdd) return false
        if (fileSystemLocationsToRemove != other.fileSystemLocationsToRemove) return false
        if (osFamily != other.osFamily) return false
        if (storageProfileId != other.storageProfileId) return false

        return true
    }

    public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.deadline.model.UpdateStorageProfileRequest = 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 display name of the storage profile 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 file system location names to add.
         */
        public var fileSystemLocationsToAdd: List? = null
        /**
         * The file system location names to remove.
         */
        public var fileSystemLocationsToRemove: List? = null
        /**
         * The OS system to update.
         */
        public var osFamily: aws.sdk.kotlin.services.deadline.model.StorageProfileOperatingSystemFamily? = null
        /**
         * The storage profile ID to update.
         */
        public var storageProfileId: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.deadline.model.UpdateStorageProfileRequest) : this() {
            this.clientToken = x.clientToken
            this.displayName = x.displayName
            this.farmId = x.farmId
            this.fileSystemLocationsToAdd = x.fileSystemLocationsToAdd
            this.fileSystemLocationsToRemove = x.fileSystemLocationsToRemove
            this.osFamily = x.osFamily
            this.storageProfileId = x.storageProfileId
        }

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy