
commonMain.aws.sdk.kotlin.services.quicksight.model.CreateFolderRequest.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.quicksight.model
class CreateFolderRequest private constructor(builder: Builder) {
/**
* The ID for the Amazon Web Services account where you want to create the folder.
*/
val awsAccountId: kotlin.String? = builder.awsAccountId
/**
* The ID of the folder.
*/
val folderId: kotlin.String? = builder.folderId
/**
* The type of folder. By default, `folderType` is `SHARED`.
*/
val folderType: aws.sdk.kotlin.services.quicksight.model.FolderType? = builder.folderType
/**
* The name of the folder.
*/
val name: kotlin.String? = builder.name
/**
* The Amazon Resource Name (ARN) for the parent folder.
*
* `ParentFolderArn` can be null. An empty `parentFolderArn` creates a root-level folder.
*/
val parentFolderArn: kotlin.String? = builder.parentFolderArn
/**
* A structure that describes the principals and the resource-level permissions of a folder.
*
* To specify no permissions, omit `Permissions`.
*/
val permissions: List? = builder.permissions
/**
* Tags for the folder.
*/
val tags: List? = builder.tags
companion object {
operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.quicksight.model.CreateFolderRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("CreateFolderRequest(")
append("awsAccountId=$awsAccountId,")
append("folderId=$folderId,")
append("folderType=$folderType,")
append("name=$name,")
append("parentFolderArn=$parentFolderArn,")
append("permissions=$permissions,")
append("tags=$tags)")
}
override fun hashCode(): kotlin.Int {
var result = awsAccountId?.hashCode() ?: 0
result = 31 * result + (folderId?.hashCode() ?: 0)
result = 31 * result + (folderType?.hashCode() ?: 0)
result = 31 * result + (name?.hashCode() ?: 0)
result = 31 * result + (parentFolderArn?.hashCode() ?: 0)
result = 31 * result + (permissions?.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 CreateFolderRequest
if (awsAccountId != other.awsAccountId) return false
if (folderId != other.folderId) return false
if (folderType != other.folderType) return false
if (name != other.name) return false
if (parentFolderArn != other.parentFolderArn) return false
if (permissions != other.permissions) return false
if (tags != other.tags) return false
return true
}
inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.quicksight.model.CreateFolderRequest = Builder(this).apply(block).build()
class Builder {
/**
* The ID for the Amazon Web Services account where you want to create the folder.
*/
var awsAccountId: kotlin.String? = null
/**
* The ID of the folder.
*/
var folderId: kotlin.String? = null
/**
* The type of folder. By default, `folderType` is `SHARED`.
*/
var folderType: aws.sdk.kotlin.services.quicksight.model.FolderType? = null
/**
* The name of the folder.
*/
var name: kotlin.String? = null
/**
* The Amazon Resource Name (ARN) for the parent folder.
*
* `ParentFolderArn` can be null. An empty `parentFolderArn` creates a root-level folder.
*/
var parentFolderArn: kotlin.String? = null
/**
* A structure that describes the principals and the resource-level permissions of a folder.
*
* To specify no permissions, omit `Permissions`.
*/
var permissions: List? = null
/**
* Tags for the folder.
*/
var tags: List? = null
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.quicksight.model.CreateFolderRequest) : this() {
this.awsAccountId = x.awsAccountId
this.folderId = x.folderId
this.folderType = x.folderType
this.name = x.name
this.parentFolderArn = x.parentFolderArn
this.permissions = x.permissions
this.tags = x.tags
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.quicksight.model.CreateFolderRequest = CreateFolderRequest(this)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy