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

commonMain.aws.sdk.kotlin.services.nimble.model.UpdateStudioComponentRequest.kt Maven / Gradle / Ivy

The newest version!
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!

package aws.sdk.kotlin.services.nimble.model

import aws.smithy.kotlin.runtime.SdkDsl

public class UpdateStudioComponentRequest private constructor(builder: Builder) {
    /**
     * Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If you don’t specify a client token, the Amazon Web Services SDK automatically generates a client token and uses it for the request to ensure idempotency.
     */
    public val clientToken: kotlin.String? = builder.clientToken
    /**
     * The configuration of the studio component, based on component type.
     */
    public val configuration: aws.sdk.kotlin.services.nimble.model.StudioComponentConfiguration? = builder.configuration
    /**
     * The description.
     */
    public val description: kotlin.String? = builder.description
    /**
     * The EC2 security groups that control access to the studio component.
     */
    public val ec2SecurityGroupIds: List? = builder.ec2SecurityGroupIds
    /**
     * Initialization scripts for studio components.
     */
    public val initializationScripts: List? = builder.initializationScripts
    /**
     * The name for the studio component.
     */
    public val name: kotlin.String? = builder.name
    /**
     * An IAM role attached to a Studio Component that gives the studio component access to Amazon Web Services resources at anytime while the instance is running.
     */
    public val runtimeRoleArn: kotlin.String? = builder.runtimeRoleArn
    /**
     * Parameters for the studio component scripts.
     */
    public val scriptParameters: List? = builder.scriptParameters
    /**
     * An IAM role attached to Studio Component when the system initialization script runs which give the studio component access to Amazon Web Services resources when the system initialization script runs.
     */
    public val secureInitializationRoleArn: kotlin.String? = builder.secureInitializationRoleArn
    /**
     * The studio component ID.
     */
    public val studioComponentId: kotlin.String? = builder.studioComponentId
    /**
     * The studio ID.
     */
    public val studioId: kotlin.String? = builder.studioId
    /**
     * The specific subtype of a studio component.
     */
    public val subtype: aws.sdk.kotlin.services.nimble.model.StudioComponentSubtype? = builder.subtype
    /**
     * The type of the studio component.
     */
    public val type: aws.sdk.kotlin.services.nimble.model.StudioComponentType? = builder.type

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

    override fun toString(): kotlin.String = buildString {
        append("UpdateStudioComponentRequest(")
        append("clientToken=$clientToken,")
        append("configuration=$configuration,")
        append("description=*** Sensitive Data Redacted ***,")
        append("ec2SecurityGroupIds=$ec2SecurityGroupIds,")
        append("initializationScripts=$initializationScripts,")
        append("name=*** Sensitive Data Redacted ***,")
        append("runtimeRoleArn=$runtimeRoleArn,")
        append("scriptParameters=*** Sensitive Data Redacted ***,")
        append("secureInitializationRoleArn=$secureInitializationRoleArn,")
        append("studioComponentId=$studioComponentId,")
        append("studioId=$studioId,")
        append("subtype=$subtype,")
        append("type=$type")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = clientToken?.hashCode() ?: 0
        result = 31 * result + (configuration?.hashCode() ?: 0)
        result = 31 * result + (description?.hashCode() ?: 0)
        result = 31 * result + (ec2SecurityGroupIds?.hashCode() ?: 0)
        result = 31 * result + (initializationScripts?.hashCode() ?: 0)
        result = 31 * result + (name?.hashCode() ?: 0)
        result = 31 * result + (runtimeRoleArn?.hashCode() ?: 0)
        result = 31 * result + (scriptParameters?.hashCode() ?: 0)
        result = 31 * result + (secureInitializationRoleArn?.hashCode() ?: 0)
        result = 31 * result + (studioComponentId?.hashCode() ?: 0)
        result = 31 * result + (studioId?.hashCode() ?: 0)
        result = 31 * result + (subtype?.hashCode() ?: 0)
        result = 31 * result + (type?.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 UpdateStudioComponentRequest

        if (clientToken != other.clientToken) return false
        if (configuration != other.configuration) return false
        if (description != other.description) return false
        if (ec2SecurityGroupIds != other.ec2SecurityGroupIds) return false
        if (initializationScripts != other.initializationScripts) return false
        if (name != other.name) return false
        if (runtimeRoleArn != other.runtimeRoleArn) return false
        if (scriptParameters != other.scriptParameters) return false
        if (secureInitializationRoleArn != other.secureInitializationRoleArn) return false
        if (studioComponentId != other.studioComponentId) return false
        if (studioId != other.studioId) return false
        if (subtype != other.subtype) return false
        if (type != other.type) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If you don’t specify a client token, the Amazon Web Services SDK automatically generates a client token and uses it for the request to ensure idempotency.
         */
        public var clientToken: kotlin.String? = null
        /**
         * The configuration of the studio component, based on component type.
         */
        public var configuration: aws.sdk.kotlin.services.nimble.model.StudioComponentConfiguration? = null
        /**
         * The description.
         */
        public var description: kotlin.String? = null
        /**
         * The EC2 security groups that control access to the studio component.
         */
        public var ec2SecurityGroupIds: List? = null
        /**
         * Initialization scripts for studio components.
         */
        public var initializationScripts: List? = null
        /**
         * The name for the studio component.
         */
        public var name: kotlin.String? = null
        /**
         * An IAM role attached to a Studio Component that gives the studio component access to Amazon Web Services resources at anytime while the instance is running.
         */
        public var runtimeRoleArn: kotlin.String? = null
        /**
         * Parameters for the studio component scripts.
         */
        public var scriptParameters: List? = null
        /**
         * An IAM role attached to Studio Component when the system initialization script runs which give the studio component access to Amazon Web Services resources when the system initialization script runs.
         */
        public var secureInitializationRoleArn: kotlin.String? = null
        /**
         * The studio component ID.
         */
        public var studioComponentId: kotlin.String? = null
        /**
         * The studio ID.
         */
        public var studioId: kotlin.String? = null
        /**
         * The specific subtype of a studio component.
         */
        public var subtype: aws.sdk.kotlin.services.nimble.model.StudioComponentSubtype? = null
        /**
         * The type of the studio component.
         */
        public var type: aws.sdk.kotlin.services.nimble.model.StudioComponentType? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.nimble.model.UpdateStudioComponentRequest) : this() {
            this.clientToken = x.clientToken
            this.configuration = x.configuration
            this.description = x.description
            this.ec2SecurityGroupIds = x.ec2SecurityGroupIds
            this.initializationScripts = x.initializationScripts
            this.name = x.name
            this.runtimeRoleArn = x.runtimeRoleArn
            this.scriptParameters = x.scriptParameters
            this.secureInitializationRoleArn = x.secureInitializationRoleArn
            this.studioComponentId = x.studioComponentId
            this.studioId = x.studioId
            this.subtype = x.subtype
            this.type = x.type
        }

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy