
commonMain.aws.sdk.kotlin.services.ssm.model.GetOpsSummaryRequest.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.ssm.model
public class GetOpsSummaryRequest private constructor(builder: Builder) {
/**
* Optional aggregators that return counts of OpsData based on one or more expressions.
*/
public val aggregators: List? = builder.aggregators
/**
* Optional filters used to scope down the returned OpsData.
*/
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
/**
* A token to start the list. Use this token to get the next set of results.
*/
public val nextToken: kotlin.String? = builder.nextToken
/**
* The OpsData data type to return.
*/
public val resultAttributes: List? = builder.resultAttributes
/**
* Specify the name of a resource data sync to get.
*/
public val syncName: kotlin.String? = builder.syncName
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.ssm.model.GetOpsSummaryRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("GetOpsSummaryRequest(")
append("aggregators=$aggregators,")
append("filters=$filters,")
append("maxResults=$maxResults,")
append("nextToken=$nextToken,")
append("resultAttributes=$resultAttributes,")
append("syncName=$syncName")
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)
result = 31 * result + (syncName?.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 GetOpsSummaryRequest
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
if (syncName != other.syncName) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.ssm.model.GetOpsSummaryRequest = Builder(this).apply(block).build()
public class Builder {
/**
* Optional aggregators that return counts of OpsData based on one or more expressions.
*/
public var aggregators: List? = null
/**
* Optional filters used to scope down the returned OpsData.
*/
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
/**
* A token to start the list. Use this token to get the next set of results.
*/
public var nextToken: kotlin.String? = null
/**
* The OpsData data type to return.
*/
public var resultAttributes: List? = null
/**
* Specify the name of a resource data sync to get.
*/
public var syncName: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.ssm.model.GetOpsSummaryRequest) : this() {
this.aggregators = x.aggregators
this.filters = x.filters
this.maxResults = x.maxResults
this.nextToken = x.nextToken
this.resultAttributes = x.resultAttributes
this.syncName = x.syncName
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.ssm.model.GetOpsSummaryRequest = GetOpsSummaryRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy