commonMain.aws.sdk.kotlin.services.route53.model.CollectionSummary.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
The newest version!
// 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 is an entry in an [CidrCollection](https://docs.aws.amazon.com/Route53/latest/APIReference/API_CidrCollection.html) array.
*/
public class CollectionSummary private constructor(builder: Builder) {
/**
* The ARN of the collection summary. Can be used to reference the collection in IAM policy or cross-account.
*/
public val arn: kotlin.String? = builder.arn
/**
* Unique ID for the CIDR collection.
*/
public val id: kotlin.String? = builder.id
/**
* The name of a CIDR collection.
*/
public val name: kotlin.String? = builder.name
/**
* A sequential counter that Route 53 sets to 1 when you create a CIDR collection and increments by 1 each time you update settings for the CIDR collection.
*/
public val version: kotlin.Long? = builder.version
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.route53.model.CollectionSummary = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("CollectionSummary(")
append("arn=$arn,")
append("id=$id,")
append("name=$name,")
append("version=$version")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = arn?.hashCode() ?: 0
result = 31 * result + (id?.hashCode() ?: 0)
result = 31 * result + (name?.hashCode() ?: 0)
result = 31 * result + (version?.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 CollectionSummary
if (arn != other.arn) return false
if (id != other.id) return false
if (name != other.name) return false
if (version != other.version) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.route53.model.CollectionSummary = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The ARN of the collection summary. Can be used to reference the collection in IAM policy or cross-account.
*/
public var arn: kotlin.String? = null
/**
* Unique ID for the CIDR collection.
*/
public var id: kotlin.String? = null
/**
* The name of a CIDR collection.
*/
public var name: kotlin.String? = null
/**
* A sequential counter that Route 53 sets to 1 when you create a CIDR collection and increments by 1 each time you update settings for the CIDR collection.
*/
public var version: kotlin.Long? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.route53.model.CollectionSummary) : this() {
this.arn = x.arn
this.id = x.id
this.name = x.name
this.version = x.version
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.route53.model.CollectionSummary = CollectionSummary(this)
internal fun correctErrors(): Builder {
return this
}
}
}