
commonMain.aws.sdk.kotlin.services.lightsail.model.GetCertificatesResponse.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.lightsail.model
import aws.smithy.kotlin.runtime.SdkDsl
public class GetCertificatesResponse private constructor(builder: Builder) {
/**
* An object that describes certificates.
*/
public val certificates: List? = builder.certificates
/**
* If `NextPageToken` is returned there are more results available. The value of `NextPageToken` is a unique pagination token for each page. Make the call again using the returned token to retrieve the next page. Keep all other arguments unchanged.
*/
public val nextPageToken: kotlin.String? = builder.nextPageToken
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.lightsail.model.GetCertificatesResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("GetCertificatesResponse(")
append("certificates=$certificates,")
append("nextPageToken=$nextPageToken")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = certificates?.hashCode() ?: 0
result = 31 * result + (nextPageToken?.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 GetCertificatesResponse
if (certificates != other.certificates) return false
if (nextPageToken != other.nextPageToken) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.lightsail.model.GetCertificatesResponse = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* An object that describes certificates.
*/
public var certificates: List? = null
/**
* If `NextPageToken` is returned there are more results available. The value of `NextPageToken` is a unique pagination token for each page. Make the call again using the returned token to retrieve the next page. Keep all other arguments unchanged.
*/
public var nextPageToken: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.lightsail.model.GetCertificatesResponse) : this() {
this.certificates = x.certificates
this.nextPageToken = x.nextPageToken
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.lightsail.model.GetCertificatesResponse = GetCertificatesResponse(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy