commonMain.aws.sdk.kotlin.services.route53domains.model.DomainSummary.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
import aws.smithy.kotlin.runtime.time.Instant
/**
* Summary information about one domain.
*/
public class DomainSummary private constructor(builder: Builder) {
/**
* Indicates whether the domain is automatically renewed upon expiration.
*/
public val autoRenew: kotlin.Boolean? = builder.autoRenew
/**
* The name of the domain that the summary information applies to.
*/
public val domainName: kotlin.String? = builder.domainName
/**
* Expiration date of the domain in Unix time format and Coordinated Universal Time (UTC).
*/
public val expiry: aws.smithy.kotlin.runtime.time.Instant? = builder.expiry
/**
* Indicates whether a domain is locked from unauthorized transfer to another party.
*/
public val transferLock: kotlin.Boolean? = builder.transferLock
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.route53domains.model.DomainSummary = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("DomainSummary(")
append("autoRenew=$autoRenew,")
append("domainName=$domainName,")
append("expiry=$expiry,")
append("transferLock=$transferLock")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = autoRenew?.hashCode() ?: 0
result = 31 * result + (domainName?.hashCode() ?: 0)
result = 31 * result + (expiry?.hashCode() ?: 0)
result = 31 * result + (transferLock?.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 DomainSummary
if (autoRenew != other.autoRenew) return false
if (domainName != other.domainName) return false
if (expiry != other.expiry) return false
if (transferLock != other.transferLock) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.route53domains.model.DomainSummary = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* Indicates whether the domain is automatically renewed upon expiration.
*/
public var autoRenew: kotlin.Boolean? = null
/**
* The name of the domain that the summary information applies to.
*/
public var domainName: kotlin.String? = null
/**
* Expiration date of the domain in Unix time format and Coordinated Universal Time (UTC).
*/
public var expiry: aws.smithy.kotlin.runtime.time.Instant? = null
/**
* Indicates whether a domain is locked from unauthorized transfer to another party.
*/
public var transferLock: kotlin.Boolean? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.route53domains.model.DomainSummary) : this() {
this.autoRenew = x.autoRenew
this.domainName = x.domainName
this.expiry = x.expiry
this.transferLock = x.transferLock
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.route53domains.model.DomainSummary = DomainSummary(this)
internal fun correctErrors(): Builder {
return this
}
}
}