commonMain.aws.sdk.kotlin.services.route53domains.model.ViewBillingResponse.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of route53domains-jvm Show documentation
Show all versions of route53domains-jvm Show documentation
The AWS SDK for Kotlin client for Route 53 Domains
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.route53domains.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* The ViewBilling response includes the following elements.
*/
public class ViewBillingResponse private constructor(builder: Builder) {
/**
* A summary of billing records.
*/
public val billingRecords: List? = builder.billingRecords
/**
* If there are more billing records than you specified for `MaxItems` in the request, submit another request and include the value of `NextPageMarker` in the value of `Marker`.
*/
public val nextPageMarker: kotlin.String? = builder.nextPageMarker
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.route53domains.model.ViewBillingResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("ViewBillingResponse(")
append("billingRecords=$billingRecords,")
append("nextPageMarker=$nextPageMarker")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = billingRecords?.hashCode() ?: 0
result = 31 * result + (nextPageMarker?.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 ViewBillingResponse
if (billingRecords != other.billingRecords) return false
if (nextPageMarker != other.nextPageMarker) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.route53domains.model.ViewBillingResponse = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* A summary of billing records.
*/
public var billingRecords: List? = null
/**
* If there are more billing records than you specified for `MaxItems` in the request, submit another request and include the value of `NextPageMarker` in the value of `Marker`.
*/
public var nextPageMarker: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.route53domains.model.ViewBillingResponse) : this() {
this.billingRecords = x.billingRecords
this.nextPageMarker = x.nextPageMarker
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.route53domains.model.ViewBillingResponse = ViewBillingResponse(this)
internal fun correctErrors(): Builder {
return this
}
}
}