commonMain.aws.sdk.kotlin.services.route53.model.CidrBlockSummary.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 lists the CIDR blocks.
*/
public class CidrBlockSummary private constructor(builder: Builder) {
/**
* Value for the CIDR block.
*/
public val cidrBlock: kotlin.String? = builder.cidrBlock
/**
* The location name of the CIDR block.
*/
public val locationName: kotlin.String? = builder.locationName
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.route53.model.CidrBlockSummary = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("CidrBlockSummary(")
append("cidrBlock=$cidrBlock,")
append("locationName=$locationName")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = cidrBlock?.hashCode() ?: 0
result = 31 * result + (locationName?.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 CidrBlockSummary
if (cidrBlock != other.cidrBlock) return false
if (locationName != other.locationName) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.route53.model.CidrBlockSummary = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* Value for the CIDR block.
*/
public var cidrBlock: kotlin.String? = null
/**
* The location name of the CIDR block.
*/
public var locationName: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.route53.model.CidrBlockSummary) : this() {
this.cidrBlock = x.cidrBlock
this.locationName = x.locationName
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.route53.model.CidrBlockSummary = CidrBlockSummary(this)
internal fun correctErrors(): Builder {
return this
}
}
}