commonMain.aws.sdk.kotlin.services.route53.model.HostedZoneOwner.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of route53-jvm Show documentation
Show all versions of route53-jvm Show documentation
The AWS SDK for Kotlin client for Route 53
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.route53.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* A complex type that identifies a hosted zone that a specified Amazon VPC is associated with and the owner of the hosted zone. If there is a value for `OwningAccount`, there is no value for `OwningService`, and vice versa.
*/
public class HostedZoneOwner private constructor(builder: Builder) {
/**
* If the hosted zone was created by an Amazon Web Services account, or was created by an Amazon Web Services service that creates hosted zones using the current account, `OwningAccount` contains the account ID of that account. For example, when you use Cloud Map to create a hosted zone, Cloud Map creates the hosted zone using the current Amazon Web Services account.
*/
public val owningAccount: kotlin.String? = builder.owningAccount
/**
* If an Amazon Web Services service uses its own account to create a hosted zone and associate the specified VPC with that hosted zone, `OwningService` contains an abbreviation that identifies the service. For example, if Amazon Elastic File System (Amazon EFS) created a hosted zone and associated a VPC with the hosted zone, the value of `OwningService` is `efs.amazonaws.com`.
*/
public val owningService: kotlin.String? = builder.owningService
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.route53.model.HostedZoneOwner = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("HostedZoneOwner(")
append("owningAccount=$owningAccount,")
append("owningService=$owningService")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = owningAccount?.hashCode() ?: 0
result = 31 * result + (owningService?.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 HostedZoneOwner
if (owningAccount != other.owningAccount) return false
if (owningService != other.owningService) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.route53.model.HostedZoneOwner = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* If the hosted zone was created by an Amazon Web Services account, or was created by an Amazon Web Services service that creates hosted zones using the current account, `OwningAccount` contains the account ID of that account. For example, when you use Cloud Map to create a hosted zone, Cloud Map creates the hosted zone using the current Amazon Web Services account.
*/
public var owningAccount: kotlin.String? = null
/**
* If an Amazon Web Services service uses its own account to create a hosted zone and associate the specified VPC with that hosted zone, `OwningService` contains an abbreviation that identifies the service. For example, if Amazon Elastic File System (Amazon EFS) created a hosted zone and associated a VPC with the hosted zone, the value of `OwningService` is `efs.amazonaws.com`.
*/
public var owningService: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.route53.model.HostedZoneOwner) : this() {
this.owningAccount = x.owningAccount
this.owningService = x.owningService
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.route53.model.HostedZoneOwner = HostedZoneOwner(this)
internal fun correctErrors(): Builder {
return this
}
}
}