
commonMain.aws.sdk.kotlin.services.ssmsap.model.IpAddressMember.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.ssmsap.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* Provides information of the IP address.
*/
public class IpAddressMember private constructor(builder: Builder) {
/**
* The type of allocation for the IP address.
*/
public val allocationType: aws.sdk.kotlin.services.ssmsap.model.AllocationType? = builder.allocationType
/**
* The IP address.
*/
public val ipAddress: kotlin.String? = builder.ipAddress
/**
* The primary IP address.
*/
public val primary: kotlin.Boolean? = builder.primary
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.ssmsap.model.IpAddressMember = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("IpAddressMember(")
append("allocationType=$allocationType,")
append("ipAddress=$ipAddress,")
append("primary=$primary")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = allocationType?.hashCode() ?: 0
result = 31 * result + (ipAddress?.hashCode() ?: 0)
result = 31 * result + (primary?.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 IpAddressMember
if (allocationType != other.allocationType) return false
if (ipAddress != other.ipAddress) return false
if (primary != other.primary) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.ssmsap.model.IpAddressMember = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The type of allocation for the IP address.
*/
public var allocationType: aws.sdk.kotlin.services.ssmsap.model.AllocationType? = null
/**
* The IP address.
*/
public var ipAddress: kotlin.String? = null
/**
* The primary IP address.
*/
public var primary: kotlin.Boolean? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.ssmsap.model.IpAddressMember) : this() {
this.allocationType = x.allocationType
this.ipAddress = x.ipAddress
this.primary = x.primary
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.ssmsap.model.IpAddressMember = IpAddressMember(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy