commonMain.aws.sdk.kotlin.services.pinpointemail.model.GetConfigurationSetResponse.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pinpointemail-jvm Show documentation
Show all versions of pinpointemail-jvm Show documentation
The AWS SDK for Kotlin client for Pinpoint Email
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.pinpointemail.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* Information about a configuration set.
*/
public class GetConfigurationSetResponse private constructor(builder: Builder) {
/**
* The name of the configuration set.
*/
public val configurationSetName: kotlin.String? = builder.configurationSetName
/**
* An object that defines the dedicated IP pool that is used to send emails that you send using the configuration set.
*/
public val deliveryOptions: aws.sdk.kotlin.services.pinpointemail.model.DeliveryOptions? = builder.deliveryOptions
/**
* An object that defines whether or not Amazon Pinpoint collects reputation metrics for the emails that you send that use the configuration set.
*/
public val reputationOptions: aws.sdk.kotlin.services.pinpointemail.model.ReputationOptions? = builder.reputationOptions
/**
* An object that defines whether or not Amazon Pinpoint can send email that you send using the configuration set.
*/
public val sendingOptions: aws.sdk.kotlin.services.pinpointemail.model.SendingOptions? = builder.sendingOptions
/**
* An array of objects that define the tags (keys and values) that are associated with the configuration set.
*/
public val tags: List? = builder.tags
/**
* An object that defines the open and click tracking options for emails that you send using the configuration set.
*/
public val trackingOptions: aws.sdk.kotlin.services.pinpointemail.model.TrackingOptions? = builder.trackingOptions
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.pinpointemail.model.GetConfigurationSetResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("GetConfigurationSetResponse(")
append("configurationSetName=$configurationSetName,")
append("deliveryOptions=$deliveryOptions,")
append("reputationOptions=$reputationOptions,")
append("sendingOptions=$sendingOptions,")
append("tags=$tags,")
append("trackingOptions=$trackingOptions")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = configurationSetName?.hashCode() ?: 0
result = 31 * result + (deliveryOptions?.hashCode() ?: 0)
result = 31 * result + (reputationOptions?.hashCode() ?: 0)
result = 31 * result + (sendingOptions?.hashCode() ?: 0)
result = 31 * result + (tags?.hashCode() ?: 0)
result = 31 * result + (trackingOptions?.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 GetConfigurationSetResponse
if (configurationSetName != other.configurationSetName) return false
if (deliveryOptions != other.deliveryOptions) return false
if (reputationOptions != other.reputationOptions) return false
if (sendingOptions != other.sendingOptions) return false
if (tags != other.tags) return false
if (trackingOptions != other.trackingOptions) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.pinpointemail.model.GetConfigurationSetResponse = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The name of the configuration set.
*/
public var configurationSetName: kotlin.String? = null
/**
* An object that defines the dedicated IP pool that is used to send emails that you send using the configuration set.
*/
public var deliveryOptions: aws.sdk.kotlin.services.pinpointemail.model.DeliveryOptions? = null
/**
* An object that defines whether or not Amazon Pinpoint collects reputation metrics for the emails that you send that use the configuration set.
*/
public var reputationOptions: aws.sdk.kotlin.services.pinpointemail.model.ReputationOptions? = null
/**
* An object that defines whether or not Amazon Pinpoint can send email that you send using the configuration set.
*/
public var sendingOptions: aws.sdk.kotlin.services.pinpointemail.model.SendingOptions? = null
/**
* An array of objects that define the tags (keys and values) that are associated with the configuration set.
*/
public var tags: List? = null
/**
* An object that defines the open and click tracking options for emails that you send using the configuration set.
*/
public var trackingOptions: aws.sdk.kotlin.services.pinpointemail.model.TrackingOptions? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.pinpointemail.model.GetConfigurationSetResponse) : this() {
this.configurationSetName = x.configurationSetName
this.deliveryOptions = x.deliveryOptions
this.reputationOptions = x.reputationOptions
this.sendingOptions = x.sendingOptions
this.tags = x.tags
this.trackingOptions = x.trackingOptions
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.pinpointemail.model.GetConfigurationSetResponse = GetConfigurationSetResponse(this)
/**
* construct an [aws.sdk.kotlin.services.pinpointemail.model.DeliveryOptions] inside the given [block]
*/
public fun deliveryOptions(block: aws.sdk.kotlin.services.pinpointemail.model.DeliveryOptions.Builder.() -> kotlin.Unit) {
this.deliveryOptions = aws.sdk.kotlin.services.pinpointemail.model.DeliveryOptions.invoke(block)
}
/**
* construct an [aws.sdk.kotlin.services.pinpointemail.model.ReputationOptions] inside the given [block]
*/
public fun reputationOptions(block: aws.sdk.kotlin.services.pinpointemail.model.ReputationOptions.Builder.() -> kotlin.Unit) {
this.reputationOptions = aws.sdk.kotlin.services.pinpointemail.model.ReputationOptions.invoke(block)
}
/**
* construct an [aws.sdk.kotlin.services.pinpointemail.model.SendingOptions] inside the given [block]
*/
public fun sendingOptions(block: aws.sdk.kotlin.services.pinpointemail.model.SendingOptions.Builder.() -> kotlin.Unit) {
this.sendingOptions = aws.sdk.kotlin.services.pinpointemail.model.SendingOptions.invoke(block)
}
/**
* construct an [aws.sdk.kotlin.services.pinpointemail.model.TrackingOptions] inside the given [block]
*/
public fun trackingOptions(block: aws.sdk.kotlin.services.pinpointemail.model.TrackingOptions.Builder.() -> kotlin.Unit) {
this.trackingOptions = aws.sdk.kotlin.services.pinpointemail.model.TrackingOptions.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}