
commonMain.aws.sdk.kotlin.services.sms.model.GetServersResponse.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.sms.model
import aws.smithy.kotlin.runtime.time.Instant
public class GetServersResponse private constructor(builder: Builder) {
/**
* The time when the server was last modified.
*/
public val lastModifiedOn: aws.smithy.kotlin.runtime.time.Instant? = builder.lastModifiedOn
/**
* The token required to retrieve the next set of results. This value is null when there are no more results to return.
*/
public val nextToken: kotlin.String? = builder.nextToken
/**
* The status of the server catalog.
*/
public val serverCatalogStatus: aws.sdk.kotlin.services.sms.model.ServerCatalogStatus? = builder.serverCatalogStatus
/**
* Information about the servers.
*/
public val serverList: List? = builder.serverList
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.sms.model.GetServersResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("GetServersResponse(")
append("lastModifiedOn=$lastModifiedOn,")
append("nextToken=$nextToken,")
append("serverCatalogStatus=$serverCatalogStatus,")
append("serverList=$serverList")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = lastModifiedOn?.hashCode() ?: 0
result = 31 * result + (nextToken?.hashCode() ?: 0)
result = 31 * result + (serverCatalogStatus?.hashCode() ?: 0)
result = 31 * result + (serverList?.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 GetServersResponse
if (lastModifiedOn != other.lastModifiedOn) return false
if (nextToken != other.nextToken) return false
if (serverCatalogStatus != other.serverCatalogStatus) return false
if (serverList != other.serverList) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.sms.model.GetServersResponse = Builder(this).apply(block).build()
public class Builder {
/**
* The time when the server was last modified.
*/
public var lastModifiedOn: aws.smithy.kotlin.runtime.time.Instant? = null
/**
* The token required to retrieve the next set of results. This value is null when there are no more results to return.
*/
public var nextToken: kotlin.String? = null
/**
* The status of the server catalog.
*/
public var serverCatalogStatus: aws.sdk.kotlin.services.sms.model.ServerCatalogStatus? = null
/**
* Information about the servers.
*/
public var serverList: List? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.sms.model.GetServersResponse) : this() {
this.lastModifiedOn = x.lastModifiedOn
this.nextToken = x.nextToken
this.serverCatalogStatus = x.serverCatalogStatus
this.serverList = x.serverList
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.sms.model.GetServersResponse = GetServersResponse(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy