
commonMain.aws.sdk.kotlin.services.mgn.model.LaunchConfigurationTemplate.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.mgn.model
class LaunchConfigurationTemplate private constructor(builder: Builder) {
/**
* Copy Private IP during Launch Configuration.
*/
val arn: kotlin.String? = builder.arn
/**
* Copy Private IP during Launch Configuration.
*/
val launchConfigurationTemplateId: kotlin.String? = builder.launchConfigurationTemplateId
/**
* Copy Private IP during Launch Configuration.
*/
val postLaunchActions: aws.sdk.kotlin.services.mgn.model.PostLaunchActions? = builder.postLaunchActions
/**
* Copy Private IP during Launch Configuration.
*/
val tags: Map? = builder.tags
companion object {
operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.mgn.model.LaunchConfigurationTemplate = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("LaunchConfigurationTemplate(")
append("arn=$arn,")
append("launchConfigurationTemplateId=$launchConfigurationTemplateId,")
append("postLaunchActions=$postLaunchActions,")
append("tags=*** Sensitive Data Redacted ***)")
}
override fun hashCode(): kotlin.Int {
var result = arn?.hashCode() ?: 0
result = 31 * result + (launchConfigurationTemplateId?.hashCode() ?: 0)
result = 31 * result + (postLaunchActions?.hashCode() ?: 0)
result = 31 * result + (tags?.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 LaunchConfigurationTemplate
if (arn != other.arn) return false
if (launchConfigurationTemplateId != other.launchConfigurationTemplateId) return false
if (postLaunchActions != other.postLaunchActions) return false
if (tags != other.tags) return false
return true
}
inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.mgn.model.LaunchConfigurationTemplate = Builder(this).apply(block).build()
class Builder {
/**
* Copy Private IP during Launch Configuration.
*/
var arn: kotlin.String? = null
/**
* Copy Private IP during Launch Configuration.
*/
var launchConfigurationTemplateId: kotlin.String? = null
/**
* Copy Private IP during Launch Configuration.
*/
var postLaunchActions: aws.sdk.kotlin.services.mgn.model.PostLaunchActions? = null
/**
* Copy Private IP during Launch Configuration.
*/
var tags: Map? = null
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.mgn.model.LaunchConfigurationTemplate) : this() {
this.arn = x.arn
this.launchConfigurationTemplateId = x.launchConfigurationTemplateId
this.postLaunchActions = x.postLaunchActions
this.tags = x.tags
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.mgn.model.LaunchConfigurationTemplate = LaunchConfigurationTemplate(this)
/**
* construct an [aws.sdk.kotlin.services.mgn.model.PostLaunchActions] inside the given [block]
*/
fun postLaunchActions(block: aws.sdk.kotlin.services.mgn.model.PostLaunchActions.Builder.() -> kotlin.Unit) {
this.postLaunchActions = aws.sdk.kotlin.services.mgn.model.PostLaunchActions.invoke(block)
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy