
commonMain.aws.sdk.kotlin.services.iot.model.DescribeManagedJobTemplateRequest.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.iot.model
public class DescribeManagedJobTemplateRequest private constructor(builder: Builder) {
/**
* The unique name of a managed job template, which is required.
*/
public val templateName: kotlin.String? = builder.templateName
/**
* An optional parameter to specify version of a managed template. If not specified, the pre-defined default version is returned.
*/
public val templateVersion: kotlin.String? = builder.templateVersion
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.iot.model.DescribeManagedJobTemplateRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("DescribeManagedJobTemplateRequest(")
append("templateName=$templateName,")
append("templateVersion=$templateVersion")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = templateName?.hashCode() ?: 0
result = 31 * result + (templateVersion?.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 DescribeManagedJobTemplateRequest
if (templateName != other.templateName) return false
if (templateVersion != other.templateVersion) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.iot.model.DescribeManagedJobTemplateRequest = Builder(this).apply(block).build()
public class Builder {
/**
* The unique name of a managed job template, which is required.
*/
public var templateName: kotlin.String? = null
/**
* An optional parameter to specify version of a managed template. If not specified, the pre-defined default version is returned.
*/
public var templateVersion: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.iot.model.DescribeManagedJobTemplateRequest) : this() {
this.templateName = x.templateName
this.templateVersion = x.templateVersion
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.iot.model.DescribeManagedJobTemplateRequest = DescribeManagedJobTemplateRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy