commonMain.aws.sdk.kotlin.services.iotsitewise.model.CreateDashboardRequest.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of iotsitewise-jvm Show documentation
Show all versions of iotsitewise-jvm Show documentation
The AWS SDK for Kotlin client for IoTSiteWise
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.iotsitewise.model
import aws.smithy.kotlin.runtime.SdkDsl
public class CreateDashboardRequest private constructor(builder: Builder) {
/**
* A unique case-sensitive identifier that you can provide to ensure the idempotency of the request. Don't reuse this client token if a new idempotent request is required.
*/
public val clientToken: kotlin.String? = builder.clientToken
/**
* The dashboard definition specified in a JSON literal. For detailed information, see [Creating dashboards (CLI)](https://docs.aws.amazon.com/iot-sitewise/latest/userguide/create-dashboards-using-aws-cli.html) in the *IoT SiteWise User Guide*.
*/
public val dashboardDefinition: kotlin.String? = builder.dashboardDefinition
/**
* A description for the dashboard.
*/
public val dashboardDescription: kotlin.String? = builder.dashboardDescription
/**
* A friendly name for the dashboard.
*/
public val dashboardName: kotlin.String? = builder.dashboardName
/**
* The ID of the project in which to create the dashboard.
*/
public val projectId: kotlin.String? = builder.projectId
/**
* A list of key-value pairs that contain metadata for the dashboard. For more information, see [Tagging your IoT SiteWise resources](https://docs.aws.amazon.com/iot-sitewise/latest/userguide/tag-resources.html) in the *IoT SiteWise User Guide*.
*/
public val tags: Map? = builder.tags
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.iotsitewise.model.CreateDashboardRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("CreateDashboardRequest(")
append("clientToken=$clientToken,")
append("dashboardDefinition=$dashboardDefinition,")
append("dashboardDescription=$dashboardDescription,")
append("dashboardName=$dashboardName,")
append("projectId=$projectId,")
append("tags=$tags")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = clientToken?.hashCode() ?: 0
result = 31 * result + (dashboardDefinition?.hashCode() ?: 0)
result = 31 * result + (dashboardDescription?.hashCode() ?: 0)
result = 31 * result + (dashboardName?.hashCode() ?: 0)
result = 31 * result + (projectId?.hashCode() ?: 0)
result = 31 * result + (tags?.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 CreateDashboardRequest
if (clientToken != other.clientToken) return false
if (dashboardDefinition != other.dashboardDefinition) return false
if (dashboardDescription != other.dashboardDescription) return false
if (dashboardName != other.dashboardName) return false
if (projectId != other.projectId) return false
if (tags != other.tags) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.iotsitewise.model.CreateDashboardRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* A unique case-sensitive identifier that you can provide to ensure the idempotency of the request. Don't reuse this client token if a new idempotent request is required.
*/
public var clientToken: kotlin.String? = null
/**
* The dashboard definition specified in a JSON literal. For detailed information, see [Creating dashboards (CLI)](https://docs.aws.amazon.com/iot-sitewise/latest/userguide/create-dashboards-using-aws-cli.html) in the *IoT SiteWise User Guide*.
*/
public var dashboardDefinition: kotlin.String? = null
/**
* A description for the dashboard.
*/
public var dashboardDescription: kotlin.String? = null
/**
* A friendly name for the dashboard.
*/
public var dashboardName: kotlin.String? = null
/**
* The ID of the project in which to create the dashboard.
*/
public var projectId: kotlin.String? = null
/**
* A list of key-value pairs that contain metadata for the dashboard. For more information, see [Tagging your IoT SiteWise resources](https://docs.aws.amazon.com/iot-sitewise/latest/userguide/tag-resources.html) in the *IoT SiteWise User Guide*.
*/
public var tags: Map? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.iotsitewise.model.CreateDashboardRequest) : this() {
this.clientToken = x.clientToken
this.dashboardDefinition = x.dashboardDefinition
this.dashboardDescription = x.dashboardDescription
this.dashboardName = x.dashboardName
this.projectId = x.projectId
this.tags = x.tags
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.iotsitewise.model.CreateDashboardRequest = CreateDashboardRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy