
commonMain.aws.sdk.kotlin.services.iot.model.FleetMetricNameAndArn.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.iot.model
/**
* The name and ARN of a fleet metric.
*/
public class FleetMetricNameAndArn private constructor(builder: Builder) {
/**
* The fleet metric ARN.
*/
public val metricArn: kotlin.String? = builder.metricArn
/**
* The fleet metric name.
*/
public val metricName: kotlin.String? = builder.metricName
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.iot.model.FleetMetricNameAndArn = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("FleetMetricNameAndArn(")
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 FleetMetricNameAndArn
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.FleetMetricNameAndArn = Builder(this).apply(block).build()
public class Builder {
/**
* The fleet metric ARN.
*/
public var metricArn: kotlin.String? = null
/**
* The fleet metric name.
*/
public var metricName: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.iot.model.FleetMetricNameAndArn) : this() {
this.metricArn = x.metricArn
this.metricName = x.metricName
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.iot.model.FleetMetricNameAndArn = FleetMetricNameAndArn(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy