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

commonMain.aws.sdk.kotlin.services.nimble.model.CreateStudioComponentRequest.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 CreateStudioComponentRequest 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 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
    /**
     * A collection of labels, in the form of key-value pairs, that apply to this resource.
     */
    public val tags: Map? = builder.tags
    /**
     * 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.CreateStudioComponentRequest = Builder().apply(block).build()
    }

    override fun toString(): kotlin.String = buildString {
        append("CreateStudioComponentRequest(")
        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("studioId=$studioId,")
        append("subtype=$subtype,")
        append("tags=$tags,")
        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 + (studioId?.hashCode() ?: 0)
        result = 31 * result + (subtype?.hashCode() ?: 0)
        result = 31 * result + (tags?.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 CreateStudioComponentRequest

        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 (studioId != other.studioId) return false
        if (subtype != other.subtype) return false
        if (tags != other.tags) return false
        if (type != other.type) return false

        return true
    }

    public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.nimble.model.CreateStudioComponentRequest = 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 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
        /**
         * A collection of labels, in the form of key-value pairs, that apply to this resource.
         */
        public var tags: Map? = 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.CreateStudioComponentRequest) : 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.studioId = x.studioId
            this.subtype = x.subtype
            this.tags = x.tags
            this.type = x.type
        }

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy