
commonMain.aws.sdk.kotlin.services.drs.model.GetLaunchConfigurationResponse.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.drs.model
public class GetLaunchConfigurationResponse private constructor(builder: Builder) {
/**
* Whether we should copy the Private IP of the Source Server to the Recovery Instance.
*/
public val copyPrivateIp: kotlin.Boolean? = builder.copyPrivateIp
/**
* Whether we want to copy the tags of the Source Server to the EC2 machine of the Recovery Instance.
*/
public val copyTags: kotlin.Boolean? = builder.copyTags
/**
* The EC2 launch template ID of this launch configuration.
*/
public val ec2LaunchTemplateId: kotlin.String? = builder.ec2LaunchTemplateId
/**
* The state of the Recovery Instance in EC2 after the recovery operation.
*/
public val launchDisposition: aws.sdk.kotlin.services.drs.model.LaunchDisposition? = builder.launchDisposition
/**
* The licensing configuration to be used for this launch configuration.
*/
public val licensing: aws.sdk.kotlin.services.drs.model.Licensing? = builder.licensing
/**
* The name of the launch configuration.
*/
public val name: kotlin.String? = builder.name
/**
* The ID of the Source Server for this launch configuration.
*/
public val sourceServerId: kotlin.String? = builder.sourceServerId
/**
* Whether Elastic Disaster Recovery should try to automatically choose the instance type that best matches the OS, CPU, and RAM of your Source Server.
*/
public val targetInstanceTypeRightSizingMethod: aws.sdk.kotlin.services.drs.model.TargetInstanceTypeRightSizingMethod? = builder.targetInstanceTypeRightSizingMethod
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.drs.model.GetLaunchConfigurationResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("GetLaunchConfigurationResponse(")
append("copyPrivateIp=$copyPrivateIp,")
append("copyTags=$copyTags,")
append("ec2LaunchTemplateId=$ec2LaunchTemplateId,")
append("launchDisposition=$launchDisposition,")
append("licensing=$licensing,")
append("name=$name,")
append("sourceServerId=$sourceServerId,")
append("targetInstanceTypeRightSizingMethod=$targetInstanceTypeRightSizingMethod")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = copyPrivateIp?.hashCode() ?: 0
result = 31 * result + (copyTags?.hashCode() ?: 0)
result = 31 * result + (ec2LaunchTemplateId?.hashCode() ?: 0)
result = 31 * result + (launchDisposition?.hashCode() ?: 0)
result = 31 * result + (licensing?.hashCode() ?: 0)
result = 31 * result + (name?.hashCode() ?: 0)
result = 31 * result + (sourceServerId?.hashCode() ?: 0)
result = 31 * result + (targetInstanceTypeRightSizingMethod?.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 GetLaunchConfigurationResponse
if (copyPrivateIp != other.copyPrivateIp) return false
if (copyTags != other.copyTags) return false
if (ec2LaunchTemplateId != other.ec2LaunchTemplateId) return false
if (launchDisposition != other.launchDisposition) return false
if (licensing != other.licensing) return false
if (name != other.name) return false
if (sourceServerId != other.sourceServerId) return false
if (targetInstanceTypeRightSizingMethod != other.targetInstanceTypeRightSizingMethod) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.drs.model.GetLaunchConfigurationResponse = Builder(this).apply(block).build()
public class Builder {
/**
* Whether we should copy the Private IP of the Source Server to the Recovery Instance.
*/
public var copyPrivateIp: kotlin.Boolean? = null
/**
* Whether we want to copy the tags of the Source Server to the EC2 machine of the Recovery Instance.
*/
public var copyTags: kotlin.Boolean? = null
/**
* The EC2 launch template ID of this launch configuration.
*/
public var ec2LaunchTemplateId: kotlin.String? = null
/**
* The state of the Recovery Instance in EC2 after the recovery operation.
*/
public var launchDisposition: aws.sdk.kotlin.services.drs.model.LaunchDisposition? = null
/**
* The licensing configuration to be used for this launch configuration.
*/
public var licensing: aws.sdk.kotlin.services.drs.model.Licensing? = null
/**
* The name of the launch configuration.
*/
public var name: kotlin.String? = null
/**
* The ID of the Source Server for this launch configuration.
*/
public var sourceServerId: kotlin.String? = null
/**
* Whether Elastic Disaster Recovery should try to automatically choose the instance type that best matches the OS, CPU, and RAM of your Source Server.
*/
public var targetInstanceTypeRightSizingMethod: aws.sdk.kotlin.services.drs.model.TargetInstanceTypeRightSizingMethod? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.drs.model.GetLaunchConfigurationResponse) : this() {
this.copyPrivateIp = x.copyPrivateIp
this.copyTags = x.copyTags
this.ec2LaunchTemplateId = x.ec2LaunchTemplateId
this.launchDisposition = x.launchDisposition
this.licensing = x.licensing
this.name = x.name
this.sourceServerId = x.sourceServerId
this.targetInstanceTypeRightSizingMethod = x.targetInstanceTypeRightSizingMethod
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.drs.model.GetLaunchConfigurationResponse = GetLaunchConfigurationResponse(this)
/**
* construct an [aws.sdk.kotlin.services.drs.model.Licensing] inside the given [block]
*/
public fun licensing(block: aws.sdk.kotlin.services.drs.model.Licensing.Builder.() -> kotlin.Unit) {
this.licensing = aws.sdk.kotlin.services.drs.model.Licensing.invoke(block)
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy