
commonMain.aws.sdk.kotlin.services.quicksight.model.SearchFoldersRequest.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.quicksight.model
class SearchFoldersRequest private constructor(builder: Builder) {
/**
* The ID for the Amazon Web Services account that contains the folder.
*/
val awsAccountId: kotlin.String? = builder.awsAccountId
/**
* The filters to apply to the search. Currently, you can search only by the parent folder ARN. For example, `"Filters": [ { "Name": "PARENT_FOLDER_ARN", "Operator": "StringEquals", "Value": "arn:aws:quicksight:us-east-1:1:folder/folderId" } ]`.
*/
val filters: List? = builder.filters
/**
* The maximum number of results to be returned per request.
*/
val maxResults: kotlin.Int = builder.maxResults
/**
* The token for the next set of results, or null if there are no more results.
*/
val nextToken: kotlin.String? = builder.nextToken
companion object {
operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.quicksight.model.SearchFoldersRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("SearchFoldersRequest(")
append("awsAccountId=$awsAccountId,")
append("filters=$filters,")
append("maxResults=$maxResults,")
append("nextToken=$nextToken)")
}
override fun hashCode(): kotlin.Int {
var result = awsAccountId?.hashCode() ?: 0
result = 31 * result + (filters?.hashCode() ?: 0)
result = 31 * result + (maxResults)
result = 31 * result + (nextToken?.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 SearchFoldersRequest
if (awsAccountId != other.awsAccountId) return false
if (filters != other.filters) return false
if (maxResults != other.maxResults) return false
if (nextToken != other.nextToken) return false
return true
}
inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.quicksight.model.SearchFoldersRequest = Builder(this).apply(block).build()
class Builder {
/**
* The ID for the Amazon Web Services account that contains the folder.
*/
var awsAccountId: kotlin.String? = null
/**
* The filters to apply to the search. Currently, you can search only by the parent folder ARN. For example, `"Filters": [ { "Name": "PARENT_FOLDER_ARN", "Operator": "StringEquals", "Value": "arn:aws:quicksight:us-east-1:1:folder/folderId" } ]`.
*/
var filters: List? = null
/**
* The maximum number of results to be returned per request.
*/
var maxResults: kotlin.Int = 0
/**
* The token for the next set of results, or null if there are no more results.
*/
var nextToken: kotlin.String? = null
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.quicksight.model.SearchFoldersRequest) : this() {
this.awsAccountId = x.awsAccountId
this.filters = x.filters
this.maxResults = x.maxResults
this.nextToken = x.nextToken
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.quicksight.model.SearchFoldersRequest = SearchFoldersRequest(this)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy