
commonMain.aws.sdk.kotlin.services.quicksight.model.CreateAccountCustomizationRequest.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.quicksight.model
class CreateAccountCustomizationRequest private constructor(builder: Builder) {
/**
* The Amazon QuickSight customizations you're adding in the current Amazon Web Services Region. You can add these to an Amazon Web Services account and a QuickSight namespace.
*
* For example, you can add a default theme by setting `AccountCustomization` to the midnight theme: `"AccountCustomization": { "DefaultTheme": "arn:aws:quicksight::aws:theme/MIDNIGHT" }`. Or, you can add a custom theme by specifying `"AccountCustomization": { "DefaultTheme": "arn:aws:quicksight:us-west-2:111122223333:theme/bdb844d0-0fe9-4d9d-b520-0fe602d93639" }`.
*/
val accountCustomization: aws.sdk.kotlin.services.quicksight.model.AccountCustomization? = builder.accountCustomization
/**
* The ID for the Amazon Web Services account that you want to customize Amazon QuickSight for.
*/
val awsAccountId: kotlin.String? = builder.awsAccountId
/**
* The Amazon QuickSight namespace that you want to add customizations to.
*/
val namespace: kotlin.String? = builder.namespace
/**
* A list of the tags that you want to attach to this resource.
*/
val tags: List? = builder.tags
companion object {
operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.quicksight.model.CreateAccountCustomizationRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("CreateAccountCustomizationRequest(")
append("accountCustomization=$accountCustomization,")
append("awsAccountId=$awsAccountId,")
append("namespace=$namespace,")
append("tags=$tags)")
}
override fun hashCode(): kotlin.Int {
var result = accountCustomization?.hashCode() ?: 0
result = 31 * result + (awsAccountId?.hashCode() ?: 0)
result = 31 * result + (namespace?.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 CreateAccountCustomizationRequest
if (accountCustomization != other.accountCustomization) return false
if (awsAccountId != other.awsAccountId) return false
if (namespace != other.namespace) return false
if (tags != other.tags) return false
return true
}
inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.quicksight.model.CreateAccountCustomizationRequest = Builder(this).apply(block).build()
class Builder {
/**
* The Amazon QuickSight customizations you're adding in the current Amazon Web Services Region. You can add these to an Amazon Web Services account and a QuickSight namespace.
*
* For example, you can add a default theme by setting `AccountCustomization` to the midnight theme: `"AccountCustomization": { "DefaultTheme": "arn:aws:quicksight::aws:theme/MIDNIGHT" }`. Or, you can add a custom theme by specifying `"AccountCustomization": { "DefaultTheme": "arn:aws:quicksight:us-west-2:111122223333:theme/bdb844d0-0fe9-4d9d-b520-0fe602d93639" }`.
*/
var accountCustomization: aws.sdk.kotlin.services.quicksight.model.AccountCustomization? = null
/**
* The ID for the Amazon Web Services account that you want to customize Amazon QuickSight for.
*/
var awsAccountId: kotlin.String? = null
/**
* The Amazon QuickSight namespace that you want to add customizations to.
*/
var namespace: kotlin.String? = null
/**
* A list of the tags that you want to attach to this resource.
*/
var tags: List? = null
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.quicksight.model.CreateAccountCustomizationRequest) : this() {
this.accountCustomization = x.accountCustomization
this.awsAccountId = x.awsAccountId
this.namespace = x.namespace
this.tags = x.tags
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.quicksight.model.CreateAccountCustomizationRequest = CreateAccountCustomizationRequest(this)
/**
* construct an [aws.sdk.kotlin.services.quicksight.model.AccountCustomization] inside the given [block]
*/
fun accountCustomization(block: aws.sdk.kotlin.services.quicksight.model.AccountCustomization.Builder.() -> kotlin.Unit) {
this.accountCustomization = aws.sdk.kotlin.services.quicksight.model.AccountCustomization.invoke(block)
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy