
commonMain.aws.sdk.kotlin.services.sns.model.SubscribeResponse.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.sns.model
/**
* Response for Subscribe action.
*/
public class SubscribeResponse private constructor(builder: Builder) {
/**
* The ARN of the subscription if it is confirmed, or the string "pending confirmation" if the subscription requires confirmation. However, if the API request parameter `ReturnSubscriptionArn` is true, then the value is always the subscription ARN, even if the subscription requires confirmation.
*/
public val subscriptionArn: kotlin.String? = builder.subscriptionArn
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.sns.model.SubscribeResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("SubscribeResponse(")
append("subscriptionArn=$subscriptionArn")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = subscriptionArn?.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 SubscribeResponse
if (subscriptionArn != other.subscriptionArn) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.sns.model.SubscribeResponse = Builder(this).apply(block).build()
public class Builder {
/**
* The ARN of the subscription if it is confirmed, or the string "pending confirmation" if the subscription requires confirmation. However, if the API request parameter `ReturnSubscriptionArn` is true, then the value is always the subscription ARN, even if the subscription requires confirmation.
*/
public var subscriptionArn: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.sns.model.SubscribeResponse) : this() {
this.subscriptionArn = x.subscriptionArn
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.sns.model.SubscribeResponse = SubscribeResponse(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy