commonMain.aws.sdk.kotlin.services.route53domains.model.DomainPrice.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
/**
* Information about the domain price associated with a TLD.
*/
public class DomainPrice private constructor(builder: Builder) {
/**
* The price for changing domain ownership.
*/
public val changeOwnershipPrice: aws.sdk.kotlin.services.route53domains.model.PriceWithCurrency? = builder.changeOwnershipPrice
/**
* The name of the TLD for which the prices apply.
*/
public val name: kotlin.String? = builder.name
/**
* The price for domain registration with Route 53.
*/
public val registrationPrice: aws.sdk.kotlin.services.route53domains.model.PriceWithCurrency? = builder.registrationPrice
/**
* The price for renewing domain registration with Route 53.
*/
public val renewalPrice: aws.sdk.kotlin.services.route53domains.model.PriceWithCurrency? = builder.renewalPrice
/**
* The price for restoring the domain with Route 53.
*/
public val restorationPrice: aws.sdk.kotlin.services.route53domains.model.PriceWithCurrency? = builder.restorationPrice
/**
* The price for transferring the domain registration to Route 53.
*/
public val transferPrice: aws.sdk.kotlin.services.route53domains.model.PriceWithCurrency? = builder.transferPrice
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.route53domains.model.DomainPrice = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("DomainPrice(")
append("changeOwnershipPrice=$changeOwnershipPrice,")
append("name=$name,")
append("registrationPrice=$registrationPrice,")
append("renewalPrice=$renewalPrice,")
append("restorationPrice=$restorationPrice,")
append("transferPrice=$transferPrice")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = changeOwnershipPrice?.hashCode() ?: 0
result = 31 * result + (name?.hashCode() ?: 0)
result = 31 * result + (registrationPrice?.hashCode() ?: 0)
result = 31 * result + (renewalPrice?.hashCode() ?: 0)
result = 31 * result + (restorationPrice?.hashCode() ?: 0)
result = 31 * result + (transferPrice?.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 DomainPrice
if (changeOwnershipPrice != other.changeOwnershipPrice) return false
if (name != other.name) return false
if (registrationPrice != other.registrationPrice) return false
if (renewalPrice != other.renewalPrice) return false
if (restorationPrice != other.restorationPrice) return false
if (transferPrice != other.transferPrice) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.route53domains.model.DomainPrice = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The price for changing domain ownership.
*/
public var changeOwnershipPrice: aws.sdk.kotlin.services.route53domains.model.PriceWithCurrency? = null
/**
* The name of the TLD for which the prices apply.
*/
public var name: kotlin.String? = null
/**
* The price for domain registration with Route 53.
*/
public var registrationPrice: aws.sdk.kotlin.services.route53domains.model.PriceWithCurrency? = null
/**
* The price for renewing domain registration with Route 53.
*/
public var renewalPrice: aws.sdk.kotlin.services.route53domains.model.PriceWithCurrency? = null
/**
* The price for restoring the domain with Route 53.
*/
public var restorationPrice: aws.sdk.kotlin.services.route53domains.model.PriceWithCurrency? = null
/**
* The price for transferring the domain registration to Route 53.
*/
public var transferPrice: aws.sdk.kotlin.services.route53domains.model.PriceWithCurrency? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.route53domains.model.DomainPrice) : this() {
this.changeOwnershipPrice = x.changeOwnershipPrice
this.name = x.name
this.registrationPrice = x.registrationPrice
this.renewalPrice = x.renewalPrice
this.restorationPrice = x.restorationPrice
this.transferPrice = x.transferPrice
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.route53domains.model.DomainPrice = DomainPrice(this)
/**
* construct an [aws.sdk.kotlin.services.route53domains.model.PriceWithCurrency] inside the given [block]
*/
public fun changeOwnershipPrice(block: aws.sdk.kotlin.services.route53domains.model.PriceWithCurrency.Builder.() -> kotlin.Unit) {
this.changeOwnershipPrice = aws.sdk.kotlin.services.route53domains.model.PriceWithCurrency.invoke(block)
}
/**
* construct an [aws.sdk.kotlin.services.route53domains.model.PriceWithCurrency] inside the given [block]
*/
public fun registrationPrice(block: aws.sdk.kotlin.services.route53domains.model.PriceWithCurrency.Builder.() -> kotlin.Unit) {
this.registrationPrice = aws.sdk.kotlin.services.route53domains.model.PriceWithCurrency.invoke(block)
}
/**
* construct an [aws.sdk.kotlin.services.route53domains.model.PriceWithCurrency] inside the given [block]
*/
public fun renewalPrice(block: aws.sdk.kotlin.services.route53domains.model.PriceWithCurrency.Builder.() -> kotlin.Unit) {
this.renewalPrice = aws.sdk.kotlin.services.route53domains.model.PriceWithCurrency.invoke(block)
}
/**
* construct an [aws.sdk.kotlin.services.route53domains.model.PriceWithCurrency] inside the given [block]
*/
public fun restorationPrice(block: aws.sdk.kotlin.services.route53domains.model.PriceWithCurrency.Builder.() -> kotlin.Unit) {
this.restorationPrice = aws.sdk.kotlin.services.route53domains.model.PriceWithCurrency.invoke(block)
}
/**
* construct an [aws.sdk.kotlin.services.route53domains.model.PriceWithCurrency] inside the given [block]
*/
public fun transferPrice(block: aws.sdk.kotlin.services.route53domains.model.PriceWithCurrency.Builder.() -> kotlin.Unit) {
this.transferPrice = aws.sdk.kotlin.services.route53domains.model.PriceWithCurrency.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}