commonMain.aws.sdk.kotlin.services.applicationdiscoveryservice.model.DescribeAgentsRequest.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
public class DescribeAgentsRequest private constructor(builder: Builder) {
/**
* The agent or the collector IDs for which you want information. If you specify no IDs, the system returns information about all agents/collectors associated with your user.
*/
public val agentIds: List? = builder.agentIds
/**
* You can filter the request using various logical operators and a *key*-*value* format. For example:
*
* `{"key": "collectionStatus", "value": "STARTED"}`
*/
public val filters: List? = builder.filters
/**
* The total number of agents/collectors to return in a single page of output. The maximum value is 100.
*/
public val maxResults: kotlin.Int? = builder.maxResults
/**
* Token to retrieve the next set of results. For example, if you previously specified 100 IDs for `DescribeAgentsRequest$agentIds` but set `DescribeAgentsRequest$maxResults` to 10, you received a set of 10 results along with a token. Use that token in this query to get the next set of 10.
*/
public val nextToken: kotlin.String? = builder.nextToken
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.applicationdiscoveryservice.model.DescribeAgentsRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("DescribeAgentsRequest(")
append("agentIds=$agentIds,")
append("filters=$filters,")
append("maxResults=$maxResults,")
append("nextToken=$nextToken")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = agentIds?.hashCode() ?: 0
result = 31 * result + (filters?.hashCode() ?: 0)
result = 31 * result + (maxResults ?: 0)
result = 31 * result + (nextToken?.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 DescribeAgentsRequest
if (agentIds != other.agentIds) return false
if (filters != other.filters) return false
if (maxResults != other.maxResults) return false
if (nextToken != other.nextToken) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.applicationdiscoveryservice.model.DescribeAgentsRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The agent or the collector IDs for which you want information. If you specify no IDs, the system returns information about all agents/collectors associated with your user.
*/
public var agentIds: List? = null
/**
* You can filter the request using various logical operators and a *key*-*value* format. For example:
*
* `{"key": "collectionStatus", "value": "STARTED"}`
*/
public var filters: List? = null
/**
* The total number of agents/collectors to return in a single page of output. The maximum value is 100.
*/
public var maxResults: kotlin.Int? = null
/**
* Token to retrieve the next set of results. For example, if you previously specified 100 IDs for `DescribeAgentsRequest$agentIds` but set `DescribeAgentsRequest$maxResults` to 10, you received a set of 10 results along with a token. Use that token in this query to get the next set of 10.
*/
public var nextToken: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.applicationdiscoveryservice.model.DescribeAgentsRequest) : this() {
this.agentIds = x.agentIds
this.filters = x.filters
this.maxResults = x.maxResults
this.nextToken = x.nextToken
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.applicationdiscoveryservice.model.DescribeAgentsRequest = DescribeAgentsRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}