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

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



/**
 * Group owner related settings for local resources.
 */
public class GroupOwnerSetting private constructor(builder: Builder) {
    /**
     * If true, AWS IoT Greengrass automatically adds the specified Linux OS group owner of the resource to the Lambda process privileges. Thus the Lambda process will have the file access permissions of the added Linux group.
     */
    public val autoAddGroupOwner: kotlin.Boolean? = builder.autoAddGroupOwner
    /**
     * The name of the Linux OS group whose privileges will be added to the Lambda process. This field is optional.
     */
    public val groupOwner: kotlin.String? = builder.groupOwner

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

    override fun toString(): kotlin.String = buildString {
        append("GroupOwnerSetting(")
        append("autoAddGroupOwner=$autoAddGroupOwner,")
        append("groupOwner=$groupOwner")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = autoAddGroupOwner?.hashCode() ?: 0
        result = 31 * result + (groupOwner?.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 GroupOwnerSetting

        if (autoAddGroupOwner != other.autoAddGroupOwner) return false
        if (groupOwner != other.groupOwner) return false

        return true
    }

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

    public class Builder {
        /**
         * If true, AWS IoT Greengrass automatically adds the specified Linux OS group owner of the resource to the Lambda process privileges. Thus the Lambda process will have the file access permissions of the added Linux group.
         */
        public var autoAddGroupOwner: kotlin.Boolean? = null
        /**
         * The name of the Linux OS group whose privileges will be added to the Lambda process. This field is optional.
         */
        public var groupOwner: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.greengrass.model.GroupOwnerSetting) : this() {
            this.autoAddGroupOwner = x.autoAddGroupOwner
            this.groupOwner = x.groupOwner
        }

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy