
commonMain.aws.sdk.kotlin.services.iot.model.DescribeManagedJobTemplateResponse.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.iot.model
public class DescribeManagedJobTemplateResponse private constructor(builder: Builder) {
/**
* The unique description of a managed template.
*/
public val description: kotlin.String? = builder.description
/**
* The document schema for a managed job template.
*/
public val document: kotlin.String? = builder.document
/**
* A map of key-value pairs that you can use as guidance to specify the inputs for creating a job from a managed template.
*
* `documentParameters` can only be used when creating jobs from Amazon Web Services managed templates. This parameter can't be used with custom job templates or to create jobs from them.
*/
public val documentParameters: List? = builder.documentParameters
/**
* A list of environments that are supported with the managed job template.
*/
public val environments: List? = builder.environments
/**
* The unique Amazon Resource Name (ARN) of the managed template.
*/
public val templateArn: kotlin.String? = builder.templateArn
/**
* The unique name of a managed template, such as `AWS-Reboot`.
*/
public val templateName: kotlin.String? = builder.templateName
/**
* The version for a managed template.
*/
public val templateVersion: kotlin.String? = builder.templateVersion
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.iot.model.DescribeManagedJobTemplateResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("DescribeManagedJobTemplateResponse(")
append("description=$description,")
append("document=$document,")
append("documentParameters=$documentParameters,")
append("environments=$environments,")
append("templateArn=$templateArn,")
append("templateName=$templateName,")
append("templateVersion=$templateVersion")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = description?.hashCode() ?: 0
result = 31 * result + (document?.hashCode() ?: 0)
result = 31 * result + (documentParameters?.hashCode() ?: 0)
result = 31 * result + (environments?.hashCode() ?: 0)
result = 31 * result + (templateArn?.hashCode() ?: 0)
result = 31 * 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 DescribeManagedJobTemplateResponse
if (description != other.description) return false
if (document != other.document) return false
if (documentParameters != other.documentParameters) return false
if (environments != other.environments) return false
if (templateArn != other.templateArn) return false
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.DescribeManagedJobTemplateResponse = Builder(this).apply(block).build()
public class Builder {
/**
* The unique description of a managed template.
*/
public var description: kotlin.String? = null
/**
* The document schema for a managed job template.
*/
public var document: kotlin.String? = null
/**
* A map of key-value pairs that you can use as guidance to specify the inputs for creating a job from a managed template.
*
* `documentParameters` can only be used when creating jobs from Amazon Web Services managed templates. This parameter can't be used with custom job templates or to create jobs from them.
*/
public var documentParameters: List? = null
/**
* A list of environments that are supported with the managed job template.
*/
public var environments: List? = null
/**
* The unique Amazon Resource Name (ARN) of the managed template.
*/
public var templateArn: kotlin.String? = null
/**
* The unique name of a managed template, such as `AWS-Reboot`.
*/
public var templateName: kotlin.String? = null
/**
* The version for a managed template.
*/
public var templateVersion: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.iot.model.DescribeManagedJobTemplateResponse) : this() {
this.description = x.description
this.document = x.document
this.documentParameters = x.documentParameters
this.environments = x.environments
this.templateArn = x.templateArn
this.templateName = x.templateName
this.templateVersion = x.templateVersion
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.iot.model.DescribeManagedJobTemplateResponse = DescribeManagedJobTemplateResponse(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy