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

commonMain.aws.sdk.kotlin.services.codeguruprofiler.model.UpdateProfilingGroupRequest.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.codeguruprofiler.model



/**
 * The structure representing the updateProfilingGroupRequest.
 */
public class UpdateProfilingGroupRequest private constructor(builder: Builder) {
    /**
     * Specifies whether profiling is enabled or disabled for a profiling group.
     */
    public val agentOrchestrationConfig: aws.sdk.kotlin.services.codeguruprofiler.model.AgentOrchestrationConfig? = builder.agentOrchestrationConfig
    /**
     * The name of the profiling group to update.
     */
    public val profilingGroupName: kotlin.String? = requireNotNull(builder.profilingGroupName) { "A non-null value must be provided for profilingGroupName" }

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

    override fun toString(): kotlin.String = buildString {
        append("UpdateProfilingGroupRequest(")
        append("agentOrchestrationConfig=$agentOrchestrationConfig,")
        append("profilingGroupName=$profilingGroupName")
        append(")")
    }

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

        if (agentOrchestrationConfig != other.agentOrchestrationConfig) return false
        if (profilingGroupName != other.profilingGroupName) return false

        return true
    }

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

    public class Builder {
        /**
         * Specifies whether profiling is enabled or disabled for a profiling group.
         */
        public var agentOrchestrationConfig: aws.sdk.kotlin.services.codeguruprofiler.model.AgentOrchestrationConfig? = null
        /**
         * The name of the profiling group to update.
         */
        public var profilingGroupName: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.codeguruprofiler.model.UpdateProfilingGroupRequest) : this() {
            this.agentOrchestrationConfig = x.agentOrchestrationConfig
            this.profilingGroupName = x.profilingGroupName
        }

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy