commonMain.aws.sdk.kotlin.services.applicationdiscoveryservice.model.AgentConfigurationStatus.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of applicationdiscoveryservice-jvm Show documentation
Show all versions of applicationdiscoveryservice-jvm Show documentation
The AWS SDK for Kotlin client for Application Discovery Service
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.applicationdiscoveryservice.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* Information about agents that were instructed to start collecting data. Information includes the agent ID, a description of the operation, and whether the agent configuration was updated.
*/
public class AgentConfigurationStatus private constructor(builder: Builder) {
/**
* The agent ID.
*/
public val agentId: kotlin.String? = builder.agentId
/**
* A description of the operation performed.
*/
public val description: kotlin.String? = builder.description
/**
* Information about the status of the `StartDataCollection` and `StopDataCollection` operations. The system has recorded the data collection operation. The agent receives this command the next time it polls for a new command.
*/
public val operationSucceeded: kotlin.Boolean = builder.operationSucceeded
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.applicationdiscoveryservice.model.AgentConfigurationStatus = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("AgentConfigurationStatus(")
append("agentId=$agentId,")
append("description=$description,")
append("operationSucceeded=$operationSucceeded")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = agentId?.hashCode() ?: 0
result = 31 * result + (description?.hashCode() ?: 0)
result = 31 * result + (operationSucceeded.hashCode())
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 AgentConfigurationStatus
if (agentId != other.agentId) return false
if (description != other.description) return false
if (operationSucceeded != other.operationSucceeded) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.applicationdiscoveryservice.model.AgentConfigurationStatus = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The agent ID.
*/
public var agentId: kotlin.String? = null
/**
* A description of the operation performed.
*/
public var description: kotlin.String? = null
/**
* Information about the status of the `StartDataCollection` and `StopDataCollection` operations. The system has recorded the data collection operation. The agent receives this command the next time it polls for a new command.
*/
public var operationSucceeded: kotlin.Boolean = false
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.applicationdiscoveryservice.model.AgentConfigurationStatus) : this() {
this.agentId = x.agentId
this.description = x.description
this.operationSucceeded = x.operationSucceeded
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.applicationdiscoveryservice.model.AgentConfigurationStatus = AgentConfigurationStatus(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy