commonMain.aws.sdk.kotlin.services.outposts.model.StartCapacityTaskRequest.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.outposts.model
import aws.smithy.kotlin.runtime.SdkDsl
public class StartCapacityTaskRequest private constructor(builder: Builder) {
/**
* You can request a dry run to determine if the instance type and instance size changes is above or below available instance capacity. Requesting a dry run does not make any changes to your plan.
*/
public val dryRun: kotlin.Boolean? = builder.dryRun
/**
* The instance pools specified in the capacity task.
*/
public val instancePools: List? = builder.instancePools
/**
* The ID of the Amazon Web Services Outposts order associated with the specified capacity task.
*/
public val orderId: kotlin.String? = builder.orderId
/**
* The ID or ARN of the Outposts associated with the specified capacity task.
*/
public val outpostIdentifier: kotlin.String? = builder.outpostIdentifier
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.outposts.model.StartCapacityTaskRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("StartCapacityTaskRequest(")
append("dryRun=$dryRun,")
append("instancePools=$instancePools,")
append("orderId=$orderId,")
append("outpostIdentifier=$outpostIdentifier")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = dryRun?.hashCode() ?: 0
result = 31 * result + (instancePools?.hashCode() ?: 0)
result = 31 * result + (orderId?.hashCode() ?: 0)
result = 31 * result + (outpostIdentifier?.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 StartCapacityTaskRequest
if (dryRun != other.dryRun) return false
if (instancePools != other.instancePools) return false
if (orderId != other.orderId) return false
if (outpostIdentifier != other.outpostIdentifier) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.outposts.model.StartCapacityTaskRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* You can request a dry run to determine if the instance type and instance size changes is above or below available instance capacity. Requesting a dry run does not make any changes to your plan.
*/
public var dryRun: kotlin.Boolean? = null
/**
* The instance pools specified in the capacity task.
*/
public var instancePools: List? = null
/**
* The ID of the Amazon Web Services Outposts order associated with the specified capacity task.
*/
public var orderId: kotlin.String? = null
/**
* The ID or ARN of the Outposts associated with the specified capacity task.
*/
public var outpostIdentifier: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.outposts.model.StartCapacityTaskRequest) : this() {
this.dryRun = x.dryRun
this.instancePools = x.instancePools
this.orderId = x.orderId
this.outpostIdentifier = x.outpostIdentifier
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.outposts.model.StartCapacityTaskRequest = StartCapacityTaskRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy