
commonMain.aws.sdk.kotlin.services.iot.model.DeleteFleetMetricRequest.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.iot.model
public class DeleteFleetMetricRequest private constructor(builder: Builder) {
/**
* The expected version of the fleet metric to delete.
*/
public val expectedVersion: kotlin.Long? = builder.expectedVersion
/**
* The name of the fleet metric to delete.
*/
public val metricName: kotlin.String? = builder.metricName
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.iot.model.DeleteFleetMetricRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("DeleteFleetMetricRequest(")
append("expectedVersion=$expectedVersion,")
append("metricName=$metricName")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = expectedVersion?.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 DeleteFleetMetricRequest
if (expectedVersion != other.expectedVersion) return false
if (metricName != other.metricName) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.iot.model.DeleteFleetMetricRequest = Builder(this).apply(block).build()
public class Builder {
/**
* The expected version of the fleet metric to delete.
*/
public var expectedVersion: kotlin.Long? = null
/**
* The name of the fleet metric to delete.
*/
public var metricName: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.iot.model.DeleteFleetMetricRequest) : this() {
this.expectedVersion = x.expectedVersion
this.metricName = x.metricName
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.iot.model.DeleteFleetMetricRequest = DeleteFleetMetricRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy