
commonMain.aws.sdk.kotlin.services.sqs.model.GetQueueUrlRequest.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.sqs.model
/**
*
*/
public class GetQueueUrlRequest private constructor(builder: Builder) {
/**
* The name of the queue whose URL must be fetched. Maximum 80 characters. Valid values: alphanumeric characters, hyphens (`-`), and underscores (`_`).
*
* Queue URLs and names are case-sensitive.
*/
public val queueName: kotlin.String? = builder.queueName
/**
* The Amazon Web Services account ID of the account that created the queue.
*/
public val queueOwnerAwsAccountId: kotlin.String? = builder.queueOwnerAwsAccountId
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.sqs.model.GetQueueUrlRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("GetQueueUrlRequest(")
append("queueName=$queueName,")
append("queueOwnerAwsAccountId=$queueOwnerAwsAccountId")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = queueName?.hashCode() ?: 0
result = 31 * result + (queueOwnerAwsAccountId?.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 GetQueueUrlRequest
if (queueName != other.queueName) return false
if (queueOwnerAwsAccountId != other.queueOwnerAwsAccountId) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.sqs.model.GetQueueUrlRequest = Builder(this).apply(block).build()
public class Builder {
/**
* The name of the queue whose URL must be fetched. Maximum 80 characters. Valid values: alphanumeric characters, hyphens (`-`), and underscores (`_`).
*
* Queue URLs and names are case-sensitive.
*/
public var queueName: kotlin.String? = null
/**
* The Amazon Web Services account ID of the account that created the queue.
*/
public var queueOwnerAwsAccountId: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.sqs.model.GetQueueUrlRequest) : this() {
this.queueName = x.queueName
this.queueOwnerAwsAccountId = x.queueOwnerAwsAccountId
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.sqs.model.GetQueueUrlRequest = GetQueueUrlRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy