
commonMain.aws.sdk.kotlin.services.lightsail.model.AttachStaticIpRequest.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.lightsail.model
public class AttachStaticIpRequest private constructor(builder: Builder) {
/**
* The instance name to which you want to attach the static IP address.
*/
public val instanceName: kotlin.String? = builder.instanceName
/**
* The name of the static IP.
*/
public val staticIpName: kotlin.String? = builder.staticIpName
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.lightsail.model.AttachStaticIpRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("AttachStaticIpRequest(")
append("instanceName=$instanceName,")
append("staticIpName=$staticIpName)")
}
override fun hashCode(): kotlin.Int {
var result = instanceName?.hashCode() ?: 0
result = 31 * result + (staticIpName?.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 AttachStaticIpRequest
if (instanceName != other.instanceName) return false
if (staticIpName != other.staticIpName) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.lightsail.model.AttachStaticIpRequest = Builder(this).apply(block).build()
public class Builder {
/**
* The instance name to which you want to attach the static IP address.
*/
public var instanceName: kotlin.String? = null
/**
* The name of the static IP.
*/
public var staticIpName: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.lightsail.model.AttachStaticIpRequest) : this() {
this.instanceName = x.instanceName
this.staticIpName = x.staticIpName
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.lightsail.model.AttachStaticIpRequest = AttachStaticIpRequest(this)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy