commonMain.aws.sdk.kotlin.services.devopsguru.model.StartCostEstimationRequest.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of devopsguru-jvm Show documentation
Show all versions of devopsguru-jvm Show documentation
The AWS SDK for Kotlin client for DevOps Guru
The newest version!
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.devopsguru.model
import aws.smithy.kotlin.runtime.SdkDsl
public class StartCostEstimationRequest private constructor(builder: Builder) {
/**
* The idempotency token used to identify each cost estimate request.
*/
public val clientToken: kotlin.String? = builder.clientToken
/**
* The collection of Amazon Web Services resources used to create a monthly DevOps Guru cost estimate.
*/
public val resourceCollection: aws.sdk.kotlin.services.devopsguru.model.CostEstimationResourceCollectionFilter? = builder.resourceCollection
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.devopsguru.model.StartCostEstimationRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("StartCostEstimationRequest(")
append("clientToken=$clientToken,")
append("resourceCollection=$resourceCollection")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = clientToken?.hashCode() ?: 0
result = 31 * result + (resourceCollection?.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 StartCostEstimationRequest
if (clientToken != other.clientToken) return false
if (resourceCollection != other.resourceCollection) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.devopsguru.model.StartCostEstimationRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The idempotency token used to identify each cost estimate request.
*/
public var clientToken: kotlin.String? = null
/**
* The collection of Amazon Web Services resources used to create a monthly DevOps Guru cost estimate.
*/
public var resourceCollection: aws.sdk.kotlin.services.devopsguru.model.CostEstimationResourceCollectionFilter? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.devopsguru.model.StartCostEstimationRequest) : this() {
this.clientToken = x.clientToken
this.resourceCollection = x.resourceCollection
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.devopsguru.model.StartCostEstimationRequest = StartCostEstimationRequest(this)
/**
* construct an [aws.sdk.kotlin.services.devopsguru.model.CostEstimationResourceCollectionFilter] inside the given [block]
*/
public fun resourceCollection(block: aws.sdk.kotlin.services.devopsguru.model.CostEstimationResourceCollectionFilter.Builder.() -> kotlin.Unit) {
this.resourceCollection = aws.sdk.kotlin.services.devopsguru.model.CostEstimationResourceCollectionFilter.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy