
commonMain.aws.sdk.kotlin.services.codeguruprofiler.model.ConfigureAgentResponse.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.codeguruprofiler.model
/**
* The structure representing the configureAgentResponse.
*/
public class ConfigureAgentResponse private constructor(builder: Builder) {
/**
* An `AgentConfiguration`[](https://docs.aws.amazon.com/codeguru/latest/profiler-api/API_AgentConfiguration.html) object that specifies if an agent profiles or not and for how long to return profiling data.
*/
public val configuration: aws.sdk.kotlin.services.codeguruprofiler.model.AgentConfiguration? = builder.configuration
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.codeguruprofiler.model.ConfigureAgentResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("ConfigureAgentResponse(")
append("configuration=$configuration")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = configuration?.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 ConfigureAgentResponse
if (configuration != other.configuration) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.codeguruprofiler.model.ConfigureAgentResponse = Builder(this).apply(block).build()
public class Builder {
/**
* An `AgentConfiguration`[](https://docs.aws.amazon.com/codeguru/latest/profiler-api/API_AgentConfiguration.html) object that specifies if an agent profiles or not and for how long to return profiling data.
*/
public var configuration: aws.sdk.kotlin.services.codeguruprofiler.model.AgentConfiguration? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.codeguruprofiler.model.ConfigureAgentResponse) : this() {
this.configuration = x.configuration
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.codeguruprofiler.model.ConfigureAgentResponse = ConfigureAgentResponse(this)
/**
* construct an [aws.sdk.kotlin.services.codeguruprofiler.model.AgentConfiguration] inside the given [block]
*/
public fun configuration(block: aws.sdk.kotlin.services.codeguruprofiler.model.AgentConfiguration.Builder.() -> kotlin.Unit) {
this.configuration = aws.sdk.kotlin.services.codeguruprofiler.model.AgentConfiguration.invoke(block)
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy