commonMain.aws.sdk.kotlin.services.applicationinsights.model.Workload.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
/**
* Describes the workloads on a component.
*/
public class Workload private constructor(builder: Builder) {
/**
* The name of the component.
*/
public val componentName: kotlin.String? = builder.componentName
/**
* The tier of the workload.
*/
public val tier: aws.sdk.kotlin.services.applicationinsights.model.Tier? = builder.tier
/**
* The ID of the workload.
*/
public val workloadId: kotlin.String? = builder.workloadId
/**
* The name of the workload.
*/
public val workloadName: kotlin.String? = builder.workloadName
/**
* If logging is supported for the resource type, shows whether the component has configured logs to be monitored.
*/
public val workloadRemarks: kotlin.String? = builder.workloadRemarks
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.applicationinsights.model.Workload = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("Workload(")
append("componentName=$componentName,")
append("tier=$tier,")
append("workloadId=$workloadId,")
append("workloadName=$workloadName,")
append("workloadRemarks=$workloadRemarks")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = componentName?.hashCode() ?: 0
result = 31 * result + (tier?.hashCode() ?: 0)
result = 31 * result + (workloadId?.hashCode() ?: 0)
result = 31 * result + (workloadName?.hashCode() ?: 0)
result = 31 * result + (workloadRemarks?.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 Workload
if (componentName != other.componentName) return false
if (tier != other.tier) return false
if (workloadId != other.workloadId) return false
if (workloadName != other.workloadName) return false
if (workloadRemarks != other.workloadRemarks) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.applicationinsights.model.Workload = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The name of the component.
*/
public var componentName: kotlin.String? = null
/**
* The tier of the workload.
*/
public var tier: aws.sdk.kotlin.services.applicationinsights.model.Tier? = null
/**
* The ID of the workload.
*/
public var workloadId: kotlin.String? = null
/**
* The name of the workload.
*/
public var workloadName: kotlin.String? = null
/**
* If logging is supported for the resource type, shows whether the component has configured logs to be monitored.
*/
public var workloadRemarks: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.applicationinsights.model.Workload) : this() {
this.componentName = x.componentName
this.tier = x.tier
this.workloadId = x.workloadId
this.workloadName = x.workloadName
this.workloadRemarks = x.workloadRemarks
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.applicationinsights.model.Workload = Workload(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy