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

commonMain.aws.sdk.kotlin.services.greengrass.model.LocalVolumeResourceData.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.greengrass.model



/**
 * Attributes that define a local volume resource.
 */
public class LocalVolumeResourceData private constructor(builder: Builder) {
    /**
     * The absolute local path of the resource inside the Lambda environment.
     */
    public val destinationPath: kotlin.String? = builder.destinationPath
    /**
     * Allows you to configure additional group privileges for the Lambda process. This field is optional.
     */
    public val groupOwnerSetting: aws.sdk.kotlin.services.greengrass.model.GroupOwnerSetting? = builder.groupOwnerSetting
    /**
     * The local absolute path of the volume resource on the host. The source path for a volume resource type cannot start with ''/sys''.
     */
    public val sourcePath: kotlin.String? = builder.sourcePath

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

    override fun toString(): kotlin.String = buildString {
        append("LocalVolumeResourceData(")
        append("destinationPath=$destinationPath,")
        append("groupOwnerSetting=$groupOwnerSetting,")
        append("sourcePath=$sourcePath")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = destinationPath?.hashCode() ?: 0
        result = 31 * result + (groupOwnerSetting?.hashCode() ?: 0)
        result = 31 * result + (sourcePath?.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 LocalVolumeResourceData

        if (destinationPath != other.destinationPath) return false
        if (groupOwnerSetting != other.groupOwnerSetting) return false
        if (sourcePath != other.sourcePath) return false

        return true
    }

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

    public class Builder {
        /**
         * The absolute local path of the resource inside the Lambda environment.
         */
        public var destinationPath: kotlin.String? = null
        /**
         * Allows you to configure additional group privileges for the Lambda process. This field is optional.
         */
        public var groupOwnerSetting: aws.sdk.kotlin.services.greengrass.model.GroupOwnerSetting? = null
        /**
         * The local absolute path of the volume resource on the host. The source path for a volume resource type cannot start with ''/sys''.
         */
        public var sourcePath: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.greengrass.model.LocalVolumeResourceData) : this() {
            this.destinationPath = x.destinationPath
            this.groupOwnerSetting = x.groupOwnerSetting
            this.sourcePath = x.sourcePath
        }

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

        /**
         * construct an [aws.sdk.kotlin.services.greengrass.model.GroupOwnerSetting] inside the given [block]
         */
        public fun groupOwnerSetting(block: aws.sdk.kotlin.services.greengrass.model.GroupOwnerSetting.Builder.() -> kotlin.Unit) {
            this.groupOwnerSetting = aws.sdk.kotlin.services.greengrass.model.GroupOwnerSetting.invoke(block)
        }

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy