commonMain.aws.sdk.kotlin.services.deadline.model.UpdateMonitorRequest.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 UpdateMonitorRequest private constructor(builder: Builder) {
/**
* The new value to use for the monitor's display name.
*
* This field can store any content. Escape or encode this content before displaying it on a webpage or any other system that might interpret the content of this field.
*/
public val displayName: kotlin.String? = builder.displayName
/**
* The unique identifier of the monitor to update.
*/
public val monitorId: kotlin.String? = builder.monitorId
/**
* The Amazon Resource Name (ARN) of the new IAM role to use with the monitor.
*/
public val roleArn: kotlin.String? = builder.roleArn
/**
* The new value of the subdomain to use when forming the monitor URL.
*/
public val subdomain: kotlin.String? = builder.subdomain
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.deadline.model.UpdateMonitorRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("UpdateMonitorRequest(")
append("displayName=$displayName,")
append("monitorId=$monitorId,")
append("roleArn=$roleArn,")
append("subdomain=$subdomain")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = displayName?.hashCode() ?: 0
result = 31 * result + (monitorId?.hashCode() ?: 0)
result = 31 * result + (roleArn?.hashCode() ?: 0)
result = 31 * result + (subdomain?.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 UpdateMonitorRequest
if (displayName != other.displayName) return false
if (monitorId != other.monitorId) return false
if (roleArn != other.roleArn) return false
if (subdomain != other.subdomain) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.deadline.model.UpdateMonitorRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The new value to use for the monitor's display name.
*
* This field can store any content. Escape or encode this content before displaying it on a webpage or any other system that might interpret the content of this field.
*/
public var displayName: kotlin.String? = null
/**
* The unique identifier of the monitor to update.
*/
public var monitorId: kotlin.String? = null
/**
* The Amazon Resource Name (ARN) of the new IAM role to use with the monitor.
*/
public var roleArn: kotlin.String? = null
/**
* The new value of the subdomain to use when forming the monitor URL.
*/
public var subdomain: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.deadline.model.UpdateMonitorRequest) : this() {
this.displayName = x.displayName
this.monitorId = x.monitorId
this.roleArn = x.roleArn
this.subdomain = x.subdomain
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.deadline.model.UpdateMonitorRequest = UpdateMonitorRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}