commonMain.aws.sdk.kotlin.services.connect.model.CreateAgentStatusRequest.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.connect.model
public class CreateAgentStatusRequest private constructor(builder: Builder) {
/**
* The description of the status.
*/
public val description: kotlin.String? = builder.description
/**
* The display order of the status.
*/
public val displayOrder: kotlin.Int? = builder.displayOrder
/**
* The identifier of the Amazon Connect instance. You can [find the instance ID](https://docs.aws.amazon.com/connect/latest/adminguide/find-instance-arn.html) in the Amazon Resource Name (ARN) of the instance.
*/
public val instanceId: kotlin.String? = requireNotNull(builder.instanceId) { "A non-null value must be provided for instanceId" }
/**
* The name of the status.
*/
public val name: kotlin.String? = builder.name
/**
* The state of the status.
*/
public val state: aws.sdk.kotlin.services.connect.model.AgentStatusState? = builder.state
/**
* The tags used to organize, track, or control access for this resource. For example, { "tags": {"key1":"value1", "key2":"value2"} }.
*/
public val tags: Map? = builder.tags
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.connect.model.CreateAgentStatusRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("CreateAgentStatusRequest(")
append("description=$description,")
append("displayOrder=$displayOrder,")
append("instanceId=$instanceId,")
append("name=$name,")
append("state=$state,")
append("tags=$tags")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = description?.hashCode() ?: 0
result = 31 * result + (displayOrder ?: 0)
result = 31 * result + (instanceId?.hashCode() ?: 0)
result = 31 * result + (name?.hashCode() ?: 0)
result = 31 * result + (state?.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 CreateAgentStatusRequest
if (description != other.description) return false
if (displayOrder != other.displayOrder) return false
if (instanceId != other.instanceId) return false
if (name != other.name) return false
if (state != other.state) return false
if (tags != other.tags) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.connect.model.CreateAgentStatusRequest = Builder(this).apply(block).build()
public class Builder {
/**
* The description of the status.
*/
public var description: kotlin.String? = null
/**
* The display order of the status.
*/
public var displayOrder: kotlin.Int? = null
/**
* The identifier of the Amazon Connect instance. You can [find the instance ID](https://docs.aws.amazon.com/connect/latest/adminguide/find-instance-arn.html) in the Amazon Resource Name (ARN) of the instance.
*/
public var instanceId: kotlin.String? = null
/**
* The name of the status.
*/
public var name: kotlin.String? = null
/**
* The state of the status.
*/
public var state: aws.sdk.kotlin.services.connect.model.AgentStatusState? = null
/**
* The tags used to organize, track, or control access for this resource. For example, { "tags": {"key1":"value1", "key2":"value2"} }.
*/
public var tags: Map? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.connect.model.CreateAgentStatusRequest) : this() {
this.description = x.description
this.displayOrder = x.displayOrder
this.instanceId = x.instanceId
this.name = x.name
this.state = x.state
this.tags = x.tags
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.connect.model.CreateAgentStatusRequest = CreateAgentStatusRequest(this)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy