commonMain.aws.sdk.kotlin.services.deadline.model.CreateMonitorResponse.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of deadline-jvm Show documentation
Show all versions of deadline-jvm Show documentation
The AWS SDK for Kotlin client for deadline
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.deadline.model
import aws.smithy.kotlin.runtime.SdkDsl
public class CreateMonitorResponse private constructor(builder: Builder) {
/**
* The Amazon Resource Name (ARN) that IAM Identity Center assigns to the monitor.
*/
public val identityCenterApplicationArn: kotlin.String = requireNotNull(builder.identityCenterApplicationArn) { "A non-null value must be provided for identityCenterApplicationArn" }
/**
* The unique identifier of the monitor.
*/
public val monitorId: kotlin.String = requireNotNull(builder.monitorId) { "A non-null value must be provided for monitorId" }
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.deadline.model.CreateMonitorResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("CreateMonitorResponse(")
append("identityCenterApplicationArn=$identityCenterApplicationArn,")
append("monitorId=$monitorId")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = identityCenterApplicationArn.hashCode()
result = 31 * result + (monitorId.hashCode())
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 CreateMonitorResponse
if (identityCenterApplicationArn != other.identityCenterApplicationArn) return false
if (monitorId != other.monitorId) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.deadline.model.CreateMonitorResponse = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The Amazon Resource Name (ARN) that IAM Identity Center assigns to the monitor.
*/
public var identityCenterApplicationArn: kotlin.String? = null
/**
* The unique identifier of the monitor.
*/
public var monitorId: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.deadline.model.CreateMonitorResponse) : this() {
this.identityCenterApplicationArn = x.identityCenterApplicationArn
this.monitorId = x.monitorId
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.deadline.model.CreateMonitorResponse = CreateMonitorResponse(this)
internal fun correctErrors(): Builder {
if (identityCenterApplicationArn == null) identityCenterApplicationArn = ""
if (monitorId == null) monitorId = ""
return this
}
}
}