
commonMain.aws.sdk.kotlin.services.ssm.model.GetInventoryRequest.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.ssm.model
import aws.smithy.kotlin.runtime.SdkDsl
public class GetInventoryRequest private constructor(builder: Builder) {
/**
* Returns counts of inventory types based on one or more expressions. For example, if you aggregate by using an expression that uses the `AWS:InstanceInformation.PlatformType` type, you can see a count of how many Windows and Linux managed nodes exist in your inventoried fleet.
*/
public val aggregators: List? = builder.aggregators
/**
* One or more filters. Use a filter to return a more specific list of results.
*/
public val filters: List? = builder.filters
/**
* The maximum number of items to return for this call. The call also returns a token that you can specify in a subsequent call to get the next set of results.
*/
public val maxResults: kotlin.Int? = builder.maxResults
/**
* The token for the next set of items to return. (You received this token from a previous call.)
*/
public val nextToken: kotlin.String? = builder.nextToken
/**
* The list of inventory item types to return.
*/
public val resultAttributes: List? = builder.resultAttributes
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.ssm.model.GetInventoryRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("GetInventoryRequest(")
append("aggregators=$aggregators,")
append("filters=$filters,")
append("maxResults=$maxResults,")
append("nextToken=$nextToken,")
append("resultAttributes=$resultAttributes")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = aggregators?.hashCode() ?: 0
result = 31 * result + (filters?.hashCode() ?: 0)
result = 31 * result + (maxResults ?: 0)
result = 31 * result + (nextToken?.hashCode() ?: 0)
result = 31 * result + (resultAttributes?.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 GetInventoryRequest
if (aggregators != other.aggregators) return false
if (filters != other.filters) return false
if (maxResults != other.maxResults) return false
if (nextToken != other.nextToken) return false
if (resultAttributes != other.resultAttributes) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.ssm.model.GetInventoryRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* Returns counts of inventory types based on one or more expressions. For example, if you aggregate by using an expression that uses the `AWS:InstanceInformation.PlatformType` type, you can see a count of how many Windows and Linux managed nodes exist in your inventoried fleet.
*/
public var aggregators: List? = null
/**
* One or more filters. Use a filter to return a more specific list of results.
*/
public var filters: List? = null
/**
* The maximum number of items to return for this call. The call also returns a token that you can specify in a subsequent call to get the next set of results.
*/
public var maxResults: kotlin.Int? = null
/**
* The token for the next set of items to return. (You received this token from a previous call.)
*/
public var nextToken: kotlin.String? = null
/**
* The list of inventory item types to return.
*/
public var resultAttributes: List? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.ssm.model.GetInventoryRequest) : this() {
this.aggregators = x.aggregators
this.filters = x.filters
this.maxResults = x.maxResults
this.nextToken = x.nextToken
this.resultAttributes = x.resultAttributes
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.ssm.model.GetInventoryRequest = GetInventoryRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy