
commonMain.aws.sdk.kotlin.services.sms.model.GetServersRequest.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.sms.model
public class GetServersRequest private constructor(builder: Builder) {
/**
* The maximum number of results to return in a single call. The default value is 50. To retrieve the remaining results, make another call with the returned `NextToken` value.
*/
public val maxResults: kotlin.Int? = builder.maxResults
/**
* The token for the next set of results.
*/
public val nextToken: kotlin.String? = builder.nextToken
/**
* The server addresses.
*/
public val vmServerAddressList: List? = builder.vmServerAddressList
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.sms.model.GetServersRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("GetServersRequest(")
append("maxResults=$maxResults,")
append("nextToken=$nextToken,")
append("vmServerAddressList=$vmServerAddressList")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = maxResults ?: 0
result = 31 * result + (nextToken?.hashCode() ?: 0)
result = 31 * result + (vmServerAddressList?.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 GetServersRequest
if (maxResults != other.maxResults) return false
if (nextToken != other.nextToken) return false
if (vmServerAddressList != other.vmServerAddressList) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.sms.model.GetServersRequest = Builder(this).apply(block).build()
public class Builder {
/**
* The maximum number of results to return in a single call. The default value is 50. To retrieve the remaining results, make another call with the returned `NextToken` value.
*/
public var maxResults: kotlin.Int? = null
/**
* The token for the next set of results.
*/
public var nextToken: kotlin.String? = null
/**
* The server addresses.
*/
public var vmServerAddressList: List? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.sms.model.GetServersRequest) : this() {
this.maxResults = x.maxResults
this.nextToken = x.nextToken
this.vmServerAddressList = x.vmServerAddressList
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.sms.model.GetServersRequest = GetServersRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy