
commonMain.aws.sdk.kotlin.services.ssm.model.DescribePatchBaselinesRequest.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 DescribePatchBaselinesRequest private constructor(builder: Builder) {
/**
* Each element in the array is a structure containing a key-value pair.
*
* Supported keys for `DescribePatchBaselines` include the following:
* + **`NAME_PREFIX`**Sample values: `AWS-` | `My-`
* + **`OWNER`**Sample values: `AWS` | `Self`
* + **`OPERATING_SYSTEM`**Sample values: `AMAZON_LINUX` | `SUSE` | `WINDOWS`
*/
public val filters: List? = builder.filters
/**
* The maximum number of patch baselines 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
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.ssm.model.DescribePatchBaselinesRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("DescribePatchBaselinesRequest(")
append("filters=$filters,")
append("maxResults=$maxResults,")
append("nextToken=$nextToken")
append(")")
}
override fun hashCode(): kotlin.Int {
var 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 DescribePatchBaselinesRequest
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.ssm.model.DescribePatchBaselinesRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* Each element in the array is a structure containing a key-value pair.
*
* Supported keys for `DescribePatchBaselines` include the following:
* + **`NAME_PREFIX`**Sample values: `AWS-` | `My-`
* + **`OWNER`**Sample values: `AWS` | `Self`
* + **`OPERATING_SYSTEM`**Sample values: `AMAZON_LINUX` | `SUSE` | `WINDOWS`
*/
public var filters: List? = null
/**
* The maximum number of patch baselines 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
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.ssm.model.DescribePatchBaselinesRequest) : this() {
this.filters = x.filters
this.maxResults = x.maxResults
this.nextToken = x.nextToken
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.ssm.model.DescribePatchBaselinesRequest = DescribePatchBaselinesRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy