
commonMain.aws.sdk.kotlin.services.ssm.model.DescribeMaintenanceWindowsForTargetRequest.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.ssm.model
public class DescribeMaintenanceWindowsForTargetRequest private constructor(builder: Builder) {
/**
* 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 type of resource you want to retrieve information about. For example, `INSTANCE`.
*/
public val resourceType: aws.sdk.kotlin.services.ssm.model.MaintenanceWindowResourceType? = builder.resourceType
/**
* The managed node ID or key-value pair to retrieve information about.
*/
public val targets: List? = builder.targets
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.ssm.model.DescribeMaintenanceWindowsForTargetRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("DescribeMaintenanceWindowsForTargetRequest(")
append("maxResults=$maxResults,")
append("nextToken=$nextToken,")
append("resourceType=$resourceType,")
append("targets=$targets")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = maxResults ?: 0
result = 31 * result + (nextToken?.hashCode() ?: 0)
result = 31 * result + (resourceType?.hashCode() ?: 0)
result = 31 * result + (targets?.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 DescribeMaintenanceWindowsForTargetRequest
if (maxResults != other.maxResults) return false
if (nextToken != other.nextToken) return false
if (resourceType != other.resourceType) return false
if (targets != other.targets) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.ssm.model.DescribeMaintenanceWindowsForTargetRequest = Builder(this).apply(block).build()
public class Builder {
/**
* 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 type of resource you want to retrieve information about. For example, `INSTANCE`.
*/
public var resourceType: aws.sdk.kotlin.services.ssm.model.MaintenanceWindowResourceType? = null
/**
* The managed node ID or key-value pair to retrieve information about.
*/
public var targets: List? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.ssm.model.DescribeMaintenanceWindowsForTargetRequest) : this() {
this.maxResults = x.maxResults
this.nextToken = x.nextToken
this.resourceType = x.resourceType
this.targets = x.targets
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.ssm.model.DescribeMaintenanceWindowsForTargetRequest = DescribeMaintenanceWindowsForTargetRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy