commonMain.aws.sdk.kotlin.services.applicationinsights.model.WorkloadConfiguration.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of applicationinsights-jvm Show documentation
Show all versions of applicationinsights-jvm Show documentation
The AWS SDK for Kotlin client for Application Insights
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.applicationinsights.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* The configuration of the workload.
*/
public class WorkloadConfiguration private constructor(builder: Builder) {
/**
* The configuration settings of the workload.
*/
public val configuration: kotlin.String? = builder.configuration
/**
* The configuration of the workload tier.
*/
public val tier: aws.sdk.kotlin.services.applicationinsights.model.Tier? = builder.tier
/**
* The name of the workload.
*/
public val workloadName: kotlin.String? = builder.workloadName
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.applicationinsights.model.WorkloadConfiguration = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("WorkloadConfiguration(")
append("configuration=$configuration,")
append("tier=$tier,")
append("workloadName=$workloadName")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = configuration?.hashCode() ?: 0
result = 31 * result + (tier?.hashCode() ?: 0)
result = 31 * result + (workloadName?.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 WorkloadConfiguration
if (configuration != other.configuration) return false
if (tier != other.tier) return false
if (workloadName != other.workloadName) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.applicationinsights.model.WorkloadConfiguration = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The configuration settings of the workload.
*/
public var configuration: kotlin.String? = null
/**
* The configuration of the workload tier.
*/
public var tier: aws.sdk.kotlin.services.applicationinsights.model.Tier? = null
/**
* The name of the workload.
*/
public var workloadName: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.applicationinsights.model.WorkloadConfiguration) : this() {
this.configuration = x.configuration
this.tier = x.tier
this.workloadName = x.workloadName
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.applicationinsights.model.WorkloadConfiguration = WorkloadConfiguration(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy