
commonMain.aws.sdk.kotlin.services.iot.model.CreateCustomMetricResponse.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.iot.model
public class CreateCustomMetricResponse private constructor(builder: Builder) {
/**
* The Amazon Resource Number (ARN) of the custom metric. For example, `arn:aws-partition:iot:region:accountId:custommetric/metricName `
*/
public val metricArn: kotlin.String? = builder.metricArn
/**
* The name of the custom metric to be used in the metric report.
*/
public val metricName: kotlin.String? = builder.metricName
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.iot.model.CreateCustomMetricResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("CreateCustomMetricResponse(")
append("metricArn=$metricArn,")
append("metricName=$metricName")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = metricArn?.hashCode() ?: 0
result = 31 * result + (metricName?.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 CreateCustomMetricResponse
if (metricArn != other.metricArn) return false
if (metricName != other.metricName) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.iot.model.CreateCustomMetricResponse = Builder(this).apply(block).build()
public class Builder {
/**
* The Amazon Resource Number (ARN) of the custom metric. For example, `arn:aws-partition:iot:region:accountId:custommetric/metricName `
*/
public var metricArn: kotlin.String? = null
/**
* The name of the custom metric to be used in the metric report.
*/
public var metricName: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.iot.model.CreateCustomMetricResponse) : this() {
this.metricArn = x.metricArn
this.metricName = x.metricName
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.iot.model.CreateCustomMetricResponse = CreateCustomMetricResponse(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy