commonMain.aws.sdk.kotlin.services.iot1clickprojects.model.UpdateProjectRequest.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of iot1clickprojects-jvm Show documentation
Show all versions of iot1clickprojects-jvm Show documentation
The AWS SDK for Kotlin client for IoT 1Click Projects
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.iot1clickprojects.model
import aws.smithy.kotlin.runtime.SdkDsl
public class UpdateProjectRequest private constructor(builder: Builder) {
/**
* An optional user-defined description for the project.
*/
public val description: kotlin.String? = builder.description
/**
* An object defining the project update. Once a project has been created, you cannot add device template names to the project. However, for a given `placementTemplate`, you can update the associated `callbackOverrides` for the device definition using this API.
*/
public val placementTemplate: aws.sdk.kotlin.services.iot1clickprojects.model.PlacementTemplate? = builder.placementTemplate
/**
* The name of the project to be updated.
*/
public val projectName: kotlin.String? = builder.projectName
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.iot1clickprojects.model.UpdateProjectRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("UpdateProjectRequest(")
append("description=$description,")
append("placementTemplate=$placementTemplate,")
append("projectName=$projectName")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = description?.hashCode() ?: 0
result = 31 * result + (placementTemplate?.hashCode() ?: 0)
result = 31 * result + (projectName?.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 UpdateProjectRequest
if (description != other.description) return false
if (placementTemplate != other.placementTemplate) return false
if (projectName != other.projectName) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.iot1clickprojects.model.UpdateProjectRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* An optional user-defined description for the project.
*/
public var description: kotlin.String? = null
/**
* An object defining the project update. Once a project has been created, you cannot add device template names to the project. However, for a given `placementTemplate`, you can update the associated `callbackOverrides` for the device definition using this API.
*/
public var placementTemplate: aws.sdk.kotlin.services.iot1clickprojects.model.PlacementTemplate? = null
/**
* The name of the project to be updated.
*/
public var projectName: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.iot1clickprojects.model.UpdateProjectRequest) : this() {
this.description = x.description
this.placementTemplate = x.placementTemplate
this.projectName = x.projectName
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.iot1clickprojects.model.UpdateProjectRequest = UpdateProjectRequest(this)
/**
* construct an [aws.sdk.kotlin.services.iot1clickprojects.model.PlacementTemplate] inside the given [block]
*/
public fun placementTemplate(block: aws.sdk.kotlin.services.iot1clickprojects.model.PlacementTemplate.Builder.() -> kotlin.Unit) {
this.placementTemplate = aws.sdk.kotlin.services.iot1clickprojects.model.PlacementTemplate.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy