@@ -20,7 +20,7 @@ import java.util.Objects
2020import java.util.Optional
2121import kotlin.jvm.optionals.getOrNull
2222
23- class ObjectTypeDefinition
23+ class BaseObjectTypeDefinition
2424@JsonCreator(mode = JsonCreator .Mode .DISABLED )
2525private constructor (
2626 private val id: JsonField <String >,
@@ -339,7 +339,7 @@ private constructor(
339339 companion object {
340340
341341 /* *
342- * Returns a mutable builder for constructing an instance of [ObjectTypeDefinition ].
342+ * Returns a mutable builder for constructing an instance of [BaseObjectTypeDefinition ].
343343 *
344344 * The following fields are required:
345345 * ```java
@@ -358,7 +358,7 @@ private constructor(
358358 @JvmStatic fun builder () = Builder ()
359359 }
360360
361- /* * A builder for [ObjectTypeDefinition ]. */
361+ /* * A builder for [BaseObjectTypeDefinition ]. */
362362 class Builder internal constructor() {
363363
364364 private var id: JsonField <String >? = null
@@ -379,25 +379,26 @@ private constructor(
379379 private var additionalProperties: MutableMap <String , JsonValue > = mutableMapOf ()
380380
381381 @JvmSynthetic
382- internal fun from (objectTypeDefinition : ObjectTypeDefinition ) = apply {
383- id = objectTypeDefinition.id
384- allowsSensitiveProperties = objectTypeDefinition.allowsSensitiveProperties
385- archived = objectTypeDefinition.archived
386- fullyQualifiedName = objectTypeDefinition.fullyQualifiedName
387- labels = objectTypeDefinition.labels
388- name = objectTypeDefinition.name
389- objectTypeId = objectTypeDefinition.objectTypeId
390- requiredProperties = objectTypeDefinition.requiredProperties.map { it.toMutableList() }
382+ internal fun from (baseObjectTypeDefinition : BaseObjectTypeDefinition ) = apply {
383+ id = baseObjectTypeDefinition.id
384+ allowsSensitiveProperties = baseObjectTypeDefinition.allowsSensitiveProperties
385+ archived = baseObjectTypeDefinition.archived
386+ fullyQualifiedName = baseObjectTypeDefinition.fullyQualifiedName
387+ labels = baseObjectTypeDefinition.labels
388+ name = baseObjectTypeDefinition.name
389+ objectTypeId = baseObjectTypeDefinition.objectTypeId
390+ requiredProperties =
391+ baseObjectTypeDefinition.requiredProperties.map { it.toMutableList() }
391392 searchableProperties =
392- objectTypeDefinition .searchableProperties.map { it.toMutableList() }
393+ baseObjectTypeDefinition .searchableProperties.map { it.toMutableList() }
393394 secondaryDisplayProperties =
394- objectTypeDefinition .secondaryDisplayProperties.map { it.toMutableList() }
395- createdAt = objectTypeDefinition .createdAt
396- description = objectTypeDefinition .description
397- portalId = objectTypeDefinition .portalId
398- primaryDisplayProperty = objectTypeDefinition .primaryDisplayProperty
399- updatedAt = objectTypeDefinition .updatedAt
400- additionalProperties = objectTypeDefinition .additionalProperties.toMutableMap()
395+ baseObjectTypeDefinition .secondaryDisplayProperties.map { it.toMutableList() }
396+ createdAt = baseObjectTypeDefinition .createdAt
397+ description = baseObjectTypeDefinition .description
398+ portalId = baseObjectTypeDefinition .portalId
399+ primaryDisplayProperty = baseObjectTypeDefinition .primaryDisplayProperty
400+ updatedAt = baseObjectTypeDefinition .updatedAt
401+ additionalProperties = baseObjectTypeDefinition .additionalProperties.toMutableMap()
401402 }
402403
403404 fun id (id : String ) = id(JsonField .of(id))
@@ -640,7 +641,7 @@ private constructor(
640641 }
641642
642643 /* *
643- * Returns an immutable instance of [ObjectTypeDefinition ].
644+ * Returns an immutable instance of [BaseObjectTypeDefinition ].
644645 *
645646 * Further updates to this [Builder] will not mutate the returned instance.
646647 *
@@ -660,8 +661,8 @@ private constructor(
660661 *
661662 * @throws IllegalStateException if any required field is unset.
662663 */
663- fun build (): ObjectTypeDefinition =
664- ObjectTypeDefinition (
664+ fun build (): BaseObjectTypeDefinition =
665+ BaseObjectTypeDefinition (
665666 checkRequired(" id" , id),
666667 checkRequired(" allowsSensitiveProperties" , allowsSensitiveProperties),
667668 checkRequired(" archived" , archived),
@@ -687,7 +688,7 @@ private constructor(
687688
688689 private var validated: Boolean = false
689690
690- fun validate (): ObjectTypeDefinition = apply {
691+ fun validate (): BaseObjectTypeDefinition = apply {
691692 if (validated) {
692693 return @apply
693694 }
@@ -746,7 +747,7 @@ private constructor(
746747 return true
747748 }
748749
749- return other is ObjectTypeDefinition &&
750+ return other is BaseObjectTypeDefinition &&
750751 id == other.id &&
751752 allowsSensitiveProperties == other.allowsSensitiveProperties &&
752753 archived == other.archived &&
@@ -789,5 +790,5 @@ private constructor(
789790 override fun hashCode (): Int = hashCode
790791
791792 override fun toString () =
792- " ObjectTypeDefinition {id=$id , allowsSensitiveProperties=$allowsSensitiveProperties , archived=$archived , fullyQualifiedName=$fullyQualifiedName , labels=$labels , name=$name , objectTypeId=$objectTypeId , requiredProperties=$requiredProperties , searchableProperties=$searchableProperties , secondaryDisplayProperties=$secondaryDisplayProperties , createdAt=$createdAt , description=$description , portalId=$portalId , primaryDisplayProperty=$primaryDisplayProperty , updatedAt=$updatedAt , additionalProperties=$additionalProperties }"
793+ " BaseObjectTypeDefinition {id=$id , allowsSensitiveProperties=$allowsSensitiveProperties , archived=$archived , fullyQualifiedName=$fullyQualifiedName , labels=$labels , name=$name , objectTypeId=$objectTypeId , requiredProperties=$requiredProperties , searchableProperties=$searchableProperties , secondaryDisplayProperties=$secondaryDisplayProperties , createdAt=$createdAt , description=$description , portalId=$portalId , primaryDisplayProperty=$primaryDisplayProperty , updatedAt=$updatedAt , additionalProperties=$additionalProperties }"
793794}
0 commit comments