All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.aws.sdk.kotlin.services.iam.model.GetOrganizationsAccessReportRequest.kt Maven / Gradle / Ivy

// Code generated by smithy-kotlin-codegen. DO NOT EDIT!

package aws.sdk.kotlin.services.iam.model



public class GetOrganizationsAccessReportRequest private constructor(builder: Builder) {
    /**
     * The identifier of the request generated by the GenerateOrganizationsAccessReport operation.
     */
    public val jobId: kotlin.String? = builder.jobId
    /**
     * Use this parameter only when paginating results and only after you receive a response indicating that the results are truncated. Set it to the value of the `Marker` element in the response that you received to indicate where the next call should start.
     */
    public val marker: kotlin.String? = builder.marker
    /**
     * Use this only when paginating results to indicate the maximum number of items you want in the response. If additional items exist beyond the maximum you specify, the `IsTruncated` response element is `true`.
     *
     * If you do not include this parameter, the number of items defaults to 100. Note that IAM might return fewer results, even when there are more results available. In that case, the `IsTruncated` response element returns `true`, and `Marker` contains a value to include in the subsequent call that tells the service where to continue from.
     */
    public val maxItems: kotlin.Int? = builder.maxItems
    /**
     * The key that is used to sort the results. If you choose the namespace key, the results are returned in alphabetical order. If you choose the time key, the results are sorted numerically by the date and time.
     */
    public val sortKey: aws.sdk.kotlin.services.iam.model.SortKeyType? = builder.sortKey

    public companion object {
        public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.iam.model.GetOrganizationsAccessReportRequest = Builder().apply(block).build()
    }

    override fun toString(): kotlin.String = buildString {
        append("GetOrganizationsAccessReportRequest(")
        append("jobId=$jobId,")
        append("marker=$marker,")
        append("maxItems=$maxItems,")
        append("sortKey=$sortKey")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = jobId?.hashCode() ?: 0
        result = 31 * result + (marker?.hashCode() ?: 0)
        result = 31 * result + (maxItems ?: 0)
        result = 31 * result + (sortKey?.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 GetOrganizationsAccessReportRequest

        if (jobId != other.jobId) return false
        if (marker != other.marker) return false
        if (maxItems != other.maxItems) return false
        if (sortKey != other.sortKey) return false

        return true
    }

    public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.iam.model.GetOrganizationsAccessReportRequest = Builder(this).apply(block).build()

    public class Builder {
        /**
         * The identifier of the request generated by the GenerateOrganizationsAccessReport operation.
         */
        public var jobId: kotlin.String? = null
        /**
         * Use this parameter only when paginating results and only after you receive a response indicating that the results are truncated. Set it to the value of the `Marker` element in the response that you received to indicate where the next call should start.
         */
        public var marker: kotlin.String? = null
        /**
         * Use this only when paginating results to indicate the maximum number of items you want in the response. If additional items exist beyond the maximum you specify, the `IsTruncated` response element is `true`.
         *
         * If you do not include this parameter, the number of items defaults to 100. Note that IAM might return fewer results, even when there are more results available. In that case, the `IsTruncated` response element returns `true`, and `Marker` contains a value to include in the subsequent call that tells the service where to continue from.
         */
        public var maxItems: kotlin.Int? = null
        /**
         * The key that is used to sort the results. If you choose the namespace key, the results are returned in alphabetical order. If you choose the time key, the results are sorted numerically by the date and time.
         */
        public var sortKey: aws.sdk.kotlin.services.iam.model.SortKeyType? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.iam.model.GetOrganizationsAccessReportRequest) : this() {
            this.jobId = x.jobId
            this.marker = x.marker
            this.maxItems = x.maxItems
            this.sortKey = x.sortKey
        }

        @PublishedApi
        internal fun build(): aws.sdk.kotlin.services.iam.model.GetOrganizationsAccessReportRequest = GetOrganizationsAccessReportRequest(this)

        internal fun correctErrors(): Builder {
            return this
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy