
commonMain.aws.sdk.kotlin.services.ssm.model.UpdateMaintenanceWindowTargetResponse.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.ssm.model
public class UpdateMaintenanceWindowTargetResponse private constructor(builder: Builder) {
/**
* The updated description.
*/
public val description: kotlin.String? = builder.description
/**
* The updated name.
*/
public val name: kotlin.String? = builder.name
/**
* The updated owner.
*/
public val ownerInformation: kotlin.String? = builder.ownerInformation
/**
* The updated targets.
*/
public val targets: List? = builder.targets
/**
* The maintenance window ID specified in the update request.
*/
public val windowId: kotlin.String? = builder.windowId
/**
* The target ID specified in the update request.
*/
public val windowTargetId: kotlin.String? = builder.windowTargetId
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.ssm.model.UpdateMaintenanceWindowTargetResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("UpdateMaintenanceWindowTargetResponse(")
append("description=*** Sensitive Data Redacted ***,")
append("name=$name,")
append("ownerInformation=*** Sensitive Data Redacted ***,")
append("targets=$targets,")
append("windowId=$windowId,")
append("windowTargetId=$windowTargetId")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = description?.hashCode() ?: 0
result = 31 * result + (name?.hashCode() ?: 0)
result = 31 * result + (ownerInformation?.hashCode() ?: 0)
result = 31 * result + (targets?.hashCode() ?: 0)
result = 31 * result + (windowId?.hashCode() ?: 0)
result = 31 * result + (windowTargetId?.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 UpdateMaintenanceWindowTargetResponse
if (description != other.description) return false
if (name != other.name) return false
if (ownerInformation != other.ownerInformation) return false
if (targets != other.targets) return false
if (windowId != other.windowId) return false
if (windowTargetId != other.windowTargetId) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.ssm.model.UpdateMaintenanceWindowTargetResponse = Builder(this).apply(block).build()
public class Builder {
/**
* The updated description.
*/
public var description: kotlin.String? = null
/**
* The updated name.
*/
public var name: kotlin.String? = null
/**
* The updated owner.
*/
public var ownerInformation: kotlin.String? = null
/**
* The updated targets.
*/
public var targets: List? = null
/**
* The maintenance window ID specified in the update request.
*/
public var windowId: kotlin.String? = null
/**
* The target ID specified in the update request.
*/
public var windowTargetId: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.ssm.model.UpdateMaintenanceWindowTargetResponse) : this() {
this.description = x.description
this.name = x.name
this.ownerInformation = x.ownerInformation
this.targets = x.targets
this.windowId = x.windowId
this.windowTargetId = x.windowTargetId
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.ssm.model.UpdateMaintenanceWindowTargetResponse = UpdateMaintenanceWindowTargetResponse(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy