commonMain.aws.sdk.kotlin.services.route53.model.LinkedService.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
/**
* If a health check or hosted zone was created by another service, `LinkedService` is a complex type that describes the service that created the resource. When a resource is created by another service, you can't edit or delete it using Amazon Route 53.
*/
public class LinkedService private constructor(builder: Builder) {
/**
* If the health check or hosted zone was created by another service, an optional description that can be provided by the other service. When a resource is created by another service, you can't edit or delete it using Amazon Route 53.
*/
public val description: kotlin.String? = builder.description
/**
* If the health check or hosted zone was created by another service, the service that created the resource. When a resource is created by another service, you can't edit or delete it using Amazon Route 53.
*/
public val servicePrincipal: kotlin.String? = builder.servicePrincipal
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.route53.model.LinkedService = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("LinkedService(")
append("description=$description,")
append("servicePrincipal=$servicePrincipal")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = description?.hashCode() ?: 0
result = 31 * result + (servicePrincipal?.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 LinkedService
if (description != other.description) return false
if (servicePrincipal != other.servicePrincipal) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.route53.model.LinkedService = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* If the health check or hosted zone was created by another service, an optional description that can be provided by the other service. When a resource is created by another service, you can't edit or delete it using Amazon Route 53.
*/
public var description: kotlin.String? = null
/**
* If the health check or hosted zone was created by another service, the service that created the resource. When a resource is created by another service, you can't edit or delete it using Amazon Route 53.
*/
public var servicePrincipal: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.route53.model.LinkedService) : this() {
this.description = x.description
this.servicePrincipal = x.servicePrincipal
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.route53.model.LinkedService = LinkedService(this)
internal fun correctErrors(): Builder {
return this
}
}
}