
commonMain.aws.sdk.kotlin.services.ssm.model.DescribeInstancePatchStatesForPatchGroupRequest.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.ssm.model
public class DescribeInstancePatchStatesForPatchGroupRequest private constructor(builder: Builder) {
/**
* Each entry in the array is a structure containing:
* + Key (string between 1 and 200 characters)
* + Values (array containing a single string)
* + Type (string "Equal", "NotEqual", "LessThan", "GreaterThan")
*/
public val filters: List? = builder.filters
/**
* The maximum number of patches to return (per page).
*/
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 name of the patch group for which the patch state information should be retrieved.
*/
public val patchGroup: kotlin.String? = builder.patchGroup
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.ssm.model.DescribeInstancePatchStatesForPatchGroupRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("DescribeInstancePatchStatesForPatchGroupRequest(")
append("filters=$filters,")
append("maxResults=$maxResults,")
append("nextToken=$nextToken,")
append("patchGroup=$patchGroup")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = filters?.hashCode() ?: 0
result = 31 * result + (maxResults ?: 0)
result = 31 * result + (nextToken?.hashCode() ?: 0)
result = 31 * result + (patchGroup?.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 DescribeInstancePatchStatesForPatchGroupRequest
if (filters != other.filters) return false
if (maxResults != other.maxResults) return false
if (nextToken != other.nextToken) return false
if (patchGroup != other.patchGroup) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.ssm.model.DescribeInstancePatchStatesForPatchGroupRequest = Builder(this).apply(block).build()
public class Builder {
/**
* Each entry in the array is a structure containing:
* + Key (string between 1 and 200 characters)
* + Values (array containing a single string)
* + Type (string "Equal", "NotEqual", "LessThan", "GreaterThan")
*/
public var filters: List? = null
/**
* The maximum number of patches to return (per page).
*/
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 name of the patch group for which the patch state information should be retrieved.
*/
public var patchGroup: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.ssm.model.DescribeInstancePatchStatesForPatchGroupRequest) : this() {
this.filters = x.filters
this.maxResults = x.maxResults
this.nextToken = x.nextToken
this.patchGroup = x.patchGroup
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.ssm.model.DescribeInstancePatchStatesForPatchGroupRequest = DescribeInstancePatchStatesForPatchGroupRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy