63 63 | }
|
64 64 |
|
65 65 | public data class SdkUnknown(override val value: kotlin.String) : aws.sdk.kotlin.services.dynamodb.model.BatchStatementErrorCodeEnum() {
|
66 66 | override fun toString(): kotlin.String = "SdkUnknown($value)"
|
67 67 | }
|
68 68 |
|
69 69 | public companion object {
|
70 70 | /**
|
71 71 | * Convert a raw value to one of the sealed variants or [SdkUnknown]
|
72 72 | */
|
73 73 | public fun fromValue(value: kotlin.String): aws.sdk.kotlin.services.dynamodb.model.BatchStatementErrorCodeEnum = when (value) {
|
74 74 | "AccessDenied" -> AccessDenied
|
75 75 | "ConditionalCheckFailed" -> ConditionalCheckFailed
|
76 76 | "DuplicateItem" -> DuplicateItem
|
77 77 | "InternalServerError" -> InternalServerError
|
78 78 | "ItemCollectionSizeLimitExceeded" -> ItemCollectionSizeLimitExceeded
|
79 79 | "ProvisionedThroughputExceeded" -> ProvisionedThroughputExceeded
|
80 80 | "RequestLimitExceeded" -> RequestLimitExceeded
|
81 81 | "ResourceNotFound" -> ResourceNotFound
|
82 82 | "ThrottlingError" -> ThrottlingError
|
83 83 | "TransactionConflict" -> TransactionConflict
|
84 84 | "ValidationError" -> ValidationError
|
85 85 | else -> SdkUnknown(value)
|
86 86 | }
|
87 87 |
|
88 88 | /**
|
89 89 | * Get a list of all possible variants
|
90 90 | */
|
91 91 | public fun values(): kotlin.collections.List<aws.sdk.kotlin.services.dynamodb.model.BatchStatementErrorCodeEnum> = values
|
92 92 |
|
93 - | private val values: kotlin.collections.List<aws.sdk.kotlin.services.dynamodb.model.BatchStatementErrorCodeEnum> = listOf(
|
93 + | private val values: kotlin.collections.List<aws.sdk.kotlin.services.dynamodb.model.BatchStatementErrorCodeEnum> by lazy { listOf(
|
94 94 | AccessDenied,
|
95 95 | ConditionalCheckFailed,
|
96 96 | DuplicateItem,
|
97 97 | InternalServerError,
|
98 98 | ItemCollectionSizeLimitExceeded,
|
99 99 | ProvisionedThroughputExceeded,
|
100 100 | RequestLimitExceeded,
|
101 101 | ResourceNotFound,
|
102 102 | ThrottlingError,
|
103 103 | TransactionConflict,
|
104 104 | ValidationError,
|
105 - | )
|
105 + | ) }
|
106 106 | }
|
107 107 | }
|