diff --git a/.gitignore b/.gitignore
index 59419d57edec3ba08708209cd4b803363221ccfd..00277efa677def512f6f3d954d2204aadc20d188 100644
--- a/.gitignore
+++ b/.gitignore
@@ -4,3 +4,5 @@
/.project
/.classpath
/.settings
+*.iml
+/.factorypath
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 3d872f628da12898f872b41465d9794dfc5c0684..3f669e27a7079fdd5a208bcb1fa754ba00491cc4 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -21,7 +21,7 @@ include:
- ci-templates/default.yml
- ci-templates/build.yml
rules:
- - if: '$CI_COMMIT_REF_PROTECTED && $CI_COMMIT_REF_NAME != "main" && $CI_COMMIT_REF_NAME != "develop"'
+ - if: '$CI_COMMIT_REF_PROTECTED == "true" && $CI_COMMIT_REF_NAME != "main" && $CI_COMMIT_REF_NAME != "develop"'
- project: osl/code/org.etsi.osl.main
ref: develop
@@ -29,7 +29,7 @@ include:
- ci-templates/default.yml
- ci-templates/build_unprotected.yml
rules:
- - if: '$CI_COMMIT_REF_NAME != "main" && $CI_COMMIT_REF_NAME != "develop" && !$CI_COMMIT_REF_PROTECTED'
+ - if: '$CI_COMMIT_REF_NAME != "main" && $CI_COMMIT_REF_NAME != "develop" && $CI_COMMIT_REF_PROTECTED == "false"'
maven_build:
extends: .maven_build
diff --git a/README.md b/README.md
index c89970778f4675c76df99f80248db352493b3a4e..53bcdba495e00ccc2ebadfa8453f574763e04eb4 100644
--- a/README.md
+++ b/README.md
@@ -1,7 +1,5 @@
# org.etsi.osl.model.tmf
-
-
## Getting started
To make it easy for you to get started with GitLab, here's a list of recommended next steps.
@@ -44,6 +42,7 @@ Use the built-in continuous integration in GitLab.
***
+
# Editing this README
When you're ready to make this README your own, just edit this file and use the handy template below (or feel free to structure it however you want - this is just a starting point!). Thank you to [makeareadme.com](https://www.makeareadme.com/) for this template.
diff --git a/pom.xml b/pom.xml
index e38a41b319ba1bfbf6e4b684dbe8c5eb090c8280..41e388ecded44b09008f04dbd8226c4313abb79e 100644
--- a/pom.xml
+++ b/pom.xml
@@ -3,11 +3,13 @@
org.etsi.osl
org.etsi.osl.main
- 1.0.0
+ 2024Q4
../org.etsi.osl.main
+
org.etsi.osl.model.tmf
+ ${org.etsi.osl.model.tmf.version}
UTF-8
@@ -17,12 +19,17 @@
${springdoc-version}
1.5.3.Final
+
gitlab-maven
https://labs.etsi.org/rep/api/v4/groups/260/-/packages/maven
+
+ jitpack.io
+ https://jitpack.io
+
@@ -65,6 +72,11 @@
com.fasterxml.jackson.datatype
jackson-datatype-hibernate5-jakarta
+
+ org.openapitools
+ jackson-databind-nullable
+ 0.2.6
+
@@ -84,6 +96,23 @@
mapstruct-processor
${mapstruct.version}
+
+ javax.annotation
+ javax.annotation-api
+ 1.3.2
+ compile
+
+
+ jakarta.validation
+ jakarta.validation-api
+ 3.0.2
+
+
+ org.jetbrains
+ annotations
+ 13.0
+ compile
+
diff --git a/src/main/java/org/etsi/osl/tmf/am651/model/Agreement.java b/src/main/java/org/etsi/osl/tmf/am651/model/Agreement.java
index 9dd3e97092120a576b480efaa8957f9c4a42f9d2..113259c06b764c6cc3e1083ca718d826e01e2987 100644
--- a/src/main/java/org/etsi/osl/tmf/am651/model/Agreement.java
+++ b/src/main/java/org/etsi/osl/tmf/am651/model/Agreement.java
@@ -26,6 +26,7 @@ import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty;
import org.etsi.osl.tmf.common.model.TimePeriod;
+import org.etsi.osl.tmf.common.model.service.Characteristic;
import org.springframework.validation.annotation.Validated;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.Valid;
diff --git a/src/main/java/org/etsi/osl/tmf/am651/model/AgreementCreate.java b/src/main/java/org/etsi/osl/tmf/am651/model/AgreementCreate.java
index 841688a9cf84e16e3c7756af5644b1dfbfe28c3c..02f5906d63b5dda4c31c6fc826bf320766ebd146 100644
--- a/src/main/java/org/etsi/osl/tmf/am651/model/AgreementCreate.java
+++ b/src/main/java/org/etsi/osl/tmf/am651/model/AgreementCreate.java
@@ -26,6 +26,7 @@ import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty;
import org.etsi.osl.tmf.common.model.TimePeriod;
+import org.etsi.osl.tmf.common.model.service.Characteristic;
import org.springframework.validation.annotation.Validated;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.Valid;
diff --git a/src/main/java/org/etsi/osl/tmf/am651/model/AgreementItem.java b/src/main/java/org/etsi/osl/tmf/am651/model/AgreementItem.java
index a07440a16ef1a71e1628f7fc55ad6674544411e9..17a37426d8c3180b245ec3a201c9bb952244be86 100644
--- a/src/main/java/org/etsi/osl/tmf/am651/model/AgreementItem.java
+++ b/src/main/java/org/etsi/osl/tmf/am651/model/AgreementItem.java
@@ -24,7 +24,7 @@ import java.util.List;
import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty;
-
+import org.etsi.osl.tmf.pcm620.model.ProductOfferingRef;
import org.springframework.validation.annotation.Validated;
import io.swagger.v3.oas.annotations.media.Schema;
diff --git a/src/main/java/org/etsi/osl/tmf/am651/model/AgreementUpdate.java b/src/main/java/org/etsi/osl/tmf/am651/model/AgreementUpdate.java
index b98ce9b6f5106c869a2bf53c4ecd93fdb5a0f813..c3a349813d041a6a425896a9d7ba3a9b20496286 100644
--- a/src/main/java/org/etsi/osl/tmf/am651/model/AgreementUpdate.java
+++ b/src/main/java/org/etsi/osl/tmf/am651/model/AgreementUpdate.java
@@ -26,6 +26,7 @@ import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty;
import org.etsi.osl.tmf.common.model.TimePeriod;
+import org.etsi.osl.tmf.common.model.service.Characteristic;
import org.springframework.validation.annotation.Validated;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.Valid;
diff --git a/src/main/java/org/etsi/osl/tmf/am651/model/Characteristic.java b/src/main/java/org/etsi/osl/tmf/am651/model/Characteristic.java
deleted file mode 100644
index b00b36d00f59c54925af803122ee4bf98a09f6ff..0000000000000000000000000000000000000000
--- a/src/main/java/org/etsi/osl/tmf/am651/model/Characteristic.java
+++ /dev/null
@@ -1,175 +0,0 @@
-/*-
- * ========================LICENSE_START=================================
- * org.etsi.osl.tmf.api
- * %%
- * Copyright (C) 2019 openslice.io
- * %%
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * =========================LICENSE_END==================================
- */
-package org.etsi.osl.tmf.am651.model;
-
-import java.util.Objects;
-
-import com.fasterxml.jackson.annotation.JsonProperty;
-
-import org.springframework.validation.annotation.Validated;
-
-import io.swagger.v3.oas.annotations.media.Schema;
-
-/**
- * Describes a given characteristic of an object or entity through a name/value pair.
- */
-@Schema(description = "Describes a given characteristic of an object or entity through a name/value pair.")
-@Validated
-@jakarta.annotation.Generated(value = "io.swagger.codegen.languages.SpringCodegen", date = "2019-10-19T23:51:58.660+03:00")
-
-public class Characteristic {
- @JsonProperty("name")
- private String name = null;
-
- @JsonProperty("value")
- private String value = null;
-
- @JsonProperty("@type")
- private String type = null;
-
- @JsonProperty("@schemaLocation")
- private String schemaLocation = null;
-
- public Characteristic name(String name) {
- this.name = name;
- return this;
- }
-
- /**
- * Name of the characteristic
- * @return name
- **/
- @Schema(description = "Name of the characteristic")
-
-
- public String getName() {
- return name;
- }
-
- public void setName(String name) {
- this.name = name;
- }
-
- public Characteristic value(String value) {
- this.value = value;
- return this;
- }
-
- /**
- * Value of the characteristic
- * @return value
- **/
- @Schema(description = "Value of the characteristic")
-
-
- public String getValue() {
- return value;
- }
-
- public void setValue(String value) {
- this.value = value;
- }
-
- public Characteristic type(String type) {
- this.type = type;
- return this;
- }
-
- /**
- * The class type of the actual resource (for type extension).
- * @return type
- **/
- @Schema(description = "The class type of the actual resource (for type extension).")
-
-
- public String getType() {
- return type;
- }
-
- public void setType(String type) {
- this.type = type;
- }
-
- public Characteristic schemaLocation(String schemaLocation) {
- this.schemaLocation = schemaLocation;
- return this;
- }
-
- /**
- * A link to the schema describing a resource (for type extension).
- * @return schemaLocation
- **/
- @Schema(description = "A link to the schema describing a resource (for type extension).")
-
-
- public String getSchemaLocation() {
- return schemaLocation;
- }
-
- public void setSchemaLocation(String schemaLocation) {
- this.schemaLocation = schemaLocation;
- }
-
-
- @Override
- public boolean equals(java.lang.Object o) {
- if (this == o) {
- return true;
- }
- if (o == null || getClass() != o.getClass()) {
- return false;
- }
- Characteristic characteristic = (Characteristic) o;
- return Objects.equals(this.name, characteristic.name) &&
- Objects.equals(this.value, characteristic.value) &&
- Objects.equals(this.type, characteristic.type) &&
- Objects.equals(this.schemaLocation, characteristic.schemaLocation);
- }
-
- @Override
- public int hashCode() {
- return Objects.hash(name, value, type, schemaLocation);
- }
-
- @Override
- public String toString() {
- StringBuilder sb = new StringBuilder();
- sb.append("class Characteristic {\n");
-
- sb.append(" name: ").append(toIndentedString(name)).append("\n");
- sb.append(" value: ").append(toIndentedString(value)).append("\n");
- sb.append(" type: ").append(toIndentedString(type)).append("\n");
- sb.append(" schemaLocation: ").append(toIndentedString(schemaLocation)).append("\n");
- sb.append("}");
- return sb.toString();
- }
-
- /**
- * Convert the given object to string with each line indented by 4 spaces
- * (except the first line).
- */
- private String toIndentedString(java.lang.Object o) {
- if (o == null) {
- return "null";
- }
- return o.toString().replace("\n", "\n ");
- }
-}
-
diff --git a/src/main/java/org/etsi/osl/tmf/am651/model/ProductOfferingRef.java b/src/main/java/org/etsi/osl/tmf/am651/model/ProductOfferingRef.java
deleted file mode 100644
index 07b20c4d6cf69676c23c1c73aefcbaccb6f11d62..0000000000000000000000000000000000000000
--- a/src/main/java/org/etsi/osl/tmf/am651/model/ProductOfferingRef.java
+++ /dev/null
@@ -1,175 +0,0 @@
-/*-
- * ========================LICENSE_START=================================
- * org.etsi.osl.tmf.api
- * %%
- * Copyright (C) 2019 openslice.io
- * %%
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * =========================LICENSE_END==================================
- */
-package org.etsi.osl.tmf.am651.model;
-
-import java.util.Objects;
-
-import com.fasterxml.jackson.annotation.JsonProperty;
-
-import org.springframework.validation.annotation.Validated;
-
-import io.swagger.v3.oas.annotations.media.Schema;
-
-/**
- * ProductOffering reference. A product offering represents entities that are orderable from the provider of the catalog, this resource includes pricing information.
- */
-@Schema(description = "ProductOffering reference. A product offering represents entities that are orderable from the provider of the catalog, this resource includes pricing information.")
-@Validated
-@jakarta.annotation.Generated(value = "io.swagger.codegen.languages.SpringCodegen", date = "2019-10-19T23:51:58.660+03:00")
-
-public class ProductOfferingRef {
- @JsonProperty("href")
- private String href = null;
-
- @JsonProperty("id")
- private String id = null;
-
- @JsonProperty("name")
- private String name = null;
-
- @JsonProperty("@referredType")
- private String referredType = null;
-
- public ProductOfferingRef href(String href) {
- this.href = href;
- return this;
- }
-
- /**
- * Reference of the product offering
- * @return href
- **/
- @Schema(description = "Reference of the product offering")
-
-
- public String getHref() {
- return href;
- }
-
- public void setHref(String href) {
- this.href = href;
- }
-
- public ProductOfferingRef id(String id) {
- this.id = id;
- return this;
- }
-
- /**
- * Unique identifier of the product offering
- * @return id
- **/
- @Schema(description = "Unique identifier of the product offering")
-
-
- public String getId() {
- return id;
- }
-
- public void setId(String id) {
- this.id = id;
- }
-
- public ProductOfferingRef name(String name) {
- this.name = name;
- return this;
- }
-
- /**
- * Name of the product offering
- * @return name
- **/
- @Schema(description = "Name of the product offering")
-
-
- public String getName() {
- return name;
- }
-
- public void setName(String name) {
- this.name = name;
- }
-
- public ProductOfferingRef referredType(String referredType) {
- this.referredType = referredType;
- return this;
- }
-
- /**
- * The actual type of the target instance when needed for disambiguation.
- * @return referredType
- **/
- @Schema(description = "The actual type of the target instance when needed for disambiguation.")
-
-
- public String getReferredType() {
- return referredType;
- }
-
- public void setReferredType(String referredType) {
- this.referredType = referredType;
- }
-
-
- @Override
- public boolean equals(java.lang.Object o) {
- if (this == o) {
- return true;
- }
- if (o == null || getClass() != o.getClass()) {
- return false;
- }
- ProductOfferingRef productOfferingRef = (ProductOfferingRef) o;
- return Objects.equals(this.href, productOfferingRef.href) &&
- Objects.equals(this.id, productOfferingRef.id) &&
- Objects.equals(this.name, productOfferingRef.name) &&
- Objects.equals(this.referredType, productOfferingRef.referredType);
- }
-
- @Override
- public int hashCode() {
- return Objects.hash(href, id, name, referredType);
- }
-
- @Override
- public String toString() {
- StringBuilder sb = new StringBuilder();
- sb.append("class ProductOfferingRef {\n");
-
- sb.append(" href: ").append(toIndentedString(href)).append("\n");
- sb.append(" id: ").append(toIndentedString(id)).append("\n");
- sb.append(" name: ").append(toIndentedString(name)).append("\n");
- sb.append(" referredType: ").append(toIndentedString(referredType)).append("\n");
- sb.append("}");
- return sb.toString();
- }
-
- /**
- * Convert the given object to string with each line indented by 4 spaces
- * (except the first line).
- */
- private String toIndentedString(java.lang.Object o) {
- if (o == null) {
- return "null";
- }
- return o.toString().replace("\n", "\n ");
- }
-}
-
diff --git a/src/main/java/org/etsi/osl/tmf/common/model/Addressable.java b/src/main/java/org/etsi/osl/tmf/common/model/Addressable.java
new file mode 100644
index 0000000000000000000000000000000000000000..6b3ab2da79f20625e45a0808532ae6ddbd1bcd2f
--- /dev/null
+++ b/src/main/java/org/etsi/osl/tmf/common/model/Addressable.java
@@ -0,0 +1,104 @@
+package org.etsi.osl.tmf.common.model;
+
+import com.fasterxml.jackson.annotation.JsonProperty;
+import io.swagger.v3.oas.annotations.media.Schema;
+import jakarta.validation.Valid;
+
+import javax.annotation.Generated;
+import java.net.URI;
+import java.util.Objects;
+
+/**
+ * Base schema for adressable entities
+ */
+
+@Schema(name = "Addressable", description = "Base schema for adressable entities")
+@Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-04-25T11:17:58.147516734Z[Etc/UTC]", comments = "Generator version: 7.6.0-SNAPSHOT")
+public class Addressable {
+
+ private String id;
+
+ private URI href;
+
+ public Addressable id(String id) {
+ this.id = id;
+ return this;
+ }
+
+ /**
+ * unique identifier
+ *
+ * @return id
+ */
+
+ @Schema(name = "id", description = "unique identifier", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
+ @JsonProperty("id")
+ public String getId() {
+ return id;
+ }
+
+ public void setId(String id) {
+ this.id = id;
+ }
+
+ public Addressable href(URI href) {
+ this.href = href;
+ return this;
+ }
+
+ /**
+ * Hyperlink reference
+ *
+ * @return href
+ */
+ @Valid
+ @Schema(name = "href", description = "Hyperlink reference", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
+ @JsonProperty("href")
+ public URI getHref() {
+ return href;
+ }
+
+ public void setHref(URI href) {
+ this.href = href;
+ }
+
+ @Override
+ public boolean equals(Object o) {
+ if (this == o) {
+ return true;
+ }
+ if (o == null || getClass() != o.getClass()) {
+ return false;
+ }
+ Addressable addressable = (Addressable) o;
+ return Objects.equals(this.id, addressable.id) &&
+ Objects.equals(this.href, addressable.href);
+ }
+
+ @Override
+ public int hashCode() {
+ return Objects.hash(id, href);
+ }
+
+ @Override
+ public String toString() {
+ StringBuilder sb = new StringBuilder();
+ sb.append("class Addressable {\n");
+ sb.append(" id: ").append(toIndentedString(id)).append("\n");
+ sb.append(" href: ").append(toIndentedString(href)).append("\n");
+ sb.append("}");
+ return sb.toString();
+ }
+
+ /**
+ * Convert the given object to string with each line indented by 4 spaces
+ * (except the first line).
+ */
+ private String toIndentedString(Object o) {
+ if (o == null) {
+ return "null";
+ }
+ return o.toString().replace("\n", "\n ");
+ }
+}
+
diff --git a/src/main/java/org/etsi/osl/tmf/common/model/Entity.java b/src/main/java/org/etsi/osl/tmf/common/model/Entity.java
new file mode 100644
index 0000000000000000000000000000000000000000..ad2a081b1427232b3d7ec8cc70affabbd63d6e4a
--- /dev/null
+++ b/src/main/java/org/etsi/osl/tmf/common/model/Entity.java
@@ -0,0 +1,179 @@
+package org.etsi.osl.tmf.common.model;
+
+import com.fasterxml.jackson.annotation.JsonProperty;
+import io.swagger.v3.oas.annotations.media.Schema;
+import jakarta.validation.Valid;
+
+import javax.annotation.Generated;
+import java.net.URI;
+import java.util.Objects;
+
+/**
+ * Base entity schema for use in TMForum Open-APIs
+ */
+
+@Schema(name = "Entity", description = "Base entity schema for use in TMForum Open-APIs")
+@Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-04-25T11:17:58.147516734Z[Etc/UTC]", comments = "Generator version: 7.6.0-SNAPSHOT")
+public class Entity {
+
+ private String id;
+
+ private URI href;
+
+ private String atBaseType;
+
+ private URI atSchemaLocation;
+
+ private String atType;
+
+ public Entity id(String id) {
+ this.id = id;
+ return this;
+ }
+
+ /**
+ * unique identifier
+ *
+ * @return id
+ */
+
+ @Schema(name = "id", description = "unique identifier", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
+ @JsonProperty("id")
+ public String getId() {
+ return id;
+ }
+
+ public void setId(String id) {
+ this.id = id;
+ }
+
+ public Entity href(URI href) {
+ this.href = href;
+ return this;
+ }
+
+ /**
+ * Hyperlink reference
+ *
+ * @return href
+ */
+ @Valid
+ @Schema(name = "href", description = "Hyperlink reference", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
+ @JsonProperty("href")
+ public URI getHref() {
+ return href;
+ }
+
+ public void setHref(URI href) {
+ this.href = href;
+ }
+
+ public Entity atBaseType(String atBaseType) {
+ this.atBaseType = atBaseType;
+ return this;
+ }
+
+ /**
+ * When sub-classing, this defines the super-class
+ *
+ * @return atBaseType
+ */
+
+ @Schema(name = "@baseType", description = "When sub-classing, this defines the super-class", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
+ @JsonProperty("@baseType")
+ public String getAtBaseType() {
+ return atBaseType;
+ }
+
+ public void setAtBaseType(String atBaseType) {
+ this.atBaseType = atBaseType;
+ }
+
+ public Entity atSchemaLocation(URI atSchemaLocation) {
+ this.atSchemaLocation = atSchemaLocation;
+ return this;
+ }
+
+ /**
+ * A URI to a JSON-Schema file that defines additional attributes and relationships
+ *
+ * @return atSchemaLocation
+ */
+ @Valid
+ @Schema(name = "@schemaLocation", description = "A URI to a JSON-Schema file that defines additional attributes and relationships", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
+ @JsonProperty("@schemaLocation")
+ public URI getAtSchemaLocation() {
+ return atSchemaLocation;
+ }
+
+ public void setAtSchemaLocation(URI atSchemaLocation) {
+ this.atSchemaLocation = atSchemaLocation;
+ }
+
+ public Entity atType(String atType) {
+ this.atType = atType;
+ return this;
+ }
+
+ /**
+ * When sub-classing, this defines the sub-class Extensible name
+ *
+ * @return atType
+ */
+
+ @Schema(name = "@type", description = "When sub-classing, this defines the sub-class Extensible name", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
+ @JsonProperty("@type")
+ public String getAtType() {
+ return atType;
+ }
+
+ public void setAtType(String atType) {
+ this.atType = atType;
+ }
+
+ @Override
+ public boolean equals(Object o) {
+ if (this == o) {
+ return true;
+ }
+ if (o == null || getClass() != o.getClass()) {
+ return false;
+ }
+ Entity entity = (Entity) o;
+ return Objects.equals(this.id, entity.id) &&
+ Objects.equals(this.href, entity.href) &&
+ Objects.equals(this.atBaseType, entity.atBaseType) &&
+ Objects.equals(this.atSchemaLocation, entity.atSchemaLocation) &&
+ Objects.equals(this.atType, entity.atType);
+ }
+
+ @Override
+ public int hashCode() {
+ return Objects.hash(id, href, atBaseType, atSchemaLocation, atType);
+ }
+
+ @Override
+ public String toString() {
+ StringBuilder sb = new StringBuilder();
+ sb.append("class Entity {\n");
+ sb.append(" id: ").append(toIndentedString(id)).append("\n");
+ sb.append(" href: ").append(toIndentedString(href)).append("\n");
+ sb.append(" atBaseType: ").append(toIndentedString(atBaseType)).append("\n");
+ sb.append(" atSchemaLocation: ").append(toIndentedString(atSchemaLocation)).append("\n");
+ sb.append(" atType: ").append(toIndentedString(atType)).append("\n");
+ sb.append("}");
+ return sb.toString();
+ }
+
+ /**
+ * Convert the given object to string with each line indented by 4 spaces
+ * (except the first line).
+ */
+ private String toIndentedString(Object o) {
+ if (o == null) {
+ return "null";
+ }
+ return o.toString().replace("\n", "\n ");
+ }
+}
+
diff --git a/src/main/java/org/etsi/osl/tmf/common/model/EntityRef.java b/src/main/java/org/etsi/osl/tmf/common/model/EntityRef.java
new file mode 100644
index 0000000000000000000000000000000000000000..b3d5ffe6a12308410d11263311bc0730e3d45ba9
--- /dev/null
+++ b/src/main/java/org/etsi/osl/tmf/common/model/EntityRef.java
@@ -0,0 +1,241 @@
+package org.etsi.osl.tmf.common.model;
+
+import com.fasterxml.jackson.annotation.JsonProperty;
+import io.swagger.v3.oas.annotations.media.Schema;
+import jakarta.validation.Valid;
+import jakarta.validation.constraints.NotNull;
+
+import javax.annotation.Generated;
+import java.net.URI;
+import java.util.Objects;
+
+/**
+ * Entity reference schema to be use for all entityRef class.
+ */
+
+@Schema(name = "EntityRef", description = "Entity reference schema to be use for all entityRef class.")
+@Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-04-25T11:17:58.147516734Z[Etc/UTC]", comments = "Generator version: 7.6.0-SNAPSHOT")
+public class EntityRef {
+
+ private String id;
+
+ private URI href;
+
+ private String name;
+
+ private String atBaseType;
+
+ private URI atSchemaLocation;
+
+ private String atType;
+
+ private String atReferredType;
+
+ public EntityRef() {
+ super();
+ }
+
+ /**
+ * Constructor with only required parameters
+ */
+ public EntityRef(String id) {
+ this.id = id;
+ }
+
+ public EntityRef id(String id) {
+ this.id = id;
+ return this;
+ }
+
+ /**
+ * unique identifier
+ *
+ * @return id
+ */
+ @NotNull
+ @Schema(name = "id", description = "unique identifier", requiredMode = Schema.RequiredMode.REQUIRED)
+ @JsonProperty("id")
+ public String getId() {
+ return id;
+ }
+
+ public void setId(String id) {
+ this.id = id;
+ }
+
+ public EntityRef href(URI href) {
+ this.href = href;
+ return this;
+ }
+
+ /**
+ * Hyperlink reference
+ *
+ * @return href
+ */
+ @Valid
+ @Schema(name = "href", description = "Hyperlink reference", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
+ @JsonProperty("href")
+ public URI getHref() {
+ return href;
+ }
+
+ public void setHref(URI href) {
+ this.href = href;
+ }
+
+ public EntityRef name(String name) {
+ this.name = name;
+ return this;
+ }
+
+ /**
+ * Name of the related entity.
+ *
+ * @return name
+ */
+
+ @Schema(name = "name", description = "Name of the related entity.", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
+ @JsonProperty("name")
+ public String getName() {
+ return name;
+ }
+
+ public void setName(String name) {
+ this.name = name;
+ }
+
+ public EntityRef atBaseType(String atBaseType) {
+ this.atBaseType = atBaseType;
+ return this;
+ }
+
+ /**
+ * When sub-classing, this defines the super-class
+ *
+ * @return atBaseType
+ */
+
+ @Schema(name = "@baseType", description = "When sub-classing, this defines the super-class", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
+ @JsonProperty("@baseType")
+ public String getAtBaseType() {
+ return atBaseType;
+ }
+
+ public void setAtBaseType(String atBaseType) {
+ this.atBaseType = atBaseType;
+ }
+
+ public EntityRef atSchemaLocation(URI atSchemaLocation) {
+ this.atSchemaLocation = atSchemaLocation;
+ return this;
+ }
+
+ /**
+ * A URI to a JSON-Schema file that defines additional attributes and relationships
+ *
+ * @return atSchemaLocation
+ */
+ @Valid
+ @Schema(name = "@schemaLocation", description = "A URI to a JSON-Schema file that defines additional attributes and relationships", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
+ @JsonProperty("@schemaLocation")
+ public URI getAtSchemaLocation() {
+ return atSchemaLocation;
+ }
+
+ public void setAtSchemaLocation(URI atSchemaLocation) {
+ this.atSchemaLocation = atSchemaLocation;
+ }
+
+ public EntityRef atType(String atType) {
+ this.atType = atType;
+ return this;
+ }
+
+ /**
+ * When sub-classing, this defines the sub-class Extensible name
+ *
+ * @return atType
+ */
+
+ @Schema(name = "@type", description = "When sub-classing, this defines the sub-class Extensible name", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
+ @JsonProperty("@type")
+ public String getAtType() {
+ return atType;
+ }
+
+ public void setAtType(String atType) {
+ this.atType = atType;
+ }
+
+ public EntityRef atReferredType(String atReferredType) {
+ this.atReferredType = atReferredType;
+ return this;
+ }
+
+ /**
+ * The actual type of the target instance when needed for disambiguation.
+ *
+ * @return atReferredType
+ */
+
+ @Schema(name = "@referredType", description = "The actual type of the target instance when needed for disambiguation.", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
+ @JsonProperty("@referredType")
+ public String getAtReferredType() {
+ return atReferredType;
+ }
+
+ public void setAtReferredType(String atReferredType) {
+ this.atReferredType = atReferredType;
+ }
+
+ @Override
+ public boolean equals(Object o) {
+ if (this == o) {
+ return true;
+ }
+ if (o == null || getClass() != o.getClass()) {
+ return false;
+ }
+ EntityRef entityRef = (EntityRef) o;
+ return Objects.equals(this.id, entityRef.id) &&
+ Objects.equals(this.href, entityRef.href) &&
+ Objects.equals(this.name, entityRef.name) &&
+ Objects.equals(this.atBaseType, entityRef.atBaseType) &&
+ Objects.equals(this.atSchemaLocation, entityRef.atSchemaLocation) &&
+ Objects.equals(this.atType, entityRef.atType) &&
+ Objects.equals(this.atReferredType, entityRef.atReferredType);
+ }
+
+ @Override
+ public int hashCode() {
+ return Objects.hash(id, href, name, atBaseType, atSchemaLocation, atType, atReferredType);
+ }
+
+ @Override
+ public String toString() {
+ StringBuilder sb = new StringBuilder();
+ sb.append("class EntityRef {\n");
+ sb.append(" id: ").append(toIndentedString(id)).append("\n");
+ sb.append(" href: ").append(toIndentedString(href)).append("\n");
+ sb.append(" name: ").append(toIndentedString(name)).append("\n");
+ sb.append(" atBaseType: ").append(toIndentedString(atBaseType)).append("\n");
+ sb.append(" atSchemaLocation: ").append(toIndentedString(atSchemaLocation)).append("\n");
+ sb.append(" atType: ").append(toIndentedString(atType)).append("\n");
+ sb.append(" atReferredType: ").append(toIndentedString(atReferredType)).append("\n");
+ sb.append("}");
+ return sb.toString();
+ }
+
+ /**
+ * Convert the given object to string with each line indented by 4 spaces
+ * (except the first line).
+ */
+ private String toIndentedString(Object o) {
+ if (o == null) {
+ return "null";
+ }
+ return o.toString().replace("\n", "\n ");
+ }
+}
+
diff --git a/src/main/java/org/etsi/osl/tmf/common/model/Error.java b/src/main/java/org/etsi/osl/tmf/common/model/Error.java
new file mode 100644
index 0000000000000000000000000000000000000000..7c868d35875a5a26dea8b1b594b9f85da3ceabee
--- /dev/null
+++ b/src/main/java/org/etsi/osl/tmf/common/model/Error.java
@@ -0,0 +1,267 @@
+package org.etsi.osl.tmf.common.model;
+
+import com.fasterxml.jackson.annotation.JsonProperty;
+import io.swagger.v3.oas.annotations.media.Schema;
+import jakarta.validation.Valid;
+import jakarta.validation.constraints.NotNull;
+
+import javax.annotation.Generated;
+import java.net.URI;
+import java.util.Objects;
+
+/**
+ * Used when an API throws an Error, typically with a HTTP error response-code (3xx, 4xx, 5xx)
+ */
+
+@Schema(name = "Error", description = "Used when an API throws an Error, typically with a HTTP error response-code (3xx, 4xx, 5xx)")
+@Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-04-25T11:17:58.147516734Z[Etc/UTC]", comments = "Generator version: 7.6.0-SNAPSHOT")
+public class Error {
+
+ private String code;
+
+ private String reason;
+
+ private String message;
+
+ private String status;
+
+ private URI referenceError;
+
+ private String atBaseType;
+
+ private URI atSchemaLocation;
+
+ private String atType;
+
+ public Error() {
+ super();
+ }
+
+ /**
+ * Constructor with only required parameters
+ */
+ public Error(String code, String reason) {
+ this.code = code;
+ this.reason = reason;
+ }
+
+ public Error code(String code) {
+ this.code = code;
+ return this;
+ }
+
+ /**
+ * Application relevant detail, defined in the API or a common list.
+ *
+ * @return code
+ */
+ @NotNull
+ @Schema(name = "code", description = "Application relevant detail, defined in the API or a common list.", requiredMode = Schema.RequiredMode.REQUIRED)
+ @JsonProperty("code")
+ public String getCode() {
+ return code;
+ }
+
+ public void setCode(String code) {
+ this.code = code;
+ }
+
+ public Error reason(String reason) {
+ this.reason = reason;
+ return this;
+ }
+
+ /**
+ * Explanation of the reason for the error which can be shown to a client user.
+ *
+ * @return reason
+ */
+ @NotNull
+ @Schema(name = "reason", description = "Explanation of the reason for the error which can be shown to a client user.", requiredMode = Schema.RequiredMode.REQUIRED)
+ @JsonProperty("reason")
+ public String getReason() {
+ return reason;
+ }
+
+ public void setReason(String reason) {
+ this.reason = reason;
+ }
+
+ public Error message(String message) {
+ this.message = message;
+ return this;
+ }
+
+ /**
+ * More details and corrective actions related to the error which can be shown to a client user.
+ *
+ * @return message
+ */
+
+ @Schema(name = "message", description = "More details and corrective actions related to the error which can be shown to a client user.", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
+ @JsonProperty("message")
+ public String getMessage() {
+ return message;
+ }
+
+ public void setMessage(String message) {
+ this.message = message;
+ }
+
+ public Error status(String status) {
+ this.status = status;
+ return this;
+ }
+
+ /**
+ * HTTP Error code extension
+ *
+ * @return status
+ */
+
+ @Schema(name = "status", description = "HTTP Error code extension", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
+ @JsonProperty("status")
+ public String getStatus() {
+ return status;
+ }
+
+ public void setStatus(String status) {
+ this.status = status;
+ }
+
+ public Error referenceError(URI referenceError) {
+ this.referenceError = referenceError;
+ return this;
+ }
+
+ /**
+ * URI of documentation describing the error.
+ *
+ * @return referenceError
+ */
+ @Valid
+ @Schema(name = "referenceError", description = "URI of documentation describing the error.", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
+ @JsonProperty("referenceError")
+ public URI getReferenceError() {
+ return referenceError;
+ }
+
+ public void setReferenceError(URI referenceError) {
+ this.referenceError = referenceError;
+ }
+
+ public Error atBaseType(String atBaseType) {
+ this.atBaseType = atBaseType;
+ return this;
+ }
+
+ /**
+ * When sub-classing, this defines the super-class.
+ *
+ * @return atBaseType
+ */
+
+ @Schema(name = "@baseType", description = "When sub-classing, this defines the super-class.", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
+ @JsonProperty("@baseType")
+ public String getAtBaseType() {
+ return atBaseType;
+ }
+
+ public void setAtBaseType(String atBaseType) {
+ this.atBaseType = atBaseType;
+ }
+
+ public Error atSchemaLocation(URI atSchemaLocation) {
+ this.atSchemaLocation = atSchemaLocation;
+ return this;
+ }
+
+ /**
+ * A URI to a JSON-Schema file that defines additional attributes and relationships
+ *
+ * @return atSchemaLocation
+ */
+ @Valid
+ @Schema(name = "@schemaLocation", description = "A URI to a JSON-Schema file that defines additional attributes and relationships", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
+ @JsonProperty("@schemaLocation")
+ public URI getAtSchemaLocation() {
+ return atSchemaLocation;
+ }
+
+ public void setAtSchemaLocation(URI atSchemaLocation) {
+ this.atSchemaLocation = atSchemaLocation;
+ }
+
+ public Error atType(String atType) {
+ this.atType = atType;
+ return this;
+ }
+
+ /**
+ * When sub-classing, this defines the sub-class entity name.
+ *
+ * @return atType
+ */
+
+ @Schema(name = "@type", description = "When sub-classing, this defines the sub-class entity name.", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
+ @JsonProperty("@type")
+ public String getAtType() {
+ return atType;
+ }
+
+ public void setAtType(String atType) {
+ this.atType = atType;
+ }
+
+ @Override
+ public boolean equals(Object o) {
+ if (this == o) {
+ return true;
+ }
+ if (o == null || getClass() != o.getClass()) {
+ return false;
+ }
+ Error error = (Error) o;
+ return Objects.equals(this.code, error.code) &&
+ Objects.equals(this.reason, error.reason) &&
+ Objects.equals(this.message, error.message) &&
+ Objects.equals(this.status, error.status) &&
+ Objects.equals(this.referenceError, error.referenceError) &&
+ Objects.equals(this.atBaseType, error.atBaseType) &&
+ Objects.equals(this.atSchemaLocation, error.atSchemaLocation) &&
+ Objects.equals(this.atType, error.atType);
+ }
+
+ @Override
+ public int hashCode() {
+ return Objects.hash(code, reason, message, status, referenceError, atBaseType, atSchemaLocation, atType);
+ }
+
+ @Override
+ public String toString() {
+ StringBuilder sb = new StringBuilder();
+ sb.append("class Error {\n");
+ sb.append(" code: ").append(toIndentedString(code)).append("\n");
+ sb.append(" reason: ").append(toIndentedString(reason)).append("\n");
+ sb.append(" message: ").append(toIndentedString(message)).append("\n");
+ sb.append(" status: ").append(toIndentedString(status)).append("\n");
+ sb.append(" referenceError: ").append(toIndentedString(referenceError)).append("\n");
+ sb.append(" atBaseType: ").append(toIndentedString(atBaseType)).append("\n");
+ sb.append(" atSchemaLocation: ").append(toIndentedString(atSchemaLocation)).append("\n");
+ sb.append(" atType: ").append(toIndentedString(atType)).append("\n");
+ sb.append("}");
+ return sb.toString();
+ }
+
+ /**
+ * Convert the given object to string with each line indented by 4 spaces
+ * (except the first line).
+ */
+ private String toIndentedString(Object o) {
+ if (o == null) {
+ return "null";
+ }
+ return o.toString().replace("\n", "\n ");
+ }
+}
+
diff --git a/src/main/java/org/etsi/osl/tmf/pcm620/model/ProductOffering.java b/src/main/java/org/etsi/osl/tmf/pcm620/model/ProductOffering.java
index 1efa62fc6e8035777bc63d69cdf43c779505608e..8abd61749c0450f44b8887d167c6b48a24ab4766 100644
--- a/src/main/java/org/etsi/osl/tmf/pcm620/model/ProductOffering.java
+++ b/src/main/java/org/etsi/osl/tmf/pcm620/model/ProductOffering.java
@@ -111,22 +111,22 @@ public class ProductOffering extends BaseEntity {
private Set productOfferingTerm = new HashSet<>();
@JsonProperty("productSpecification")
- @OneToOne( cascade = {CascadeType.MERGE, CascadeType.DETACH} )
+ @OneToOne(cascade = { CascadeType.MERGE, CascadeType.PERSIST, CascadeType.REFRESH })
@JoinColumn(referencedColumnName = "uuid")
private ProductSpecificationRef productSpecification = null;
@JsonProperty("resourceCandidate")
- @OneToOne( cascade = {CascadeType.MERGE, CascadeType.DETACH} )
+ @OneToOne(cascade = { CascadeType.MERGE, CascadeType.PERSIST, CascadeType.REFRESH })
@JoinColumn(referencedColumnName = "uuid")
private ResourceCandidateRef resourceCandidate = null;
@JsonProperty("serviceCandidate")
- @OneToOne( cascade = {CascadeType.MERGE, CascadeType.DETACH} )
+ @OneToOne(cascade = { CascadeType.MERGE, CascadeType.PERSIST, CascadeType.REFRESH })
@JoinColumn(referencedColumnName = "uuid")
private ServiceCandidateRef serviceCandidate = null;
@JsonProperty("serviceLevelAgreement")
- @OneToOne( cascade = {CascadeType.MERGE, CascadeType.DETACH} )
+ @OneToOne(cascade = { CascadeType.MERGE, CascadeType.PERSIST, CascadeType.REFRESH })
@JoinColumn(referencedColumnName = "uuid")
private SLARef serviceLevelAgreement = null;
@@ -734,5 +734,14 @@ public class ProductOffering extends BaseEntity {
return o.toString().replace("\n", "\n ");
}
+ public Object findCharacteristicByName(String aname) {
+ for (ProductSpecificationCharacteristicValueUse ssci : this.prodSpecCharValueUse ) {
+ if (ssci.getName()!=null && ssci.getName().equals(aname)) {
+ return ssci;
+ }
+ }
+ return null;
+ }
+
}
diff --git a/src/main/java/org/etsi/osl/tmf/pcm620/model/ProductOfferingRef.java b/src/main/java/org/etsi/osl/tmf/pcm620/model/ProductOfferingRef.java
index dd47df1336aa92cf9a7754785c0a7872e7706f21..616d8c31c7e284da215529090555918c9b528982 100644
--- a/src/main/java/org/etsi/osl/tmf/pcm620/model/ProductOfferingRef.java
+++ b/src/main/java/org/etsi/osl/tmf/pcm620/model/ProductOfferingRef.java
@@ -26,6 +26,7 @@ import com.fasterxml.jackson.annotation.JsonProperty;
import org.etsi.osl.tmf.common.model.BaseRootNamedEntity;
import org.springframework.validation.annotation.Validated;
import io.swagger.v3.oas.annotations.media.Schema;
+import jakarta.persistence.Entity;
import jakarta.validation.constraints.NotNull;
/**
@@ -35,6 +36,7 @@ import jakarta.validation.constraints.NotNull;
@Validated
@jakarta.annotation.Generated(value = "io.swagger.codegen.languages.SpringCodegen", date = "2019-10-19T00:15:57.249+03:00")
@JsonIgnoreProperties( {"uuid"} )
+@Entity(name = "ProdOffref620")
public class ProductOfferingRef extends BaseRootNamedEntity {
diff --git a/src/main/java/org/etsi/osl/tmf/pcm620/model/ProductSpecification.java b/src/main/java/org/etsi/osl/tmf/pcm620/model/ProductSpecification.java
index 3e0944658e7bd296b23d4b802a440dc86cdb3f44..9260c44ac2ef7e2cf3e8e5849a4327bbed49ceab 100644
--- a/src/main/java/org/etsi/osl/tmf/pcm620/model/ProductSpecification.java
+++ b/src/main/java/org/etsi/osl/tmf/pcm620/model/ProductSpecification.java
@@ -29,6 +29,7 @@ import org.etsi.osl.tmf.common.model.BaseEntity;
import org.etsi.osl.tmf.common.model.service.ServiceSpecificationRef;
import org.etsi.osl.tmf.prm669.model.RelatedParty;
import org.etsi.osl.tmf.rcm634.model.ResourceSpecificationRef;
+import org.etsi.osl.tmf.scm633.model.ServiceSpecCharacteristic;
import org.springframework.validation.annotation.Validated;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.persistence.CascadeType;
@@ -521,4 +522,13 @@ public class ProductSpecification extends BaseEntity {
}
return o.toString().replace("\n", "\n ");
}
+
+ public ProductSpecificationCharacteristic findProdCharacteristicByName(String an) {
+ for (ProductSpecificationCharacteristic ssci : this.getProductSpecCharacteristic()) {
+ if (ssci.getName()!=null && ssci.getName().equals(an)) {
+ return ssci;
+ }
+ }
+ return null;
+ }
}
diff --git a/src/main/java/org/etsi/osl/tmf/po622/model/BillingAccountRef.java b/src/main/java/org/etsi/osl/tmf/pim637/model/BillingAccountRef.java
similarity index 94%
rename from src/main/java/org/etsi/osl/tmf/po622/model/BillingAccountRef.java
rename to src/main/java/org/etsi/osl/tmf/pim637/model/BillingAccountRef.java
index 5dd0323895b435b2590568adc6f58f171b212a1d..0a30fb73c42490c5181986f3d0d1065d39dec6a1 100644
--- a/src/main/java/org/etsi/osl/tmf/po622/model/BillingAccountRef.java
+++ b/src/main/java/org/etsi/osl/tmf/pim637/model/BillingAccountRef.java
@@ -17,15 +17,14 @@
* limitations under the License.
* =========================LICENSE_END==================================
*/
-package org.etsi.osl.tmf.po622.model;
+package org.etsi.osl.tmf.pim637.model;
import java.util.Objects;
-
import com.fasterxml.jackson.annotation.JsonProperty;
-
+import org.etsi.osl.tmf.common.model.BaseRootNamedEntity;
import org.springframework.validation.annotation.Validated;
-
import io.swagger.v3.oas.annotations.media.Schema;
+import jakarta.persistence.Entity;
import jakarta.validation.constraints.NotNull;
/**
@@ -34,24 +33,12 @@ import jakarta.validation.constraints.NotNull;
@Schema(description = "BillingAccount reference. A BillingAccount is a detailed description of a bill structure.")
@Validated
@jakarta.annotation.Generated(value = "io.swagger.codegen.v3.generators.java.SpringCodegen", date = "2020-10-30T10:29:21.184964400+02:00[Europe/Athens]")
-public class BillingAccountRef {
- @JsonProperty("id")
- private String id = null;
- @JsonProperty("href")
- private String href = null;
- @JsonProperty("name")
- private String name = null;
-
- @JsonProperty("@baseType")
- private String baseType = null;
-
- @JsonProperty("@schemaLocation")
- private String schemaLocation = null;
-
- @JsonProperty("@type")
- private String type = null;
+@Entity(name = "BillingAccRef622")
+public class BillingAccountRef extends BaseRootNamedEntity {
+ @JsonProperty("id")
+ private String id = null;
@JsonProperty("@referredType")
private String _atReferredType = null;
diff --git a/src/main/java/org/etsi/osl/tmf/po622/model/EntityRef.java b/src/main/java/org/etsi/osl/tmf/pim637/model/EntityRef.java
similarity index 64%
rename from src/main/java/org/etsi/osl/tmf/po622/model/EntityRef.java
rename to src/main/java/org/etsi/osl/tmf/pim637/model/EntityRef.java
index 97784a5b973ec5087a7b4fcf740e23cc2e9af79d..600dbe9af461bc4c3d5379dfe2960c5369f7a0c4 100644
--- a/src/main/java/org/etsi/osl/tmf/po622/model/EntityRef.java
+++ b/src/main/java/org/etsi/osl/tmf/pim637/model/EntityRef.java
@@ -1,30 +1,8 @@
-/*-
- * ========================LICENSE_START=================================
- * org.etsi.osl.tmf.api
- * %%
- * Copyright (C) 2019 - 2021 openslice.io
- * %%
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * =========================LICENSE_END==================================
- */
-package org.etsi.osl.tmf.po622.model;
+package org.etsi.osl.tmf.pim637.model;
import java.util.Objects;
-
import com.fasterxml.jackson.annotation.JsonProperty;
-
import org.springframework.validation.annotation.Validated;
-
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotNull;
@@ -33,7 +11,9 @@ import jakarta.validation.constraints.NotNull;
*/
@Schema(description = "Entity reference schema to be use for all entityRef class.")
@Validated
-@jakarta.annotation.Generated(value = "io.swagger.codegen.v3.generators.java.SpringCodegen", date = "2020-10-30T10:29:21.184964400+02:00[Europe/Athens]")
+@jakarta.annotation.Generated(value = "io.swagger.codegen.v3.generators.java.SpringCodegen", date = "2024-08-04T00:27:07.324017400+03:00[Europe/Athens]")
+
+
public class EntityRef {
@JsonProperty("id")
private String id = null;
@@ -45,13 +25,13 @@ public class EntityRef {
private String name = null;
@JsonProperty("@baseType")
- private String baseType = null;
+ private String _atBaseType = null;
@JsonProperty("@schemaLocation")
- private String schemaLocation = null;
+ private String _atSchemaLocation = null;
@JsonProperty("@type")
- private String type = null;
+ private String _atType = null;
@JsonProperty("@referredType")
private String _atReferredType = null;
@@ -64,8 +44,8 @@ public class EntityRef {
/**
* Unique identifier of a related entity.
* @return id
- **/
- @Schema(description = "Unique identifier of a related entity.")
+ **/
+ @Schema(required = true, description = "Unique identifier of a related entity.")
@NotNull
public String getId() {
@@ -84,9 +64,10 @@ public class EntityRef {
/**
* Reference of the related entity.
* @return href
- **/
+ **/
@Schema(description = "Reference of the related entity.")
-
+ @NotNull
+
public String getHref() {
return href;
}
@@ -103,9 +84,10 @@ public class EntityRef {
/**
* Name of the related entity.
* @return name
- **/
+ **/
@Schema(description = "Name of the related entity.")
-
+ @NotNull
+
public String getName() {
return name;
}
@@ -114,61 +96,64 @@ public class EntityRef {
this.name = name;
}
- public EntityRef baseType(String baseType) {
- this.baseType = baseType;
+ public EntityRef _atBaseType(String _atBaseType) {
+ this._atBaseType = _atBaseType;
return this;
}
/**
* When sub-classing, this defines the super-class
- * @return baseType
- **/
+ * @return _atBaseType
+ **/
@Schema(description = "When sub-classing, this defines the super-class")
-
+ @NotNull
+
public String getAtBaseType() {
- return baseType;
+ return _atBaseType;
}
- public void setAtBaseType(String baseType) {
- this.baseType = baseType;
+ public void setAtBaseType(String _atBaseType) {
+ this._atBaseType = _atBaseType;
}
- public EntityRef schemaLocation(String schemaLocation) {
- this.schemaLocation = schemaLocation;
+ public EntityRef _atSchemaLocation(String _atSchemaLocation) {
+ this._atSchemaLocation = _atSchemaLocation;
return this;
}
/**
* A URI to a JSON-Schema file that defines additional attributes and relationships
- * @return schemaLocation
- **/
+ * @return _atSchemaLocation
+ **/
@Schema(description = "A URI to a JSON-Schema file that defines additional attributes and relationships")
-
+ @NotNull
+
public String getAtSchemaLocation() {
- return schemaLocation;
+ return _atSchemaLocation;
}
- public void setAtSchemaLocation(String schemaLocation) {
- this.schemaLocation = schemaLocation;
+ public void setAtSchemaLocation(String _atSchemaLocation) {
+ this._atSchemaLocation = _atSchemaLocation;
}
- public EntityRef type(String type) {
- this.type = type;
+ public EntityRef _atType(String _atType) {
+ this._atType = _atType;
return this;
}
/**
* When sub-classing, this defines the sub-class entity name
- * @return type
- **/
+ * @return _atType
+ **/
@Schema(description = "When sub-classing, this defines the sub-class entity name")
-
+ @NotNull
+
public String getAtType() {
- return type;
+ return _atType;
}
- public void setAtType(String type) {
- this.type = type;
+ public void setAtType(String _atType) {
+ this._atType = _atType;
}
public EntityRef _atReferredType(String _atReferredType) {
@@ -179,9 +164,10 @@ public class EntityRef {
/**
* The actual type of the target instance when needed for disambiguation.
* @return _atReferredType
- **/
+ **/
@Schema(description = "The actual type of the target instance when needed for disambiguation.")
-
+ @NotNull
+
public String getAtReferredType() {
return _atReferredType;
}
@@ -203,15 +189,15 @@ public class EntityRef {
return Objects.equals(this.id, entityRef.id) &&
Objects.equals(this.href, entityRef.href) &&
Objects.equals(this.name, entityRef.name) &&
- Objects.equals(this.baseType, entityRef.baseType) &&
- Objects.equals(this.schemaLocation, entityRef.schemaLocation) &&
- Objects.equals(this.type, entityRef.type) &&
+ Objects.equals(this._atBaseType, entityRef._atBaseType) &&
+ Objects.equals(this._atSchemaLocation, entityRef._atSchemaLocation) &&
+ Objects.equals(this._atType, entityRef._atType) &&
Objects.equals(this._atReferredType, entityRef._atReferredType);
}
@Override
public int hashCode() {
- return Objects.hash(id, href, name, baseType, schemaLocation, type, _atReferredType);
+ return Objects.hash(id, href, name, _atBaseType, _atSchemaLocation, _atType, _atReferredType);
}
@Override
@@ -222,9 +208,9 @@ public class EntityRef {
sb.append(" id: ").append(toIndentedString(id)).append("\n");
sb.append(" href: ").append(toIndentedString(href)).append("\n");
sb.append(" name: ").append(toIndentedString(name)).append("\n");
- sb.append(" baseType: ").append(toIndentedString(baseType)).append("\n");
- sb.append(" schemaLocation: ").append(toIndentedString(schemaLocation)).append("\n");
- sb.append(" type: ").append(toIndentedString(type)).append("\n");
+ sb.append(" _atBaseType: ").append(toIndentedString(_atBaseType)).append("\n");
+ sb.append(" _atSchemaLocation: ").append(toIndentedString(_atSchemaLocation)).append("\n");
+ sb.append(" _atType: ").append(toIndentedString(_atType)).append("\n");
sb.append(" _atReferredType: ").append(toIndentedString(_atReferredType)).append("\n");
sb.append("}");
return sb.toString();
diff --git a/src/main/java/org/etsi/osl/tmf/pim637/model/Error.java b/src/main/java/org/etsi/osl/tmf/pim637/model/Error.java
new file mode 100644
index 0000000000000000000000000000000000000000..e13ea9a4bec6ec5f7dc740f16212dfa2b1134ece
--- /dev/null
+++ b/src/main/java/org/etsi/osl/tmf/pim637/model/Error.java
@@ -0,0 +1,254 @@
+package org.etsi.osl.tmf.pim637.model;
+
+import java.util.Objects;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import org.springframework.validation.annotation.Validated;
+import io.swagger.v3.oas.annotations.media.Schema;
+import jakarta.validation.constraints.NotNull;
+
+/**
+ * Used when an API throws an Error, typically with a HTTP error response-code (3xx, 4xx, 5xx)
+ */
+@Schema(description = "Used when an API throws an Error, typically with a HTTP error response-code (3xx, 4xx, 5xx)")
+@Validated
+@jakarta.annotation.Generated(value = "io.swagger.codegen.v3.generators.java.SpringCodegen", date = "2024-08-04T00:27:07.324017400+03:00[Europe/Athens]")
+
+
+public class Error {
+ @JsonProperty("code")
+ private String code = null;
+
+ @JsonProperty("reason")
+ private String reason = null;
+
+ @JsonProperty("message")
+ private String message = null;
+
+ @JsonProperty("status")
+ private String status = null;
+
+ @JsonProperty("referenceError")
+ private String referenceError = null;
+
+ @JsonProperty("@baseType")
+ private String _atBaseType = null;
+
+ @JsonProperty("@schemaLocation")
+ private String _atSchemaLocation = null;
+
+ @JsonProperty("@type")
+ private String _atType = null;
+
+ public Error code(String code) {
+ this.code = code;
+ return this;
+ }
+
+ /**
+ * Application relevant detail, defined in the API or a common list.
+ * @return code
+ **/
+ @Schema(required = true, description = "Application relevant detail, defined in the API or a common list.")
+ @NotNull
+
+ public String getCode() {
+ return code;
+ }
+
+ public void setCode(String code) {
+ this.code = code;
+ }
+
+ public Error reason(String reason) {
+ this.reason = reason;
+ return this;
+ }
+
+ /**
+ * Explanation of the reason for the error which can be shown to a client user.
+ * @return reason
+ **/
+ @Schema(required = true, description = "Explanation of the reason for the error which can be shown to a client user.")
+ @NotNull
+
+ public String getReason() {
+ return reason;
+ }
+
+ public void setReason(String reason) {
+ this.reason = reason;
+ }
+
+ public Error message(String message) {
+ this.message = message;
+ return this;
+ }
+
+ /**
+ * More details and corrective actions related to the error which can be shown to a client user.
+ * @return message
+ **/
+ @Schema(description = "More details and corrective actions related to the error which can be shown to a client user.")
+ @NotNull
+
+ public String getMessage() {
+ return message;
+ }
+
+ public void setMessage(String message) {
+ this.message = message;
+ }
+
+ public Error status(String status) {
+ this.status = status;
+ return this;
+ }
+
+ /**
+ * HTTP Error code extension
+ * @return status
+ **/
+ @Schema(description = "HTTP Error code extension")
+ @NotNull
+
+ public String getStatus() {
+ return status;
+ }
+
+ public void setStatus(String status) {
+ this.status = status;
+ }
+
+ public Error referenceError(String referenceError) {
+ this.referenceError = referenceError;
+ return this;
+ }
+
+ /**
+ * URI of documentation describing the error.
+ * @return referenceError
+ **/
+ @Schema(description = "URI of documentation describing the error.")
+ @NotNull
+
+ public String getReferenceError() {
+ return referenceError;
+ }
+
+ public void setReferenceError(String referenceError) {
+ this.referenceError = referenceError;
+ }
+
+ public Error _atBaseType(String _atBaseType) {
+ this._atBaseType = _atBaseType;
+ return this;
+ }
+
+ /**
+ * When sub-classing, this defines the super-class.
+ * @return _atBaseType
+ **/
+ @Schema(description = "When sub-classing, this defines the super-class.")
+ @NotNull
+
+ public String getAtBaseType() {
+ return _atBaseType;
+ }
+
+ public void setAtBaseType(String _atBaseType) {
+ this._atBaseType = _atBaseType;
+ }
+
+ public Error _atSchemaLocation(String _atSchemaLocation) {
+ this._atSchemaLocation = _atSchemaLocation;
+ return this;
+ }
+
+ /**
+ * A URI to a JSON-Schema file that defines additional attributes and relationships
+ * @return _atSchemaLocation
+ **/
+ @Schema(description = "A URI to a JSON-Schema file that defines additional attributes and relationships")
+ @NotNull
+
+ public String getAtSchemaLocation() {
+ return _atSchemaLocation;
+ }
+
+ public void setAtSchemaLocation(String _atSchemaLocation) {
+ this._atSchemaLocation = _atSchemaLocation;
+ }
+
+ public Error _atType(String _atType) {
+ this._atType = _atType;
+ return this;
+ }
+
+ /**
+ * When sub-classing, this defines the sub-class entity name.
+ * @return _atType
+ **/
+ @Schema(description = "When sub-classing, this defines the sub-class entity name.")
+ @NotNull
+
+ public String getAtType() {
+ return _atType;
+ }
+
+ public void setAtType(String _atType) {
+ this._atType = _atType;
+ }
+
+
+ @Override
+ public boolean equals(java.lang.Object o) {
+ if (this == o) {
+ return true;
+ }
+ if (o == null || getClass() != o.getClass()) {
+ return false;
+ }
+ Error error = (Error) o;
+ return Objects.equals(this.code, error.code) &&
+ Objects.equals(this.reason, error.reason) &&
+ Objects.equals(this.message, error.message) &&
+ Objects.equals(this.status, error.status) &&
+ Objects.equals(this.referenceError, error.referenceError) &&
+ Objects.equals(this._atBaseType, error._atBaseType) &&
+ Objects.equals(this._atSchemaLocation, error._atSchemaLocation) &&
+ Objects.equals(this._atType, error._atType);
+ }
+
+ @Override
+ public int hashCode() {
+ return Objects.hash(code, reason, message, status, referenceError, _atBaseType, _atSchemaLocation, _atType);
+ }
+
+ @Override
+ public String toString() {
+ StringBuilder sb = new StringBuilder();
+ sb.append("class Error {\n");
+
+ sb.append(" code: ").append(toIndentedString(code)).append("\n");
+ sb.append(" reason: ").append(toIndentedString(reason)).append("\n");
+ sb.append(" message: ").append(toIndentedString(message)).append("\n");
+ sb.append(" status: ").append(toIndentedString(status)).append("\n");
+ sb.append(" referenceError: ").append(toIndentedString(referenceError)).append("\n");
+ sb.append(" _atBaseType: ").append(toIndentedString(_atBaseType)).append("\n");
+ sb.append(" _atSchemaLocation: ").append(toIndentedString(_atSchemaLocation)).append("\n");
+ sb.append(" _atType: ").append(toIndentedString(_atType)).append("\n");
+ sb.append("}");
+ return sb.toString();
+ }
+
+ /**
+ * Convert the given object to string with each line indented by 4 spaces
+ * (except the first line).
+ */
+ private String toIndentedString(java.lang.Object o) {
+ if (o == null) {
+ return "null";
+ }
+ return o.toString().replace("\n", "\n ");
+ }
+}
diff --git a/src/main/java/org/etsi/osl/tmf/pim637/model/EventSubscription.java b/src/main/java/org/etsi/osl/tmf/pim637/model/EventSubscription.java
new file mode 100644
index 0000000000000000000000000000000000000000..1d272920e640fe22b0834c4f176dca7aa4516c5a
--- /dev/null
+++ b/src/main/java/org/etsi/osl/tmf/pim637/model/EventSubscription.java
@@ -0,0 +1,129 @@
+package org.etsi.osl.tmf.pim637.model;
+
+import java.util.Objects;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import org.springframework.validation.annotation.Validated;
+import io.swagger.v3.oas.annotations.media.Schema;
+import jakarta.validation.constraints.NotNull;
+
+/**
+ * Sets the communication endpoint address the service instance must use to deliver notification information
+ */
+@Schema(description = "Sets the communication endpoint address the service instance must use to deliver notification information")
+@Validated
+@jakarta.annotation.Generated(value = "io.swagger.codegen.v3.generators.java.SpringCodegen", date = "2024-08-04T00:27:07.324017400+03:00[Europe/Athens]")
+
+
+public class EventSubscription {
+ @JsonProperty("id")
+ private String id = null;
+
+ @JsonProperty("callback")
+ private String callback = null;
+
+ @JsonProperty("query")
+ private String query = null;
+
+ public EventSubscription id(String id) {
+ this.id = id;
+ return this;
+ }
+
+ /**
+ * Id of the listener
+ * @return id
+ **/
+ @Schema(required = true, description = "Id of the listener")
+ @NotNull
+
+ public String getId() {
+ return id;
+ }
+
+ public void setId(String id) {
+ this.id = id;
+ }
+
+ public EventSubscription callback(String callback) {
+ this.callback = callback;
+ return this;
+ }
+
+ /**
+ * The callback being registered.
+ * @return callback
+ **/
+ @Schema(required = true, description = "The callback being registered.")
+ @NotNull
+
+ public String getCallback() {
+ return callback;
+ }
+
+ public void setCallback(String callback) {
+ this.callback = callback;
+ }
+
+ public EventSubscription query(String query) {
+ this.query = query;
+ return this;
+ }
+
+ /**
+ * additional data to be passed
+ * @return query
+ **/
+ @Schema(description = "additional data to be passed")
+ @NotNull
+
+ public String getQuery() {
+ return query;
+ }
+
+ public void setQuery(String query) {
+ this.query = query;
+ }
+
+
+ @Override
+ public boolean equals(java.lang.Object o) {
+ if (this == o) {
+ return true;
+ }
+ if (o == null || getClass() != o.getClass()) {
+ return false;
+ }
+ EventSubscription eventSubscription = (EventSubscription) o;
+ return Objects.equals(this.id, eventSubscription.id) &&
+ Objects.equals(this.callback, eventSubscription.callback) &&
+ Objects.equals(this.query, eventSubscription.query);
+ }
+
+ @Override
+ public int hashCode() {
+ return Objects.hash(id, callback, query);
+ }
+
+ @Override
+ public String toString() {
+ StringBuilder sb = new StringBuilder();
+ sb.append("class EventSubscription {\n");
+
+ sb.append(" id: ").append(toIndentedString(id)).append("\n");
+ sb.append(" callback: ").append(toIndentedString(callback)).append("\n");
+ sb.append(" query: ").append(toIndentedString(query)).append("\n");
+ sb.append("}");
+ return sb.toString();
+ }
+
+ /**
+ * Convert the given object to string with each line indented by 4 spaces
+ * (except the first line).
+ */
+ private String toIndentedString(java.lang.Object o) {
+ if (o == null) {
+ return "null";
+ }
+ return o.toString().replace("\n", "\n ");
+ }
+}
diff --git a/src/main/java/org/etsi/osl/tmf/pim637/model/EventSubscriptionInput.java b/src/main/java/org/etsi/osl/tmf/pim637/model/EventSubscriptionInput.java
new file mode 100644
index 0000000000000000000000000000000000000000..2561f945670ca1178b490e411fbdf41c6132bf85
--- /dev/null
+++ b/src/main/java/org/etsi/osl/tmf/pim637/model/EventSubscriptionInput.java
@@ -0,0 +1,104 @@
+package org.etsi.osl.tmf.pim637.model;
+
+import java.util.Objects;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import org.springframework.validation.annotation.Validated;
+import io.swagger.v3.oas.annotations.media.Schema;
+import jakarta.validation.constraints.NotNull;
+
+/**
+ * Sets the communication endpoint address the service instance must use to deliver notification information
+ */
+@Schema(description = "Sets the communication endpoint address the service instance must use to deliver notification information")
+@Validated
+@jakarta.annotation.Generated(value = "io.swagger.codegen.v3.generators.java.SpringCodegen", date = "2024-08-04T00:27:07.324017400+03:00[Europe/Athens]")
+
+
+public class EventSubscriptionInput {
+ @JsonProperty("callback")
+ private String callback = null;
+
+ @JsonProperty("query")
+ private String query = null;
+
+ public EventSubscriptionInput callback(String callback) {
+ this.callback = callback;
+ return this;
+ }
+
+ /**
+ * The callback being registered.
+ * @return callback
+ **/
+ @Schema(required = true, description = "The callback being registered.")
+ @NotNull
+
+ public String getCallback() {
+ return callback;
+ }
+
+ public void setCallback(String callback) {
+ this.callback = callback;
+ }
+
+ public EventSubscriptionInput query(String query) {
+ this.query = query;
+ return this;
+ }
+
+ /**
+ * additional data to be passed
+ * @return query
+ **/
+ @Schema(description = "additional data to be passed")
+ @NotNull
+
+ public String getQuery() {
+ return query;
+ }
+
+ public void setQuery(String query) {
+ this.query = query;
+ }
+
+
+ @Override
+ public boolean equals(java.lang.Object o) {
+ if (this == o) {
+ return true;
+ }
+ if (o == null || getClass() != o.getClass()) {
+ return false;
+ }
+ EventSubscriptionInput eventSubscriptionInput = (EventSubscriptionInput) o;
+ return Objects.equals(this.callback, eventSubscriptionInput.callback) &&
+ Objects.equals(this.query, eventSubscriptionInput.query);
+ }
+
+ @Override
+ public int hashCode() {
+ return Objects.hash(callback, query);
+ }
+
+ @Override
+ public String toString() {
+ StringBuilder sb = new StringBuilder();
+ sb.append("class EventSubscriptionInput {\n");
+
+ sb.append(" callback: ").append(toIndentedString(callback)).append("\n");
+ sb.append(" query: ").append(toIndentedString(query)).append("\n");
+ sb.append("}");
+ return sb.toString();
+ }
+
+ /**
+ * Convert the given object to string with each line indented by 4 spaces
+ * (except the first line).
+ */
+ private String toIndentedString(java.lang.Object o) {
+ if (o == null) {
+ return "null";
+ }
+ return o.toString().replace("\n", "\n ");
+ }
+}
diff --git a/src/main/java/org/etsi/osl/tmf/po622/model/Money.java b/src/main/java/org/etsi/osl/tmf/pim637/model/Money.java
similarity index 69%
rename from src/main/java/org/etsi/osl/tmf/po622/model/Money.java
rename to src/main/java/org/etsi/osl/tmf/pim637/model/Money.java
index 3e92fbf16c72573df5d511163adbff235dbf4777..446fa97b97d827175fc593aeae9d32ed30fb271f 100644
--- a/src/main/java/org/etsi/osl/tmf/po622/model/Money.java
+++ b/src/main/java/org/etsi/osl/tmf/pim637/model/Money.java
@@ -1,39 +1,22 @@
-/*-
- * ========================LICENSE_START=================================
- * org.etsi.osl.tmf.api
- * %%
- * Copyright (C) 2019 - 2021 openslice.io
- * %%
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * =========================LICENSE_END==================================
- */
-package org.etsi.osl.tmf.po622.model;
+package org.etsi.osl.tmf.pim637.model;
import java.util.Objects;
-
import com.fasterxml.jackson.annotation.JsonProperty;
-
+import org.etsi.osl.tmf.common.model.BaseRootEntity;
import org.springframework.validation.annotation.Validated;
-
import io.swagger.v3.oas.annotations.media.Schema;
+import jakarta.persistence.Entity;
+import jakarta.validation.constraints.NotNull;
/**
* A base / value business entity used to represent money
*/
@Schema(description = "A base / value business entity used to represent money")
@Validated
-@jakarta.annotation.Generated(value = "io.swagger.codegen.v3.generators.java.SpringCodegen", date = "2020-10-30T10:29:21.184964400+02:00[Europe/Athens]")
-public class Money {
+@jakarta.annotation.Generated(value = "io.swagger.codegen.v3.generators.java.SpringCodegen", date = "2024-08-04T00:27:07.324017400+03:00[Europe/Athens]")
+
+@Entity(name = "Money637")
+public class Money extends BaseRootEntity {
@JsonProperty("unit")
private String unit = null;
@@ -48,9 +31,10 @@ public class Money {
/**
* Currency (ISO4217 norm uses 3 letters to define the currency)
* @return unit
- **/
+ **/
@Schema(description = "Currency (ISO4217 norm uses 3 letters to define the currency)")
-
+ @NotNull
+
public String getUnit() {
return unit;
}
@@ -67,9 +51,10 @@ public class Money {
/**
* A positive floating point number
* @return value
- **/
+ **/
@Schema(description = "A positive floating point number")
-
+ @NotNull
+
public Float getValue() {
return value;
}
diff --git a/src/main/java/org/etsi/osl/tmf/po622/model/Place.java b/src/main/java/org/etsi/osl/tmf/pim637/model/Place.java
similarity index 62%
rename from src/main/java/org/etsi/osl/tmf/po622/model/Place.java
rename to src/main/java/org/etsi/osl/tmf/pim637/model/Place.java
index 62c96891b445614dd888083ee2f247ec50e55b39..7b98f7dc6bd27f8ae12d0a109cb5efc14cdba467 100644
--- a/src/main/java/org/etsi/osl/tmf/po622/model/Place.java
+++ b/src/main/java/org/etsi/osl/tmf/pim637/model/Place.java
@@ -1,38 +1,19 @@
-/*-
- * ========================LICENSE_START=================================
- * org.etsi.osl.tmf.api
- * %%
- * Copyright (C) 2019 - 2021 openslice.io
- * %%
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * =========================LICENSE_END==================================
- */
-package org.etsi.osl.tmf.po622.model;
+package org.etsi.osl.tmf.pim637.model;
import java.util.Objects;
-
import com.fasterxml.jackson.annotation.JsonProperty;
-
import org.springframework.validation.annotation.Validated;
-
import io.swagger.v3.oas.annotations.media.Schema;
+import jakarta.validation.constraints.NotNull;
/**
* Place reference. Place defines the places where the products are sold or delivered.
*/
@Schema(description = "Place reference. Place defines the places where the products are sold or delivered.")
@Validated
-@jakarta.annotation.Generated(value = "io.swagger.codegen.v3.generators.java.SpringCodegen", date = "2020-10-30T10:29:21.184964400+02:00[Europe/Athens]")
+@jakarta.annotation.Generated(value = "io.swagger.codegen.v3.generators.java.SpringCodegen", date = "2024-08-04T00:27:07.324017400+03:00[Europe/Athens]")
+
+
public class Place {
@JsonProperty("id")
private String id = null;
@@ -44,13 +25,13 @@ public class Place {
private String name = null;
@JsonProperty("@baseType")
- private String baseType = null;
+ private String _atBaseType = null;
@JsonProperty("@schemaLocation")
- private String schemaLocation = null;
+ private String _atSchemaLocation = null;
@JsonProperty("@type")
- private String type = null;
+ private String _atType = null;
public Place id(String id) {
this.id = id;
@@ -60,9 +41,10 @@ public class Place {
/**
* Unique identifier of the place
* @return id
- **/
+ **/
@Schema(description = "Unique identifier of the place")
-
+ @NotNull
+
public String getId() {
return id;
}
@@ -79,9 +61,10 @@ public class Place {
/**
* Unique reference of the place
* @return href
- **/
+ **/
@Schema(description = "Unique reference of the place")
-
+ @NotNull
+
public String getHref() {
return href;
}
@@ -98,9 +81,10 @@ public class Place {
/**
* A user-friendly name for the place, such as [Paris Store], [London Store], [Main Home]
* @return name
- **/
+ **/
@Schema(description = "A user-friendly name for the place, such as [Paris Store], [London Store], [Main Home]")
-
+ @NotNull
+
public String getName() {
return name;
}
@@ -109,61 +93,64 @@ public class Place {
this.name = name;
}
- public Place baseType(String baseType) {
- this.baseType = baseType;
+ public Place _atBaseType(String _atBaseType) {
+ this._atBaseType = _atBaseType;
return this;
}
/**
* When sub-classing, this defines the super-class
- * @return baseType
- **/
+ * @return _atBaseType
+ **/
@Schema(description = "When sub-classing, this defines the super-class")
-
+ @NotNull
+
public String getAtBaseType() {
- return baseType;
+ return _atBaseType;
}
- public void setAtBaseType(String baseType) {
- this.baseType = baseType;
+ public void setAtBaseType(String _atBaseType) {
+ this._atBaseType = _atBaseType;
}
- public Place schemaLocation(String schemaLocation) {
- this.schemaLocation = schemaLocation;
+ public Place _atSchemaLocation(String _atSchemaLocation) {
+ this._atSchemaLocation = _atSchemaLocation;
return this;
}
/**
* A URI to a JSON-Schema file that defines additional attributes and relationships
- * @return schemaLocation
- **/
+ * @return _atSchemaLocation
+ **/
@Schema(description = "A URI to a JSON-Schema file that defines additional attributes and relationships")
-
+ @NotNull
+
public String getAtSchemaLocation() {
- return schemaLocation;
+ return _atSchemaLocation;
}
- public void setAtSchemaLocation(String schemaLocation) {
- this.schemaLocation = schemaLocation;
+ public void setAtSchemaLocation(String _atSchemaLocation) {
+ this._atSchemaLocation = _atSchemaLocation;
}
- public Place type(String type) {
- this.type = type;
+ public Place _atType(String _atType) {
+ this._atType = _atType;
return this;
}
/**
* When sub-classing, this defines the sub-class entity name
- * @return type
- **/
+ * @return _atType
+ **/
@Schema(description = "When sub-classing, this defines the sub-class entity name")
-
+ @NotNull
+
public String getAtType() {
- return type;
+ return _atType;
}
- public void setAtType(String type) {
- this.type = type;
+ public void setAtType(String _atType) {
+ this._atType = _atType;
}
@@ -179,14 +166,14 @@ public class Place {
return Objects.equals(this.id, place.id) &&
Objects.equals(this.href, place.href) &&
Objects.equals(this.name, place.name) &&
- Objects.equals(this.baseType, place.baseType) &&
- Objects.equals(this.schemaLocation, place.schemaLocation) &&
- Objects.equals(this.type, place.type);
+ Objects.equals(this._atBaseType, place._atBaseType) &&
+ Objects.equals(this._atSchemaLocation, place._atSchemaLocation) &&
+ Objects.equals(this._atType, place._atType);
}
@Override
public int hashCode() {
- return Objects.hash(id, href, name, baseType, schemaLocation, type);
+ return Objects.hash(id, href, name, _atBaseType, _atSchemaLocation, _atType);
}
@Override
@@ -197,9 +184,9 @@ public class Place {
sb.append(" id: ").append(toIndentedString(id)).append("\n");
sb.append(" href: ").append(toIndentedString(href)).append("\n");
sb.append(" name: ").append(toIndentedString(name)).append("\n");
- sb.append(" baseType: ").append(toIndentedString(baseType)).append("\n");
- sb.append(" schemaLocation: ").append(toIndentedString(schemaLocation)).append("\n");
- sb.append(" type: ").append(toIndentedString(type)).append("\n");
+ sb.append(" _atBaseType: ").append(toIndentedString(_atBaseType)).append("\n");
+ sb.append(" _atSchemaLocation: ").append(toIndentedString(_atSchemaLocation)).append("\n");
+ sb.append(" _atType: ").append(toIndentedString(_atType)).append("\n");
sb.append("}");
return sb.toString();
}
diff --git a/src/main/java/org/etsi/osl/tmf/po622/model/Price.java b/src/main/java/org/etsi/osl/tmf/pim637/model/Price.java
similarity index 67%
rename from src/main/java/org/etsi/osl/tmf/po622/model/Price.java
rename to src/main/java/org/etsi/osl/tmf/pim637/model/Price.java
index e1c950d7cbaa6eebc0234078bbe7542faf8a3605..c4f2d69eb4c3f56aac92d57d37aa9216ed129ec6 100644
--- a/src/main/java/org/etsi/osl/tmf/po622/model/Price.java
+++ b/src/main/java/org/etsi/osl/tmf/pim637/model/Price.java
@@ -1,40 +1,26 @@
-/*-
- * ========================LICENSE_START=================================
- * org.etsi.osl.tmf.api
- * %%
- * Copyright (C) 2019 - 2021 openslice.io
- * %%
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * =========================LICENSE_END==================================
- */
-package org.etsi.osl.tmf.po622.model;
+package org.etsi.osl.tmf.pim637.model;
import java.util.Objects;
-
import com.fasterxml.jackson.annotation.JsonProperty;
-
+import org.etsi.osl.tmf.common.model.BaseRootEntity;
import org.springframework.validation.annotation.Validated;
-
import io.swagger.v3.oas.annotations.media.Schema;
+import jakarta.persistence.CascadeType;
+import jakarta.persistence.Entity;
+import jakarta.persistence.OneToOne;
import jakarta.validation.Valid;
+import jakarta.validation.constraints.NotNull;
/**
* Provides all amounts (tax included, duty free, tax rate), used currency and percentage to apply for Price Alteration.
*/
@Schema(description = "Provides all amounts (tax included, duty free, tax rate), used currency and percentage to apply for Price Alteration.")
@Validated
-@jakarta.annotation.Generated(value = "io.swagger.codegen.v3.generators.java.SpringCodegen", date = "2020-10-30T10:29:21.184964400+02:00[Europe/Athens]")
-public class Price {
+@jakarta.annotation.Generated(value = "io.swagger.codegen.v3.generators.java.SpringCodegen", date = "2024-08-04T00:27:07.324017400+03:00[Europe/Athens]")
+
+
+@Entity(name = "Price637")
+public class Price extends BaseRootEntity {
@JsonProperty("percentage")
private Float percentage = null;
@@ -42,19 +28,21 @@ public class Price {
private Float taxRate = null;
@JsonProperty("dutyFreeAmount")
+ @OneToOne(cascade = CascadeType.ALL)
private Money dutyFreeAmount = null;
@JsonProperty("taxIncludedAmount")
+ @OneToOne(cascade = CascadeType.ALL)
private Money taxIncludedAmount = null;
@JsonProperty("@baseType")
- private String baseType = null;
+ private String _atBaseType = null;
@JsonProperty("@schemaLocation")
- private String schemaLocation = null;
+ private String _atSchemaLocation = null;
@JsonProperty("@type")
- private String type = null;
+ private String _atType = null;
public Price percentage(Float percentage) {
this.percentage = percentage;
@@ -64,9 +52,10 @@ public class Price {
/**
* Percentage to apply for ProdOfferPriceAlteration
* @return percentage
- **/
+ **/
@Schema(description = "Percentage to apply for ProdOfferPriceAlteration")
-
+ @NotNull
+
public Float getPercentage() {
return percentage;
}
@@ -83,9 +72,10 @@ public class Price {
/**
* Tax rate
* @return taxRate
- **/
+ **/
@Schema(description = "Tax rate")
-
+ @NotNull
+
public Float getTaxRate() {
return taxRate;
}
@@ -102,9 +92,10 @@ public class Price {
/**
* Get dutyFreeAmount
* @return dutyFreeAmount
- **/
+ **/
@Schema(description = "")
-
+ @NotNull
+
@Valid
public Money getDutyFreeAmount() {
return dutyFreeAmount;
@@ -122,9 +113,10 @@ public class Price {
/**
* Get taxIncludedAmount
* @return taxIncludedAmount
- **/
+ **/
@Schema(description = "")
-
+ @NotNull
+
@Valid
public Money getTaxIncludedAmount() {
return taxIncludedAmount;
@@ -134,61 +126,64 @@ public class Price {
this.taxIncludedAmount = taxIncludedAmount;
}
- public Price baseType(String baseType) {
- this.baseType = baseType;
+ public Price _atBaseType(String _atBaseType) {
+ this._atBaseType = _atBaseType;
return this;
}
/**
* When sub-classing, this defines the super-class
- * @return baseType
- **/
+ * @return _atBaseType
+ **/
@Schema(description = "When sub-classing, this defines the super-class")
-
+ @NotNull
+
public String getAtBaseType() {
- return baseType;
+ return _atBaseType;
}
- public void setAtBaseType(String baseType) {
- this.baseType = baseType;
+ public void setAtBaseType(String _atBaseType) {
+ this._atBaseType = _atBaseType;
}
- public Price schemaLocation(String schemaLocation) {
- this.schemaLocation = schemaLocation;
+ public Price _atSchemaLocation(String _atSchemaLocation) {
+ this._atSchemaLocation = _atSchemaLocation;
return this;
}
/**
* A URI to a JSON-Schema file that defines additional attributes and relationships
- * @return schemaLocation
- **/
+ * @return _atSchemaLocation
+ **/
@Schema(description = "A URI to a JSON-Schema file that defines additional attributes and relationships")
-
+ @NotNull
+
public String getAtSchemaLocation() {
- return schemaLocation;
+ return _atSchemaLocation;
}
- public void setAtSchemaLocation(String schemaLocation) {
- this.schemaLocation = schemaLocation;
+ public void setAtSchemaLocation(String _atSchemaLocation) {
+ this._atSchemaLocation = _atSchemaLocation;
}
- public Price type(String type) {
- this.type = type;
+ public Price _atType(String _atType) {
+ this._atType = _atType;
return this;
}
/**
* When sub-classing, this defines the sub-class entity name
- * @return type
- **/
+ * @return _atType
+ **/
@Schema(description = "When sub-classing, this defines the sub-class entity name")
-
+ @NotNull
+
public String getAtType() {
- return type;
+ return _atType;
}
- public void setAtType(String type) {
- this.type = type;
+ public void setAtType(String _atType) {
+ this._atType = _atType;
}
@@ -205,14 +200,14 @@ public class Price {
Objects.equals(this.taxRate, price.taxRate) &&
Objects.equals(this.dutyFreeAmount, price.dutyFreeAmount) &&
Objects.equals(this.taxIncludedAmount, price.taxIncludedAmount) &&
- Objects.equals(this.baseType, price.baseType) &&
- Objects.equals(this.schemaLocation, price.schemaLocation) &&
- Objects.equals(this.type, price.type);
+ Objects.equals(this._atBaseType, price._atBaseType) &&
+ Objects.equals(this._atSchemaLocation, price._atSchemaLocation) &&
+ Objects.equals(this._atType, price._atType);
}
@Override
public int hashCode() {
- return Objects.hash(percentage, taxRate, dutyFreeAmount, taxIncludedAmount, baseType, schemaLocation, type);
+ return Objects.hash(percentage, taxRate, dutyFreeAmount, taxIncludedAmount, _atBaseType, _atSchemaLocation, _atType);
}
@Override
@@ -224,9 +219,9 @@ public class Price {
sb.append(" taxRate: ").append(toIndentedString(taxRate)).append("\n");
sb.append(" dutyFreeAmount: ").append(toIndentedString(dutyFreeAmount)).append("\n");
sb.append(" taxIncludedAmount: ").append(toIndentedString(taxIncludedAmount)).append("\n");
- sb.append(" baseType: ").append(toIndentedString(baseType)).append("\n");
- sb.append(" schemaLocation: ").append(toIndentedString(schemaLocation)).append("\n");
- sb.append(" type: ").append(toIndentedString(type)).append("\n");
+ sb.append(" _atBaseType: ").append(toIndentedString(_atBaseType)).append("\n");
+ sb.append(" _atSchemaLocation: ").append(toIndentedString(_atSchemaLocation)).append("\n");
+ sb.append(" _atType: ").append(toIndentedString(_atType)).append("\n");
sb.append("}");
return sb.toString();
}
diff --git a/src/main/java/org/etsi/osl/tmf/po622/model/PriceAlteration.java b/src/main/java/org/etsi/osl/tmf/pim637/model/PriceAlteration.java
similarity index 72%
rename from src/main/java/org/etsi/osl/tmf/po622/model/PriceAlteration.java
rename to src/main/java/org/etsi/osl/tmf/pim637/model/PriceAlteration.java
index 5efe9e755634b6d00bca3967c6ceb0d023b74e86..75c3805993c5572b7d3123deea5f94c5f844f0a3 100644
--- a/src/main/java/org/etsi/osl/tmf/po622/model/PriceAlteration.java
+++ b/src/main/java/org/etsi/osl/tmf/pim637/model/PriceAlteration.java
@@ -1,31 +1,15 @@
-/*-
- * ========================LICENSE_START=================================
- * org.etsi.osl.tmf.api
- * %%
- * Copyright (C) 2019 - 2021 openslice.io
- * %%
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * =========================LICENSE_END==================================
- */
-package org.etsi.osl.tmf.po622.model;
+package org.etsi.osl.tmf.pim637.model;
import java.util.Objects;
-
import com.fasterxml.jackson.annotation.JsonProperty;
-
+import org.etsi.osl.tmf.common.model.BaseRootEntity;
+import org.etsi.osl.tmf.common.model.BaseRootNamedEntity;
+import org.etsi.osl.tmf.pcm620.model.ProductOfferingPriceRef;
import org.springframework.validation.annotation.Validated;
-
import io.swagger.v3.oas.annotations.media.Schema;
+import jakarta.persistence.CascadeType;
+import jakarta.persistence.Entity;
+import jakarta.persistence.OneToOne;
import jakarta.validation.Valid;
import jakarta.validation.constraints.NotNull;
@@ -34,17 +18,16 @@ import jakarta.validation.constraints.NotNull;
*/
@Schema(description = "Is an amount, usually of money, that modifies the price charged for an order item.")
@Validated
-@jakarta.annotation.Generated(value = "io.swagger.codegen.v3.generators.java.SpringCodegen", date = "2020-10-30T10:29:21.184964400+02:00[Europe/Athens]")
-public class PriceAlteration {
+@jakarta.annotation.Generated(value = "io.swagger.codegen.v3.generators.java.SpringCodegen", date = "2024-08-04T00:27:07.324017400+03:00[Europe/Athens]")
+
+@Entity(name = "PriceAlter637")
+public class PriceAlteration extends BaseRootNamedEntity {
@JsonProperty("applicationDuration")
private Integer applicationDuration = null;
@JsonProperty("description")
private String description = null;
- @JsonProperty("name")
- private String name = null;
-
@JsonProperty("priceType")
private String priceType = null;
@@ -58,20 +41,13 @@ public class PriceAlteration {
private String unitOfMeasure = null;
@JsonProperty("price")
+ @OneToOne(cascade = CascadeType.ALL)
private Price price = null;
@JsonProperty("productOfferingPrice")
+ @OneToOne(cascade = CascadeType.ALL)
private ProductOfferingPriceRef productOfferingPrice = null;
- @JsonProperty("@baseType")
- private String baseType = null;
-
- @JsonProperty("@schemaLocation")
- private String schemaLocation = null;
-
- @JsonProperty("@type")
- private String type = null;
-
public PriceAlteration applicationDuration(Integer applicationDuration) {
this.applicationDuration = applicationDuration;
return this;
@@ -80,9 +56,10 @@ public class PriceAlteration {
/**
* Duration during which the alteration applies on the order item price (for instance 2 months free of charge for the recurring charge)
* @return applicationDuration
- **/
+ **/
@Schema(description = "Duration during which the alteration applies on the order item price (for instance 2 months free of charge for the recurring charge)")
-
+ @NotNull
+
public Integer getApplicationDuration() {
return applicationDuration;
}
@@ -99,9 +76,10 @@ public class PriceAlteration {
/**
* A narrative that explains in detail the semantics of this order item price alteration
* @return description
- **/
+ **/
@Schema(description = "A narrative that explains in detail the semantics of this order item price alteration")
-
+ @NotNull
+
public String getDescription() {
return description;
}
@@ -118,9 +96,10 @@ public class PriceAlteration {
/**
* Name of the order item price alteration
* @return name
- **/
+ **/
@Schema(description = "Name of the order item price alteration")
-
+ @NotNull
+
public String getName() {
return name;
}
@@ -137,8 +116,8 @@ public class PriceAlteration {
/**
* A category that describes the price such as recurring, one time and usage.
* @return priceType
- **/
- @Schema(description = "A category that describes the price such as recurring, one time and usage.")
+ **/
+ @Schema(required = true, description = "A category that describes the price such as recurring, one time and usage.")
@NotNull
public String getPriceType() {
@@ -157,9 +136,10 @@ public class PriceAlteration {
/**
* Priority level for applying this alteration among all the defined alterations on the order item price
* @return priority
- **/
+ **/
@Schema(description = "Priority level for applying this alteration among all the defined alterations on the order item price")
-
+ @NotNull
+
public Integer getPriority() {
return priority;
}
@@ -176,9 +156,10 @@ public class PriceAlteration {
/**
* Could be month, week...
* @return recurringChargePeriod
- **/
+ **/
@Schema(description = "Could be month, week...")
-
+ @NotNull
+
public String getRecurringChargePeriod() {
return recurringChargePeriod;
}
@@ -195,9 +176,10 @@ public class PriceAlteration {
/**
* Could be minutes, GB...
* @return unitOfMeasure
- **/
+ **/
@Schema(description = "Could be minutes, GB...")
-
+ @NotNull
+
public String getUnitOfMeasure() {
return unitOfMeasure;
}
@@ -214,8 +196,8 @@ public class PriceAlteration {
/**
* Get price
* @return price
- **/
- @Schema(description = "")
+ **/
+ @Schema(required = true, description = "")
@NotNull
@Valid
@@ -235,9 +217,10 @@ public class PriceAlteration {
/**
* Get productOfferingPrice
* @return productOfferingPrice
- **/
+ **/
@Schema(description = "")
-
+ @NotNull
+
@Valid
public ProductOfferingPriceRef getProductOfferingPrice() {
return productOfferingPrice;
@@ -247,62 +230,6 @@ public class PriceAlteration {
this.productOfferingPrice = productOfferingPrice;
}
- public PriceAlteration baseType(String baseType) {
- this.baseType = baseType;
- return this;
- }
-
- /**
- * When sub-classing, this defines the super-class
- * @return baseType
- **/
- @Schema(description = "When sub-classing, this defines the super-class")
-
- public String getAtBaseType() {
- return baseType;
- }
-
- public void setAtBaseType(String baseType) {
- this.baseType = baseType;
- }
-
- public PriceAlteration schemaLocation(String schemaLocation) {
- this.schemaLocation = schemaLocation;
- return this;
- }
-
- /**
- * A URI to a JSON-Schema file that defines additional attributes and relationships
- * @return schemaLocation
- **/
- @Schema(description = "A URI to a JSON-Schema file that defines additional attributes and relationships")
-
- public String getAtSchemaLocation() {
- return schemaLocation;
- }
-
- public void setAtSchemaLocation(String schemaLocation) {
- this.schemaLocation = schemaLocation;
- }
-
- public PriceAlteration type(String type) {
- this.type = type;
- return this;
- }
-
- /**
- * When sub-classing, this defines the sub-class entity name
- * @return type
- **/
- @Schema(description = "When sub-classing, this defines the sub-class entity name")
-
- public String getAtType() {
- return type;
- }
-
- public void setAtType(String type) {
- this.type = type;
- }
@Override
@@ -347,9 +274,9 @@ public class PriceAlteration {
sb.append(" unitOfMeasure: ").append(toIndentedString(unitOfMeasure)).append("\n");
sb.append(" price: ").append(toIndentedString(price)).append("\n");
sb.append(" productOfferingPrice: ").append(toIndentedString(productOfferingPrice)).append("\n");
- sb.append(" baseType: ").append(toIndentedString(baseType)).append("\n");
- sb.append(" schemaLocation: ").append(toIndentedString(schemaLocation)).append("\n");
- sb.append(" type: ").append(toIndentedString(type)).append("\n");
+ sb.append(" _atBaseType: ").append(toIndentedString(baseType)).append("\n");
+ sb.append(" _atSchemaLocation: ").append(toIndentedString(schemaLocation)).append("\n");
+ sb.append(" _atType: ").append(toIndentedString(type)).append("\n");
sb.append("}");
return sb.toString();
}
diff --git a/src/main/java/org/etsi/osl/tmf/po622/model/Product.java b/src/main/java/org/etsi/osl/tmf/pim637/model/Product.java
similarity index 69%
rename from src/main/java/org/etsi/osl/tmf/po622/model/Product.java
rename to src/main/java/org/etsi/osl/tmf/pim637/model/Product.java
index ee4c02bd2fe8e7b724a442d82d235c4929d458a0..75b40a5ca0d816940ab97f77866a0abb2cf936bc 100644
--- a/src/main/java/org/etsi/osl/tmf/po622/model/Product.java
+++ b/src/main/java/org/etsi/osl/tmf/pim637/model/Product.java
@@ -1,138 +1,138 @@
-/*-
- * ========================LICENSE_START=================================
- * org.etsi.osl.tmf.api
- * %%
- * Copyright (C) 2019 - 2021 openslice.io
- * %%
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * =========================LICENSE_END==================================
- */
-package org.etsi.osl.tmf.po622.model;
+package org.etsi.osl.tmf.pim637.model;
-import java.time.OffsetDateTime;
import java.util.ArrayList;
+import java.util.Date;
+import java.util.HashSet;
import java.util.List;
import java.util.Objects;
-
+import java.util.Set;
import com.fasterxml.jackson.annotation.JsonProperty;
+import org.etsi.osl.tmf.common.model.BaseRootNamedEntity;
+import org.etsi.osl.tmf.common.model.service.Characteristic;
import org.etsi.osl.tmf.common.model.service.ResourceRef;
import org.etsi.osl.tmf.common.model.service.ServiceRef;
+import org.etsi.osl.tmf.pcm620.model.ProductOfferingRef;
+import org.etsi.osl.tmf.pcm620.model.ProductSpecificationRef;
+import org.etsi.osl.tmf.po622.model.AgreementItemRef;
+import org.etsi.osl.tmf.po622.model.RelatedProductOrderItem;
import org.etsi.osl.tmf.prm669.model.RelatedParty;
import org.springframework.validation.annotation.Validated;
import io.swagger.v3.oas.annotations.media.Schema;
+import jakarta.persistence.CascadeType;
+import jakarta.persistence.Entity;
+import jakarta.persistence.JoinColumn;
+import jakarta.persistence.OneToMany;
+import jakarta.persistence.OneToOne;
import jakarta.validation.Valid;
+import jakarta.validation.constraints.NotNull;
/**
* A product offering procured by a customer or other interested party playing a party role. A product is realized as one or more service(s) and / or resource(s).
*/
@Schema(description = "A product offering procured by a customer or other interested party playing a party role. A product is realized as one or more service(s) and / or resource(s).")
@Validated
-@jakarta.annotation.Generated(value = "io.swagger.codegen.v3.generators.java.SpringCodegen", date = "2020-10-30T10:29:21.184964400+02:00[Europe/Athens]")
-public class Product {
+@jakarta.annotation.Generated(value = "io.swagger.codegen.v3.generators.java.SpringCodegen", date = "2024-08-04T00:27:07.324017400+03:00[Europe/Athens]")
+
+@Entity(name = "Product637")
+public class Product extends BaseRootNamedEntity {
@JsonProperty("id")
- private String id = null;
+ protected String id = null;
- @JsonProperty("href")
- private String href = null;
@JsonProperty("description")
- private String description = null;
+ protected String description = null;
@JsonProperty("isBundle")
- private Boolean isBundle = null;
+ protected Boolean isBundle = null;
@JsonProperty("isCustomerVisible")
- private Boolean isCustomerVisible = null;
-
- @JsonProperty("name")
- private String name = null;
+ protected Boolean isCustomerVisible = null;
@JsonProperty("orderDate")
- private OffsetDateTime orderDate = null;
+ protected Date orderDate = null;
@JsonProperty("productSerialNumber")
- private String productSerialNumber = null;
+ protected String productSerialNumber = null;
@JsonProperty("startDate")
- private OffsetDateTime startDate = null;
+ protected Date startDate = null;
@JsonProperty("terminationDate")
- private OffsetDateTime terminationDate = null;
+ protected Date terminationDate = null;
@JsonProperty("agreement")
@Valid
- private List agreement = null;
+ @OneToMany(cascade = {CascadeType.MERGE, CascadeType.PERSIST, CascadeType.REFRESH})
+ protected Set agreement = new HashSet<>();
@JsonProperty("billingAccount")
- private BillingAccountRef billingAccount = null;
+ @OneToOne(cascade = CascadeType.ALL)
+ @JoinColumn(name = "billing_acc_refuuid", referencedColumnName = "uuid")
+ protected BillingAccountRef billingAccount = null;
@JsonProperty("place")
@Valid
- private List place = null;
+ @OneToMany(cascade = {CascadeType.MERGE, CascadeType.PERSIST, CascadeType.REFRESH})
+ protected Set place = new HashSet<>();
@JsonProperty("product")
@Valid
- private List product = null;
+ @OneToMany(cascade = {CascadeType.MERGE, CascadeType.PERSIST, CascadeType.REFRESH})
+ protected Set product = new HashSet<>();
@JsonProperty("productCharacteristic")
@Valid
- private List productCharacteristic = null;
+ @OneToMany(cascade = {CascadeType.MERGE, CascadeType.PERSIST, CascadeType.REFRESH})
+ protected Set productCharacteristic = new HashSet<>();
@JsonProperty("productOffering")
- private ProductOfferingRef productOffering = null;
+ @OneToOne(cascade = CascadeType.ALL)
+ @JoinColumn(name = "prodoff_refuuid", referencedColumnName = "uuid")
+ protected ProductOfferingRef productOffering = null;
@JsonProperty("productOrderItem")
@Valid
- private List productOrderItem = null;
+ @OneToMany(cascade = {CascadeType.MERGE, CascadeType.PERSIST, CascadeType.REFRESH})
+ protected Set productOrderItem = new HashSet<>();
@JsonProperty("productPrice")
@Valid
- private List productPrice = null;
+ @OneToMany(cascade = {CascadeType.MERGE, CascadeType.PERSIST, CascadeType.REFRESH})
+ protected Set productPrice = new HashSet<>();
@JsonProperty("productRelationship")
@Valid
- private List productRelationship = null;
+ @OneToMany(cascade = {CascadeType.MERGE, CascadeType.PERSIST, CascadeType.REFRESH})
+ protected Set productRelationship = new HashSet<>();
@JsonProperty("productSpecification")
- private ProductSpecificationRef productSpecification = null;
+ @OneToOne(cascade = CascadeType.ALL)
+ @JoinColumn(name = "prodspec_refuuid", referencedColumnName = "uuid")
+ protected ProductSpecificationRef productSpecification = null;
@JsonProperty("productTerm")
@Valid
- private List productTerm = null;
+ @OneToMany(cascade = {CascadeType.MERGE, CascadeType.PERSIST, CascadeType.REFRESH})
+ protected Set productTerm = new HashSet<>();
@JsonProperty("realizingResource")
@Valid
- private List realizingResource = null;
+ @OneToMany(cascade = {CascadeType.MERGE, CascadeType.PERSIST, CascadeType.REFRESH})
+ protected Set realizingResource = new HashSet<>();
@JsonProperty("realizingService")
@Valid
- private List realizingService = null;
+ @OneToMany(cascade = {CascadeType.MERGE, CascadeType.PERSIST, CascadeType.REFRESH})
+ protected Set realizingService = new HashSet<>();
@JsonProperty("relatedParty")
@Valid
- private List relatedParty = null;
+ @OneToMany(cascade = {CascadeType.MERGE, CascadeType.PERSIST, CascadeType.REFRESH})
+ protected Set relatedParty = new HashSet<>();
@JsonProperty("status")
- private ProductStatusType status = null;
+ protected ProductStatusType status = null;
- @JsonProperty("@baseType")
- private String baseType = null;
-
- @JsonProperty("@schemaLocation")
- private String schemaLocation = null;
-
- @JsonProperty("@type")
- private String type = null;
public Product id(String id) {
this.id = id;
@@ -142,9 +142,10 @@ public class Product {
/**
* Unique identifier of the product
* @return id
- **/
+ **/
@Schema(description = "Unique identifier of the product")
-
+ @NotNull
+
public String getId() {
return id;
}
@@ -161,9 +162,10 @@ public class Product {
/**
* Reference of the product
* @return href
- **/
+ **/
@Schema(description = "Reference of the product")
-
+ @NotNull
+
public String getHref() {
return href;
}
@@ -180,9 +182,10 @@ public class Product {
/**
* Is the description of the product. It could be copied from the description of the Product Offering.
* @return description
- **/
+ **/
@Schema(description = "Is the description of the product. It could be copied from the description of the Product Offering.")
-
+ @NotNull
+
public String getDescription() {
return description;
}
@@ -199,9 +202,10 @@ public class Product {
/**
* If true, the product is a ProductBundle which is an instantiation of a BundledProductOffering. If false, the product is a ProductComponent which is an instantiation of a SimpleProductOffering.
* @return isBundle
- **/
+ **/
@Schema(description = "If true, the product is a ProductBundle which is an instantiation of a BundledProductOffering. If false, the product is a ProductComponent which is an instantiation of a SimpleProductOffering.")
-
+ @NotNull
+
public Boolean isIsBundle() {
return isBundle;
}
@@ -218,9 +222,10 @@ public class Product {
/**
* If true, the product is visible by the customer.
* @return isCustomerVisible
- **/
+ **/
@Schema(description = "If true, the product is visible by the customer.")
-
+ @NotNull
+
public Boolean isIsCustomerVisible() {
return isCustomerVisible;
}
@@ -237,9 +242,10 @@ public class Product {
/**
* Name of the product. It could be the same as the name of the product offering
* @return name
- **/
+ **/
@Schema(description = "Name of the product. It could be the same as the name of the product offering")
-
+ @NotNull
+
public String getName() {
return name;
}
@@ -248,7 +254,7 @@ public class Product {
this.name = name;
}
- public Product orderDate(OffsetDateTime orderDate) {
+ public Product orderDate(Date orderDate) {
this.orderDate = orderDate;
return this;
}
@@ -256,15 +262,16 @@ public class Product {
/**
* Is the date when the product was ordered
* @return orderDate
- **/
+ **/
@Schema(description = "Is the date when the product was ordered")
-
+ @NotNull
+
@Valid
- public OffsetDateTime getOrderDate() {
+ public Date getOrderDate() {
return orderDate;
}
- public void setOrderDate(OffsetDateTime orderDate) {
+ public void setOrderDate(Date orderDate) {
this.orderDate = orderDate;
}
@@ -276,9 +283,10 @@ public class Product {
/**
* Is the serial number for the product. This is typically applicable to tangible products e.g. Broadband Router.
* @return productSerialNumber
- **/
+ **/
@Schema(description = "Is the serial number for the product. This is typically applicable to tangible products e.g. Broadband Router.")
-
+ @NotNull
+
public String getProductSerialNumber() {
return productSerialNumber;
}
@@ -287,7 +295,7 @@ public class Product {
this.productSerialNumber = productSerialNumber;
}
- public Product startDate(OffsetDateTime startDate) {
+ public Product startDate(Date startDate) {
this.startDate = startDate;
return this;
}
@@ -295,19 +303,20 @@ public class Product {
/**
* Is the date from which the product starts
* @return startDate
- **/
+ **/
@Schema(description = "Is the date from which the product starts")
-
+ @NotNull
+
@Valid
- public OffsetDateTime getStartDate() {
+ public Date getStartDate() {
return startDate;
}
- public void setStartDate(OffsetDateTime startDate) {
+ public void setStartDate(Date startDate) {
this.startDate = startDate;
}
- public Product terminationDate(OffsetDateTime terminationDate) {
+ public Product terminationDate(Date terminationDate) {
this.terminationDate = terminationDate;
return this;
}
@@ -315,26 +324,27 @@ public class Product {
/**
* Is the date when the product was terminated
* @return terminationDate
- **/
+ **/
@Schema(description = "Is the date when the product was terminated")
-
+ @NotNull
+
@Valid
- public OffsetDateTime getTerminationDate() {
+ public Date getTerminationDate() {
return terminationDate;
}
- public void setTerminationDate(OffsetDateTime terminationDate) {
+ public void setTerminationDate(Date terminationDate) {
this.terminationDate = terminationDate;
}
- public Product agreement(List agreement) {
+ public Product agreement(Set agreement) {
this.agreement = agreement;
return this;
}
public Product addAgreementItem(AgreementItemRef agreementItem) {
if (this.agreement == null) {
- this.agreement = new ArrayList<>();
+ this.agreement = new HashSet();
}
this.agreement.add(agreementItem);
return this;
@@ -343,14 +353,15 @@ public class Product {
/**
* Get agreement
* @return agreement
- **/
+ **/
@Schema(description = "")
- @Valid
- public List getAgreement() {
+ @NotNull
+ @Valid
+ public Set getAgreement() {
return agreement;
}
- public void setAgreement(List agreement) {
+ public void setAgreement(Set agreement) {
this.agreement = agreement;
}
@@ -362,9 +373,10 @@ public class Product {
/**
* Get billingAccount
* @return billingAccount
- **/
+ **/
@Schema(description = "")
-
+ @NotNull
+
@Valid
public BillingAccountRef getBillingAccount() {
return billingAccount;
@@ -374,14 +386,14 @@ public class Product {
this.billingAccount = billingAccount;
}
- public Product place(List place) {
+ public Product place(Set place) {
this.place = place;
return this;
}
public Product addPlaceItem(RelatedPlaceRefOrValue placeItem) {
if (this.place == null) {
- this.place = new ArrayList<>();
+ this.place = new HashSet();
}
this.place.add(placeItem);
return this;
@@ -390,25 +402,26 @@ public class Product {
/**
* Get place
* @return place
- **/
+ **/
@Schema(description = "")
- @Valid
- public List getPlace() {
+ @NotNull
+ @Valid
+ public Set getPlace() {
return place;
}
- public void setPlace(List place) {
+ public void setPlace(Set place) {
this.place = place;
}
- public Product product(List product) {
+ public Product product(Set product) {
this.product = product;
return this;
}
public Product addProductItem(ProductRefOrValue productItem) {
if (this.product == null) {
- this.product = new ArrayList<>();
+ this.product = new HashSet();
}
this.product.add(productItem);
return this;
@@ -417,25 +430,26 @@ public class Product {
/**
* Get product
* @return product
- **/
+ **/
@Schema(description = "")
- @Valid
- public List getProduct() {
+ @NotNull
+ @Valid
+ public Set getProduct() {
return product;
}
- public void setProduct(List product) {
+ public void setProduct(Set product) {
this.product = product;
}
- public Product productCharacteristic(List productCharacteristic) {
+ public Product productCharacteristic(Set productCharacteristic) {
this.productCharacteristic = productCharacteristic;
return this;
}
public Product addProductCharacteristicItem(Characteristic productCharacteristicItem) {
if (this.productCharacteristic == null) {
- this.productCharacteristic = new ArrayList<>();
+ this.productCharacteristic = new HashSet();
}
this.productCharacteristic.add(productCharacteristicItem);
return this;
@@ -444,14 +458,15 @@ public class Product {
/**
* Get productCharacteristic
* @return productCharacteristic
- **/
+ **/
@Schema(description = "")
- @Valid
- public List getProductCharacteristic() {
+ @NotNull
+ @Valid
+ public Set getProductCharacteristic() {
return productCharacteristic;
}
- public void setProductCharacteristic(List productCharacteristic) {
+ public void setProductCharacteristic(Set productCharacteristic) {
this.productCharacteristic = productCharacteristic;
}
@@ -463,9 +478,10 @@ public class Product {
/**
* Get productOffering
* @return productOffering
- **/
+ **/
@Schema(description = "")
-
+ @NotNull
+
@Valid
public ProductOfferingRef getProductOffering() {
return productOffering;
@@ -475,14 +491,14 @@ public class Product {
this.productOffering = productOffering;
}
- public Product productOrderItem(List productOrderItem) {
+ public Product productOrderItem(Set productOrderItem) {
this.productOrderItem = productOrderItem;
return this;
}
public Product addProductOrderItemItem(RelatedProductOrderItem productOrderItemItem) {
if (this.productOrderItem == null) {
- this.productOrderItem = new ArrayList<>();
+ this.productOrderItem = new HashSet();
}
this.productOrderItem.add(productOrderItemItem);
return this;
@@ -491,25 +507,26 @@ public class Product {
/**
* Get productOrderItem
* @return productOrderItem
- **/
+ **/
@Schema(description = "")
- @Valid
- public List getProductOrderItem() {
+ @NotNull
+ @Valid
+ public Set getProductOrderItem() {
return productOrderItem;
}
- public void setProductOrderItem(List productOrderItem) {
+ public void setProductOrderItem(Set productOrderItem) {
this.productOrderItem = productOrderItem;
}
- public Product productPrice(List productPrice) {
+ public Product productPrice(Set productPrice) {
this.productPrice = productPrice;
return this;
}
public Product addProductPriceItem(ProductPrice productPriceItem) {
if (this.productPrice == null) {
- this.productPrice = new ArrayList<>();
+ this.productPrice = new HashSet();
}
this.productPrice.add(productPriceItem);
return this;
@@ -518,25 +535,26 @@ public class Product {
/**
* Get productPrice
* @return productPrice
- **/
+ **/
@Schema(description = "")
- @Valid
- public List getProductPrice() {
+ @NotNull
+ @Valid
+ public Set getProductPrice() {
return productPrice;
}
- public void setProductPrice(List productPrice) {
+ public void setProductPrice(Set productPrice) {
this.productPrice = productPrice;
}
- public Product productRelationship(List productRelationship) {
+ public Product productRelationship(Set productRelationship) {
this.productRelationship = productRelationship;
return this;
}
public Product addProductRelationshipItem(ProductRelationship productRelationshipItem) {
if (this.productRelationship == null) {
- this.productRelationship = new ArrayList<>();
+ this.productRelationship = new HashSet();
}
this.productRelationship.add(productRelationshipItem);
return this;
@@ -545,14 +563,15 @@ public class Product {
/**
* Get productRelationship
* @return productRelationship
- **/
+ **/
@Schema(description = "")
- @Valid
- public List getProductRelationship() {
+ @NotNull
+ @Valid
+ public Set getProductRelationship() {
return productRelationship;
}
- public void setProductRelationship(List productRelationship) {
+ public void setProductRelationship(Set productRelationship) {
this.productRelationship = productRelationship;
}
@@ -564,9 +583,10 @@ public class Product {
/**
* Get productSpecification
* @return productSpecification
- **/
+ **/
@Schema(description = "")
-
+ @NotNull
+
@Valid
public ProductSpecificationRef getProductSpecification() {
return productSpecification;
@@ -576,14 +596,14 @@ public class Product {
this.productSpecification = productSpecification;
}
- public Product productTerm(List productTerm) {
+ public Product productTerm(Set productTerm) {
this.productTerm = productTerm;
return this;
}
public Product addProductTermItem(ProductTerm productTermItem) {
if (this.productTerm == null) {
- this.productTerm = new ArrayList<>();
+ this.productTerm = new HashSet();
}
this.productTerm.add(productTermItem);
return this;
@@ -592,25 +612,26 @@ public class Product {
/**
* Get productTerm
* @return productTerm
- **/
+ **/
@Schema(description = "")
- @Valid
- public List getProductTerm() {
+ @NotNull
+ @Valid
+ public Set getProductTerm() {
return productTerm;
}
- public void setProductTerm(List productTerm) {
+ public void setProductTerm(Set productTerm) {
this.productTerm = productTerm;
}
- public Product realizingResource(List realizingResource) {
+ public Product realizingResource(Set realizingResource) {
this.realizingResource = realizingResource;
return this;
}
public Product addRealizingResourceItem(ResourceRef realizingResourceItem) {
if (this.realizingResource == null) {
- this.realizingResource = new ArrayList<>();
+ this.realizingResource = new HashSet();
}
this.realizingResource.add(realizingResourceItem);
return this;
@@ -619,25 +640,26 @@ public class Product {
/**
* Get realizingResource
* @return realizingResource
- **/
+ **/
@Schema(description = "")
- @Valid
- public List getRealizingResource() {
+ @NotNull
+ @Valid
+ public Set getRealizingResource() {
return realizingResource;
}
- public void setRealizingResource(List realizingResource) {
+ public void setRealizingResource(Set realizingResource) {
this.realizingResource = realizingResource;
}
- public Product realizingService(List realizingService) {
+ public Product realizingService(Set realizingService) {
this.realizingService = realizingService;
return this;
}
public Product addRealizingServiceItem(ServiceRef realizingServiceItem) {
if (this.realizingService == null) {
- this.realizingService = new ArrayList<>();
+ this.realizingService = new HashSet();
}
this.realizingService.add(realizingServiceItem);
return this;
@@ -646,25 +668,26 @@ public class Product {
/**
* Get realizingService
* @return realizingService
- **/
+ **/
@Schema(description = "")
- @Valid
- public List getRealizingService() {
+ @NotNull
+ @Valid
+ public Set getRealizingService() {
return realizingService;
}
- public void setRealizingService(List realizingService) {
+ public void setRealizingService(Set realizingService) {
this.realizingService = realizingService;
}
- public Product relatedParty(List relatedParty) {
+ public Product relatedParty(Set relatedParty) {
this.relatedParty = relatedParty;
return this;
}
public Product addRelatedPartyItem(RelatedParty relatedPartyItem) {
if (this.relatedParty == null) {
- this.relatedParty = new ArrayList<>();
+ this.relatedParty = new HashSet();
}
this.relatedParty.add(relatedPartyItem);
return this;
@@ -673,14 +696,15 @@ public class Product {
/**
* Get relatedParty
* @return relatedParty
- **/
+ **/
@Schema(description = "")
- @Valid
- public List getRelatedParty() {
+ @NotNull
+ @Valid
+ public Set getRelatedParty() {
return relatedParty;
}
- public void setRelatedParty(List relatedParty) {
+ public void setRelatedParty(Set relatedParty) {
this.relatedParty = relatedParty;
}
@@ -692,9 +716,10 @@ public class Product {
/**
* Get status
* @return status
- **/
+ **/
@Schema(description = "")
-
+ @NotNull
+
@Valid
public ProductStatusType getStatus() {
return status;
@@ -704,62 +729,9 @@ public class Product {
this.status = status;
}
- public Product baseType(String baseType) {
- this.baseType = baseType;
- return this;
- }
-
- /**
- * When sub-classing, this defines the super-class
- * @return baseType
- **/
- @Schema(description = "When sub-classing, this defines the super-class")
-
- public String getAtBaseType() {
- return baseType;
- }
-
- public void setAtBaseType(String baseType) {
- this.baseType = baseType;
- }
+
- public Product schemaLocation(String schemaLocation) {
- this.schemaLocation = schemaLocation;
- return this;
- }
-
- /**
- * A URI to a JSON-Schema file that defines additional attributes and relationships
- * @return schemaLocation
- **/
- @Schema(description = "A URI to a JSON-Schema file that defines additional attributes and relationships")
-
- public String getAtSchemaLocation() {
- return schemaLocation;
- }
-
- public void setAtSchemaLocation(String schemaLocation) {
- this.schemaLocation = schemaLocation;
- }
-
- public Product type(String type) {
- this.type = type;
- return this;
- }
-
- /**
- * When sub-classing, this defines the sub-class entity name
- * @return type
- **/
- @Schema(description = "When sub-classing, this defines the sub-class entity name")
-
- public String getAtType() {
- return type;
- }
-
- public void setAtType(String type) {
- this.type = type;
- }
+
@Override
@@ -801,10 +773,11 @@ public class Product {
Objects.equals(this.type, product.type);
}
- @Override
- public int hashCode() {
- return Objects.hash(id, href, description, isBundle, isCustomerVisible, name, orderDate, productSerialNumber, startDate, terminationDate, agreement, billingAccount, place, product, productCharacteristic, productOffering, productOrderItem, productPrice, productRelationship, productSpecification, productTerm, realizingResource, realizingService, relatedParty, status, baseType, schemaLocation, type);
- }
+// @Override
+// public int hashCode() {
+// return Objects.hash(id, href, description, isBundle, isCustomerVisible, name, orderDate,
+// productSerialNumber, startDate, terminationDate, agreement, billingAccount, place, product, productCharacteristic, productOffering, productOrderItem, productPrice, productRelationship, productSpecification, productTerm, realizingResource, realizingService, relatedParty, status, baseType, _atSchemaLocation, _atType);
+// }
@Override
public String toString() {
diff --git a/src/main/java/org/etsi/osl/tmf/pim637/model/ProductAttributeValueChangeEvent.java b/src/main/java/org/etsi/osl/tmf/pim637/model/ProductAttributeValueChangeEvent.java
new file mode 100644
index 0000000000000000000000000000000000000000..3511cd102a2deaba2a14284dcce462b629004f37
--- /dev/null
+++ b/src/main/java/org/etsi/osl/tmf/pim637/model/ProductAttributeValueChangeEvent.java
@@ -0,0 +1,334 @@
+package org.etsi.osl.tmf.pim637.model;
+
+import java.util.Date;
+import java.util.Objects;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import org.springframework.validation.annotation.Validated;
+import io.swagger.v3.oas.annotations.media.Schema;
+import jakarta.validation.Valid;
+import jakarta.validation.constraints.NotNull;
+
+/**
+ * The notification data structure
+ */
+@Schema(description = "The notification data structure")
+@Validated
+@jakarta.annotation.Generated(value = "io.swagger.codegen.v3.generators.java.SpringCodegen", date = "2024-08-04T00:27:07.324017400+03:00[Europe/Athens]")
+
+
+public class ProductAttributeValueChangeEvent {
+ @JsonProperty("eventId")
+ private String eventId = null;
+
+ @JsonProperty("eventTime")
+ private Date eventTime = null;
+
+ @JsonProperty("eventType")
+ private String eventType = null;
+
+ @JsonProperty("correlationId")
+ private String correlationId = null;
+
+ @JsonProperty("domain")
+ private String domain = null;
+
+ @JsonProperty("title")
+ private String title = null;
+
+ @JsonProperty("description")
+ private String description = null;
+
+ @JsonProperty("priority")
+ private String priority = null;
+
+ @JsonProperty("timeOcurred")
+ private Date timeOcurred = null;
+
+ @JsonProperty("fieldPath")
+ private String fieldPath = null;
+
+ @JsonProperty("event")
+ private ProductAttributeValueChangeEventPayload event = null;
+
+ public ProductAttributeValueChangeEvent eventId(String eventId) {
+ this.eventId = eventId;
+ return this;
+ }
+
+ /**
+ * The identifier of the notification.
+ * @return eventId
+ **/
+ @Schema(description = "The identifier of the notification.")
+ @NotNull
+
+ public String getEventId() {
+ return eventId;
+ }
+
+ public void setEventId(String eventId) {
+ this.eventId = eventId;
+ }
+
+ public ProductAttributeValueChangeEvent eventTime(Date eventTime) {
+ this.eventTime = eventTime;
+ return this;
+ }
+
+ /**
+ * Time of the event occurrence.
+ * @return eventTime
+ **/
+ @Schema(description = "Time of the event occurrence.")
+ @NotNull
+
+ @Valid
+ public Date getEventTime() {
+ return eventTime;
+ }
+
+ public void setEventTime(Date eventTime) {
+ this.eventTime = eventTime;
+ }
+
+ public ProductAttributeValueChangeEvent eventType(String eventType) {
+ this.eventType = eventType;
+ return this;
+ }
+
+ /**
+ * The type of the notification.
+ * @return eventType
+ **/
+ @Schema(description = "The type of the notification.")
+ @NotNull
+
+ public String getEventType() {
+ return eventType;
+ }
+
+ public void setEventType(String eventType) {
+ this.eventType = eventType;
+ }
+
+ public ProductAttributeValueChangeEvent correlationId(String correlationId) {
+ this.correlationId = correlationId;
+ return this;
+ }
+
+ /**
+ * The correlation id for this event.
+ * @return correlationId
+ **/
+ @Schema(description = "The correlation id for this event.")
+ @NotNull
+
+ public String getCorrelationId() {
+ return correlationId;
+ }
+
+ public void setCorrelationId(String correlationId) {
+ this.correlationId = correlationId;
+ }
+
+ public ProductAttributeValueChangeEvent domain(String domain) {
+ this.domain = domain;
+ return this;
+ }
+
+ /**
+ * The domain of the event.
+ * @return domain
+ **/
+ @Schema(description = "The domain of the event.")
+ @NotNull
+
+ public String getDomain() {
+ return domain;
+ }
+
+ public void setDomain(String domain) {
+ this.domain = domain;
+ }
+
+ public ProductAttributeValueChangeEvent title(String title) {
+ this.title = title;
+ return this;
+ }
+
+ /**
+ * The title of the event.
+ * @return title
+ **/
+ @Schema(description = "The title of the event.")
+ @NotNull
+
+ public String getTitle() {
+ return title;
+ }
+
+ public void setTitle(String title) {
+ this.title = title;
+ }
+
+ public ProductAttributeValueChangeEvent description(String description) {
+ this.description = description;
+ return this;
+ }
+
+ /**
+ * An explnatory of the event.
+ * @return description
+ **/
+ @Schema(description = "An explnatory of the event.")
+ @NotNull
+
+ public String getDescription() {
+ return description;
+ }
+
+ public void setDescription(String description) {
+ this.description = description;
+ }
+
+ public ProductAttributeValueChangeEvent priority(String priority) {
+ this.priority = priority;
+ return this;
+ }
+
+ /**
+ * A priority.
+ * @return priority
+ **/
+ @Schema(description = "A priority.")
+ @NotNull
+
+ public String getPriority() {
+ return priority;
+ }
+
+ public void setPriority(String priority) {
+ this.priority = priority;
+ }
+
+ public ProductAttributeValueChangeEvent timeOcurred(Date timeOcurred) {
+ this.timeOcurred = timeOcurred;
+ return this;
+ }
+
+ /**
+ * The time the event occured.
+ * @return timeOcurred
+ **/
+ @Schema(description = "The time the event occured.")
+ @NotNull
+
+ @Valid
+ public Date getTimeOcurred() {
+ return timeOcurred;
+ }
+
+ public void setTimeOcurred(Date timeOcurred) {
+ this.timeOcurred = timeOcurred;
+ }
+
+ public ProductAttributeValueChangeEvent fieldPath(String fieldPath) {
+ this.fieldPath = fieldPath;
+ return this;
+ }
+
+ /**
+ * The path identifying the object field concerned by this notification.
+ * @return fieldPath
+ **/
+ @Schema(description = "The path identifying the object field concerned by this notification.")
+ @NotNull
+
+ public String getFieldPath() {
+ return fieldPath;
+ }
+
+ public void setFieldPath(String fieldPath) {
+ this.fieldPath = fieldPath;
+ }
+
+ public ProductAttributeValueChangeEvent event(ProductAttributeValueChangeEventPayload event) {
+ this.event = event;
+ return this;
+ }
+
+ /**
+ * Get event
+ * @return event
+ **/
+ @Schema(description = "")
+ @NotNull
+
+ @Valid
+ public ProductAttributeValueChangeEventPayload getEvent() {
+ return event;
+ }
+
+ public void setEvent(ProductAttributeValueChangeEventPayload event) {
+ this.event = event;
+ }
+
+
+ @Override
+ public boolean equals(java.lang.Object o) {
+ if (this == o) {
+ return true;
+ }
+ if (o == null || getClass() != o.getClass()) {
+ return false;
+ }
+ ProductAttributeValueChangeEvent productAttributeValueChangeEvent = (ProductAttributeValueChangeEvent) o;
+ return Objects.equals(this.eventId, productAttributeValueChangeEvent.eventId) &&
+ Objects.equals(this.eventTime, productAttributeValueChangeEvent.eventTime) &&
+ Objects.equals(this.eventType, productAttributeValueChangeEvent.eventType) &&
+ Objects.equals(this.correlationId, productAttributeValueChangeEvent.correlationId) &&
+ Objects.equals(this.domain, productAttributeValueChangeEvent.domain) &&
+ Objects.equals(this.title, productAttributeValueChangeEvent.title) &&
+ Objects.equals(this.description, productAttributeValueChangeEvent.description) &&
+ Objects.equals(this.priority, productAttributeValueChangeEvent.priority) &&
+ Objects.equals(this.timeOcurred, productAttributeValueChangeEvent.timeOcurred) &&
+ Objects.equals(this.fieldPath, productAttributeValueChangeEvent.fieldPath) &&
+ Objects.equals(this.event, productAttributeValueChangeEvent.event);
+ }
+
+ @Override
+ public int hashCode() {
+ return Objects.hash(eventId, eventTime, eventType, correlationId, domain, title, description, priority, timeOcurred, fieldPath, event);
+ }
+
+ @Override
+ public String toString() {
+ StringBuilder sb = new StringBuilder();
+ sb.append("class ProductAttributeValueChangeEvent {\n");
+
+ sb.append(" eventId: ").append(toIndentedString(eventId)).append("\n");
+ sb.append(" eventTime: ").append(toIndentedString(eventTime)).append("\n");
+ sb.append(" eventType: ").append(toIndentedString(eventType)).append("\n");
+ sb.append(" correlationId: ").append(toIndentedString(correlationId)).append("\n");
+ sb.append(" domain: ").append(toIndentedString(domain)).append("\n");
+ sb.append(" title: ").append(toIndentedString(title)).append("\n");
+ sb.append(" description: ").append(toIndentedString(description)).append("\n");
+ sb.append(" priority: ").append(toIndentedString(priority)).append("\n");
+ sb.append(" timeOcurred: ").append(toIndentedString(timeOcurred)).append("\n");
+ sb.append(" fieldPath: ").append(toIndentedString(fieldPath)).append("\n");
+ sb.append(" event: ").append(toIndentedString(event)).append("\n");
+ sb.append("}");
+ return sb.toString();
+ }
+
+ /**
+ * Convert the given object to string with each line indented by 4 spaces
+ * (except the first line).
+ */
+ private String toIndentedString(java.lang.Object o) {
+ if (o == null) {
+ return "null";
+ }
+ return o.toString().replace("\n", "\n ");
+ }
+}
diff --git a/src/main/java/org/etsi/osl/tmf/pim637/model/ProductAttributeValueChangeEventPayload.java b/src/main/java/org/etsi/osl/tmf/pim637/model/ProductAttributeValueChangeEventPayload.java
new file mode 100644
index 0000000000000000000000000000000000000000..50b4c3a7e50f08d4d7cfc69eebf07b154b359375
--- /dev/null
+++ b/src/main/java/org/etsi/osl/tmf/pim637/model/ProductAttributeValueChangeEventPayload.java
@@ -0,0 +1,81 @@
+package org.etsi.osl.tmf.pim637.model;
+
+import java.util.Objects;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import org.springframework.validation.annotation.Validated;
+import io.swagger.v3.oas.annotations.media.Schema;
+import jakarta.validation.Valid;
+import jakarta.validation.constraints.NotNull;
+
+/**
+ * The event data structure
+ */
+@Schema(description = "The event data structure")
+@Validated
+@jakarta.annotation.Generated(value = "io.swagger.codegen.v3.generators.java.SpringCodegen", date = "2024-08-04T00:27:07.324017400+03:00[Europe/Athens]")
+
+
+public class ProductAttributeValueChangeEventPayload {
+ @JsonProperty("product")
+ private Product product = null;
+
+ public ProductAttributeValueChangeEventPayload product(Product product) {
+ this.product = product;
+ return this;
+ }
+
+ /**
+ * Get product
+ * @return product
+ **/
+ @Schema(description = "")
+ @NotNull
+
+ @Valid
+ public Product getProduct() {
+ return product;
+ }
+
+ public void setProduct(Product product) {
+ this.product = product;
+ }
+
+
+ @Override
+ public boolean equals(java.lang.Object o) {
+ if (this == o) {
+ return true;
+ }
+ if (o == null || getClass() != o.getClass()) {
+ return false;
+ }
+ ProductAttributeValueChangeEventPayload productAttributeValueChangeEventPayload = (ProductAttributeValueChangeEventPayload) o;
+ return Objects.equals(this.product, productAttributeValueChangeEventPayload.product);
+ }
+
+ @Override
+ public int hashCode() {
+ return Objects.hash(product);
+ }
+
+ @Override
+ public String toString() {
+ StringBuilder sb = new StringBuilder();
+ sb.append("class ProductAttributeValueChangeEventPayload {\n");
+
+ sb.append(" product: ").append(toIndentedString(product)).append("\n");
+ sb.append("}");
+ return sb.toString();
+ }
+
+ /**
+ * Convert the given object to string with each line indented by 4 spaces
+ * (except the first line).
+ */
+ private String toIndentedString(java.lang.Object o) {
+ if (o == null) {
+ return "null";
+ }
+ return o.toString().replace("\n", "\n ");
+ }
+}
diff --git a/src/main/java/org/etsi/osl/tmf/pim637/model/ProductBatchEvent.java b/src/main/java/org/etsi/osl/tmf/pim637/model/ProductBatchEvent.java
new file mode 100644
index 0000000000000000000000000000000000000000..f1a1186c6e1ff9f101236083098a156bd358208b
--- /dev/null
+++ b/src/main/java/org/etsi/osl/tmf/pim637/model/ProductBatchEvent.java
@@ -0,0 +1,359 @@
+package org.etsi.osl.tmf.pim637.model;
+
+import java.util.Date;
+import java.util.Objects;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import org.springframework.validation.annotation.Validated;
+import io.swagger.v3.oas.annotations.media.Schema;
+import jakarta.validation.Valid;
+import jakarta.validation.constraints.NotNull;
+
+/**
+ * The notification data structure
+ */
+@Schema(description = "The notification data structure")
+@Validated
+@jakarta.annotation.Generated(value = "io.swagger.codegen.v3.generators.java.SpringCodegen", date = "2024-08-04T00:27:07.324017400+03:00[Europe/Athens]")
+
+
+public class ProductBatchEvent {
+ @JsonProperty("id")
+ private String id = null;
+
+ @JsonProperty("href")
+ private String href = null;
+
+ @JsonProperty("eventId")
+ private String eventId = null;
+
+ @JsonProperty("eventTime")
+ private Date eventTime = null;
+
+ @JsonProperty("eventType")
+ private String eventType = null;
+
+ @JsonProperty("correlationId")
+ private String correlationId = null;
+
+ @JsonProperty("domain")
+ private String domain = null;
+
+ @JsonProperty("title")
+ private String title = null;
+
+ @JsonProperty("description")
+ private String description = null;
+
+ @JsonProperty("priority")
+ private String priority = null;
+
+ @JsonProperty("timeOcurred")
+ private Date timeOcurred = null;
+
+ @JsonProperty("event")
+ private ProductBatchEventPayload event = null;
+
+ public ProductBatchEvent id(String id) {
+ this.id = id;
+ return this;
+ }
+
+ /**
+ * Identifier of the Process flow
+ * @return id
+ **/
+ @Schema(description = "Identifier of the Process flow")
+ @NotNull
+
+ public String getId() {
+ return id;
+ }
+
+ public void setId(String id) {
+ this.id = id;
+ }
+
+ public ProductBatchEvent href(String href) {
+ this.href = href;
+ return this;
+ }
+
+ /**
+ * Reference of the ProcessFlow
+ * @return href
+ **/
+ @Schema(description = "Reference of the ProcessFlow")
+ @NotNull
+
+ public String getHref() {
+ return href;
+ }
+
+ public void setHref(String href) {
+ this.href = href;
+ }
+
+ public ProductBatchEvent eventId(String eventId) {
+ this.eventId = eventId;
+ return this;
+ }
+
+ /**
+ * The identifier of the notification.
+ * @return eventId
+ **/
+ @Schema(description = "The identifier of the notification.")
+ @NotNull
+
+ public String getEventId() {
+ return eventId;
+ }
+
+ public void setEventId(String eventId) {
+ this.eventId = eventId;
+ }
+
+ public ProductBatchEvent eventTime(Date eventTime) {
+ this.eventTime = eventTime;
+ return this;
+ }
+
+ /**
+ * Time of the event occurrence.
+ * @return eventTime
+ **/
+ @Schema(description = "Time of the event occurrence.")
+ @NotNull
+
+ @Valid
+ public Date getEventTime() {
+ return eventTime;
+ }
+
+ public void setEventTime(Date eventTime) {
+ this.eventTime = eventTime;
+ }
+
+ public ProductBatchEvent eventType(String eventType) {
+ this.eventType = eventType;
+ return this;
+ }
+
+ /**
+ * The type of the notification.
+ * @return eventType
+ **/
+ @Schema(description = "The type of the notification.")
+ @NotNull
+
+ public String getEventType() {
+ return eventType;
+ }
+
+ public void setEventType(String eventType) {
+ this.eventType = eventType;
+ }
+
+ public ProductBatchEvent correlationId(String correlationId) {
+ this.correlationId = correlationId;
+ return this;
+ }
+
+ /**
+ * The correlation id for this event.
+ * @return correlationId
+ **/
+ @Schema(description = "The correlation id for this event.")
+ @NotNull
+
+ public String getCorrelationId() {
+ return correlationId;
+ }
+
+ public void setCorrelationId(String correlationId) {
+ this.correlationId = correlationId;
+ }
+
+ public ProductBatchEvent domain(String domain) {
+ this.domain = domain;
+ return this;
+ }
+
+ /**
+ * The domain of the event.
+ * @return domain
+ **/
+ @Schema(description = "The domain of the event.")
+ @NotNull
+
+ public String getDomain() {
+ return domain;
+ }
+
+ public void setDomain(String domain) {
+ this.domain = domain;
+ }
+
+ public ProductBatchEvent title(String title) {
+ this.title = title;
+ return this;
+ }
+
+ /**
+ * The title of the event.
+ * @return title
+ **/
+ @Schema(description = "The title of the event.")
+ @NotNull
+
+ public String getTitle() {
+ return title;
+ }
+
+ public void setTitle(String title) {
+ this.title = title;
+ }
+
+ public ProductBatchEvent description(String description) {
+ this.description = description;
+ return this;
+ }
+
+ /**
+ * An explnatory of the event.
+ * @return description
+ **/
+ @Schema(description = "An explnatory of the event.")
+ @NotNull
+
+ public String getDescription() {
+ return description;
+ }
+
+ public void setDescription(String description) {
+ this.description = description;
+ }
+
+ public ProductBatchEvent priority(String priority) {
+ this.priority = priority;
+ return this;
+ }
+
+ /**
+ * A priority.
+ * @return priority
+ **/
+ @Schema(description = "A priority.")
+ @NotNull
+
+ public String getPriority() {
+ return priority;
+ }
+
+ public void setPriority(String priority) {
+ this.priority = priority;
+ }
+
+ public ProductBatchEvent timeOcurred(Date timeOcurred) {
+ this.timeOcurred = timeOcurred;
+ return this;
+ }
+
+ /**
+ * The time the event occured.
+ * @return timeOcurred
+ **/
+ @Schema(description = "The time the event occured.")
+ @NotNull
+
+ @Valid
+ public Date getTimeOcurred() {
+ return timeOcurred;
+ }
+
+ public void setTimeOcurred(Date timeOcurred) {
+ this.timeOcurred = timeOcurred;
+ }
+
+ public ProductBatchEvent event(ProductBatchEventPayload event) {
+ this.event = event;
+ return this;
+ }
+
+ /**
+ * Get event
+ * @return event
+ **/
+ @Schema(description = "")
+ @NotNull
+
+ @Valid
+ public ProductBatchEventPayload getEvent() {
+ return event;
+ }
+
+ public void setEvent(ProductBatchEventPayload event) {
+ this.event = event;
+ }
+
+
+ @Override
+ public boolean equals(java.lang.Object o) {
+ if (this == o) {
+ return true;
+ }
+ if (o == null || getClass() != o.getClass()) {
+ return false;
+ }
+ ProductBatchEvent productBatchEvent = (ProductBatchEvent) o;
+ return Objects.equals(this.id, productBatchEvent.id) &&
+ Objects.equals(this.href, productBatchEvent.href) &&
+ Objects.equals(this.eventId, productBatchEvent.eventId) &&
+ Objects.equals(this.eventTime, productBatchEvent.eventTime) &&
+ Objects.equals(this.eventType, productBatchEvent.eventType) &&
+ Objects.equals(this.correlationId, productBatchEvent.correlationId) &&
+ Objects.equals(this.domain, productBatchEvent.domain) &&
+ Objects.equals(this.title, productBatchEvent.title) &&
+ Objects.equals(this.description, productBatchEvent.description) &&
+ Objects.equals(this.priority, productBatchEvent.priority) &&
+ Objects.equals(this.timeOcurred, productBatchEvent.timeOcurred) &&
+ Objects.equals(this.event, productBatchEvent.event);
+ }
+
+ @Override
+ public int hashCode() {
+ return Objects.hash(id, href, eventId, eventTime, eventType, correlationId, domain, title, description, priority, timeOcurred, event);
+ }
+
+ @Override
+ public String toString() {
+ StringBuilder sb = new StringBuilder();
+ sb.append("class ProductBatchEvent {\n");
+
+ sb.append(" id: ").append(toIndentedString(id)).append("\n");
+ sb.append(" href: ").append(toIndentedString(href)).append("\n");
+ sb.append(" eventId: ").append(toIndentedString(eventId)).append("\n");
+ sb.append(" eventTime: ").append(toIndentedString(eventTime)).append("\n");
+ sb.append(" eventType: ").append(toIndentedString(eventType)).append("\n");
+ sb.append(" correlationId: ").append(toIndentedString(correlationId)).append("\n");
+ sb.append(" domain: ").append(toIndentedString(domain)).append("\n");
+ sb.append(" title: ").append(toIndentedString(title)).append("\n");
+ sb.append(" description: ").append(toIndentedString(description)).append("\n");
+ sb.append(" priority: ").append(toIndentedString(priority)).append("\n");
+ sb.append(" timeOcurred: ").append(toIndentedString(timeOcurred)).append("\n");
+ sb.append(" event: ").append(toIndentedString(event)).append("\n");
+ sb.append("}");
+ return sb.toString();
+ }
+
+ /**
+ * Convert the given object to string with each line indented by 4 spaces
+ * (except the first line).
+ */
+ private String toIndentedString(java.lang.Object o) {
+ if (o == null) {
+ return "null";
+ }
+ return o.toString().replace("\n", "\n ");
+ }
+}
diff --git a/src/main/java/org/etsi/osl/tmf/pim637/model/ProductBatchEventPayload.java b/src/main/java/org/etsi/osl/tmf/pim637/model/ProductBatchEventPayload.java
new file mode 100644
index 0000000000000000000000000000000000000000..e90831cb7692e047a22b32a00dc85deb485e546f
--- /dev/null
+++ b/src/main/java/org/etsi/osl/tmf/pim637/model/ProductBatchEventPayload.java
@@ -0,0 +1,81 @@
+package org.etsi.osl.tmf.pim637.model;
+
+import java.util.Objects;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import org.springframework.validation.annotation.Validated;
+import io.swagger.v3.oas.annotations.media.Schema;
+import jakarta.validation.Valid;
+import jakarta.validation.constraints.NotNull;
+
+/**
+ * The event data structure
+ */
+@Schema(description = "The event data structure")
+@Validated
+@jakarta.annotation.Generated(value = "io.swagger.codegen.v3.generators.java.SpringCodegen", date = "2024-08-04T00:27:07.324017400+03:00[Europe/Athens]")
+
+
+public class ProductBatchEventPayload {
+ @JsonProperty("product")
+ private Product product = null;
+
+ public ProductBatchEventPayload product(Product product) {
+ this.product = product;
+ return this;
+ }
+
+ /**
+ * Get product
+ * @return product
+ **/
+ @Schema(description = "")
+ @NotNull
+
+ @Valid
+ public Product getProduct() {
+ return product;
+ }
+
+ public void setProduct(Product product) {
+ this.product = product;
+ }
+
+
+ @Override
+ public boolean equals(java.lang.Object o) {
+ if (this == o) {
+ return true;
+ }
+ if (o == null || getClass() != o.getClass()) {
+ return false;
+ }
+ ProductBatchEventPayload productBatchEventPayload = (ProductBatchEventPayload) o;
+ return Objects.equals(this.product, productBatchEventPayload.product);
+ }
+
+ @Override
+ public int hashCode() {
+ return Objects.hash(product);
+ }
+
+ @Override
+ public String toString() {
+ StringBuilder sb = new StringBuilder();
+ sb.append("class ProductBatchEventPayload {\n");
+
+ sb.append(" product: ").append(toIndentedString(product)).append("\n");
+ sb.append("}");
+ return sb.toString();
+ }
+
+ /**
+ * Convert the given object to string with each line indented by 4 spaces
+ * (except the first line).
+ */
+ private String toIndentedString(java.lang.Object o) {
+ if (o == null) {
+ return "null";
+ }
+ return o.toString().replace("\n", "\n ");
+ }
+}
diff --git a/src/main/java/org/etsi/osl/tmf/pim637/model/ProductCreate.java b/src/main/java/org/etsi/osl/tmf/pim637/model/ProductCreate.java
new file mode 100644
index 0000000000000000000000000000000000000000..a9e2e368d8d2a2e7a274efb3fdbfb1358b312cfa
--- /dev/null
+++ b/src/main/java/org/etsi/osl/tmf/pim637/model/ProductCreate.java
@@ -0,0 +1,822 @@
+package org.etsi.osl.tmf.pim637.model;
+
+import java.util.ArrayList;
+import java.util.Date;
+import java.util.List;
+import java.util.Objects;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import org.etsi.osl.tmf.common.model.service.Characteristic;
+import org.etsi.osl.tmf.common.model.service.ResourceRef;
+import org.etsi.osl.tmf.common.model.service.ServiceRef;
+import org.etsi.osl.tmf.pcm620.model.ProductOfferingRef;
+import org.etsi.osl.tmf.pcm620.model.ProductSpecificationRef;
+import org.etsi.osl.tmf.po622.model.AgreementItemRef;
+import org.etsi.osl.tmf.po622.model.RelatedProductOrderItem;
+import org.etsi.osl.tmf.prm669.model.RelatedParty;
+import org.springframework.validation.annotation.Validated;
+import io.swagger.v3.oas.annotations.media.Schema;
+import jakarta.validation.Valid;
+import jakarta.validation.constraints.NotNull;
+
+/**
+ * A product offering procured by a customer or other interested party playing a party role. A product is realized as one or more service(s) and / or resource(s). Skipped properties: id,href
+ */
+@Schema(description = "A product offering procured by a customer or other interested party playing a party role. A product is realized as one or more service(s) and / or resource(s). Skipped properties: id,href")
+@Validated
+@jakarta.annotation.Generated(value = "io.swagger.codegen.v3.generators.java.SpringCodegen", date = "2024-08-04T00:27:07.324017400+03:00[Europe/Athens]")
+
+
+public class ProductCreate {
+ @JsonProperty("description")
+ private String description = null;
+
+ @JsonProperty("isBundle")
+ private Boolean isBundle = null;
+
+ @JsonProperty("isCustomerVisible")
+ private Boolean isCustomerVisible = null;
+
+ @JsonProperty("name")
+ private String name = null;
+
+ @JsonProperty("orderDate")
+ private Date orderDate = null;
+
+ @JsonProperty("productSerialNumber")
+ private String productSerialNumber = null;
+
+ @JsonProperty("startDate")
+ private Date startDate = null;
+
+ @JsonProperty("terminationDate")
+ private Date terminationDate = null;
+
+ @JsonProperty("agreement")
+ @Valid
+ private List agreement = null;
+
+ @JsonProperty("billingAccount")
+ private BillingAccountRef billingAccount = null;
+
+ @JsonProperty("place")
+ @Valid
+ private List place = null;
+
+ @JsonProperty("product")
+ @Valid
+ private List product = null;
+
+ @JsonProperty("productCharacteristic")
+ @Valid
+ private List productCharacteristic = null;
+
+ @JsonProperty("productOffering")
+ private ProductOfferingRef productOffering = null;
+
+ @JsonProperty("productOrderItem")
+ @Valid
+ private List productOrderItem = null;
+
+ @JsonProperty("productPrice")
+ @Valid
+ private List productPrice = null;
+
+ @JsonProperty("productRelationship")
+ @Valid
+ private List productRelationship = null;
+
+ @JsonProperty("productSpecification")
+ private ProductSpecificationRef productSpecification = null;
+
+ @JsonProperty("productTerm")
+ @Valid
+ private List productTerm = null;
+
+ @JsonProperty("realizingResource")
+ @Valid
+ private List realizingResource = null;
+
+ @JsonProperty("realizingService")
+ @Valid
+ private List realizingService = null;
+
+ @JsonProperty("relatedParty")
+ @Valid
+ private List relatedParty = null;
+
+ @JsonProperty("status")
+ private ProductStatusType status = null;
+
+ @JsonProperty("@baseType")
+ private String _atBaseType = null;
+
+ @JsonProperty("@schemaLocation")
+ private String _atSchemaLocation = null;
+
+ @JsonProperty("@type")
+ private String _atType = null;
+
+ public ProductCreate description(String description) {
+ this.description = description;
+ return this;
+ }
+
+ /**
+ * Is the description of the product. It could be copied from the description of the Product Offering.
+ * @return description
+ **/
+ @Schema(description = "Is the description of the product. It could be copied from the description of the Product Offering.")
+ @NotNull
+
+ public String getDescription() {
+ return description;
+ }
+
+ public void setDescription(String description) {
+ this.description = description;
+ }
+
+ public ProductCreate isBundle(Boolean isBundle) {
+ this.isBundle = isBundle;
+ return this;
+ }
+
+ /**
+ * If true, the product is a ProductBundle which is an instantiation of a BundledProductOffering. If false, the product is a ProductComponent which is an instantiation of a SimpleProductOffering.
+ * @return isBundle
+ **/
+ @Schema(description = "If true, the product is a ProductBundle which is an instantiation of a BundledProductOffering. If false, the product is a ProductComponent which is an instantiation of a SimpleProductOffering.")
+ @NotNull
+
+ public Boolean isIsBundle() {
+ return isBundle;
+ }
+
+ public void setIsBundle(Boolean isBundle) {
+ this.isBundle = isBundle;
+ }
+
+ public ProductCreate isCustomerVisible(Boolean isCustomerVisible) {
+ this.isCustomerVisible = isCustomerVisible;
+ return this;
+ }
+
+ /**
+ * If true, the product is visible by the customer.
+ * @return isCustomerVisible
+ **/
+ @Schema(description = "If true, the product is visible by the customer.")
+ @NotNull
+
+ public Boolean isIsCustomerVisible() {
+ return isCustomerVisible;
+ }
+
+ public void setIsCustomerVisible(Boolean isCustomerVisible) {
+ this.isCustomerVisible = isCustomerVisible;
+ }
+
+ public ProductCreate name(String name) {
+ this.name = name;
+ return this;
+ }
+
+ /**
+ * Name of the product. It could be the same as the name of the product offering
+ * @return name
+ **/
+ @Schema(description = "Name of the product. It could be the same as the name of the product offering")
+ @NotNull
+
+ public String getName() {
+ return name;
+ }
+
+ public void setName(String name) {
+ this.name = name;
+ }
+
+ public ProductCreate orderDate(Date orderDate) {
+ this.orderDate = orderDate;
+ return this;
+ }
+
+ /**
+ * Is the date when the product was ordered
+ * @return orderDate
+ **/
+ @Schema(description = "Is the date when the product was ordered")
+ @NotNull
+
+ @Valid
+ public Date getOrderDate() {
+ return orderDate;
+ }
+
+ public void setOrderDate(Date orderDate) {
+ this.orderDate = orderDate;
+ }
+
+ public ProductCreate productSerialNumber(String productSerialNumber) {
+ this.productSerialNumber = productSerialNumber;
+ return this;
+ }
+
+ /**
+ * Is the serial number for the product. This is typically applicable to tangible products e.g. Broadband Router.
+ * @return productSerialNumber
+ **/
+ @Schema(description = "Is the serial number for the product. This is typically applicable to tangible products e.g. Broadband Router.")
+ @NotNull
+
+ public String getProductSerialNumber() {
+ return productSerialNumber;
+ }
+
+ public void setProductSerialNumber(String productSerialNumber) {
+ this.productSerialNumber = productSerialNumber;
+ }
+
+ public ProductCreate startDate(Date startDate) {
+ this.startDate = startDate;
+ return this;
+ }
+
+ /**
+ * Is the date from which the product starts
+ * @return startDate
+ **/
+ @Schema(description = "Is the date from which the product starts")
+ @NotNull
+
+ @Valid
+ public Date getStartDate() {
+ return startDate;
+ }
+
+ public void setStartDate(Date startDate) {
+ this.startDate = startDate;
+ }
+
+ public ProductCreate terminationDate(Date terminationDate) {
+ this.terminationDate = terminationDate;
+ return this;
+ }
+
+ /**
+ * Is the date when the product was terminated
+ * @return terminationDate
+ **/
+ @Schema(description = "Is the date when the product was terminated")
+ @NotNull
+
+ @Valid
+ public Date getTerminationDate() {
+ return terminationDate;
+ }
+
+ public void setTerminationDate(Date terminationDate) {
+ this.terminationDate = terminationDate;
+ }
+
+ public ProductCreate agreement(List agreement) {
+ this.agreement = agreement;
+ return this;
+ }
+
+ public ProductCreate addAgreementItem(AgreementItemRef agreementItem) {
+ if (this.agreement == null) {
+ this.agreement = new ArrayList();
+ }
+ this.agreement.add(agreementItem);
+ return this;
+ }
+
+ /**
+ * Get agreement
+ * @return agreement
+ **/
+ @Schema(description = "")
+ @NotNull
+ @Valid
+ public List getAgreement() {
+ return agreement;
+ }
+
+ public void setAgreement(List agreement) {
+ this.agreement = agreement;
+ }
+
+ public ProductCreate billingAccount(BillingAccountRef billingAccount) {
+ this.billingAccount = billingAccount;
+ return this;
+ }
+
+ /**
+ * Get billingAccount
+ * @return billingAccount
+ **/
+ @Schema(description = "")
+ @NotNull
+
+ @Valid
+ public BillingAccountRef getBillingAccount() {
+ return billingAccount;
+ }
+
+ public void setBillingAccount(BillingAccountRef billingAccount) {
+ this.billingAccount = billingAccount;
+ }
+
+ public ProductCreate place(List place) {
+ this.place = place;
+ return this;
+ }
+
+ public ProductCreate addPlaceItem(RelatedPlaceRefOrValue placeItem) {
+ if (this.place == null) {
+ this.place = new ArrayList();
+ }
+ this.place.add(placeItem);
+ return this;
+ }
+
+ /**
+ * Get place
+ * @return place
+ **/
+ @Schema(description = "")
+ @NotNull
+ @Valid
+ public List getPlace() {
+ return place;
+ }
+
+ public void setPlace(List place) {
+ this.place = place;
+ }
+
+ public ProductCreate product(List product) {
+ this.product = product;
+ return this;
+ }
+
+ public ProductCreate addProductItem(ProductRefOrValue productItem) {
+ if (this.product == null) {
+ this.product = new ArrayList();
+ }
+ this.product.add(productItem);
+ return this;
+ }
+
+ /**
+ * Get product
+ * @return product
+ **/
+ @Schema(description = "")
+ @NotNull
+ @Valid
+ public List getProduct() {
+ return product;
+ }
+
+ public void setProduct(List product) {
+ this.product = product;
+ }
+
+ public ProductCreate productCharacteristic(List productCharacteristic) {
+ this.productCharacteristic = productCharacteristic;
+ return this;
+ }
+
+ public ProductCreate addProductCharacteristicItem(Characteristic productCharacteristicItem) {
+ if (this.productCharacteristic == null) {
+ this.productCharacteristic = new ArrayList();
+ }
+ this.productCharacteristic.add(productCharacteristicItem);
+ return this;
+ }
+
+ /**
+ * Get productCharacteristic
+ * @return productCharacteristic
+ **/
+ @Schema(description = "")
+ @NotNull
+ @Valid
+ public List getProductCharacteristic() {
+ return productCharacteristic;
+ }
+
+ public void setProductCharacteristic(List productCharacteristic) {
+ this.productCharacteristic = productCharacteristic;
+ }
+
+ public ProductCreate productOffering(ProductOfferingRef productOffering) {
+ this.productOffering = productOffering;
+ return this;
+ }
+
+ /**
+ * Get productOffering
+ * @return productOffering
+ **/
+ @Schema(description = "")
+ @NotNull
+
+ @Valid
+ public ProductOfferingRef getProductOffering() {
+ return productOffering;
+ }
+
+ public void setProductOffering(ProductOfferingRef productOffering) {
+ this.productOffering = productOffering;
+ }
+
+ public ProductCreate productOrderItem(List productOrderItem) {
+ this.productOrderItem = productOrderItem;
+ return this;
+ }
+
+ public ProductCreate addProductOrderItemItem(RelatedProductOrderItem productOrderItemItem) {
+ if (this.productOrderItem == null) {
+ this.productOrderItem = new ArrayList();
+ }
+ this.productOrderItem.add(productOrderItemItem);
+ return this;
+ }
+
+ /**
+ * Get productOrderItem
+ * @return productOrderItem
+ **/
+ @Schema(description = "")
+ @NotNull
+ @Valid
+ public List getProductOrderItem() {
+ return productOrderItem;
+ }
+
+ public void setProductOrderItem(List productOrderItem) {
+ this.productOrderItem = productOrderItem;
+ }
+
+ public ProductCreate productPrice(List productPrice) {
+ this.productPrice = productPrice;
+ return this;
+ }
+
+ public ProductCreate addProductPriceItem(ProductPrice productPriceItem) {
+ if (this.productPrice == null) {
+ this.productPrice = new ArrayList();
+ }
+ this.productPrice.add(productPriceItem);
+ return this;
+ }
+
+ /**
+ * Get productPrice
+ * @return productPrice
+ **/
+ @Schema(description = "")
+ @NotNull
+ @Valid
+ public List getProductPrice() {
+ return productPrice;
+ }
+
+ public void setProductPrice(List productPrice) {
+ this.productPrice = productPrice;
+ }
+
+ public ProductCreate productRelationship(List productRelationship) {
+ this.productRelationship = productRelationship;
+ return this;
+ }
+
+ public ProductCreate addProductRelationshipItem(ProductRelationship productRelationshipItem) {
+ if (this.productRelationship == null) {
+ this.productRelationship = new ArrayList();
+ }
+ this.productRelationship.add(productRelationshipItem);
+ return this;
+ }
+
+ /**
+ * Get productRelationship
+ * @return productRelationship
+ **/
+ @Schema(description = "")
+ @NotNull
+ @Valid
+ public List getProductRelationship() {
+ return productRelationship;
+ }
+
+ public void setProductRelationship(List productRelationship) {
+ this.productRelationship = productRelationship;
+ }
+
+ public ProductCreate productSpecification(ProductSpecificationRef productSpecification) {
+ this.productSpecification = productSpecification;
+ return this;
+ }
+
+ /**
+ * Get productSpecification
+ * @return productSpecification
+ **/
+ @Schema(description = "")
+ @NotNull
+
+ @Valid
+ public ProductSpecificationRef getProductSpecification() {
+ return productSpecification;
+ }
+
+ public void setProductSpecification(ProductSpecificationRef productSpecification) {
+ this.productSpecification = productSpecification;
+ }
+
+ public ProductCreate productTerm(List productTerm) {
+ this.productTerm = productTerm;
+ return this;
+ }
+
+ public ProductCreate addProductTermItem(ProductTerm productTermItem) {
+ if (this.productTerm == null) {
+ this.productTerm = new ArrayList();
+ }
+ this.productTerm.add(productTermItem);
+ return this;
+ }
+
+ /**
+ * Get productTerm
+ * @return productTerm
+ **/
+ @Schema(description = "")
+ @NotNull
+ @Valid
+ public List getProductTerm() {
+ return productTerm;
+ }
+
+ public void setProductTerm(List productTerm) {
+ this.productTerm = productTerm;
+ }
+
+ public ProductCreate realizingResource(List realizingResource) {
+ this.realizingResource = realizingResource;
+ return this;
+ }
+
+ public ProductCreate addRealizingResourceItem(ResourceRef realizingResourceItem) {
+ if (this.realizingResource == null) {
+ this.realizingResource = new ArrayList();
+ }
+ this.realizingResource.add(realizingResourceItem);
+ return this;
+ }
+
+ /**
+ * Get realizingResource
+ * @return realizingResource
+ **/
+ @Schema(description = "")
+ @NotNull
+ @Valid
+ public List getRealizingResource() {
+ return realizingResource;
+ }
+
+ public void setRealizingResource(List realizingResource) {
+ this.realizingResource = realizingResource;
+ }
+
+ public ProductCreate realizingService(List realizingService) {
+ this.realizingService = realizingService;
+ return this;
+ }
+
+ public ProductCreate addRealizingServiceItem(ServiceRef realizingServiceItem) {
+ if (this.realizingService == null) {
+ this.realizingService = new ArrayList();
+ }
+ this.realizingService.add(realizingServiceItem);
+ return this;
+ }
+
+ /**
+ * Get realizingService
+ * @return realizingService
+ **/
+ @Schema(description = "")
+ @NotNull
+ @Valid
+ public List getRealizingService() {
+ return realizingService;
+ }
+
+ public void setRealizingService(List realizingService) {
+ this.realizingService = realizingService;
+ }
+
+ public ProductCreate relatedParty(List relatedParty) {
+ this.relatedParty = relatedParty;
+ return this;
+ }
+
+ public ProductCreate addRelatedPartyItem(RelatedParty relatedPartyItem) {
+ if (this.relatedParty == null) {
+ this.relatedParty = new ArrayList();
+ }
+ this.relatedParty.add(relatedPartyItem);
+ return this;
+ }
+
+ /**
+ * Get relatedParty
+ * @return relatedParty
+ **/
+ @Schema(description = "")
+ @NotNull
+ @Valid
+ public List getRelatedParty() {
+ return relatedParty;
+ }
+
+ public void setRelatedParty(List relatedParty) {
+ this.relatedParty = relatedParty;
+ }
+
+ public ProductCreate status(ProductStatusType status) {
+ this.status = status;
+ return this;
+ }
+
+ /**
+ * Get status
+ * @return status
+ **/
+ @Schema(required = true, description = "")
+ @NotNull
+
+ @Valid
+ public ProductStatusType getStatus() {
+ return status;
+ }
+
+ public void setStatus(ProductStatusType status) {
+ this.status = status;
+ }
+
+ public ProductCreate _atBaseType(String _atBaseType) {
+ this._atBaseType = _atBaseType;
+ return this;
+ }
+
+ /**
+ * When sub-classing, this defines the super-class
+ * @return _atBaseType
+ **/
+ @Schema(description = "When sub-classing, this defines the super-class")
+ @NotNull
+
+ public String getAtBaseType() {
+ return _atBaseType;
+ }
+
+ public void setAtBaseType(String _atBaseType) {
+ this._atBaseType = _atBaseType;
+ }
+
+ public ProductCreate _atSchemaLocation(String _atSchemaLocation) {
+ this._atSchemaLocation = _atSchemaLocation;
+ return this;
+ }
+
+ /**
+ * A URI to a JSON-Schema file that defines additional attributes and relationships
+ * @return _atSchemaLocation
+ **/
+ @Schema(description = "A URI to a JSON-Schema file that defines additional attributes and relationships")
+ @NotNull
+
+ public String getAtSchemaLocation() {
+ return _atSchemaLocation;
+ }
+
+ public void setAtSchemaLocation(String _atSchemaLocation) {
+ this._atSchemaLocation = _atSchemaLocation;
+ }
+
+ public ProductCreate _atType(String _atType) {
+ this._atType = _atType;
+ return this;
+ }
+
+ /**
+ * When sub-classing, this defines the sub-class entity name
+ * @return _atType
+ **/
+ @Schema(description = "When sub-classing, this defines the sub-class entity name")
+ @NotNull
+
+ public String getAtType() {
+ return _atType;
+ }
+
+ public void setAtType(String _atType) {
+ this._atType = _atType;
+ }
+
+
+ @Override
+ public boolean equals(java.lang.Object o) {
+ if (this == o) {
+ return true;
+ }
+ if (o == null || getClass() != o.getClass()) {
+ return false;
+ }
+ ProductCreate productCreate = (ProductCreate) o;
+ return Objects.equals(this.description, productCreate.description) &&
+ Objects.equals(this.isBundle, productCreate.isBundle) &&
+ Objects.equals(this.isCustomerVisible, productCreate.isCustomerVisible) &&
+ Objects.equals(this.name, productCreate.name) &&
+ Objects.equals(this.orderDate, productCreate.orderDate) &&
+ Objects.equals(this.productSerialNumber, productCreate.productSerialNumber) &&
+ Objects.equals(this.startDate, productCreate.startDate) &&
+ Objects.equals(this.terminationDate, productCreate.terminationDate) &&
+ Objects.equals(this.agreement, productCreate.agreement) &&
+ Objects.equals(this.billingAccount, productCreate.billingAccount) &&
+ Objects.equals(this.place, productCreate.place) &&
+ Objects.equals(this.product, productCreate.product) &&
+ Objects.equals(this.productCharacteristic, productCreate.productCharacteristic) &&
+ Objects.equals(this.productOffering, productCreate.productOffering) &&
+ Objects.equals(this.productOrderItem, productCreate.productOrderItem) &&
+ Objects.equals(this.productPrice, productCreate.productPrice) &&
+ Objects.equals(this.productRelationship, productCreate.productRelationship) &&
+ Objects.equals(this.productSpecification, productCreate.productSpecification) &&
+ Objects.equals(this.productTerm, productCreate.productTerm) &&
+ Objects.equals(this.realizingResource, productCreate.realizingResource) &&
+ Objects.equals(this.realizingService, productCreate.realizingService) &&
+ Objects.equals(this.relatedParty, productCreate.relatedParty) &&
+ Objects.equals(this.status, productCreate.status) &&
+ Objects.equals(this._atBaseType, productCreate._atBaseType) &&
+ Objects.equals(this._atSchemaLocation, productCreate._atSchemaLocation) &&
+ Objects.equals(this._atType, productCreate._atType);
+ }
+
+ @Override
+ public int hashCode() {
+ return Objects.hash(description, isBundle, isCustomerVisible, name, orderDate, productSerialNumber, startDate, terminationDate, agreement, billingAccount, place, product, productCharacteristic, productOffering, productOrderItem, productPrice, productRelationship, productSpecification, productTerm, realizingResource, realizingService, relatedParty, status, _atBaseType, _atSchemaLocation, _atType);
+ }
+
+ @Override
+ public String toString() {
+ StringBuilder sb = new StringBuilder();
+ sb.append("class ProductCreate {\n");
+
+ sb.append(" description: ").append(toIndentedString(description)).append("\n");
+ sb.append(" isBundle: ").append(toIndentedString(isBundle)).append("\n");
+ sb.append(" isCustomerVisible: ").append(toIndentedString(isCustomerVisible)).append("\n");
+ sb.append(" name: ").append(toIndentedString(name)).append("\n");
+ sb.append(" orderDate: ").append(toIndentedString(orderDate)).append("\n");
+ sb.append(" productSerialNumber: ").append(toIndentedString(productSerialNumber)).append("\n");
+ sb.append(" startDate: ").append(toIndentedString(startDate)).append("\n");
+ sb.append(" terminationDate: ").append(toIndentedString(terminationDate)).append("\n");
+ sb.append(" agreement: ").append(toIndentedString(agreement)).append("\n");
+ sb.append(" billingAccount: ").append(toIndentedString(billingAccount)).append("\n");
+ sb.append(" place: ").append(toIndentedString(place)).append("\n");
+ sb.append(" product: ").append(toIndentedString(product)).append("\n");
+ sb.append(" productCharacteristic: ").append(toIndentedString(productCharacteristic)).append("\n");
+ sb.append(" productOffering: ").append(toIndentedString(productOffering)).append("\n");
+ sb.append(" productOrderItem: ").append(toIndentedString(productOrderItem)).append("\n");
+ sb.append(" productPrice: ").append(toIndentedString(productPrice)).append("\n");
+ sb.append(" productRelationship: ").append(toIndentedString(productRelationship)).append("\n");
+ sb.append(" productSpecification: ").append(toIndentedString(productSpecification)).append("\n");
+ sb.append(" productTerm: ").append(toIndentedString(productTerm)).append("\n");
+ sb.append(" realizingResource: ").append(toIndentedString(realizingResource)).append("\n");
+ sb.append(" realizingService: ").append(toIndentedString(realizingService)).append("\n");
+ sb.append(" relatedParty: ").append(toIndentedString(relatedParty)).append("\n");
+ sb.append(" status: ").append(toIndentedString(status)).append("\n");
+ sb.append(" _atBaseType: ").append(toIndentedString(_atBaseType)).append("\n");
+ sb.append(" _atSchemaLocation: ").append(toIndentedString(_atSchemaLocation)).append("\n");
+ sb.append(" _atType: ").append(toIndentedString(_atType)).append("\n");
+ sb.append("}");
+ return sb.toString();
+ }
+
+ /**
+ * Convert the given object to string with each line indented by 4 spaces
+ * (except the first line).
+ */
+ private String toIndentedString(java.lang.Object o) {
+ if (o == null) {
+ return "null";
+ }
+ return o.toString().replace("\n", "\n ");
+ }
+}
diff --git a/src/main/java/org/etsi/osl/tmf/pim637/model/ProductCreateEvent.java b/src/main/java/org/etsi/osl/tmf/pim637/model/ProductCreateEvent.java
new file mode 100644
index 0000000000000000000000000000000000000000..74731e4281f8abc8e9f7ffeb892e033f717f09fe
--- /dev/null
+++ b/src/main/java/org/etsi/osl/tmf/pim637/model/ProductCreateEvent.java
@@ -0,0 +1,359 @@
+package org.etsi.osl.tmf.pim637.model;
+
+import java.util.Date;
+import java.util.Objects;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import org.springframework.validation.annotation.Validated;
+import io.swagger.v3.oas.annotations.media.Schema;
+import jakarta.validation.Valid;
+import jakarta.validation.constraints.NotNull;
+
+/**
+ * The notification data structure
+ */
+@Schema(description = "The notification data structure")
+@Validated
+@jakarta.annotation.Generated(value = "io.swagger.codegen.v3.generators.java.SpringCodegen", date = "2024-08-04T00:27:07.324017400+03:00[Europe/Athens]")
+
+
+public class ProductCreateEvent {
+ @JsonProperty("id")
+ private String id = null;
+
+ @JsonProperty("href")
+ private String href = null;
+
+ @JsonProperty("eventId")
+ private String eventId = null;
+
+ @JsonProperty("eventTime")
+ private Date eventTime = null;
+
+ @JsonProperty("eventType")
+ private String eventType = null;
+
+ @JsonProperty("correlationId")
+ private String correlationId = null;
+
+ @JsonProperty("domain")
+ private String domain = null;
+
+ @JsonProperty("title")
+ private String title = null;
+
+ @JsonProperty("description")
+ private String description = null;
+
+ @JsonProperty("priority")
+ private String priority = null;
+
+ @JsonProperty("timeOcurred")
+ private Date timeOcurred = null;
+
+ @JsonProperty("event")
+ private ProductCreateEventPayload event = null;
+
+ public ProductCreateEvent id(String id) {
+ this.id = id;
+ return this;
+ }
+
+ /**
+ * Identifier of the Process flow
+ * @return id
+ **/
+ @Schema(description = "Identifier of the Process flow")
+ @NotNull
+
+ public String getId() {
+ return id;
+ }
+
+ public void setId(String id) {
+ this.id = id;
+ }
+
+ public ProductCreateEvent href(String href) {
+ this.href = href;
+ return this;
+ }
+
+ /**
+ * Reference of the ProcessFlow
+ * @return href
+ **/
+ @Schema(description = "Reference of the ProcessFlow")
+ @NotNull
+
+ public String getHref() {
+ return href;
+ }
+
+ public void setHref(String href) {
+ this.href = href;
+ }
+
+ public ProductCreateEvent eventId(String eventId) {
+ this.eventId = eventId;
+ return this;
+ }
+
+ /**
+ * The identifier of the notification.
+ * @return eventId
+ **/
+ @Schema(description = "The identifier of the notification.")
+ @NotNull
+
+ public String getEventId() {
+ return eventId;
+ }
+
+ public void setEventId(String eventId) {
+ this.eventId = eventId;
+ }
+
+ public ProductCreateEvent eventTime(Date eventTime) {
+ this.eventTime = eventTime;
+ return this;
+ }
+
+ /**
+ * Time of the event occurrence.
+ * @return eventTime
+ **/
+ @Schema(description = "Time of the event occurrence.")
+ @NotNull
+
+ @Valid
+ public Date getEventTime() {
+ return eventTime;
+ }
+
+ public void setEventTime(Date eventTime) {
+ this.eventTime = eventTime;
+ }
+
+ public ProductCreateEvent eventType(String eventType) {
+ this.eventType = eventType;
+ return this;
+ }
+
+ /**
+ * The type of the notification.
+ * @return eventType
+ **/
+ @Schema(description = "The type of the notification.")
+ @NotNull
+
+ public String getEventType() {
+ return eventType;
+ }
+
+ public void setEventType(String eventType) {
+ this.eventType = eventType;
+ }
+
+ public ProductCreateEvent correlationId(String correlationId) {
+ this.correlationId = correlationId;
+ return this;
+ }
+
+ /**
+ * The correlation id for this event.
+ * @return correlationId
+ **/
+ @Schema(description = "The correlation id for this event.")
+ @NotNull
+
+ public String getCorrelationId() {
+ return correlationId;
+ }
+
+ public void setCorrelationId(String correlationId) {
+ this.correlationId = correlationId;
+ }
+
+ public ProductCreateEvent domain(String domain) {
+ this.domain = domain;
+ return this;
+ }
+
+ /**
+ * The domain of the event.
+ * @return domain
+ **/
+ @Schema(description = "The domain of the event.")
+ @NotNull
+
+ public String getDomain() {
+ return domain;
+ }
+
+ public void setDomain(String domain) {
+ this.domain = domain;
+ }
+
+ public ProductCreateEvent title(String title) {
+ this.title = title;
+ return this;
+ }
+
+ /**
+ * The title of the event.
+ * @return title
+ **/
+ @Schema(description = "The title of the event.")
+ @NotNull
+
+ public String getTitle() {
+ return title;
+ }
+
+ public void setTitle(String title) {
+ this.title = title;
+ }
+
+ public ProductCreateEvent description(String description) {
+ this.description = description;
+ return this;
+ }
+
+ /**
+ * An explnatory of the event.
+ * @return description
+ **/
+ @Schema(description = "An explnatory of the event.")
+ @NotNull
+
+ public String getDescription() {
+ return description;
+ }
+
+ public void setDescription(String description) {
+ this.description = description;
+ }
+
+ public ProductCreateEvent priority(String priority) {
+ this.priority = priority;
+ return this;
+ }
+
+ /**
+ * A priority.
+ * @return priority
+ **/
+ @Schema(description = "A priority.")
+ @NotNull
+
+ public String getPriority() {
+ return priority;
+ }
+
+ public void setPriority(String priority) {
+ this.priority = priority;
+ }
+
+ public ProductCreateEvent timeOcurred(Date timeOcurred) {
+ this.timeOcurred = timeOcurred;
+ return this;
+ }
+
+ /**
+ * The time the event occured.
+ * @return timeOcurred
+ **/
+ @Schema(description = "The time the event occured.")
+ @NotNull
+
+ @Valid
+ public Date getTimeOcurred() {
+ return timeOcurred;
+ }
+
+ public void setTimeOcurred(Date timeOcurred) {
+ this.timeOcurred = timeOcurred;
+ }
+
+ public ProductCreateEvent event(ProductCreateEventPayload event) {
+ this.event = event;
+ return this;
+ }
+
+ /**
+ * Get event
+ * @return event
+ **/
+ @Schema(description = "")
+ @NotNull
+
+ @Valid
+ public ProductCreateEventPayload getEvent() {
+ return event;
+ }
+
+ public void setEvent(ProductCreateEventPayload event) {
+ this.event = event;
+ }
+
+
+ @Override
+ public boolean equals(java.lang.Object o) {
+ if (this == o) {
+ return true;
+ }
+ if (o == null || getClass() != o.getClass()) {
+ return false;
+ }
+ ProductCreateEvent productCreateEvent = (ProductCreateEvent) o;
+ return Objects.equals(this.id, productCreateEvent.id) &&
+ Objects.equals(this.href, productCreateEvent.href) &&
+ Objects.equals(this.eventId, productCreateEvent.eventId) &&
+ Objects.equals(this.eventTime, productCreateEvent.eventTime) &&
+ Objects.equals(this.eventType, productCreateEvent.eventType) &&
+ Objects.equals(this.correlationId, productCreateEvent.correlationId) &&
+ Objects.equals(this.domain, productCreateEvent.domain) &&
+ Objects.equals(this.title, productCreateEvent.title) &&
+ Objects.equals(this.description, productCreateEvent.description) &&
+ Objects.equals(this.priority, productCreateEvent.priority) &&
+ Objects.equals(this.timeOcurred, productCreateEvent.timeOcurred) &&
+ Objects.equals(this.event, productCreateEvent.event);
+ }
+
+ @Override
+ public int hashCode() {
+ return Objects.hash(id, href, eventId, eventTime, eventType, correlationId, domain, title, description, priority, timeOcurred, event);
+ }
+
+ @Override
+ public String toString() {
+ StringBuilder sb = new StringBuilder();
+ sb.append("class ProductCreateEvent {\n");
+
+ sb.append(" id: ").append(toIndentedString(id)).append("\n");
+ sb.append(" href: ").append(toIndentedString(href)).append("\n");
+ sb.append(" eventId: ").append(toIndentedString(eventId)).append("\n");
+ sb.append(" eventTime: ").append(toIndentedString(eventTime)).append("\n");
+ sb.append(" eventType: ").append(toIndentedString(eventType)).append("\n");
+ sb.append(" correlationId: ").append(toIndentedString(correlationId)).append("\n");
+ sb.append(" domain: ").append(toIndentedString(domain)).append("\n");
+ sb.append(" title: ").append(toIndentedString(title)).append("\n");
+ sb.append(" description: ").append(toIndentedString(description)).append("\n");
+ sb.append(" priority: ").append(toIndentedString(priority)).append("\n");
+ sb.append(" timeOcurred: ").append(toIndentedString(timeOcurred)).append("\n");
+ sb.append(" event: ").append(toIndentedString(event)).append("\n");
+ sb.append("}");
+ return sb.toString();
+ }
+
+ /**
+ * Convert the given object to string with each line indented by 4 spaces
+ * (except the first line).
+ */
+ private String toIndentedString(java.lang.Object o) {
+ if (o == null) {
+ return "null";
+ }
+ return o.toString().replace("\n", "\n ");
+ }
+}
diff --git a/src/main/java/org/etsi/osl/tmf/pim637/model/ProductCreateEventPayload.java b/src/main/java/org/etsi/osl/tmf/pim637/model/ProductCreateEventPayload.java
new file mode 100644
index 0000000000000000000000000000000000000000..e292e83fcf4c0212ad78aead0e4f777c28d03d1b
--- /dev/null
+++ b/src/main/java/org/etsi/osl/tmf/pim637/model/ProductCreateEventPayload.java
@@ -0,0 +1,81 @@
+package org.etsi.osl.tmf.pim637.model;
+
+import java.util.Objects;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import org.springframework.validation.annotation.Validated;
+import io.swagger.v3.oas.annotations.media.Schema;
+import jakarta.validation.Valid;
+import jakarta.validation.constraints.NotNull;
+
+/**
+ * The event data structure
+ */
+@Schema(description = "The event data structure")
+@Validated
+@jakarta.annotation.Generated(value = "io.swagger.codegen.v3.generators.java.SpringCodegen", date = "2024-08-04T00:27:07.324017400+03:00[Europe/Athens]")
+
+
+public class ProductCreateEventPayload {
+ @JsonProperty("product")
+ private Product product = null;
+
+ public ProductCreateEventPayload product(Product product) {
+ this.product = product;
+ return this;
+ }
+
+ /**
+ * Get product
+ * @return product
+ **/
+ @Schema(description = "")
+ @NotNull
+
+ @Valid
+ public Product getProduct() {
+ return product;
+ }
+
+ public void setProduct(Product product) {
+ this.product = product;
+ }
+
+
+ @Override
+ public boolean equals(java.lang.Object o) {
+ if (this == o) {
+ return true;
+ }
+ if (o == null || getClass() != o.getClass()) {
+ return false;
+ }
+ ProductCreateEventPayload productCreateEventPayload = (ProductCreateEventPayload) o;
+ return Objects.equals(this.product, productCreateEventPayload.product);
+ }
+
+ @Override
+ public int hashCode() {
+ return Objects.hash(product);
+ }
+
+ @Override
+ public String toString() {
+ StringBuilder sb = new StringBuilder();
+ sb.append("class ProductCreateEventPayload {\n");
+
+ sb.append(" product: ").append(toIndentedString(product)).append("\n");
+ sb.append("}");
+ return sb.toString();
+ }
+
+ /**
+ * Convert the given object to string with each line indented by 4 spaces
+ * (except the first line).
+ */
+ private String toIndentedString(java.lang.Object o) {
+ if (o == null) {
+ return "null";
+ }
+ return o.toString().replace("\n", "\n ");
+ }
+}
diff --git a/src/main/java/org/etsi/osl/tmf/pim637/model/ProductDeleteEvent.java b/src/main/java/org/etsi/osl/tmf/pim637/model/ProductDeleteEvent.java
new file mode 100644
index 0000000000000000000000000000000000000000..6637c5ca12bb718ad4ed99305489bf908f08da8a
--- /dev/null
+++ b/src/main/java/org/etsi/osl/tmf/pim637/model/ProductDeleteEvent.java
@@ -0,0 +1,359 @@
+package org.etsi.osl.tmf.pim637.model;
+
+import java.util.Date;
+import java.util.Objects;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import org.springframework.validation.annotation.Validated;
+import io.swagger.v3.oas.annotations.media.Schema;
+import jakarta.validation.Valid;
+import jakarta.validation.constraints.NotNull;
+
+/**
+ * The notification data structure
+ */
+@Schema(description = "The notification data structure")
+@Validated
+@jakarta.annotation.Generated(value = "io.swagger.codegen.v3.generators.java.SpringCodegen", date = "2024-08-04T00:27:07.324017400+03:00[Europe/Athens]")
+
+
+public class ProductDeleteEvent {
+ @JsonProperty("id")
+ private String id = null;
+
+ @JsonProperty("href")
+ private String href = null;
+
+ @JsonProperty("eventId")
+ private String eventId = null;
+
+ @JsonProperty("eventTime")
+ private Date eventTime = null;
+
+ @JsonProperty("eventType")
+ private String eventType = null;
+
+ @JsonProperty("correlationId")
+ private String correlationId = null;
+
+ @JsonProperty("domain")
+ private String domain = null;
+
+ @JsonProperty("title")
+ private String title = null;
+
+ @JsonProperty("description")
+ private String description = null;
+
+ @JsonProperty("priority")
+ private String priority = null;
+
+ @JsonProperty("timeOcurred")
+ private Date timeOcurred = null;
+
+ @JsonProperty("event")
+ private ProductDeleteEventPayload event = null;
+
+ public ProductDeleteEvent id(String id) {
+ this.id = id;
+ return this;
+ }
+
+ /**
+ * Identifier of the Process flow
+ * @return id
+ **/
+ @Schema(description = "Identifier of the Process flow")
+ @NotNull
+
+ public String getId() {
+ return id;
+ }
+
+ public void setId(String id) {
+ this.id = id;
+ }
+
+ public ProductDeleteEvent href(String href) {
+ this.href = href;
+ return this;
+ }
+
+ /**
+ * Reference of the ProcessFlow
+ * @return href
+ **/
+ @Schema(description = "Reference of the ProcessFlow")
+ @NotNull
+
+ public String getHref() {
+ return href;
+ }
+
+ public void setHref(String href) {
+ this.href = href;
+ }
+
+ public ProductDeleteEvent eventId(String eventId) {
+ this.eventId = eventId;
+ return this;
+ }
+
+ /**
+ * The identifier of the notification.
+ * @return eventId
+ **/
+ @Schema(description = "The identifier of the notification.")
+ @NotNull
+
+ public String getEventId() {
+ return eventId;
+ }
+
+ public void setEventId(String eventId) {
+ this.eventId = eventId;
+ }
+
+ public ProductDeleteEvent eventTime(Date eventTime) {
+ this.eventTime = eventTime;
+ return this;
+ }
+
+ /**
+ * Time of the event occurrence.
+ * @return eventTime
+ **/
+ @Schema(description = "Time of the event occurrence.")
+ @NotNull
+
+ @Valid
+ public Date getEventTime() {
+ return eventTime;
+ }
+
+ public void setEventTime(Date eventTime) {
+ this.eventTime = eventTime;
+ }
+
+ public ProductDeleteEvent eventType(String eventType) {
+ this.eventType = eventType;
+ return this;
+ }
+
+ /**
+ * The type of the notification.
+ * @return eventType
+ **/
+ @Schema(description = "The type of the notification.")
+ @NotNull
+
+ public String getEventType() {
+ return eventType;
+ }
+
+ public void setEventType(String eventType) {
+ this.eventType = eventType;
+ }
+
+ public ProductDeleteEvent correlationId(String correlationId) {
+ this.correlationId = correlationId;
+ return this;
+ }
+
+ /**
+ * The correlation id for this event.
+ * @return correlationId
+ **/
+ @Schema(description = "The correlation id for this event.")
+ @NotNull
+
+ public String getCorrelationId() {
+ return correlationId;
+ }
+
+ public void setCorrelationId(String correlationId) {
+ this.correlationId = correlationId;
+ }
+
+ public ProductDeleteEvent domain(String domain) {
+ this.domain = domain;
+ return this;
+ }
+
+ /**
+ * The domain of the event.
+ * @return domain
+ **/
+ @Schema(description = "The domain of the event.")
+ @NotNull
+
+ public String getDomain() {
+ return domain;
+ }
+
+ public void setDomain(String domain) {
+ this.domain = domain;
+ }
+
+ public ProductDeleteEvent title(String title) {
+ this.title = title;
+ return this;
+ }
+
+ /**
+ * The title of the event.
+ * @return title
+ **/
+ @Schema(description = "The title of the event.")
+ @NotNull
+
+ public String getTitle() {
+ return title;
+ }
+
+ public void setTitle(String title) {
+ this.title = title;
+ }
+
+ public ProductDeleteEvent description(String description) {
+ this.description = description;
+ return this;
+ }
+
+ /**
+ * An explnatory of the event.
+ * @return description
+ **/
+ @Schema(description = "An explnatory of the event.")
+ @NotNull
+
+ public String getDescription() {
+ return description;
+ }
+
+ public void setDescription(String description) {
+ this.description = description;
+ }
+
+ public ProductDeleteEvent priority(String priority) {
+ this.priority = priority;
+ return this;
+ }
+
+ /**
+ * A priority.
+ * @return priority
+ **/
+ @Schema(description = "A priority.")
+ @NotNull
+
+ public String getPriority() {
+ return priority;
+ }
+
+ public void setPriority(String priority) {
+ this.priority = priority;
+ }
+
+ public ProductDeleteEvent timeOcurred(Date timeOcurred) {
+ this.timeOcurred = timeOcurred;
+ return this;
+ }
+
+ /**
+ * The time the event occured.
+ * @return timeOcurred
+ **/
+ @Schema(description = "The time the event occured.")
+ @NotNull
+
+ @Valid
+ public Date getTimeOcurred() {
+ return timeOcurred;
+ }
+
+ public void setTimeOcurred(Date timeOcurred) {
+ this.timeOcurred = timeOcurred;
+ }
+
+ public ProductDeleteEvent event(ProductDeleteEventPayload event) {
+ this.event = event;
+ return this;
+ }
+
+ /**
+ * Get event
+ * @return event
+ **/
+ @Schema(description = "")
+ @NotNull
+
+ @Valid
+ public ProductDeleteEventPayload getEvent() {
+ return event;
+ }
+
+ public void setEvent(ProductDeleteEventPayload event) {
+ this.event = event;
+ }
+
+
+ @Override
+ public boolean equals(java.lang.Object o) {
+ if (this == o) {
+ return true;
+ }
+ if (o == null || getClass() != o.getClass()) {
+ return false;
+ }
+ ProductDeleteEvent productDeleteEvent = (ProductDeleteEvent) o;
+ return Objects.equals(this.id, productDeleteEvent.id) &&
+ Objects.equals(this.href, productDeleteEvent.href) &&
+ Objects.equals(this.eventId, productDeleteEvent.eventId) &&
+ Objects.equals(this.eventTime, productDeleteEvent.eventTime) &&
+ Objects.equals(this.eventType, productDeleteEvent.eventType) &&
+ Objects.equals(this.correlationId, productDeleteEvent.correlationId) &&
+ Objects.equals(this.domain, productDeleteEvent.domain) &&
+ Objects.equals(this.title, productDeleteEvent.title) &&
+ Objects.equals(this.description, productDeleteEvent.description) &&
+ Objects.equals(this.priority, productDeleteEvent.priority) &&
+ Objects.equals(this.timeOcurred, productDeleteEvent.timeOcurred) &&
+ Objects.equals(this.event, productDeleteEvent.event);
+ }
+
+ @Override
+ public int hashCode() {
+ return Objects.hash(id, href, eventId, eventTime, eventType, correlationId, domain, title, description, priority, timeOcurred, event);
+ }
+
+ @Override
+ public String toString() {
+ StringBuilder sb = new StringBuilder();
+ sb.append("class ProductDeleteEvent {\n");
+
+ sb.append(" id: ").append(toIndentedString(id)).append("\n");
+ sb.append(" href: ").append(toIndentedString(href)).append("\n");
+ sb.append(" eventId: ").append(toIndentedString(eventId)).append("\n");
+ sb.append(" eventTime: ").append(toIndentedString(eventTime)).append("\n");
+ sb.append(" eventType: ").append(toIndentedString(eventType)).append("\n");
+ sb.append(" correlationId: ").append(toIndentedString(correlationId)).append("\n");
+ sb.append(" domain: ").append(toIndentedString(domain)).append("\n");
+ sb.append(" title: ").append(toIndentedString(title)).append("\n");
+ sb.append(" description: ").append(toIndentedString(description)).append("\n");
+ sb.append(" priority: ").append(toIndentedString(priority)).append("\n");
+ sb.append(" timeOcurred: ").append(toIndentedString(timeOcurred)).append("\n");
+ sb.append(" event: ").append(toIndentedString(event)).append("\n");
+ sb.append("}");
+ return sb.toString();
+ }
+
+ /**
+ * Convert the given object to string with each line indented by 4 spaces
+ * (except the first line).
+ */
+ private String toIndentedString(java.lang.Object o) {
+ if (o == null) {
+ return "null";
+ }
+ return o.toString().replace("\n", "\n ");
+ }
+}
diff --git a/src/main/java/org/etsi/osl/tmf/pim637/model/ProductDeleteEventPayload.java b/src/main/java/org/etsi/osl/tmf/pim637/model/ProductDeleteEventPayload.java
new file mode 100644
index 0000000000000000000000000000000000000000..fbe073e74da567fa7cedcf72502ed1b3b91be0bc
--- /dev/null
+++ b/src/main/java/org/etsi/osl/tmf/pim637/model/ProductDeleteEventPayload.java
@@ -0,0 +1,81 @@
+package org.etsi.osl.tmf.pim637.model;
+
+import java.util.Objects;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import org.springframework.validation.annotation.Validated;
+import io.swagger.v3.oas.annotations.media.Schema;
+import jakarta.validation.Valid;
+import jakarta.validation.constraints.NotNull;
+
+/**
+ * The event data structure
+ */
+@Schema(description = "The event data structure")
+@Validated
+@jakarta.annotation.Generated(value = "io.swagger.codegen.v3.generators.java.SpringCodegen", date = "2024-08-04T00:27:07.324017400+03:00[Europe/Athens]")
+
+
+public class ProductDeleteEventPayload {
+ @JsonProperty("product")
+ private Product product = null;
+
+ public ProductDeleteEventPayload product(Product product) {
+ this.product = product;
+ return this;
+ }
+
+ /**
+ * Get product
+ * @return product
+ **/
+ @Schema(description = "")
+ @NotNull
+
+ @Valid
+ public Product getProduct() {
+ return product;
+ }
+
+ public void setProduct(Product product) {
+ this.product = product;
+ }
+
+
+ @Override
+ public boolean equals(java.lang.Object o) {
+ if (this == o) {
+ return true;
+ }
+ if (o == null || getClass() != o.getClass()) {
+ return false;
+ }
+ ProductDeleteEventPayload productDeleteEventPayload = (ProductDeleteEventPayload) o;
+ return Objects.equals(this.product, productDeleteEventPayload.product);
+ }
+
+ @Override
+ public int hashCode() {
+ return Objects.hash(product);
+ }
+
+ @Override
+ public String toString() {
+ StringBuilder sb = new StringBuilder();
+ sb.append("class ProductDeleteEventPayload {\n");
+
+ sb.append(" product: ").append(toIndentedString(product)).append("\n");
+ sb.append("}");
+ return sb.toString();
+ }
+
+ /**
+ * Convert the given object to string with each line indented by 4 spaces
+ * (except the first line).
+ */
+ private String toIndentedString(java.lang.Object o) {
+ if (o == null) {
+ return "null";
+ }
+ return o.toString().replace("\n", "\n ");
+ }
+}
diff --git a/src/main/java/org/etsi/osl/tmf/po622/model/ProductPrice.java b/src/main/java/org/etsi/osl/tmf/pim637/model/ProductPrice.java
similarity index 69%
rename from src/main/java/org/etsi/osl/tmf/po622/model/ProductPrice.java
rename to src/main/java/org/etsi/osl/tmf/pim637/model/ProductPrice.java
index 58f6b58d781a484245c61ca0fb069e5b48133b01..b871aa6db1af9eed1ee245c9454da4044b097a52 100644
--- a/src/main/java/org/etsi/osl/tmf/po622/model/ProductPrice.java
+++ b/src/main/java/org/etsi/osl/tmf/pim637/model/ProductPrice.java
@@ -1,33 +1,20 @@
-/*-
- * ========================LICENSE_START=================================
- * org.etsi.osl.tmf.api
- * %%
- * Copyright (C) 2019 - 2021 openslice.io
- * %%
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * =========================LICENSE_END==================================
- */
-package org.etsi.osl.tmf.po622.model;
+package org.etsi.osl.tmf.pim637.model;
import java.util.ArrayList;
+import java.util.HashSet;
import java.util.List;
import java.util.Objects;
-
+import java.util.Set;
import com.fasterxml.jackson.annotation.JsonProperty;
-
+import org.etsi.osl.tmf.common.model.BaseRootNamedEntity;
+import org.etsi.osl.tmf.pcm620.model.ProductOfferingPriceRef;
import org.springframework.validation.annotation.Validated;
-
import io.swagger.v3.oas.annotations.media.Schema;
+import jakarta.persistence.CascadeType;
+import jakarta.persistence.Entity;
+import jakarta.persistence.JoinColumn;
+import jakarta.persistence.OneToMany;
+import jakarta.persistence.OneToOne;
import jakarta.validation.Valid;
import jakarta.validation.constraints.NotNull;
@@ -36,13 +23,13 @@ import jakarta.validation.constraints.NotNull;
*/
@Schema(description = "An amount, usually of money, that represents the actual price paid by a Customer for a purchase, a rent or a lease of a Product. The price is valid for a defined period of time.")
@Validated
-@jakarta.annotation.Generated(value = "io.swagger.codegen.v3.generators.java.SpringCodegen", date = "2020-10-30T10:29:21.184964400+02:00[Europe/Athens]")
-public class ProductPrice {
+@jakarta.annotation.Generated(value = "io.swagger.codegen.v3.generators.java.SpringCodegen", date = "2024-08-04T00:27:07.324017400+03:00[Europe/Athens]")
+
+@Entity(name = "ProdPrice637")
+public class ProductPrice extends BaseRootNamedEntity {
@JsonProperty("description")
private String description = null;
- @JsonProperty("name")
- private String name = null;
@JsonProperty("priceType")
private String priceType = null;
@@ -54,26 +41,24 @@ public class ProductPrice {
private String unitOfMeasure = null;
@JsonProperty("billingAccount")
+ @OneToOne(cascade = CascadeType.ALL)
+ @JoinColumn(name = "billing_acc_refuuid", referencedColumnName = "uuid")
private BillingAccountRef billingAccount = null;
@JsonProperty("price")
+ @OneToOne(cascade = CascadeType.ALL)
+ @JoinColumn(name = "price_uuid", referencedColumnName = "uuid")
private Price price = null;
@JsonProperty("productOfferingPrice")
+ @OneToOne(cascade = CascadeType.ALL)
+ @JoinColumn(name = "prodoffprice_refuuid", referencedColumnName = "uuid")
private ProductOfferingPriceRef productOfferingPrice = null;
@JsonProperty("productPriceAlteration")
@Valid
- private List productPriceAlteration = null;
-
- @JsonProperty("@baseType")
- private String baseType = null;
-
- @JsonProperty("@schemaLocation")
- private String schemaLocation = null;
-
- @JsonProperty("@type")
- private String type = null;
+ @OneToMany(cascade = {CascadeType.MERGE, CascadeType.PERSIST, CascadeType.REFRESH})
+ private Set productPriceAlteration = new HashSet<>();
public ProductPrice description(String description) {
this.description = description;
@@ -83,9 +68,10 @@ public class ProductPrice {
/**
* A narrative that explains in detail the semantics of this product price.
* @return description
- **/
+ **/
@Schema(description = "A narrative that explains in detail the semantics of this product price.")
-
+ @NotNull
+
public String getDescription() {
return description;
}
@@ -102,9 +88,10 @@ public class ProductPrice {
/**
* A short descriptive name such as \"Subscription price\".
* @return name
- **/
+ **/
@Schema(description = "A short descriptive name such as \"Subscription price\".")
-
+ @NotNull
+
public String getName() {
return name;
}
@@ -121,8 +108,8 @@ public class ProductPrice {
/**
* A category that describes the price, such as recurring, discount, allowance, penalty, and so forth.
* @return priceType
- **/
- @Schema(description = "A category that describes the price, such as recurring, discount, allowance, penalty, and so forth.")
+ **/
+ @Schema(required = true, description = "A category that describes the price, such as recurring, discount, allowance, penalty, and so forth.")
@NotNull
public String getPriceType() {
@@ -141,9 +128,10 @@ public class ProductPrice {
/**
* Could be month, week...
* @return recurringChargePeriod
- **/
+ **/
@Schema(description = "Could be month, week...")
-
+ @NotNull
+
public String getRecurringChargePeriod() {
return recurringChargePeriod;
}
@@ -160,9 +148,10 @@ public class ProductPrice {
/**
* Could be minutes, GB...
* @return unitOfMeasure
- **/
+ **/
@Schema(description = "Could be minutes, GB...")
-
+ @NotNull
+
public String getUnitOfMeasure() {
return unitOfMeasure;
}
@@ -179,9 +168,10 @@ public class ProductPrice {
/**
* Get billingAccount
* @return billingAccount
- **/
+ **/
@Schema(description = "")
-
+ @NotNull
+
@Valid
public BillingAccountRef getBillingAccount() {
return billingAccount;
@@ -199,8 +189,8 @@ public class ProductPrice {
/**
* Get price
* @return price
- **/
- @Schema(description = "")
+ **/
+ @Schema(required = true, description = "")
@NotNull
@Valid
@@ -220,9 +210,10 @@ public class ProductPrice {
/**
* Get productOfferingPrice
* @return productOfferingPrice
- **/
+ **/
@Schema(description = "")
-
+ @NotNull
+
@Valid
public ProductOfferingPriceRef getProductOfferingPrice() {
return productOfferingPrice;
@@ -232,14 +223,14 @@ public class ProductPrice {
this.productOfferingPrice = productOfferingPrice;
}
- public ProductPrice productPriceAlteration(List productPriceAlteration) {
+ public ProductPrice productPriceAlteration(Set productPriceAlteration) {
this.productPriceAlteration = productPriceAlteration;
return this;
}
public ProductPrice addProductPriceAlterationItem(PriceAlteration productPriceAlterationItem) {
if (this.productPriceAlteration == null) {
- this.productPriceAlteration = new ArrayList<>();
+ this.productPriceAlteration = new HashSet();
}
this.productPriceAlteration.add(productPriceAlterationItem);
return this;
@@ -248,73 +239,19 @@ public class ProductPrice {
/**
* Get productPriceAlteration
* @return productPriceAlteration
- **/
+ **/
@Schema(description = "")
- @Valid
- public List getProductPriceAlteration() {
+ @NotNull
+ @Valid
+ public Set getProductPriceAlteration() {
return productPriceAlteration;
}
- public void setProductPriceAlteration(List productPriceAlteration) {
+ public void setProductPriceAlteration(Set productPriceAlteration) {
this.productPriceAlteration = productPriceAlteration;
}
- public ProductPrice baseType(String baseType) {
- this.baseType = baseType;
- return this;
- }
-
- /**
- * When sub-classing, this defines the super-class
- * @return baseType
- **/
- @Schema(description = "When sub-classing, this defines the super-class")
-
- public String getAtBaseType() {
- return baseType;
- }
-
- public void setAtBaseType(String baseType) {
- this.baseType = baseType;
- }
-
- public ProductPrice schemaLocation(String schemaLocation) {
- this.schemaLocation = schemaLocation;
- return this;
- }
-
- /**
- * A URI to a JSON-Schema file that defines additional attributes and relationships
- * @return schemaLocation
- **/
- @Schema(description = "A URI to a JSON-Schema file that defines additional attributes and relationships")
-
- public String getAtSchemaLocation() {
- return schemaLocation;
- }
-
- public void setAtSchemaLocation(String schemaLocation) {
- this.schemaLocation = schemaLocation;
- }
-
- public ProductPrice type(String type) {
- this.type = type;
- return this;
- }
-
- /**
- * When sub-classing, this defines the sub-class entity name
- * @return type
- **/
- @Schema(description = "When sub-classing, this defines the sub-class entity name")
-
- public String getAtType() {
- return type;
- }
-
- public void setAtType(String type) {
- this.type = type;
- }
+
@Override
@@ -337,12 +274,12 @@ public class ProductPrice {
Objects.equals(this.productPriceAlteration, productPrice.productPriceAlteration) &&
Objects.equals(this.baseType, productPrice.baseType) &&
Objects.equals(this.schemaLocation, productPrice.schemaLocation) &&
- Objects.equals(this.type, productPrice.type);
+ Objects.equals(this.baseType, productPrice.baseType);
}
@Override
public int hashCode() {
- return Objects.hash(description, name, priceType, recurringChargePeriod, unitOfMeasure, billingAccount, price, productOfferingPrice, productPriceAlteration, baseType, schemaLocation, type);
+ return Objects.hash(description, name, priceType, recurringChargePeriod, unitOfMeasure, billingAccount, price, productOfferingPrice, productPriceAlteration, baseType, schemaLocation, baseType);
}
@Override
@@ -359,9 +296,9 @@ public class ProductPrice {
sb.append(" price: ").append(toIndentedString(price)).append("\n");
sb.append(" productOfferingPrice: ").append(toIndentedString(productOfferingPrice)).append("\n");
sb.append(" productPriceAlteration: ").append(toIndentedString(productPriceAlteration)).append("\n");
- sb.append(" baseType: ").append(toIndentedString(baseType)).append("\n");
- sb.append(" schemaLocation: ").append(toIndentedString(schemaLocation)).append("\n");
- sb.append(" type: ").append(toIndentedString(type)).append("\n");
+ sb.append(" _atBaseType: ").append(toIndentedString(baseType)).append("\n");
+ sb.append(" _atSchemaLocation: ").append(toIndentedString(schemaLocation)).append("\n");
+ sb.append(" _atType: ").append(toIndentedString(baseType)).append("\n");
sb.append("}");
return sb.toString();
}
diff --git a/src/main/java/org/etsi/osl/tmf/po622/model/ProductRef.java b/src/main/java/org/etsi/osl/tmf/pim637/model/ProductRef.java
similarity index 54%
rename from src/main/java/org/etsi/osl/tmf/po622/model/ProductRef.java
rename to src/main/java/org/etsi/osl/tmf/pim637/model/ProductRef.java
index 92d6d9cd96796c22a37f4fd2ce577fb14806c7ff..41860d3606a81fca3f9afa7ead7e55fc4859fc13 100644
--- a/src/main/java/org/etsi/osl/tmf/po622/model/ProductRef.java
+++ b/src/main/java/org/etsi/osl/tmf/pim637/model/ProductRef.java
@@ -1,56 +1,25 @@
-/*-
- * ========================LICENSE_START=================================
- * org.etsi.osl.tmf.api
- * %%
- * Copyright (C) 2019 - 2021 openslice.io
- * %%
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * =========================LICENSE_END==================================
- */
-package org.etsi.osl.tmf.po622.model;
+package org.etsi.osl.tmf.pim637.model;
import java.util.Objects;
-
import com.fasterxml.jackson.annotation.JsonProperty;
-
+import org.etsi.osl.tmf.common.model.BaseRootNamedEntity;
import org.springframework.validation.annotation.Validated;
-
import io.swagger.v3.oas.annotations.media.Schema;
+import jakarta.persistence.Entity;
import jakarta.validation.constraints.NotNull;
/**
* ProductRef
*/
@Validated
-@jakarta.annotation.Generated(value = "io.swagger.codegen.v3.generators.java.SpringCodegen", date = "2020-10-30T10:29:21.184964400+02:00[Europe/Athens]")
-public class ProductRef {
+@jakarta.annotation.Generated(value = "io.swagger.codegen.v3.generators.java.SpringCodegen", date = "2024-08-04T00:27:07.324017400+03:00[Europe/Athens]")
+
+@Entity(name = "ProductRef637")
+public class ProductRef extends BaseRootNamedEntity {
@JsonProperty("id")
private String id = null;
- @JsonProperty("href")
- private String href = null;
-
- @JsonProperty("name")
- private String name = null;
- @JsonProperty("@baseType")
- private String baseType = null;
-
- @JsonProperty("@schemaLocation")
- private String schemaLocation = null;
-
- @JsonProperty("@type")
- private String type = null;
@JsonProperty("@referredType")
private String _atReferredType = null;
@@ -63,8 +32,8 @@ public class ProductRef {
/**
* Unique identifier of a related entity.
* @return id
- **/
- @Schema(description = "Unique identifier of a related entity.")
+ **/
+ @Schema(required = true, description = "Unique identifier of a related entity.")
@NotNull
public String getId() {
@@ -83,9 +52,10 @@ public class ProductRef {
/**
* Reference of the related entity.
* @return href
- **/
+ **/
@Schema(description = "Reference of the related entity.")
-
+ @NotNull
+
public String getHref() {
return href;
}
@@ -102,9 +72,10 @@ public class ProductRef {
/**
* Name of the related entity.
* @return name
- **/
+ **/
@Schema(description = "Name of the related entity.")
-
+ @NotNull
+
public String getName() {
return name;
}
@@ -113,62 +84,8 @@ public class ProductRef {
this.name = name;
}
- public ProductRef baseType(String baseType) {
- this.baseType = baseType;
- return this;
- }
-
- /**
- * When sub-classing, this defines the super-class
- * @return baseType
- **/
- @Schema(description = "When sub-classing, this defines the super-class")
- public String getAtBaseType() {
- return baseType;
- }
- public void setAtBaseType(String baseType) {
- this.baseType = baseType;
- }
-
- public ProductRef schemaLocation(String schemaLocation) {
- this.schemaLocation = schemaLocation;
- return this;
- }
-
- /**
- * A URI to a JSON-Schema file that defines additional attributes and relationships
- * @return schemaLocation
- **/
- @Schema(description = "A URI to a JSON-Schema file that defines additional attributes and relationships")
-
- public String getAtSchemaLocation() {
- return schemaLocation;
- }
-
- public void setAtSchemaLocation(String schemaLocation) {
- this.schemaLocation = schemaLocation;
- }
-
- public ProductRef type(String type) {
- this.type = type;
- return this;
- }
-
- /**
- * When sub-classing, this defines the sub-class entity name
- * @return type
- **/
- @Schema(description = "When sub-classing, this defines the sub-class entity name")
-
- public String getAtType() {
- return type;
- }
-
- public void setAtType(String type) {
- this.type = type;
- }
public ProductRef _atReferredType(String _atReferredType) {
this._atReferredType = _atReferredType;
@@ -178,9 +95,10 @@ public class ProductRef {
/**
* The actual type of the target instance when needed for disambiguation.
* @return _atReferredType
- **/
+ **/
@Schema(description = "The actual type of the target instance when needed for disambiguation.")
-
+ @NotNull
+
public String getAtReferredType() {
return _atReferredType;
}
@@ -221,9 +139,9 @@ public class ProductRef {
sb.append(" id: ").append(toIndentedString(id)).append("\n");
sb.append(" href: ").append(toIndentedString(href)).append("\n");
sb.append(" name: ").append(toIndentedString(name)).append("\n");
- sb.append(" baseType: ").append(toIndentedString(baseType)).append("\n");
- sb.append(" schemaLocation: ").append(toIndentedString(schemaLocation)).append("\n");
- sb.append(" type: ").append(toIndentedString(type)).append("\n");
+ sb.append(" _atBaseType: ").append(toIndentedString(baseType)).append("\n");
+ sb.append(" _atSchemaLocation: ").append(toIndentedString(schemaLocation)).append("\n");
+ sb.append(" _atType: ").append(toIndentedString(type)).append("\n");
sb.append(" _atReferredType: ").append(toIndentedString(_atReferredType)).append("\n");
sb.append("}");
return sb.toString();
diff --git a/src/main/java/org/etsi/osl/tmf/pim637/model/ProductRefOrValue.java b/src/main/java/org/etsi/osl/tmf/pim637/model/ProductRefOrValue.java
new file mode 100644
index 0000000000000000000000000000000000000000..c95f059d0594f6e09ab2cb752ff06aa4a65acb27
--- /dev/null
+++ b/src/main/java/org/etsi/osl/tmf/pim637/model/ProductRefOrValue.java
@@ -0,0 +1,83 @@
+package org.etsi.osl.tmf.pim637.model;
+
+import java.util.ArrayList;
+import java.util.Date;
+import java.util.List;
+import java.util.Objects;
+import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import org.etsi.osl.tmf.common.model.service.Characteristic;
+import org.etsi.osl.tmf.common.model.service.ResourceRef;
+import org.etsi.osl.tmf.common.model.service.ServiceRef;
+import org.etsi.osl.tmf.pcm620.model.ProductOfferingRef;
+import org.etsi.osl.tmf.pcm620.model.ProductSpecificationRef;
+import org.etsi.osl.tmf.po622.model.AgreementItemRef;
+import org.etsi.osl.tmf.po622.model.RelatedProductOrderItem;
+import org.etsi.osl.tmf.prm669.model.RelatedParty;
+import org.springframework.validation.annotation.Validated;
+import io.swagger.v3.oas.annotations.media.Schema;
+import jakarta.persistence.Entity;
+import jakarta.validation.Valid;
+import jakarta.validation.constraints.NotNull;
+
+/**
+ * A product to be created defined by value or existing defined by reference. The polymorphic
+ * attributes @type, @schemaLocation & @referredType are related to the product entity and not
+ * the RelatedProductRefOrValue class itself
+ */
+@Schema(
+ description = "A product to be created defined by value or existing defined by reference. The polymorphic attributes @type, @schemaLocation & @referredType are related to the product entity and not the RelatedProductRefOrValue class itself")
+@Validated
+@jakarta.annotation.Generated(value = "io.swagger.codegen.v3.generators.java.SpringCodegen",
+ date = "2024-08-04T00:27:07.324017400+03:00[Europe/Athens]")
+
+@Entity(name = "ProdRefOrVal637")
+@JsonIgnoreProperties({"uuid"})
+public class ProductRefOrValue extends Product {
+
+
+ @Schema(description = "Unique identifier of the product")
+ @NotNull
+
+ public String getId() {
+ if (id == null) {
+ return super.getId();
+ }
+ return this.id;
+ }
+
+ public void setId(String id) {
+ this.id = id;
+ }
+
+ public Characteristic findCharacteristicByName(String aName) {
+ for (Characteristic c : productCharacteristic) {
+ if (c.getName().equals(aName)) {
+ return c;
+ }
+ }
+
+ return null;
+ }
+
+ public Object getRealizingServiceById(@NotNull String id) {
+ for (ServiceRef sr : realizingService) {
+ if ( sr.getId().equals(id)) {
+ return sr;
+ }
+ }
+ return null;
+ }
+
+ public Object getRealizingResourceById(@NotNull String id) {
+ for (ResourceRef sr : realizingResource) {
+ if ( sr.getId().equals(id)) {
+ return sr;
+ }
+ }
+ return null;
+ }
+
+
+
+}
diff --git a/src/main/java/org/etsi/osl/tmf/po622/model/ProductRelationship.java b/src/main/java/org/etsi/osl/tmf/pim637/model/ProductRelationship.java
similarity index 54%
rename from src/main/java/org/etsi/osl/tmf/po622/model/ProductRelationship.java
rename to src/main/java/org/etsi/osl/tmf/pim637/model/ProductRelationship.java
index 309c363c0e25411a3456f91e810dce8a6c05eead..331b8fb5070609e14630fdcdb3207301d1033ea1 100644
--- a/src/main/java/org/etsi/osl/tmf/po622/model/ProductRelationship.java
+++ b/src/main/java/org/etsi/osl/tmf/pim637/model/ProductRelationship.java
@@ -1,31 +1,15 @@
-/*-
- * ========================LICENSE_START=================================
- * org.etsi.osl.tmf.api
- * %%
- * Copyright (C) 2019 - 2021 openslice.io
- * %%
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * =========================LICENSE_END==================================
- */
-package org.etsi.osl.tmf.po622.model;
+package org.etsi.osl.tmf.pim637.model;
import java.util.Objects;
-
import com.fasterxml.jackson.annotation.JsonProperty;
-
+import org.etsi.osl.tmf.common.model.BaseRootEntity;
+import org.etsi.osl.tmf.common.model.BaseRootNamedEntity;
import org.springframework.validation.annotation.Validated;
-
import io.swagger.v3.oas.annotations.media.Schema;
+import jakarta.persistence.CascadeType;
+import jakarta.persistence.Entity;
+import jakarta.persistence.JoinColumn;
+import jakarta.persistence.OneToOne;
import jakarta.validation.Valid;
import jakarta.validation.constraints.NotNull;
@@ -34,22 +18,18 @@ import jakarta.validation.constraints.NotNull;
*/
@Schema(description = "Linked products to the one instantiate, such as [bundled] if the product is a bundle and you want to describe the bundled products inside this bundle; [reliesOn] if the product needs another already owned product to rely on (e.g. an option on an already owned mobile access product) [targets] or [isTargeted] (depending on the way of expressing the link) for any other kind of links that may be useful")
@Validated
-@jakarta.annotation.Generated(value = "io.swagger.codegen.v3.generators.java.SpringCodegen", date = "2020-10-30T10:29:21.184964400+02:00[Europe/Athens]")
-public class ProductRelationship {
+@jakarta.annotation.Generated(value = "io.swagger.codegen.v3.generators.java.SpringCodegen", date = "2024-08-04T00:27:07.324017400+03:00[Europe/Athens]")
+
+@Entity(name = "ProdRel637")
+public class ProductRelationship extends BaseRootEntity {
@JsonProperty("relationshipType")
private String relationshipType = null;
@JsonProperty("product")
+ @OneToOne(cascade = CascadeType.ALL)
+ @JoinColumn(name = "prod_refuuid", referencedColumnName = "uuid")
private ProductRefOrValue product = null;
- @JsonProperty("@baseType")
- private String baseType = null;
-
- @JsonProperty("@schemaLocation")
- private String schemaLocation = null;
-
- @JsonProperty("@type")
- private String type = null;
public ProductRelationship relationshipType(String relationshipType) {
this.relationshipType = relationshipType;
@@ -59,8 +39,8 @@ public class ProductRelationship {
/**
* Type of the product relationship, such as [bundled] if the product is a bundle and you want to describe the bundled products inside this bundle; [reliesOn] if the product needs another already owned product to rely on (e.g. an option on an already owned mobile access product) [targets] or [isTargeted] (depending on the way of expressing the link) for any other kind of links that may be useful
* @return relationshipType
- **/
- @Schema(description = "Type of the product relationship, such as [bundled] if the product is a bundle and you want to describe the bundled products inside this bundle; [reliesOn] if the product needs another already owned product to rely on (e.g. an option on an already owned mobile access product) [targets] or [isTargeted] (depending on the way of expressing the link) for any other kind of links that may be useful")
+ **/
+ @Schema(required = true, description = "Type of the product relationship, such as [bundled] if the product is a bundle and you want to describe the bundled products inside this bundle; [reliesOn] if the product needs another already owned product to rely on (e.g. an option on an already owned mobile access product) [targets] or [isTargeted] (depending on the way of expressing the link) for any other kind of links that may be useful")
@NotNull
public String getRelationshipType() {
@@ -79,8 +59,8 @@ public class ProductRelationship {
/**
* Get product
* @return product
- **/
- @Schema(description = "")
+ **/
+ @Schema(required = true, description = "")
@NotNull
@Valid
@@ -92,62 +72,7 @@ public class ProductRelationship {
this.product = product;
}
- public ProductRelationship baseType(String baseType) {
- this.baseType = baseType;
- return this;
- }
-
- /**
- * When sub-classing, this defines the super-class
- * @return baseType
- **/
- @Schema(description = "When sub-classing, this defines the super-class")
-
- public String getAtBaseType() {
- return baseType;
- }
-
- public void setAtBaseType(String baseType) {
- this.baseType = baseType;
- }
-
- public ProductRelationship schemaLocation(String schemaLocation) {
- this.schemaLocation = schemaLocation;
- return this;
- }
-
- /**
- * A URI to a JSON-Schema file that defines additional attributes and relationships
- * @return schemaLocation
- **/
- @Schema(description = "A URI to a JSON-Schema file that defines additional attributes and relationships")
-
- public String getAtSchemaLocation() {
- return schemaLocation;
- }
-
- public void setAtSchemaLocation(String schemaLocation) {
- this.schemaLocation = schemaLocation;
- }
-
- public ProductRelationship type(String type) {
- this.type = type;
- return this;
- }
-
- /**
- * When sub-classing, this defines the sub-class entity name
- * @return type
- **/
- @Schema(description = "When sub-classing, this defines the sub-class entity name")
-
- public String getAtType() {
- return type;
- }
-
- public void setAtType(String type) {
- this.type = type;
- }
+
@Override
@@ -178,9 +103,9 @@ public class ProductRelationship {
sb.append(" relationshipType: ").append(toIndentedString(relationshipType)).append("\n");
sb.append(" product: ").append(toIndentedString(product)).append("\n");
- sb.append(" baseType: ").append(toIndentedString(baseType)).append("\n");
- sb.append(" schemaLocation: ").append(toIndentedString(schemaLocation)).append("\n");
- sb.append(" type: ").append(toIndentedString(type)).append("\n");
+ sb.append(" _atBaseType: ").append(toIndentedString(baseType)).append("\n");
+ sb.append(" _atSchemaLocation: ").append(toIndentedString(schemaLocation)).append("\n");
+ sb.append(" _atType: ").append(toIndentedString(type)).append("\n");
sb.append("}");
return sb.toString();
}
diff --git a/src/main/java/org/etsi/osl/tmf/pim637/model/ProductStateChangeEvent.java b/src/main/java/org/etsi/osl/tmf/pim637/model/ProductStateChangeEvent.java
new file mode 100644
index 0000000000000000000000000000000000000000..a5aa7f6af06ea4e8d869fdd2da77fcb3a77a252b
--- /dev/null
+++ b/src/main/java/org/etsi/osl/tmf/pim637/model/ProductStateChangeEvent.java
@@ -0,0 +1,359 @@
+package org.etsi.osl.tmf.pim637.model;
+
+import java.util.Date;
+import java.util.Objects;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import org.springframework.validation.annotation.Validated;
+import io.swagger.v3.oas.annotations.media.Schema;
+import jakarta.validation.Valid;
+import jakarta.validation.constraints.NotNull;
+
+/**
+ * The notification data structure
+ */
+@Schema(description = "The notification data structure")
+@Validated
+@jakarta.annotation.Generated(value = "io.swagger.codegen.v3.generators.java.SpringCodegen", date = "2024-08-04T00:27:07.324017400+03:00[Europe/Athens]")
+
+
+public class ProductStateChangeEvent {
+ @JsonProperty("id")
+ private String id = null;
+
+ @JsonProperty("href")
+ private String href = null;
+
+ @JsonProperty("eventId")
+ private String eventId = null;
+
+ @JsonProperty("eventTime")
+ private Date eventTime = null;
+
+ @JsonProperty("eventType")
+ private String eventType = null;
+
+ @JsonProperty("correlationId")
+ private String correlationId = null;
+
+ @JsonProperty("domain")
+ private String domain = null;
+
+ @JsonProperty("title")
+ private String title = null;
+
+ @JsonProperty("description")
+ private String description = null;
+
+ @JsonProperty("priority")
+ private String priority = null;
+
+ @JsonProperty("timeOcurred")
+ private Date timeOcurred = null;
+
+ @JsonProperty("event")
+ private ProductStateChangeEventPayload event = null;
+
+ public ProductStateChangeEvent id(String id) {
+ this.id = id;
+ return this;
+ }
+
+ /**
+ * Identifier of the Process flow
+ * @return id
+ **/
+ @Schema(description = "Identifier of the Process flow")
+ @NotNull
+
+ public String getId() {
+ return id;
+ }
+
+ public void setId(String id) {
+ this.id = id;
+ }
+
+ public ProductStateChangeEvent href(String href) {
+ this.href = href;
+ return this;
+ }
+
+ /**
+ * Reference of the ProcessFlow
+ * @return href
+ **/
+ @Schema(description = "Reference of the ProcessFlow")
+ @NotNull
+
+ public String getHref() {
+ return href;
+ }
+
+ public void setHref(String href) {
+ this.href = href;
+ }
+
+ public ProductStateChangeEvent eventId(String eventId) {
+ this.eventId = eventId;
+ return this;
+ }
+
+ /**
+ * The identifier of the notification.
+ * @return eventId
+ **/
+ @Schema(description = "The identifier of the notification.")
+ @NotNull
+
+ public String getEventId() {
+ return eventId;
+ }
+
+ public void setEventId(String eventId) {
+ this.eventId = eventId;
+ }
+
+ public ProductStateChangeEvent eventTime(Date eventTime) {
+ this.eventTime = eventTime;
+ return this;
+ }
+
+ /**
+ * Time of the event occurrence.
+ * @return eventTime
+ **/
+ @Schema(description = "Time of the event occurrence.")
+ @NotNull
+
+ @Valid
+ public Date getEventTime() {
+ return eventTime;
+ }
+
+ public void setEventTime(Date eventTime) {
+ this.eventTime = eventTime;
+ }
+
+ public ProductStateChangeEvent eventType(String eventType) {
+ this.eventType = eventType;
+ return this;
+ }
+
+ /**
+ * The type of the notification.
+ * @return eventType
+ **/
+ @Schema(description = "The type of the notification.")
+ @NotNull
+
+ public String getEventType() {
+ return eventType;
+ }
+
+ public void setEventType(String eventType) {
+ this.eventType = eventType;
+ }
+
+ public ProductStateChangeEvent correlationId(String correlationId) {
+ this.correlationId = correlationId;
+ return this;
+ }
+
+ /**
+ * The correlation id for this event.
+ * @return correlationId
+ **/
+ @Schema(description = "The correlation id for this event.")
+ @NotNull
+
+ public String getCorrelationId() {
+ return correlationId;
+ }
+
+ public void setCorrelationId(String correlationId) {
+ this.correlationId = correlationId;
+ }
+
+ public ProductStateChangeEvent domain(String domain) {
+ this.domain = domain;
+ return this;
+ }
+
+ /**
+ * The domain of the event.
+ * @return domain
+ **/
+ @Schema(description = "The domain of the event.")
+ @NotNull
+
+ public String getDomain() {
+ return domain;
+ }
+
+ public void setDomain(String domain) {
+ this.domain = domain;
+ }
+
+ public ProductStateChangeEvent title(String title) {
+ this.title = title;
+ return this;
+ }
+
+ /**
+ * The title of the event.
+ * @return title
+ **/
+ @Schema(description = "The title of the event.")
+ @NotNull
+
+ public String getTitle() {
+ return title;
+ }
+
+ public void setTitle(String title) {
+ this.title = title;
+ }
+
+ public ProductStateChangeEvent description(String description) {
+ this.description = description;
+ return this;
+ }
+
+ /**
+ * An explnatory of the event.
+ * @return description
+ **/
+ @Schema(description = "An explnatory of the event.")
+ @NotNull
+
+ public String getDescription() {
+ return description;
+ }
+
+ public void setDescription(String description) {
+ this.description = description;
+ }
+
+ public ProductStateChangeEvent priority(String priority) {
+ this.priority = priority;
+ return this;
+ }
+
+ /**
+ * A priority.
+ * @return priority
+ **/
+ @Schema(description = "A priority.")
+ @NotNull
+
+ public String getPriority() {
+ return priority;
+ }
+
+ public void setPriority(String priority) {
+ this.priority = priority;
+ }
+
+ public ProductStateChangeEvent timeOcurred(Date timeOcurred) {
+ this.timeOcurred = timeOcurred;
+ return this;
+ }
+
+ /**
+ * The time the event occured.
+ * @return timeOcurred
+ **/
+ @Schema(description = "The time the event occured.")
+ @NotNull
+
+ @Valid
+ public Date getTimeOcurred() {
+ return timeOcurred;
+ }
+
+ public void setTimeOcurred(Date timeOcurred) {
+ this.timeOcurred = timeOcurred;
+ }
+
+ public ProductStateChangeEvent event(ProductStateChangeEventPayload event) {
+ this.event = event;
+ return this;
+ }
+
+ /**
+ * Get event
+ * @return event
+ **/
+ @Schema(description = "")
+ @NotNull
+
+ @Valid
+ public ProductStateChangeEventPayload getEvent() {
+ return event;
+ }
+
+ public void setEvent(ProductStateChangeEventPayload event) {
+ this.event = event;
+ }
+
+
+ @Override
+ public boolean equals(java.lang.Object o) {
+ if (this == o) {
+ return true;
+ }
+ if (o == null || getClass() != o.getClass()) {
+ return false;
+ }
+ ProductStateChangeEvent productStateChangeEvent = (ProductStateChangeEvent) o;
+ return Objects.equals(this.id, productStateChangeEvent.id) &&
+ Objects.equals(this.href, productStateChangeEvent.href) &&
+ Objects.equals(this.eventId, productStateChangeEvent.eventId) &&
+ Objects.equals(this.eventTime, productStateChangeEvent.eventTime) &&
+ Objects.equals(this.eventType, productStateChangeEvent.eventType) &&
+ Objects.equals(this.correlationId, productStateChangeEvent.correlationId) &&
+ Objects.equals(this.domain, productStateChangeEvent.domain) &&
+ Objects.equals(this.title, productStateChangeEvent.title) &&
+ Objects.equals(this.description, productStateChangeEvent.description) &&
+ Objects.equals(this.priority, productStateChangeEvent.priority) &&
+ Objects.equals(this.timeOcurred, productStateChangeEvent.timeOcurred) &&
+ Objects.equals(this.event, productStateChangeEvent.event);
+ }
+
+ @Override
+ public int hashCode() {
+ return Objects.hash(id, href, eventId, eventTime, eventType, correlationId, domain, title, description, priority, timeOcurred, event);
+ }
+
+ @Override
+ public String toString() {
+ StringBuilder sb = new StringBuilder();
+ sb.append("class ProductStateChangeEvent {\n");
+
+ sb.append(" id: ").append(toIndentedString(id)).append("\n");
+ sb.append(" href: ").append(toIndentedString(href)).append("\n");
+ sb.append(" eventId: ").append(toIndentedString(eventId)).append("\n");
+ sb.append(" eventTime: ").append(toIndentedString(eventTime)).append("\n");
+ sb.append(" eventType: ").append(toIndentedString(eventType)).append("\n");
+ sb.append(" correlationId: ").append(toIndentedString(correlationId)).append("\n");
+ sb.append(" domain: ").append(toIndentedString(domain)).append("\n");
+ sb.append(" title: ").append(toIndentedString(title)).append("\n");
+ sb.append(" description: ").append(toIndentedString(description)).append("\n");
+ sb.append(" priority: ").append(toIndentedString(priority)).append("\n");
+ sb.append(" timeOcurred: ").append(toIndentedString(timeOcurred)).append("\n");
+ sb.append(" event: ").append(toIndentedString(event)).append("\n");
+ sb.append("}");
+ return sb.toString();
+ }
+
+ /**
+ * Convert the given object to string with each line indented by 4 spaces
+ * (except the first line).
+ */
+ private String toIndentedString(java.lang.Object o) {
+ if (o == null) {
+ return "null";
+ }
+ return o.toString().replace("\n", "\n ");
+ }
+}
diff --git a/src/main/java/org/etsi/osl/tmf/pim637/model/ProductStateChangeEventPayload.java b/src/main/java/org/etsi/osl/tmf/pim637/model/ProductStateChangeEventPayload.java
new file mode 100644
index 0000000000000000000000000000000000000000..a492a3f7a49db34af09a948afd38d280f77316c7
--- /dev/null
+++ b/src/main/java/org/etsi/osl/tmf/pim637/model/ProductStateChangeEventPayload.java
@@ -0,0 +1,81 @@
+package org.etsi.osl.tmf.pim637.model;
+
+import java.util.Objects;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import org.springframework.validation.annotation.Validated;
+import io.swagger.v3.oas.annotations.media.Schema;
+import jakarta.validation.Valid;
+import jakarta.validation.constraints.NotNull;
+
+/**
+ * The event data structure
+ */
+@Schema(description = "The event data structure")
+@Validated
+@jakarta.annotation.Generated(value = "io.swagger.codegen.v3.generators.java.SpringCodegen", date = "2024-08-04T00:27:07.324017400+03:00[Europe/Athens]")
+
+
+public class ProductStateChangeEventPayload {
+ @JsonProperty("product")
+ private Product product = null;
+
+ public ProductStateChangeEventPayload product(Product product) {
+ this.product = product;
+ return this;
+ }
+
+ /**
+ * Get product
+ * @return product
+ **/
+ @Schema(description = "")
+ @NotNull
+
+ @Valid
+ public Product getProduct() {
+ return product;
+ }
+
+ public void setProduct(Product product) {
+ this.product = product;
+ }
+
+
+ @Override
+ public boolean equals(java.lang.Object o) {
+ if (this == o) {
+ return true;
+ }
+ if (o == null || getClass() != o.getClass()) {
+ return false;
+ }
+ ProductStateChangeEventPayload productStateChangeEventPayload = (ProductStateChangeEventPayload) o;
+ return Objects.equals(this.product, productStateChangeEventPayload.product);
+ }
+
+ @Override
+ public int hashCode() {
+ return Objects.hash(product);
+ }
+
+ @Override
+ public String toString() {
+ StringBuilder sb = new StringBuilder();
+ sb.append("class ProductStateChangeEventPayload {\n");
+
+ sb.append(" product: ").append(toIndentedString(product)).append("\n");
+ sb.append("}");
+ return sb.toString();
+ }
+
+ /**
+ * Convert the given object to string with each line indented by 4 spaces
+ * (except the first line).
+ */
+ private String toIndentedString(java.lang.Object o) {
+ if (o == null) {
+ return "null";
+ }
+ return o.toString().replace("\n", "\n ");
+ }
+}
diff --git a/src/main/java/org/etsi/osl/tmf/pim637/model/ProductStatusType.java b/src/main/java/org/etsi/osl/tmf/pim637/model/ProductStatusType.java
new file mode 100644
index 0000000000000000000000000000000000000000..616f74176af27154a9e12ee791aedee55a2fb4f9
--- /dev/null
+++ b/src/main/java/org/etsi/osl/tmf/pim637/model/ProductStatusType.java
@@ -0,0 +1,40 @@
+package org.etsi.osl.tmf.pim637.model;
+
+import com.fasterxml.jackson.annotation.JsonCreator;
+import com.fasterxml.jackson.annotation.JsonValue;
+
+/**
+ * Possible values for the status of the product
+ */
+public enum ProductStatusType {
+ CREATED("CREATED"),
+ PENDINGACTIVE("PENDINGACTIVE"),
+ CANCELLED("CANCELLED"),
+ ACTIVE("ACTIVE"),
+ PENDINGTERMINATE("PENDINGTERMINATE"),
+ TERMINATED("TERMINATED"),
+ SUSPENDED("SUSPENDED"),
+ ABORTED_("ABORTED_ ");
+
+ private String value;
+
+ ProductStatusType(String value) {
+ this.value = value;
+ }
+
+ @Override
+ @JsonValue
+ public String toString() {
+ return String.valueOf(value);
+ }
+
+ @JsonCreator
+ public static ProductStatusType fromValue(String text) {
+ for (ProductStatusType b : ProductStatusType.values()) {
+ if (String.valueOf(b.value).equals(text)) {
+ return b;
+ }
+ }
+ return null;
+ }
+}
diff --git a/src/main/java/org/etsi/osl/tmf/po622/model/ProductTerm.java b/src/main/java/org/etsi/osl/tmf/pim637/model/ProductTerm.java
similarity index 57%
rename from src/main/java/org/etsi/osl/tmf/po622/model/ProductTerm.java
rename to src/main/java/org/etsi/osl/tmf/pim637/model/ProductTerm.java
index b43c08941c5fb2b816d01bad7edbc5b845e2edd5..4207102702166c26b6f10723ed14afdea2f89436 100644
--- a/src/main/java/org/etsi/osl/tmf/po622/model/ProductTerm.java
+++ b/src/main/java/org/etsi/osl/tmf/pim637/model/ProductTerm.java
@@ -1,45 +1,27 @@
-/*-
- * ========================LICENSE_START=================================
- * org.etsi.osl.tmf.api
- * %%
- * Copyright (C) 2019 - 2021 openslice.io
- * %%
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * =========================LICENSE_END==================================
- */
-package org.etsi.osl.tmf.po622.model;
+package org.etsi.osl.tmf.pim637.model;
import java.util.Objects;
-
import com.fasterxml.jackson.annotation.JsonProperty;
+import org.etsi.osl.tmf.common.model.BaseRootNamedEntity;
import org.etsi.osl.tmf.common.model.Quantity;
import org.etsi.osl.tmf.common.model.TimePeriod;
import org.springframework.validation.annotation.Validated;
import io.swagger.v3.oas.annotations.media.Schema;
+import jakarta.persistence.Entity;
import jakarta.validation.Valid;
-
+import jakarta.validation.constraints.NotNull;
/**
* Description of a productTerm linked to this product. This represent a commitment with a duration
*/
@Schema(description = "Description of a productTerm linked to this product. This represent a commitment with a duration")
@Validated
-@jakarta.annotation.Generated(value = "io.swagger.codegen.v3.generators.java.SpringCodegen", date = "2020-10-30T10:29:21.184964400+02:00[Europe/Athens]")
-public class ProductTerm {
+@jakarta.annotation.Generated(value = "io.swagger.codegen.v3.generators.java.SpringCodegen", date = "2024-08-04T00:27:07.324017400+03:00[Europe/Athens]")
+
+@Entity(name = "ProdTerm637")
+public class ProductTerm extends BaseRootNamedEntity {
@JsonProperty("description")
private String description = null;
- @JsonProperty("name")
- private String name = null;
@JsonProperty("duration")
private Quantity duration = null;
@@ -47,15 +29,6 @@ public class ProductTerm {
@JsonProperty("validFor")
private TimePeriod validFor = null;
- @JsonProperty("@baseType")
- private String baseType = null;
-
- @JsonProperty("@schemaLocation")
- private String schemaLocation = null;
-
- @JsonProperty("@type")
- private String type = null;
-
public ProductTerm description(String description) {
this.description = description;
return this;
@@ -64,9 +37,10 @@ public class ProductTerm {
/**
* Description of the productTerm
* @return description
- **/
+ **/
@Schema(description = "Description of the productTerm")
-
+ @NotNull
+
public String getDescription() {
return description;
}
@@ -83,9 +57,10 @@ public class ProductTerm {
/**
* Name of the productTerm
* @return name
- **/
+ **/
@Schema(description = "Name of the productTerm")
-
+ @NotNull
+
public String getName() {
return name;
}
@@ -102,9 +77,10 @@ public class ProductTerm {
/**
* Get duration
* @return duration
- **/
+ **/
@Schema(description = "")
-
+ @NotNull
+
@Valid
public Quantity getDuration() {
return duration;
@@ -122,9 +98,10 @@ public class ProductTerm {
/**
* Get validFor
* @return validFor
- **/
+ **/
@Schema(description = "")
-
+ @NotNull
+
@Valid
public TimePeriod getValidFor() {
return validFor;
@@ -134,62 +111,7 @@ public class ProductTerm {
this.validFor = validFor;
}
- public ProductTerm baseType(String baseType) {
- this.baseType = baseType;
- return this;
- }
-
- /**
- * When sub-classing, this defines the super-class
- * @return baseType
- **/
- @Schema(description = "When sub-classing, this defines the super-class")
-
- public String getAtBaseType() {
- return baseType;
- }
-
- public void setAtBaseType(String baseType) {
- this.baseType = baseType;
- }
-
- public ProductTerm schemaLocation(String schemaLocation) {
- this.schemaLocation = schemaLocation;
- return this;
- }
-
- /**
- * A URI to a JSON-Schema file that defines additional attributes and relationships
- * @return schemaLocation
- **/
- @Schema(description = "A URI to a JSON-Schema file that defines additional attributes and relationships")
-
- public String getAtSchemaLocation() {
- return schemaLocation;
- }
-
- public void setAtSchemaLocation(String schemaLocation) {
- this.schemaLocation = schemaLocation;
- }
-
- public ProductTerm type(String type) {
- this.type = type;
- return this;
- }
-
- /**
- * When sub-classing, this defines the sub-class entity name
- * @return type
- **/
- @Schema(description = "When sub-classing, this defines the sub-class entity name")
- public String getAtType() {
- return type;
- }
-
- public void setAtType(String type) {
- this.type = type;
- }
@Override
@@ -224,9 +146,9 @@ public class ProductTerm {
sb.append(" name: ").append(toIndentedString(name)).append("\n");
sb.append(" duration: ").append(toIndentedString(duration)).append("\n");
sb.append(" validFor: ").append(toIndentedString(validFor)).append("\n");
- sb.append(" baseType: ").append(toIndentedString(baseType)).append("\n");
- sb.append(" schemaLocation: ").append(toIndentedString(schemaLocation)).append("\n");
- sb.append(" type: ").append(toIndentedString(type)).append("\n");
+ sb.append(" _atBaseType: ").append(toIndentedString(baseType)).append("\n");
+ sb.append(" _atSchemaLocation: ").append(toIndentedString(schemaLocation)).append("\n");
+ sb.append(" _atType: ").append(toIndentedString(type)).append("\n");
sb.append("}");
return sb.toString();
}
diff --git a/src/main/java/org/etsi/osl/tmf/po622/model/ProductRefOrValue.java b/src/main/java/org/etsi/osl/tmf/pim637/model/ProductUpdate.java
similarity index 59%
rename from src/main/java/org/etsi/osl/tmf/po622/model/ProductRefOrValue.java
rename to src/main/java/org/etsi/osl/tmf/pim637/model/ProductUpdate.java
index c77a6ed7d9376834d228c4e10263436d31d12a96..aff9c7cb50fa722e19ef0dcd5dae6c05b1ad2023 100644
--- a/src/main/java/org/etsi/osl/tmf/po622/model/ProductRefOrValue.java
+++ b/src/main/java/org/etsi/osl/tmf/pim637/model/ProductUpdate.java
@@ -1,50 +1,32 @@
-/*-
- * ========================LICENSE_START=================================
- * org.etsi.osl.tmf.api
- * %%
- * Copyright (C) 2019 - 2021 openslice.io
- * %%
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * =========================LICENSE_END==================================
- */
-package org.etsi.osl.tmf.po622.model;
+package org.etsi.osl.tmf.pim637.model;
-import java.time.OffsetDateTime;
import java.util.ArrayList;
+import java.util.Date;
import java.util.List;
import java.util.Objects;
-
import com.fasterxml.jackson.annotation.JsonProperty;
+import org.etsi.osl.tmf.common.model.service.Characteristic;
import org.etsi.osl.tmf.common.model.service.ResourceRef;
import org.etsi.osl.tmf.common.model.service.ServiceRef;
+import org.etsi.osl.tmf.pcm620.model.ProductOfferingRef;
+import org.etsi.osl.tmf.pcm620.model.ProductSpecificationRef;
+import org.etsi.osl.tmf.po622.model.AgreementItemRef;
+import org.etsi.osl.tmf.po622.model.RelatedProductOrderItem;
import org.etsi.osl.tmf.prm669.model.RelatedParty;
import org.springframework.validation.annotation.Validated;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.Valid;
+import jakarta.validation.constraints.NotNull;
/**
- * A product to be created defined by value or existing defined by reference. The polymorphic attributes @type, @schemaLocation & @referredType are related to the product entity and not the RelatedProductRefOrValue class itself
+ * A product offering procured by a customer or other interested party playing a party role. A product is realized as one or more service(s) and / or resource(s). Skipped properties: id,href
*/
-@Schema(description = "A product to be created defined by value or existing defined by reference. The polymorphic attributes @type, @schemaLocation & @referredType are related to the product entity and not the RelatedProductRefOrValue class itself")
+@Schema(description = "A product offering procured by a customer or other interested party playing a party role. A product is realized as one or more service(s) and / or resource(s). Skipped properties: id,href")
@Validated
-@jakarta.annotation.Generated(value = "io.swagger.codegen.v3.generators.java.SpringCodegen", date = "2020-10-30T10:29:21.184964400+02:00[Europe/Athens]")
-public class ProductRefOrValue {
- @JsonProperty("id")
- private String id = null;
+@jakarta.annotation.Generated(value = "io.swagger.codegen.v3.generators.java.SpringCodegen", date = "2024-08-04T00:27:07.324017400+03:00[Europe/Athens]")
- @JsonProperty("href")
- private String href = null;
+public class ProductUpdate {
@JsonProperty("description")
private String description = null;
@@ -58,16 +40,16 @@ public class ProductRefOrValue {
private String name = null;
@JsonProperty("orderDate")
- private OffsetDateTime orderDate = null;
+ private Date orderDate = null;
@JsonProperty("productSerialNumber")
private String productSerialNumber = null;
@JsonProperty("startDate")
- private OffsetDateTime startDate = null;
+ private Date startDate = null;
@JsonProperty("terminationDate")
- private OffsetDateTime terminationDate = null;
+ private Date terminationDate = null;
@JsonProperty("agreement")
@Valid
@@ -126,56 +108,15 @@ public class ProductRefOrValue {
private ProductStatusType status = null;
@JsonProperty("@baseType")
- private String baseType = null;
+ private String _atBaseType = null;
@JsonProperty("@schemaLocation")
- private String schemaLocation = null;
+ private String _atSchemaLocation = null;
@JsonProperty("@type")
- private String type = null;
-
- @JsonProperty("@referredType")
- private String _atReferredType = null;
-
- public ProductRefOrValue id(String id) {
- this.id = id;
- return this;
- }
-
- /**
- * Unique identifier of the product
- * @return id
- **/
- @Schema(description = "Unique identifier of the product")
-
- public String getId() {
- return id;
- }
-
- public void setId(String id) {
- this.id = id;
- }
-
- public ProductRefOrValue href(String href) {
- this.href = href;
- return this;
- }
+ private String _atType = null;
- /**
- * Reference of the product
- * @return href
- **/
- @Schema(description = "Reference of the product")
-
- public String getHref() {
- return href;
- }
-
- public void setHref(String href) {
- this.href = href;
- }
-
- public ProductRefOrValue description(String description) {
+ public ProductUpdate description(String description) {
this.description = description;
return this;
}
@@ -183,9 +124,10 @@ public class ProductRefOrValue {
/**
* Is the description of the product. It could be copied from the description of the Product Offering.
* @return description
- **/
+ **/
@Schema(description = "Is the description of the product. It could be copied from the description of the Product Offering.")
-
+ @NotNull
+
public String getDescription() {
return description;
}
@@ -194,7 +136,7 @@ public class ProductRefOrValue {
this.description = description;
}
- public ProductRefOrValue isBundle(Boolean isBundle) {
+ public ProductUpdate isBundle(Boolean isBundle) {
this.isBundle = isBundle;
return this;
}
@@ -202,9 +144,10 @@ public class ProductRefOrValue {
/**
* If true, the product is a ProductBundle which is an instantiation of a BundledProductOffering. If false, the product is a ProductComponent which is an instantiation of a SimpleProductOffering.
* @return isBundle
- **/
+ **/
@Schema(description = "If true, the product is a ProductBundle which is an instantiation of a BundledProductOffering. If false, the product is a ProductComponent which is an instantiation of a SimpleProductOffering.")
-
+ @NotNull
+
public Boolean isIsBundle() {
return isBundle;
}
@@ -213,7 +156,7 @@ public class ProductRefOrValue {
this.isBundle = isBundle;
}
- public ProductRefOrValue isCustomerVisible(Boolean isCustomerVisible) {
+ public ProductUpdate isCustomerVisible(Boolean isCustomerVisible) {
this.isCustomerVisible = isCustomerVisible;
return this;
}
@@ -221,9 +164,10 @@ public class ProductRefOrValue {
/**
* If true, the product is visible by the customer.
* @return isCustomerVisible
- **/
+ **/
@Schema(description = "If true, the product is visible by the customer.")
-
+ @NotNull
+
public Boolean isIsCustomerVisible() {
return isCustomerVisible;
}
@@ -232,7 +176,7 @@ public class ProductRefOrValue {
this.isCustomerVisible = isCustomerVisible;
}
- public ProductRefOrValue name(String name) {
+ public ProductUpdate name(String name) {
this.name = name;
return this;
}
@@ -240,9 +184,10 @@ public class ProductRefOrValue {
/**
* Name of the product. It could be the same as the name of the product offering
* @return name
- **/
+ **/
@Schema(description = "Name of the product. It could be the same as the name of the product offering")
-
+ @NotNull
+
public String getName() {
return name;
}
@@ -251,7 +196,7 @@ public class ProductRefOrValue {
this.name = name;
}
- public ProductRefOrValue orderDate(OffsetDateTime orderDate) {
+ public ProductUpdate orderDate(Date orderDate) {
this.orderDate = orderDate;
return this;
}
@@ -259,19 +204,20 @@ public class ProductRefOrValue {
/**
* Is the date when the product was ordered
* @return orderDate
- **/
+ **/
@Schema(description = "Is the date when the product was ordered")
-
+ @NotNull
+
@Valid
- public OffsetDateTime getOrderDate() {
+ public Date getOrderDate() {
return orderDate;
}
- public void setOrderDate(OffsetDateTime orderDate) {
+ public void setOrderDate(Date orderDate) {
this.orderDate = orderDate;
}
- public ProductRefOrValue productSerialNumber(String productSerialNumber) {
+ public ProductUpdate productSerialNumber(String productSerialNumber) {
this.productSerialNumber = productSerialNumber;
return this;
}
@@ -279,9 +225,10 @@ public class ProductRefOrValue {
/**
* Is the serial number for the product. This is typically applicable to tangible products e.g. Broadband Router.
* @return productSerialNumber
- **/
+ **/
@Schema(description = "Is the serial number for the product. This is typically applicable to tangible products e.g. Broadband Router.")
-
+ @NotNull
+
public String getProductSerialNumber() {
return productSerialNumber;
}
@@ -290,7 +237,7 @@ public class ProductRefOrValue {
this.productSerialNumber = productSerialNumber;
}
- public ProductRefOrValue startDate(OffsetDateTime startDate) {
+ public ProductUpdate startDate(Date startDate) {
this.startDate = startDate;
return this;
}
@@ -298,19 +245,20 @@ public class ProductRefOrValue {
/**
* Is the date from which the product starts
* @return startDate
- **/
+ **/
@Schema(description = "Is the date from which the product starts")
-
+ @NotNull
+
@Valid
- public OffsetDateTime getStartDate() {
+ public Date getStartDate() {
return startDate;
}
- public void setStartDate(OffsetDateTime startDate) {
+ public void setStartDate(Date startDate) {
this.startDate = startDate;
}
- public ProductRefOrValue terminationDate(OffsetDateTime terminationDate) {
+ public ProductUpdate terminationDate(Date terminationDate) {
this.terminationDate = terminationDate;
return this;
}
@@ -318,26 +266,27 @@ public class ProductRefOrValue {
/**
* Is the date when the product was terminated
* @return terminationDate
- **/
+ **/
@Schema(description = "Is the date when the product was terminated")
-
+ @NotNull
+
@Valid
- public OffsetDateTime getTerminationDate() {
+ public Date getTerminationDate() {
return terminationDate;
}
- public void setTerminationDate(OffsetDateTime terminationDate) {
+ public void setTerminationDate(Date terminationDate) {
this.terminationDate = terminationDate;
}
- public ProductRefOrValue agreement(List agreement) {
+ public ProductUpdate agreement(List agreement) {
this.agreement = agreement;
return this;
}
- public ProductRefOrValue addAgreementItem(AgreementItemRef agreementItem) {
+ public ProductUpdate addAgreementItem(AgreementItemRef agreementItem) {
if (this.agreement == null) {
- this.agreement = new ArrayList<>();
+ this.agreement = new ArrayList();
}
this.agreement.add(agreementItem);
return this;
@@ -346,9 +295,10 @@ public class ProductRefOrValue {
/**
* Get agreement
* @return agreement
- **/
+ **/
@Schema(description = "")
- @Valid
+ @NotNull
+ @Valid
public List getAgreement() {
return agreement;
}
@@ -357,7 +307,7 @@ public class ProductRefOrValue {
this.agreement = agreement;
}
- public ProductRefOrValue billingAccount(BillingAccountRef billingAccount) {
+ public ProductUpdate billingAccount(BillingAccountRef billingAccount) {
this.billingAccount = billingAccount;
return this;
}
@@ -365,9 +315,10 @@ public class ProductRefOrValue {
/**
* Get billingAccount
* @return billingAccount
- **/
+ **/
@Schema(description = "")
-
+ @NotNull
+
@Valid
public BillingAccountRef getBillingAccount() {
return billingAccount;
@@ -377,14 +328,14 @@ public class ProductRefOrValue {
this.billingAccount = billingAccount;
}
- public ProductRefOrValue place(List place) {
+ public ProductUpdate place(List place) {
this.place = place;
return this;
}
- public ProductRefOrValue addPlaceItem(RelatedPlaceRefOrValue placeItem) {
+ public ProductUpdate addPlaceItem(RelatedPlaceRefOrValue placeItem) {
if (this.place == null) {
- this.place = new ArrayList<>();
+ this.place = new ArrayList();
}
this.place.add(placeItem);
return this;
@@ -393,9 +344,10 @@ public class ProductRefOrValue {
/**
* Get place
* @return place
- **/
+ **/
@Schema(description = "")
- @Valid
+ @NotNull
+ @Valid
public List getPlace() {
return place;
}
@@ -404,14 +356,14 @@ public class ProductRefOrValue {
this.place = place;
}
- public ProductRefOrValue product(List product) {
+ public ProductUpdate product(List product) {
this.product = product;
return this;
}
- public ProductRefOrValue addProductItem(ProductRefOrValue productItem) {
+ public ProductUpdate addProductItem(ProductRefOrValue productItem) {
if (this.product == null) {
- this.product = new ArrayList<>();
+ this.product = new ArrayList();
}
this.product.add(productItem);
return this;
@@ -420,9 +372,10 @@ public class ProductRefOrValue {
/**
* Get product
* @return product
- **/
+ **/
@Schema(description = "")
- @Valid
+ @NotNull
+ @Valid
public List getProduct() {
return product;
}
@@ -431,14 +384,14 @@ public class ProductRefOrValue {
this.product = product;
}
- public ProductRefOrValue productCharacteristic(List productCharacteristic) {
+ public ProductUpdate productCharacteristic(List productCharacteristic) {
this.productCharacteristic = productCharacteristic;
return this;
}
- public ProductRefOrValue addProductCharacteristicItem(Characteristic productCharacteristicItem) {
+ public ProductUpdate addProductCharacteristicItem(Characteristic productCharacteristicItem) {
if (this.productCharacteristic == null) {
- this.productCharacteristic = new ArrayList<>();
+ this.productCharacteristic = new ArrayList();
}
this.productCharacteristic.add(productCharacteristicItem);
return this;
@@ -447,9 +400,10 @@ public class ProductRefOrValue {
/**
* Get productCharacteristic
* @return productCharacteristic
- **/
+ **/
@Schema(description = "")
- @Valid
+ @NotNull
+ @Valid
public List getProductCharacteristic() {
return productCharacteristic;
}
@@ -458,7 +412,7 @@ public class ProductRefOrValue {
this.productCharacteristic = productCharacteristic;
}
- public ProductRefOrValue productOffering(ProductOfferingRef productOffering) {
+ public ProductUpdate productOffering(ProductOfferingRef productOffering) {
this.productOffering = productOffering;
return this;
}
@@ -466,9 +420,10 @@ public class ProductRefOrValue {
/**
* Get productOffering
* @return productOffering
- **/
+ **/
@Schema(description = "")
-
+ @NotNull
+
@Valid
public ProductOfferingRef getProductOffering() {
return productOffering;
@@ -478,14 +433,14 @@ public class ProductRefOrValue {
this.productOffering = productOffering;
}
- public ProductRefOrValue productOrderItem(List productOrderItem) {
+ public ProductUpdate productOrderItem(List productOrderItem) {
this.productOrderItem = productOrderItem;
return this;
}
- public ProductRefOrValue addProductOrderItemItem(RelatedProductOrderItem productOrderItemItem) {
+ public ProductUpdate addProductOrderItemItem(RelatedProductOrderItem productOrderItemItem) {
if (this.productOrderItem == null) {
- this.productOrderItem = new ArrayList<>();
+ this.productOrderItem = new ArrayList();
}
this.productOrderItem.add(productOrderItemItem);
return this;
@@ -494,9 +449,10 @@ public class ProductRefOrValue {
/**
* Get productOrderItem
* @return productOrderItem
- **/
+ **/
@Schema(description = "")
- @Valid
+ @NotNull
+ @Valid
public List getProductOrderItem() {
return productOrderItem;
}
@@ -505,14 +461,14 @@ public class ProductRefOrValue {
this.productOrderItem = productOrderItem;
}
- public ProductRefOrValue productPrice(List productPrice) {
+ public ProductUpdate productPrice(List productPrice) {
this.productPrice = productPrice;
return this;
}
- public ProductRefOrValue addProductPriceItem(ProductPrice productPriceItem) {
+ public ProductUpdate addProductPriceItem(ProductPrice productPriceItem) {
if (this.productPrice == null) {
- this.productPrice = new ArrayList<>();
+ this.productPrice = new ArrayList();
}
this.productPrice.add(productPriceItem);
return this;
@@ -521,9 +477,10 @@ public class ProductRefOrValue {
/**
* Get productPrice
* @return productPrice
- **/
+ **/
@Schema(description = "")
- @Valid
+ @NotNull
+ @Valid
public List getProductPrice() {
return productPrice;
}
@@ -532,14 +489,14 @@ public class ProductRefOrValue {
this.productPrice = productPrice;
}
- public ProductRefOrValue productRelationship(List productRelationship) {
+ public ProductUpdate productRelationship(List productRelationship) {
this.productRelationship = productRelationship;
return this;
}
- public ProductRefOrValue addProductRelationshipItem(ProductRelationship productRelationshipItem) {
+ public ProductUpdate addProductRelationshipItem(ProductRelationship productRelationshipItem) {
if (this.productRelationship == null) {
- this.productRelationship = new ArrayList<>();
+ this.productRelationship = new ArrayList();
}
this.productRelationship.add(productRelationshipItem);
return this;
@@ -548,9 +505,10 @@ public class ProductRefOrValue {
/**
* Get productRelationship
* @return productRelationship
- **/
+ **/
@Schema(description = "")
- @Valid
+ @NotNull
+ @Valid
public List getProductRelationship() {
return productRelationship;
}
@@ -559,7 +517,7 @@ public class ProductRefOrValue {
this.productRelationship = productRelationship;
}
- public ProductRefOrValue productSpecification(ProductSpecificationRef productSpecification) {
+ public ProductUpdate productSpecification(ProductSpecificationRef productSpecification) {
this.productSpecification = productSpecification;
return this;
}
@@ -567,9 +525,10 @@ public class ProductRefOrValue {
/**
* Get productSpecification
* @return productSpecification
- **/
+ **/
@Schema(description = "")
-
+ @NotNull
+
@Valid
public ProductSpecificationRef getProductSpecification() {
return productSpecification;
@@ -579,14 +538,14 @@ public class ProductRefOrValue {
this.productSpecification = productSpecification;
}
- public ProductRefOrValue productTerm(List productTerm) {
+ public ProductUpdate productTerm(List productTerm) {
this.productTerm = productTerm;
return this;
}
- public ProductRefOrValue addProductTermItem(ProductTerm productTermItem) {
+ public ProductUpdate addProductTermItem(ProductTerm productTermItem) {
if (this.productTerm == null) {
- this.productTerm = new ArrayList<>();
+ this.productTerm = new ArrayList();
}
this.productTerm.add(productTermItem);
return this;
@@ -595,9 +554,10 @@ public class ProductRefOrValue {
/**
* Get productTerm
* @return productTerm
- **/
+ **/
@Schema(description = "")
- @Valid
+ @NotNull
+ @Valid
public List getProductTerm() {
return productTerm;
}
@@ -606,14 +566,14 @@ public class ProductRefOrValue {
this.productTerm = productTerm;
}
- public ProductRefOrValue realizingResource(List realizingResource) {
+ public ProductUpdate realizingResource(List realizingResource) {
this.realizingResource = realizingResource;
return this;
}
- public ProductRefOrValue addRealizingResourceItem(ResourceRef realizingResourceItem) {
+ public ProductUpdate addRealizingResourceItem(ResourceRef realizingResourceItem) {
if (this.realizingResource == null) {
- this.realizingResource = new ArrayList<>();
+ this.realizingResource = new ArrayList();
}
this.realizingResource.add(realizingResourceItem);
return this;
@@ -622,9 +582,10 @@ public class ProductRefOrValue {
/**
* Get realizingResource
* @return realizingResource
- **/
+ **/
@Schema(description = "")
- @Valid
+ @NotNull
+ @Valid
public List getRealizingResource() {
return realizingResource;
}
@@ -633,14 +594,14 @@ public class ProductRefOrValue {
this.realizingResource = realizingResource;
}
- public ProductRefOrValue realizingService(List realizingService) {
+ public ProductUpdate realizingService(List realizingService) {
this.realizingService = realizingService;
return this;
}
- public ProductRefOrValue addRealizingServiceItem(ServiceRef realizingServiceItem) {
+ public ProductUpdate addRealizingServiceItem(ServiceRef realizingServiceItem) {
if (this.realizingService == null) {
- this.realizingService = new ArrayList<>();
+ this.realizingService = new ArrayList();
}
this.realizingService.add(realizingServiceItem);
return this;
@@ -649,9 +610,10 @@ public class ProductRefOrValue {
/**
* Get realizingService
* @return realizingService
- **/
+ **/
@Schema(description = "")
- @Valid
+ @NotNull
+ @Valid
public List getRealizingService() {
return realizingService;
}
@@ -660,14 +622,14 @@ public class ProductRefOrValue {
this.realizingService = realizingService;
}
- public ProductRefOrValue relatedParty(List relatedParty) {
+ public ProductUpdate relatedParty(List relatedParty) {
this.relatedParty = relatedParty;
return this;
}
- public ProductRefOrValue addRelatedPartyItem(RelatedParty relatedPartyItem) {
+ public ProductUpdate addRelatedPartyItem(RelatedParty relatedPartyItem) {
if (this.relatedParty == null) {
- this.relatedParty = new ArrayList<>();
+ this.relatedParty = new ArrayList();
}
this.relatedParty.add(relatedPartyItem);
return this;
@@ -676,9 +638,10 @@ public class ProductRefOrValue {
/**
* Get relatedParty
* @return relatedParty
- **/
+ **/
@Schema(description = "")
- @Valid
+ @NotNull
+ @Valid
public List getRelatedParty() {
return relatedParty;
}
@@ -687,7 +650,7 @@ public class ProductRefOrValue {
this.relatedParty = relatedParty;
}
- public ProductRefOrValue status(ProductStatusType status) {
+ public ProductUpdate status(ProductStatusType status) {
this.status = status;
return this;
}
@@ -695,9 +658,10 @@ public class ProductRefOrValue {
/**
* Get status
* @return status
- **/
+ **/
@Schema(description = "")
-
+ @NotNull
+
@Valid
public ProductStatusType getStatus() {
return status;
@@ -707,80 +671,64 @@ public class ProductRefOrValue {
this.status = status;
}
- public ProductRefOrValue baseType(String baseType) {
- this.baseType = baseType;
+ public ProductUpdate _atBaseType(String _atBaseType) {
+ this._atBaseType = _atBaseType;
return this;
}
/**
* When sub-classing, this defines the super-class
- * @return baseType
- **/
+ * @return _atBaseType
+ **/
@Schema(description = "When sub-classing, this defines the super-class")
-
+ @NotNull
+
public String getAtBaseType() {
- return baseType;
+ return _atBaseType;
}
- public void setAtBaseType(String baseType) {
- this.baseType = baseType;
+ public void setAtBaseType(String _atBaseType) {
+ this._atBaseType = _atBaseType;
}
- public ProductRefOrValue schemaLocation(String schemaLocation) {
- this.schemaLocation = schemaLocation;
+ public ProductUpdate _atSchemaLocation(String _atSchemaLocation) {
+ this._atSchemaLocation = _atSchemaLocation;
return this;
}
/**
* A URI to a JSON-Schema file that defines additional attributes and relationships
- * @return schemaLocation
- **/
+ * @return _atSchemaLocation
+ **/
@Schema(description = "A URI to a JSON-Schema file that defines additional attributes and relationships")
-
+ @NotNull
+
public String getAtSchemaLocation() {
- return schemaLocation;
+ return _atSchemaLocation;
}
- public void setAtSchemaLocation(String schemaLocation) {
- this.schemaLocation = schemaLocation;
+ public void setAtSchemaLocation(String _atSchemaLocation) {
+ this._atSchemaLocation = _atSchemaLocation;
}
- public ProductRefOrValue type(String type) {
- this.type = type;
+ public ProductUpdate _atType(String _atType) {
+ this._atType = _atType;
return this;
}
/**
* When sub-classing, this defines the sub-class entity name
- * @return type
- **/
+ * @return _atType
+ **/
@Schema(description = "When sub-classing, this defines the sub-class entity name")
-
- public String getAtType() {
- return type;
- }
+ @NotNull
- public void setAtType(String type) {
- this.type = type;
- }
-
- public ProductRefOrValue _atReferredType(String _atReferredType) {
- this._atReferredType = _atReferredType;
- return this;
- }
-
- /**
- * The actual type of the target instance when needed for disambiguation.
- * @return _atReferredType
- **/
- @Schema(description = "The actual type of the target instance when needed for disambiguation.")
-
- public String getAtReferredType() {
- return _atReferredType;
+ public String getAtType() {
+ return _atType;
}
- public void setAtReferredType(String _atReferredType) {
- this._atReferredType = _atReferredType;
+ public void setAtType(String _atType) {
+ this._atType = _atType;
}
@@ -792,50 +740,45 @@ public class ProductRefOrValue {
if (o == null || getClass() != o.getClass()) {
return false;
}
- ProductRefOrValue productRefOrValue = (ProductRefOrValue) o;
- return Objects.equals(this.id, productRefOrValue.id) &&
- Objects.equals(this.href, productRefOrValue.href) &&
- Objects.equals(this.description, productRefOrValue.description) &&
- Objects.equals(this.isBundle, productRefOrValue.isBundle) &&
- Objects.equals(this.isCustomerVisible, productRefOrValue.isCustomerVisible) &&
- Objects.equals(this.name, productRefOrValue.name) &&
- Objects.equals(this.orderDate, productRefOrValue.orderDate) &&
- Objects.equals(this.productSerialNumber, productRefOrValue.productSerialNumber) &&
- Objects.equals(this.startDate, productRefOrValue.startDate) &&
- Objects.equals(this.terminationDate, productRefOrValue.terminationDate) &&
- Objects.equals(this.agreement, productRefOrValue.agreement) &&
- Objects.equals(this.billingAccount, productRefOrValue.billingAccount) &&
- Objects.equals(this.place, productRefOrValue.place) &&
- Objects.equals(this.product, productRefOrValue.product) &&
- Objects.equals(this.productCharacteristic, productRefOrValue.productCharacteristic) &&
- Objects.equals(this.productOffering, productRefOrValue.productOffering) &&
- Objects.equals(this.productOrderItem, productRefOrValue.productOrderItem) &&
- Objects.equals(this.productPrice, productRefOrValue.productPrice) &&
- Objects.equals(this.productRelationship, productRefOrValue.productRelationship) &&
- Objects.equals(this.productSpecification, productRefOrValue.productSpecification) &&
- Objects.equals(this.productTerm, productRefOrValue.productTerm) &&
- Objects.equals(this.realizingResource, productRefOrValue.realizingResource) &&
- Objects.equals(this.realizingService, productRefOrValue.realizingService) &&
- Objects.equals(this.relatedParty, productRefOrValue.relatedParty) &&
- Objects.equals(this.status, productRefOrValue.status) &&
- Objects.equals(this.baseType, productRefOrValue.baseType) &&
- Objects.equals(this.schemaLocation, productRefOrValue.schemaLocation) &&
- Objects.equals(this.type, productRefOrValue.type) &&
- Objects.equals(this._atReferredType, productRefOrValue._atReferredType);
+ ProductUpdate productUpdate = (ProductUpdate) o;
+ return Objects.equals(this.description, productUpdate.description) &&
+ Objects.equals(this.isBundle, productUpdate.isBundle) &&
+ Objects.equals(this.isCustomerVisible, productUpdate.isCustomerVisible) &&
+ Objects.equals(this.name, productUpdate.name) &&
+ Objects.equals(this.orderDate, productUpdate.orderDate) &&
+ Objects.equals(this.productSerialNumber, productUpdate.productSerialNumber) &&
+ Objects.equals(this.startDate, productUpdate.startDate) &&
+ Objects.equals(this.terminationDate, productUpdate.terminationDate) &&
+ Objects.equals(this.agreement, productUpdate.agreement) &&
+ Objects.equals(this.billingAccount, productUpdate.billingAccount) &&
+ Objects.equals(this.place, productUpdate.place) &&
+ Objects.equals(this.product, productUpdate.product) &&
+ Objects.equals(this.productCharacteristic, productUpdate.productCharacteristic) &&
+ Objects.equals(this.productOffering, productUpdate.productOffering) &&
+ Objects.equals(this.productOrderItem, productUpdate.productOrderItem) &&
+ Objects.equals(this.productPrice, productUpdate.productPrice) &&
+ Objects.equals(this.productRelationship, productUpdate.productRelationship) &&
+ Objects.equals(this.productSpecification, productUpdate.productSpecification) &&
+ Objects.equals(this.productTerm, productUpdate.productTerm) &&
+ Objects.equals(this.realizingResource, productUpdate.realizingResource) &&
+ Objects.equals(this.realizingService, productUpdate.realizingService) &&
+ Objects.equals(this.relatedParty, productUpdate.relatedParty) &&
+ Objects.equals(this.status, productUpdate.status) &&
+ Objects.equals(this._atBaseType, productUpdate._atBaseType) &&
+ Objects.equals(this._atSchemaLocation, productUpdate._atSchemaLocation) &&
+ Objects.equals(this._atType, productUpdate._atType);
}
@Override
public int hashCode() {
- return Objects.hash(id, href, description, isBundle, isCustomerVisible, name, orderDate, productSerialNumber, startDate, terminationDate, agreement, billingAccount, place, product, productCharacteristic, productOffering, productOrderItem, productPrice, productRelationship, productSpecification, productTerm, realizingResource, realizingService, relatedParty, status, baseType, schemaLocation, type, _atReferredType);
+ return Objects.hash(description, isBundle, isCustomerVisible, name, orderDate, productSerialNumber, startDate, terminationDate, agreement, billingAccount, place, product, productCharacteristic, productOffering, productOrderItem, productPrice, productRelationship, productSpecification, productTerm, realizingResource, realizingService, relatedParty, status, _atBaseType, _atSchemaLocation, _atType);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
- sb.append("class ProductRefOrValue {\n");
+ sb.append("class ProductUpdate {\n");
- sb.append(" id: ").append(toIndentedString(id)).append("\n");
- sb.append(" href: ").append(toIndentedString(href)).append("\n");
sb.append(" description: ").append(toIndentedString(description)).append("\n");
sb.append(" isBundle: ").append(toIndentedString(isBundle)).append("\n");
sb.append(" isCustomerVisible: ").append(toIndentedString(isCustomerVisible)).append("\n");
@@ -859,10 +802,9 @@ public class ProductRefOrValue {
sb.append(" realizingService: ").append(toIndentedString(realizingService)).append("\n");
sb.append(" relatedParty: ").append(toIndentedString(relatedParty)).append("\n");
sb.append(" status: ").append(toIndentedString(status)).append("\n");
- sb.append(" baseType: ").append(toIndentedString(baseType)).append("\n");
- sb.append(" schemaLocation: ").append(toIndentedString(schemaLocation)).append("\n");
- sb.append(" type: ").append(toIndentedString(type)).append("\n");
- sb.append(" _atReferredType: ").append(toIndentedString(_atReferredType)).append("\n");
+ sb.append(" _atBaseType: ").append(toIndentedString(_atBaseType)).append("\n");
+ sb.append(" _atSchemaLocation: ").append(toIndentedString(_atSchemaLocation)).append("\n");
+ sb.append(" _atType: ").append(toIndentedString(_atType)).append("\n");
sb.append("}");
return sb.toString();
}
diff --git a/src/main/java/org/etsi/osl/tmf/po622/model/RelatedPlaceRefOrValue.java b/src/main/java/org/etsi/osl/tmf/pim637/model/RelatedPlaceRefOrValue.java
similarity index 60%
rename from src/main/java/org/etsi/osl/tmf/po622/model/RelatedPlaceRefOrValue.java
rename to src/main/java/org/etsi/osl/tmf/pim637/model/RelatedPlaceRefOrValue.java
index 36ef6140ce63b69f063dac3326baf0fc4e330319..ccdae2577800303eb0ab94568502f92ce399e113 100644
--- a/src/main/java/org/etsi/osl/tmf/po622/model/RelatedPlaceRefOrValue.java
+++ b/src/main/java/org/etsi/osl/tmf/pim637/model/RelatedPlaceRefOrValue.java
@@ -1,31 +1,11 @@
-/*-
- * ========================LICENSE_START=================================
- * org.etsi.osl.tmf.api
- * %%
- * Copyright (C) 2019 - 2021 openslice.io
- * %%
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * =========================LICENSE_END==================================
- */
-package org.etsi.osl.tmf.po622.model;
+package org.etsi.osl.tmf.pim637.model;
import java.util.Objects;
-
import com.fasterxml.jackson.annotation.JsonProperty;
-
+import org.etsi.osl.tmf.common.model.BaseRootNamedEntity;
import org.springframework.validation.annotation.Validated;
-
import io.swagger.v3.oas.annotations.media.Schema;
+import jakarta.persistence.Entity;
import jakarta.validation.constraints.NotNull;
/**
@@ -33,29 +13,17 @@ import jakarta.validation.constraints.NotNull;
*/
@Schema(description = "Related Entity reference. A related place defines a place described by reference or by value linked to a specific entity. The polymorphic attributes @type, @schemaLocation & @referredType are related to the place entity and not the RelatedPlaceRefOrValue class itself")
@Validated
-@jakarta.annotation.Generated(value = "io.swagger.codegen.v3.generators.java.SpringCodegen", date = "2020-10-30T10:29:21.184964400+02:00[Europe/Athens]")
-public class RelatedPlaceRefOrValue {
+@jakarta.annotation.Generated(value = "io.swagger.codegen.v3.generators.java.SpringCodegen", date = "2024-08-04T00:27:07.324017400+03:00[Europe/Athens]")
+
+@Entity(name = "RelPlaceROrV637")
+public class RelatedPlaceRefOrValue extends BaseRootNamedEntity {
@JsonProperty("id")
private String id = null;
- @JsonProperty("href")
- private String href = null;
-
- @JsonProperty("name")
- private String name = null;
@JsonProperty("role")
private String role = null;
- @JsonProperty("@baseType")
- private String baseType = null;
-
- @JsonProperty("@schemaLocation")
- private String schemaLocation = null;
-
- @JsonProperty("@type")
- private String type = null;
-
@JsonProperty("@referredType")
private String _atReferredType = null;
@@ -67,9 +35,10 @@ public class RelatedPlaceRefOrValue {
/**
* Unique identifier of the place
* @return id
- **/
+ **/
@Schema(description = "Unique identifier of the place")
-
+ @NotNull
+
public String getId() {
return id;
}
@@ -86,9 +55,10 @@ public class RelatedPlaceRefOrValue {
/**
* Unique reference of the place
* @return href
- **/
+ **/
@Schema(description = "Unique reference of the place")
-
+ @NotNull
+
public String getHref() {
return href;
}
@@ -105,9 +75,10 @@ public class RelatedPlaceRefOrValue {
/**
* A user-friendly name for the place, such as [Paris Store], [London Store], [Main Home]
* @return name
- **/
+ **/
@Schema(description = "A user-friendly name for the place, such as [Paris Store], [London Store], [Main Home]")
-
+ @NotNull
+
public String getName() {
return name;
}
@@ -124,8 +95,8 @@ public class RelatedPlaceRefOrValue {
/**
* Get role
* @return role
- **/
- @Schema(description = "")
+ **/
+ @Schema(required = true, description = "")
@NotNull
public String getRole() {
@@ -136,74 +107,15 @@ public class RelatedPlaceRefOrValue {
this.role = role;
}
- public RelatedPlaceRefOrValue baseType(String baseType) {
- this.baseType = baseType;
- return this;
- }
-
- /**
- * When sub-classing, this defines the super-class
- * @return baseType
- **/
- @Schema(description = "When sub-classing, this defines the super-class")
-
- public String getAtBaseType() {
- return baseType;
- }
-
- public void setAtBaseType(String baseType) {
- this.baseType = baseType;
- }
-
- public RelatedPlaceRefOrValue schemaLocation(String schemaLocation) {
- this.schemaLocation = schemaLocation;
- return this;
- }
-
- /**
- * A URI to a JSON-Schema file that defines additional attributes and relationships
- * @return schemaLocation
- **/
- @Schema(description = "A URI to a JSON-Schema file that defines additional attributes and relationships")
- public String getAtSchemaLocation() {
- return schemaLocation;
- }
-
- public void setAtSchemaLocation(String schemaLocation) {
- this.schemaLocation = schemaLocation;
- }
-
- public RelatedPlaceRefOrValue type(String type) {
- this.type = type;
- return this;
- }
-
- /**
- * When sub-classing, this defines the sub-class entity name
- * @return type
- **/
- @Schema(description = "When sub-classing, this defines the sub-class entity name")
-
- public String getAtType() {
- return type;
- }
-
- public void setAtType(String type) {
- this.type = type;
- }
-
- public RelatedPlaceRefOrValue _atReferredType(String _atReferredType) {
- this._atReferredType = _atReferredType;
- return this;
- }
/**
* The actual type of the target instance when needed for disambiguation.
* @return _atReferredType
- **/
+ **/
@Schema(description = "The actual type of the target instance when needed for disambiguation.")
-
+ @NotNull
+
public String getAtReferredType() {
return _atReferredType;
}
@@ -246,9 +158,9 @@ public class RelatedPlaceRefOrValue {
sb.append(" href: ").append(toIndentedString(href)).append("\n");
sb.append(" name: ").append(toIndentedString(name)).append("\n");
sb.append(" role: ").append(toIndentedString(role)).append("\n");
- sb.append(" baseType: ").append(toIndentedString(baseType)).append("\n");
- sb.append(" schemaLocation: ").append(toIndentedString(schemaLocation)).append("\n");
- sb.append(" type: ").append(toIndentedString(type)).append("\n");
+ sb.append(" _atBaseType: ").append(toIndentedString(baseType)).append("\n");
+ sb.append(" _atSchemaLocation: ").append(toIndentedString(schemaLocation)).append("\n");
+ sb.append(" _atType: ").append(toIndentedString(type)).append("\n");
sb.append(" _atReferredType: ").append(toIndentedString(_atReferredType)).append("\n");
sb.append("}");
return sb.toString();
diff --git a/src/main/java/org/etsi/osl/tmf/pim637/model/TargetProductSchema.java b/src/main/java/org/etsi/osl/tmf/pim637/model/TargetProductSchema.java
new file mode 100644
index 0000000000000000000000000000000000000000..c0659e59482c6bc65814294b46cae1aa99d396e6
--- /dev/null
+++ b/src/main/java/org/etsi/osl/tmf/pim637/model/TargetProductSchema.java
@@ -0,0 +1,129 @@
+package org.etsi.osl.tmf.pim637.model;
+
+import java.util.Objects;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import org.springframework.validation.annotation.Validated;
+import io.swagger.v3.oas.annotations.media.Schema;
+import jakarta.validation.constraints.NotNull;
+
+/**
+ * The reference object to the schema and type of target product which is described by product specification
+ */
+@Schema(description = "The reference object to the schema and type of target product which is described by product specification")
+@Validated
+@jakarta.annotation.Generated(value = "io.swagger.codegen.v3.generators.java.SpringCodegen", date = "2024-08-04T00:27:07.324017400+03:00[Europe/Athens]")
+
+
+public class TargetProductSchema {
+ @JsonProperty("@baseType")
+ private String _atBaseType = null;
+
+ @JsonProperty("@schemaLocation")
+ private String _atSchemaLocation = null;
+
+ @JsonProperty("@type")
+ private String _atType = null;
+
+ public TargetProductSchema _atBaseType(String _atBaseType) {
+ this._atBaseType = _atBaseType;
+ return this;
+ }
+
+ /**
+ * When sub-classing, this defines the super-class
+ * @return _atBaseType
+ **/
+ @Schema(description = "When sub-classing, this defines the super-class")
+ @NotNull
+
+ public String getAtBaseType() {
+ return _atBaseType;
+ }
+
+ public void setAtBaseType(String _atBaseType) {
+ this._atBaseType = _atBaseType;
+ }
+
+ public TargetProductSchema _atSchemaLocation(String _atSchemaLocation) {
+ this._atSchemaLocation = _atSchemaLocation;
+ return this;
+ }
+
+ /**
+ * This field provides a link to the schema describing the target product
+ * @return _atSchemaLocation
+ **/
+ @Schema(required = true, description = "This field provides a link to the schema describing the target product")
+ @NotNull
+
+ public String getAtSchemaLocation() {
+ return _atSchemaLocation;
+ }
+
+ public void setAtSchemaLocation(String _atSchemaLocation) {
+ this._atSchemaLocation = _atSchemaLocation;
+ }
+
+ public TargetProductSchema _atType(String _atType) {
+ this._atType = _atType;
+ return this;
+ }
+
+ /**
+ * Class type of the target product
+ * @return _atType
+ **/
+ @Schema(required = true, description = "Class type of the target product")
+ @NotNull
+
+ public String getAtType() {
+ return _atType;
+ }
+
+ public void setAtType(String _atType) {
+ this._atType = _atType;
+ }
+
+
+ @Override
+ public boolean equals(java.lang.Object o) {
+ if (this == o) {
+ return true;
+ }
+ if (o == null || getClass() != o.getClass()) {
+ return false;
+ }
+ TargetProductSchema targetProductSchema = (TargetProductSchema) o;
+ return Objects.equals(this._atBaseType, targetProductSchema._atBaseType) &&
+ Objects.equals(this._atSchemaLocation, targetProductSchema._atSchemaLocation) &&
+ Objects.equals(this._atType, targetProductSchema._atType);
+ }
+
+ @Override
+ public int hashCode() {
+ return Objects.hash(_atBaseType, _atSchemaLocation, _atType);
+ }
+
+ @Override
+ public String toString() {
+ StringBuilder sb = new StringBuilder();
+ sb.append("class TargetProductSchema {\n");
+
+ sb.append(" _atBaseType: ").append(toIndentedString(_atBaseType)).append("\n");
+ sb.append(" _atSchemaLocation: ").append(toIndentedString(_atSchemaLocation)).append("\n");
+ sb.append(" _atType: ").append(toIndentedString(_atType)).append("\n");
+ sb.append("}");
+ return sb.toString();
+ }
+
+ /**
+ * Convert the given object to string with each line indented by 4 spaces
+ * (except the first line).
+ */
+ private String toIndentedString(java.lang.Object o) {
+ if (o == null) {
+ return "null";
+ }
+ return o.toString().replace("\n", "\n ");
+ }
+}
diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/AddressableMVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/AddressableMVO.java
new file mode 100644
index 0000000000000000000000000000000000000000..a4608fb12ac519993e45620e69bc7de33edd04ec
--- /dev/null
+++ b/src/main/java/org/etsi/osl/tmf/pm628/model/AddressableMVO.java
@@ -0,0 +1,78 @@
+package org.etsi.osl.tmf.pm628.model;
+
+import com.fasterxml.jackson.annotation.JsonProperty;
+import com.fasterxml.jackson.annotation.JsonTypeName;
+import io.swagger.v3.oas.annotations.media.Schema;
+
+import javax.annotation.Generated;
+import java.util.Objects;
+
+/**
+ * Base schema for addressable entities
+ */
+
+@Schema(name = "Addressable_MVO", description = "Base schema for addressable entities")
+@JsonTypeName("Addressable_MVO")
+@Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-05-15T07:30:16.936523289Z[Etc/UTC]", comments = "Generator version: 7.6.0-SNAPSHOT")
+public class AddressableMVO {
+
+ private String id;
+
+ public AddressableMVO id(String id) {
+ this.id = id;
+ return this;
+ }
+
+ /**
+ * unique identifier
+ * @return id
+ */
+
+ @Schema(name = "id", description = "unique identifier", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
+ @JsonProperty("id")
+ public String getId() {
+ return id;
+ }
+
+ public void setId(String id) {
+ this.id = id;
+ }
+
+ @Override
+ public boolean equals(Object o) {
+ if (this == o) {
+ return true;
+ }
+ if (o == null || getClass() != o.getClass()) {
+ return false;
+ }
+ AddressableMVO addressableMVO = (AddressableMVO) o;
+ return Objects.equals(this.id, addressableMVO.id);
+ }
+
+ @Override
+ public int hashCode() {
+ return Objects.hash(id);
+ }
+
+ @Override
+ public String toString() {
+ StringBuilder sb = new StringBuilder();
+ sb.append("class AddressableMVO {\n");
+ sb.append(" id: ").append(toIndentedString(id)).append("\n");
+ sb.append("}");
+ return sb.toString();
+ }
+
+ /**
+ * Convert the given object to string with each line indented by 4 spaces
+ * (except the first line).
+ */
+ private String toIndentedString(Object o) {
+ if (o == null) {
+ return "null";
+ }
+ return o.toString().replace("\n", "\n ");
+ }
+}
+
diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/AdministrativeState.java b/src/main/java/org/etsi/osl/tmf/pm628/model/AdministrativeState.java
new file mode 100644
index 0000000000000000000000000000000000000000..7881c0ca95b983a11fd104896c95fe081c0b0a6d
--- /dev/null
+++ b/src/main/java/org/etsi/osl/tmf/pm628/model/AdministrativeState.java
@@ -0,0 +1,45 @@
+package org.etsi.osl.tmf.pm628.model;
+
+import com.fasterxml.jackson.annotation.JsonCreator;
+import com.fasterxml.jackson.annotation.JsonValue;
+
+import javax.annotation.Generated;
+
+/**
+ * This is enumeration for Administrative state
+ */
+
+@Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-05-15T07:30:16.936523289Z[Etc/UTC]", comments = "Generator version: 7.6.0-SNAPSHOT")
+public enum AdministrativeState {
+
+ LOCKED("locked"),
+
+ UNLOCKED("unlocked");
+
+ private String value;
+
+ AdministrativeState(String value) {
+ this.value = value;
+ }
+
+ @JsonValue
+ public String getValue() {
+ return value;
+ }
+
+ @Override
+ public String toString() {
+ return String.valueOf(value);
+ }
+
+ @JsonCreator
+ public static AdministrativeState fromValue(String value) {
+ for (AdministrativeState b : AdministrativeState.values()) {
+ if (b.value.equals(value)) {
+ return b;
+ }
+ }
+ throw new IllegalArgumentException("Unexpected value '" + value + "'");
+ }
+}
+
diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/AttachmentRefFVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/AttachmentRefFVO.java
new file mode 100644
index 0000000000000000000000000000000000000000..1990d07ee4860dcd944310c83686a17801a39537
--- /dev/null
+++ b/src/main/java/org/etsi/osl/tmf/pm628/model/AttachmentRefFVO.java
@@ -0,0 +1,289 @@
+package org.etsi.osl.tmf.pm628.model;
+
+import com.fasterxml.jackson.annotation.JsonProperty;
+import io.swagger.v3.oas.annotations.media.Schema;
+import jakarta.validation.constraints.NotNull;
+
+import javax.annotation.Generated;
+import java.util.Objects;
+
+/**
+ * AttachmentRefFVO
+ */
+
+
+@Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-05-15T07:30:16.936523289Z[Etc/UTC]", comments = "Generator version: 7.6.0-SNAPSHOT")
+public class AttachmentRefFVO {
+
+ @JsonProperty("@type")
+ private String type;
+
+ @JsonProperty("@baseType")
+ private String baseType;
+
+ @JsonProperty("@schemaLocation")
+ private String schemaLocation;
+
+ @JsonProperty("href")
+ private String href;
+
+ @JsonProperty("id")
+ private String id;
+
+ @JsonProperty("name")
+ private String name;
+
+ @JsonProperty("@referredType")
+ private String referredType;
+
+ @JsonProperty("description")
+ private String description;
+
+ @JsonProperty("url")
+ private String url;
+
+ public AttachmentRefFVO() {
+ super();
+ }
+
+ /**
+ * Constructor with only required parameters
+ */
+ public AttachmentRefFVO(String type) {
+ this.type = type;
+ }
+
+ public AttachmentRefFVO type(String type) {
+ this.type = type;
+ return this;
+ }
+
+ /**
+ * When sub-classing, this defines the sub-class Extensible name
+ * @return type
+ */
+ @NotNull
+ @Schema(name = "@type", description = "When sub-classing, this defines the sub-class Extensible name", requiredMode = Schema.RequiredMode.REQUIRED)
+ @JsonProperty("@type")
+ public String getAtType() {
+ return type;
+ }
+
+ public void setAtType(String type) {
+ this.type = type;
+ }
+
+ public AttachmentRefFVO baseType(String baseType) {
+ this.baseType = baseType;
+ return this;
+ }
+
+ /**
+ * When sub-classing, this defines the super-class
+ * @return baseType
+ */
+
+ @Schema(name = "@baseType", description = "When sub-classing, this defines the super-class", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
+ @JsonProperty("@baseType")
+ public String getBaseType() {
+ return baseType;
+ }
+
+ public void setBaseType(String baseType) {
+ this.baseType = baseType;
+ }
+
+ public AttachmentRefFVO schemaLocation(String schemaLocation) {
+ this.schemaLocation = schemaLocation;
+ return this;
+ }
+
+ /**
+ * A URI to a JSON-Schema file that defines additional attributes and relationships
+ * @return schemaLocation
+ */
+
+ @Schema(name = "@schemaLocation", description = "A URI to a JSON-Schema file that defines additional attributes and relationships", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
+ @JsonProperty("@schemaLocation")
+ public String getSchemaLocation() {
+ return schemaLocation;
+ }
+
+ public void setSchemaLocation(String schemaLocation) {
+ this.schemaLocation = schemaLocation;
+ }
+
+ public AttachmentRefFVO href(String href) {
+ this.href = href;
+ return this;
+ }
+
+ /**
+ * Hyperlink reference
+ * @return href
+ */
+
+ @Schema(name = "href", description = "Hyperlink reference", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
+ @JsonProperty("href")
+ public String getHref() {
+ return href;
+ }
+
+ public void setHref(String href) {
+ this.href = href;
+ }
+
+ public AttachmentRefFVO id(String id) {
+ this.id = id;
+ return this;
+ }
+
+ /**
+ * unique identifier
+ * @return id
+ */
+
+ @Schema(name = "id", description = "unique identifier", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
+ @JsonProperty("id")
+ public String getId() {
+ return id;
+ }
+
+ public void setId(String id) {
+ this.id = id;
+ }
+
+ public AttachmentRefFVO name(String name) {
+ this.name = name;
+ return this;
+ }
+
+ /**
+ * Name of the referred entity.
+ * @return name
+ */
+
+ @Schema(name = "name", description = "Name of the referred entity.", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
+ @JsonProperty("name")
+ public String getName() {
+ return name;
+ }
+
+ public void setName(String name) {
+ this.name = name;
+ }
+
+ public AttachmentRefFVO referredType(String referredType) {
+ this.referredType = referredType;
+ return this;
+ }
+
+ /**
+ * The actual type of the target instance when needed for disambiguation.
+ * @return referredType
+ */
+
+ @Schema(name = "@referredType", description = "The actual type of the target instance when needed for disambiguation.", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
+ @JsonProperty("@referredType")
+ public String getReferredType() {
+ return referredType;
+ }
+
+ public void setReferredType(String referredType) {
+ this.referredType = referredType;
+ }
+
+ public AttachmentRefFVO description(String description) {
+ this.description = description;
+ return this;
+ }
+
+ /**
+ * A narrative text describing the content of the attachment
+ * @return description
+ */
+
+ @Schema(name = "description", description = "A narrative text describing the content of the attachment", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
+ @JsonProperty("description")
+ public String getDescription() {
+ return description;
+ }
+
+ public void setDescription(String description) {
+ this.description = description;
+ }
+
+ public AttachmentRefFVO url(String url) {
+ this.url = url;
+ return this;
+ }
+
+ /**
+ * Link to the attachment media/content
+ * @return url
+ */
+
+ @Schema(name = "url", description = "Link to the attachment media/content", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
+ @JsonProperty("url")
+ public String getUrl() {
+ return url;
+ }
+
+ public void setUrl(String url) {
+ this.url = url;
+ }
+
+ @Override
+ public boolean equals(Object o) {
+ if (this == o) {
+ return true;
+ }
+ if (o == null || getClass() != o.getClass()) {
+ return false;
+ }
+ AttachmentRefFVO attachmentRefFVO = (AttachmentRefFVO) o;
+ return Objects.equals(this.type, attachmentRefFVO.type) &&
+ Objects.equals(this.baseType, attachmentRefFVO.baseType) &&
+ Objects.equals(this.schemaLocation, attachmentRefFVO.schemaLocation) &&
+ Objects.equals(this.href, attachmentRefFVO.href) &&
+ Objects.equals(this.id, attachmentRefFVO.id) &&
+ Objects.equals(this.name, attachmentRefFVO.name) &&
+ Objects.equals(this.referredType, attachmentRefFVO.referredType) &&
+ Objects.equals(this.description, attachmentRefFVO.description) &&
+ Objects.equals(this.url, attachmentRefFVO.url);
+ }
+
+ @Override
+ public int hashCode() {
+ return Objects.hash(type, baseType, schemaLocation, href, id, name, referredType, description, url);
+ }
+
+ @Override
+ public String toString() {
+ StringBuilder sb = new StringBuilder();
+ sb.append("class AttachmentRefFVO {\n");
+ sb.append(" type: ").append(toIndentedString(type)).append("\n");
+ sb.append(" baseType: ").append(toIndentedString(baseType)).append("\n");
+ sb.append(" schemaLocation: ").append(toIndentedString(schemaLocation)).append("\n");
+ sb.append(" href: ").append(toIndentedString(href)).append("\n");
+ sb.append(" id: ").append(toIndentedString(id)).append("\n");
+ sb.append(" name: ").append(toIndentedString(name)).append("\n");
+ sb.append(" referredType: ").append(toIndentedString(referredType)).append("\n");
+ sb.append(" description: ").append(toIndentedString(description)).append("\n");
+ sb.append(" url: ").append(toIndentedString(url)).append("\n");
+ sb.append("}");
+ return sb.toString();
+ }
+
+ /**
+ * Convert the given object to string with each line indented by 4 spaces
+ * (except the first line).
+ */
+ private String toIndentedString(Object o) {
+ if (o == null) {
+ return "null";
+ }
+ return o.toString().replace("\n", "\n ");
+ }
+}
+
diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/AttachmentRefMVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/AttachmentRefMVO.java
new file mode 100644
index 0000000000000000000000000000000000000000..3c2edba24f354dd1bad006568b490ae0ce5ff33a
--- /dev/null
+++ b/src/main/java/org/etsi/osl/tmf/pm628/model/AttachmentRefMVO.java
@@ -0,0 +1,289 @@
+package org.etsi.osl.tmf.pm628.model;
+
+import com.fasterxml.jackson.annotation.JsonProperty;
+import io.swagger.v3.oas.annotations.media.Schema;
+import jakarta.validation.constraints.NotNull;
+
+import javax.annotation.Generated;
+import java.util.Objects;
+
+/**
+ * AttachmentRefMVO
+ */
+
+
+@Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-05-15T07:30:16.936523289Z[Etc/UTC]", comments = "Generator version: 7.6.0-SNAPSHOT")
+public class AttachmentRefMVO {
+
+ @JsonProperty("@type")
+ private String type;
+
+ @JsonProperty("@baseType")
+ private String baseType;
+
+ @JsonProperty("@schemaLocation")
+ private String schemaLocation;
+
+ @JsonProperty("href")
+ private String href;
+
+ @JsonProperty("id")
+ private String id;
+
+ @JsonProperty("name")
+ private String name;
+
+ @JsonProperty("@referredType")
+ private String referredType;
+
+ @JsonProperty("description")
+ private String description;
+
+ @JsonProperty("url")
+ private String url;
+
+ public AttachmentRefMVO() {
+ super();
+ }
+
+ /**
+ * Constructor with only required parameters
+ */
+ public AttachmentRefMVO(String type) {
+ this.type = type;
+ }
+
+ public AttachmentRefMVO type(String type) {
+ this.type = type;
+ return this;
+ }
+
+ /**
+ * When sub-classing, this defines the sub-class Extensible name
+ * @return type
+ */
+ @NotNull
+ @Schema(name = "@type", description = "When sub-classing, this defines the sub-class Extensible name", requiredMode = Schema.RequiredMode.REQUIRED)
+ @JsonProperty("@type")
+ public String getType() {
+ return type;
+ }
+
+ public void setType(String type) {
+ this.type = type;
+ }
+
+ public AttachmentRefMVO baseType(String baseType) {
+ this.baseType = baseType;
+ return this;
+ }
+
+ /**
+ * When sub-classing, this defines the super-class
+ * @return baseType
+ */
+
+ @Schema(name = "@baseType", description = "When sub-classing, this defines the super-class", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
+ @JsonProperty("@baseType")
+ public String getAtBaseType() {
+ return baseType;
+ }
+
+ public void setAtBaseType(String baseType) {
+ this.baseType = baseType;
+ }
+
+ public AttachmentRefMVO schemaLocation(String schemaLocation) {
+ this.schemaLocation = schemaLocation;
+ return this;
+ }
+
+ /**
+ * A URI to a JSON-Schema file that defines additional attributes and relationships
+ * @return schemaLocation
+ */
+
+ @Schema(name = "@schemaLocation", description = "A URI to a JSON-Schema file that defines additional attributes and relationships", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
+ @JsonProperty("@schemaLocation")
+ public String getSchemaLocation() {
+ return schemaLocation;
+ }
+
+ public void setSchemaLocation(String schemaLocation) {
+ this.schemaLocation = schemaLocation;
+ }
+
+ public AttachmentRefMVO href(String href) {
+ this.href = href;
+ return this;
+ }
+
+ /**
+ * Hyperlink reference
+ * @return href
+ */
+
+ @Schema(name = "href", description = "Hyperlink reference", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
+ @JsonProperty("href")
+ public String getHref() {
+ return href;
+ }
+
+ public void setHref(String href) {
+ this.href = href;
+ }
+
+ public AttachmentRefMVO id(String id) {
+ this.id = id;
+ return this;
+ }
+
+ /**
+ * The identifier of the referred entity.
+ * @return id
+ */
+
+ @Schema(name = "id", description = "The identifier of the referred entity.", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
+ @JsonProperty("id")
+ public String getId() {
+ return id;
+ }
+
+ public void setId(String id) {
+ this.id = id;
+ }
+
+ public AttachmentRefMVO name(String name) {
+ this.name = name;
+ return this;
+ }
+
+ /**
+ * Name of the referred entity.
+ * @return name
+ */
+
+ @Schema(name = "name", description = "Name of the referred entity.", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
+ @JsonProperty("name")
+ public String getName() {
+ return name;
+ }
+
+ public void setName(String name) {
+ this.name = name;
+ }
+
+ public AttachmentRefMVO referredType(String referredType) {
+ this.referredType = referredType;
+ return this;
+ }
+
+ /**
+ * The actual type of the target instance when needed for disambiguation.
+ * @return referredType
+ */
+
+ @Schema(name = "@referredType", description = "The actual type of the target instance when needed for disambiguation.", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
+ @JsonProperty("@referredType")
+ public String getReferredType() {
+ return referredType;
+ }
+
+ public void setReferredType(String referredType) {
+ this.referredType = referredType;
+ }
+
+ public AttachmentRefMVO description(String description) {
+ this.description = description;
+ return this;
+ }
+
+ /**
+ * A narrative text describing the content of the attachment
+ * @return description
+ */
+
+ @Schema(name = "description", description = "A narrative text describing the content of the attachment", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
+ @JsonProperty("description")
+ public String getDescription() {
+ return description;
+ }
+
+ public void setDescription(String description) {
+ this.description = description;
+ }
+
+ public AttachmentRefMVO url(String url) {
+ this.url = url;
+ return this;
+ }
+
+ /**
+ * Link to the attachment media/content
+ * @return url
+ */
+
+ @Schema(name = "url", description = "Link to the attachment media/content", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
+ @JsonProperty("url")
+ public String getUrl() {
+ return url;
+ }
+
+ public void setUrl(String url) {
+ this.url = url;
+ }
+
+ @Override
+ public boolean equals(Object o) {
+ if (this == o) {
+ return true;
+ }
+ if (o == null || getClass() != o.getClass()) {
+ return false;
+ }
+ AttachmentRefMVO attachmentRefMVO = (AttachmentRefMVO) o;
+ return Objects.equals(this.type, attachmentRefMVO.type) &&
+ Objects.equals(this.baseType, attachmentRefMVO.baseType) &&
+ Objects.equals(this.schemaLocation, attachmentRefMVO.schemaLocation) &&
+ Objects.equals(this.href, attachmentRefMVO.href) &&
+ Objects.equals(this.id, attachmentRefMVO.id) &&
+ Objects.equals(this.name, attachmentRefMVO.name) &&
+ Objects.equals(this.referredType, attachmentRefMVO.referredType) &&
+ Objects.equals(this.description, attachmentRefMVO.description) &&
+ Objects.equals(this.url, attachmentRefMVO.url);
+ }
+
+ @Override
+ public int hashCode() {
+ return Objects.hash(type, baseType, schemaLocation, href, id, name, referredType, description, url);
+ }
+
+ @Override
+ public String toString() {
+ StringBuilder sb = new StringBuilder();
+ sb.append("class AttachmentRefMVO {\n");
+ sb.append(" type: ").append(toIndentedString(type)).append("\n");
+ sb.append(" baseType: ").append(toIndentedString(baseType)).append("\n");
+ sb.append(" schemaLocation: ").append(toIndentedString(schemaLocation)).append("\n");
+ sb.append(" href: ").append(toIndentedString(href)).append("\n");
+ sb.append(" id: ").append(toIndentedString(id)).append("\n");
+ sb.append(" name: ").append(toIndentedString(name)).append("\n");
+ sb.append(" referredType: ").append(toIndentedString(referredType)).append("\n");
+ sb.append(" description: ").append(toIndentedString(description)).append("\n");
+ sb.append(" url: ").append(toIndentedString(url)).append("\n");
+ sb.append("}");
+ return sb.toString();
+ }
+
+ /**
+ * Convert the given object to string with each line indented by 4 spaces
+ * (except the first line).
+ */
+ private String toIndentedString(Object o) {
+ if (o == null) {
+ return "null";
+ }
+ return o.toString().replace("\n", "\n ");
+ }
+}
+
diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/BaseEvent.java b/src/main/java/org/etsi/osl/tmf/pm628/model/BaseEvent.java
new file mode 100644
index 0000000000000000000000000000000000000000..7e789e9a9f843d9357faad3504ee7029fd3b35c5
--- /dev/null
+++ b/src/main/java/org/etsi/osl/tmf/pm628/model/BaseEvent.java
@@ -0,0 +1,429 @@
+package org.etsi.osl.tmf.pm628.model;
+
+import com.fasterxml.jackson.annotation.JsonProperty;
+import io.swagger.v3.oas.annotations.media.Schema;
+import jakarta.validation.Valid;
+import jakarta.validation.constraints.NotNull;
+import org.springframework.format.annotation.DateTimeFormat;
+
+import javax.annotation.Generated;
+import java.time.OffsetDateTime;
+import java.util.Objects;
+
+/**
+ * BaseEvent
+ */
+
+
+@Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-05-15T07:30:16.936523289Z[Etc/UTC]", comments = "Generator version: 7.6.0-SNAPSHOT")
+public class BaseEvent {
+
+ private String atType;
+
+ private String atBaseType;
+
+ private String atSchemaLocation;
+
+ private String href;
+
+ private String id;
+
+ private Object event;
+
+ private String eventId;
+
+ @DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME)
+ private OffsetDateTime eventTime;
+
+ private String eventType;
+
+ private String correlationId;
+
+ private String domain;
+
+ private String title;
+
+ private String description;
+
+ private String priority;
+
+ @DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME)
+ private OffsetDateTime timeOcurred;
+
+ public BaseEvent() {
+ super();
+ }
+
+ /**
+ * Constructor with only required parameters
+ */
+ public BaseEvent(String atType) {
+ this.atType = atType;
+ }
+
+ public BaseEvent atType(String atType) {
+ this.atType = atType;
+ return this;
+ }
+
+ /**
+ * When sub-classing, this defines the sub-class Extensible name
+ * @return atType
+ */
+ @NotNull
+ @Schema(name = "@type", description = "When sub-classing, this defines the sub-class Extensible name", requiredMode = Schema.RequiredMode.REQUIRED)
+ @JsonProperty("@type")
+ public String getAtType() {
+ return atType;
+ }
+
+ public void setAtType(String atType) {
+ this.atType = atType;
+ }
+
+ public BaseEvent atBaseType(String atBaseType) {
+ this.atBaseType = atBaseType;
+ return this;
+ }
+
+ /**
+ * When sub-classing, this defines the super-class
+ * @return atBaseType
+ */
+
+ @Schema(name = "@baseType", description = "When sub-classing, this defines the super-class", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
+ @JsonProperty("@baseType")
+ public String getAtBaseType() {
+ return atBaseType;
+ }
+
+ public void setAtBaseType(String atBaseType) {
+ this.atBaseType = atBaseType;
+ }
+
+ public BaseEvent atSchemaLocation(String atSchemaLocation) {
+ this.atSchemaLocation = atSchemaLocation;
+ return this;
+ }
+
+ /**
+ * A URI to a JSON-Schema file that defines additional attributes and relationships
+ * @return atSchemaLocation
+ */
+
+ @Schema(name = "@schemaLocation", description = "A URI to a JSON-Schema file that defines additional attributes and relationships", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
+ @JsonProperty("@schemaLocation")
+ public String getAtSchemaLocation() {
+ return atSchemaLocation;
+ }
+
+ public void setAtSchemaLocation(String atSchemaLocation) {
+ this.atSchemaLocation = atSchemaLocation;
+ }
+
+ public BaseEvent href(String href) {
+ this.href = href;
+ return this;
+ }
+
+ /**
+ * Hyperlink reference
+ * @return href
+ */
+
+ @Schema(name = "href", description = "Hyperlink reference", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
+ @JsonProperty("href")
+ public String getHref() {
+ return href;
+ }
+
+ public void setHref(String href) {
+ this.href = href;
+ }
+
+ public BaseEvent id(String id) {
+ this.id = id;
+ return this;
+ }
+
+ /**
+ * unique identifier
+ * @return id
+ */
+
+ @Schema(name = "id", description = "unique identifier", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
+ @JsonProperty("id")
+ public String getId() {
+ return id;
+ }
+
+ public void setId(String id) {
+ this.id = id;
+ }
+
+ public BaseEvent event(Object event) {
+ this.event = event;
+ return this;
+ }
+
+ /**
+ * The event linked to the involved resource object
+ * @return event
+ */
+
+ @Schema(name = "event", description = "The event linked to the involved resource object", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
+ @JsonProperty("event")
+ public Object getEvent() {
+ return event;
+ }
+
+ public void setEvent(Object event) {
+ this.event = event;
+ }
+
+ public BaseEvent eventId(String eventId) {
+ this.eventId = eventId;
+ return this;
+ }
+
+ /**
+ * The identifier of the notification.
+ * @return eventId
+ */
+
+ @Schema(name = "eventId", description = "The identifier of the notification.", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
+ @JsonProperty("eventId")
+ public String getEventId() {
+ return eventId;
+ }
+
+ public void setEventId(String eventId) {
+ this.eventId = eventId;
+ }
+
+ public BaseEvent eventTime(OffsetDateTime eventTime) {
+ this.eventTime = eventTime;
+ return this;
+ }
+
+ /**
+ * Time of the event occurrence.
+ * @return eventTime
+ */
+ @Valid
+ @Schema(name = "eventTime", description = "Time of the event occurrence.", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
+ @JsonProperty("eventTime")
+ public OffsetDateTime getEventTime() {
+ return eventTime;
+ }
+
+ public void setEventTime(OffsetDateTime eventTime) {
+ this.eventTime = eventTime;
+ }
+
+ public BaseEvent eventType(String eventType) {
+ this.eventType = eventType;
+ return this;
+ }
+
+ /**
+ * The type of the notification.
+ * @return eventType
+ */
+
+ @Schema(name = "eventType", description = "The type of the notification.", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
+ @JsonProperty("eventType")
+ public String getEventType() {
+ return eventType;
+ }
+
+ public void setEventType(String eventType) {
+ this.eventType = eventType;
+ }
+
+ public BaseEvent correlationId(String correlationId) {
+ this.correlationId = correlationId;
+ return this;
+ }
+
+ /**
+ * The correlation id for this event.
+ * @return correlationId
+ */
+
+ @Schema(name = "correlationId", description = "The correlation id for this event.", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
+ @JsonProperty("correlationId")
+ public String getCorrelationId() {
+ return correlationId;
+ }
+
+ public void setCorrelationId(String correlationId) {
+ this.correlationId = correlationId;
+ }
+
+ public BaseEvent domain(String domain) {
+ this.domain = domain;
+ return this;
+ }
+
+ /**
+ * The domain of the event.
+ * @return domain
+ */
+
+ @Schema(name = "domain", description = "The domain of the event.", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
+ @JsonProperty("domain")
+ public String getDomain() {
+ return domain;
+ }
+
+ public void setDomain(String domain) {
+ this.domain = domain;
+ }
+
+ public BaseEvent title(String title) {
+ this.title = title;
+ return this;
+ }
+
+ /**
+ * The title of the event.
+ * @return title
+ */
+
+ @Schema(name = "title", description = "The title of the event.", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
+ @JsonProperty("title")
+ public String getTitle() {
+ return title;
+ }
+
+ public void setTitle(String title) {
+ this.title = title;
+ }
+
+ public BaseEvent description(String description) {
+ this.description = description;
+ return this;
+ }
+
+ /**
+ * An explanatory of the event.
+ * @return description
+ */
+
+ @Schema(name = "description", description = "An explanatory of the event.", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
+ @JsonProperty("description")
+ public String getDescription() {
+ return description;
+ }
+
+ public void setDescription(String description) {
+ this.description = description;
+ }
+
+ public BaseEvent priority(String priority) {
+ this.priority = priority;
+ return this;
+ }
+
+ /**
+ * A priority.
+ * @return priority
+ */
+
+ @Schema(name = "priority", description = "A priority.", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
+ @JsonProperty("priority")
+ public String getPriority() {
+ return priority;
+ }
+
+ public void setPriority(String priority) {
+ this.priority = priority;
+ }
+
+ public BaseEvent timeOcurred(OffsetDateTime timeOcurred) {
+ this.timeOcurred = timeOcurred;
+ return this;
+ }
+
+ /**
+ * The time the event occurred.
+ * @return timeOcurred
+ */
+ @Valid
+ @Schema(name = "timeOcurred", description = "The time the event occurred.", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
+ @JsonProperty("timeOcurred")
+ public OffsetDateTime getTimeOcurred() {
+ return timeOcurred;
+ }
+
+ public void setTimeOcurred(OffsetDateTime timeOcurred) {
+ this.timeOcurred = timeOcurred;
+ }
+
+ @Override
+ public boolean equals(Object o) {
+ if (this == o) {
+ return true;
+ }
+ if (o == null || getClass() != o.getClass()) {
+ return false;
+ }
+ BaseEvent baseEvent = (BaseEvent) o;
+ return Objects.equals(this.atType, baseEvent.atType) &&
+ Objects.equals(this.atBaseType, baseEvent.atBaseType) &&
+ Objects.equals(this.atSchemaLocation, baseEvent.atSchemaLocation) &&
+ Objects.equals(this.href, baseEvent.href) &&
+ Objects.equals(this.id, baseEvent.id) &&
+ Objects.equals(this.event, baseEvent.event) &&
+ Objects.equals(this.eventId, baseEvent.eventId) &&
+ Objects.equals(this.eventTime, baseEvent.eventTime) &&
+ Objects.equals(this.eventType, baseEvent.eventType) &&
+ Objects.equals(this.correlationId, baseEvent.correlationId) &&
+ Objects.equals(this.domain, baseEvent.domain) &&
+ Objects.equals(this.title, baseEvent.title) &&
+ Objects.equals(this.description, baseEvent.description) &&
+ Objects.equals(this.priority, baseEvent.priority) &&
+ Objects.equals(this.timeOcurred, baseEvent.timeOcurred);
+ }
+
+ @Override
+ public int hashCode() {
+ return Objects.hash(atType, atBaseType, atSchemaLocation, href, id, event, eventId, eventTime, eventType, correlationId, domain, title, description, priority, timeOcurred);
+ }
+
+ @Override
+ public String toString() {
+ StringBuilder sb = new StringBuilder();
+ sb.append("class BaseEvent {\n");
+ sb.append(" atType: ").append(toIndentedString(atType)).append("\n");
+ sb.append(" atBaseType: ").append(toIndentedString(atBaseType)).append("\n");
+ sb.append(" atSchemaLocation: ").append(toIndentedString(atSchemaLocation)).append("\n");
+ sb.append(" href: ").append(toIndentedString(href)).append("\n");
+ sb.append(" id: ").append(toIndentedString(id)).append("\n");
+ sb.append(" event: ").append(toIndentedString(event)).append("\n");
+ sb.append(" eventId: ").append(toIndentedString(eventId)).append("\n");
+ sb.append(" eventTime: ").append(toIndentedString(eventTime)).append("\n");
+ sb.append(" eventType: ").append(toIndentedString(eventType)).append("\n");
+ sb.append(" correlationId: ").append(toIndentedString(correlationId)).append("\n");
+ sb.append(" domain: ").append(toIndentedString(domain)).append("\n");
+ sb.append(" title: ").append(toIndentedString(title)).append("\n");
+ sb.append(" description: ").append(toIndentedString(description)).append("\n");
+ sb.append(" priority: ").append(toIndentedString(priority)).append("\n");
+ sb.append(" timeOcurred: ").append(toIndentedString(timeOcurred)).append("\n");
+ sb.append("}");
+ return sb.toString();
+ }
+
+ /**
+ * Convert the given object to string with each line indented by 4 spaces
+ * (except the first line).
+ */
+ private String toIndentedString(Object o) {
+ if (o == null) {
+ return "null";
+ }
+ return o.toString().replace("\n", "\n ");
+ }
+}
+
diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/Characteristic.java b/src/main/java/org/etsi/osl/tmf/pm628/model/Characteristic.java
new file mode 100644
index 0000000000000000000000000000000000000000..5c4f887b8a8ac3be6a036d3504ddb1eff3d23ffa
--- /dev/null
+++ b/src/main/java/org/etsi/osl/tmf/pm628/model/Characteristic.java
@@ -0,0 +1,143 @@
+package org.etsi.osl.tmf.pm628.model;
+
+import com.fasterxml.jackson.annotation.JsonProperty;
+import io.swagger.v3.oas.annotations.media.Schema;
+import jakarta.persistence.*;
+import jakarta.validation.Valid;
+import org.etsi.osl.tmf.common.model.BaseRootNamedEntity;
+
+import javax.annotation.Generated;
+import java.util.ArrayList;
+import java.util.List;
+import java.util.Objects;
+
+/**
+ * Characteristic
+ */
+
+
+@Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-05-15T07:30:16.936523289Z[Etc/UTC]", comments = "Generator version: 7.6.0-SNAPSHOT")
+@Entity(name = "PM628_Characteristic")
+public class Characteristic extends BaseRootNamedEntity {
+
+ @JsonProperty("valueType")
+ private String valueType;
+
+ @JsonProperty("characteristicRelationship")
+ @Valid
+ @OneToMany(cascade = { CascadeType.MERGE, CascadeType.PERSIST, CascadeType.REFRESH })
+ @JoinTable(
+ name = "pm628_char_char_rel",
+ joinColumns = @JoinColumn(name = "char_uuid"),
+ inverseJoinColumns = @JoinColumn(name = "char_rel_uuid")
+ )
+ private List characteristicRelationship = new ArrayList<>();
+
+ public Characteristic() {
+ super();
+ }
+
+ /**
+ * Constructor with only required parameters
+ */
+ public Characteristic(String type) {
+ this.type = type;
+ }
+
+ public Characteristic valueType(String valueType) {
+ this.valueType = valueType;
+ return this;
+ }
+
+ /**
+ * Data type of the value of the characteristic
+ * @return valueType
+ */
+
+ @Schema(name = "valueType", description = "Data type of the value of the characteristic", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
+ @JsonProperty("valueType")
+ public String getValueType() {
+ return valueType;
+ }
+
+ public void setValueType(String valueType) {
+ this.valueType = valueType;
+ }
+
+ public Characteristic characteristicRelationship(List characteristicRelationship) {
+ this.characteristicRelationship = characteristicRelationship;
+ return this;
+ }
+
+ public Characteristic addCharacteristicRelationshipItem(CharacteristicRelationship characteristicRelationshipItem) {
+ if (this.characteristicRelationship == null) {
+ this.characteristicRelationship = new ArrayList<>();
+ }
+ this.characteristicRelationship.add(characteristicRelationshipItem);
+ return this;
+ }
+
+ /**
+ * Collection of characteristic relationships
+ * @return characteristicRelationship
+ */
+ @Valid
+ @Schema(name = "characteristicRelationship", description = "Collection of characteristic relationships", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
+ @JsonProperty("characteristicRelationship")
+ public List getCharacteristicRelationship() {
+ return characteristicRelationship;
+ }
+
+ public void setCharacteristicRelationship(List characteristicRelationship) {
+ this.characteristicRelationship = characteristicRelationship;
+ }
+
+ @Override
+ public boolean equals(Object o) {
+ if (this == o) {
+ return true;
+ }
+ if (o == null || getClass() != o.getClass()) {
+ return false;
+ }
+ Characteristic characteristic = (Characteristic) o;
+ return Objects.equals(this.type, characteristic.type) &&
+ Objects.equals(this.baseType, characteristic.baseType) &&
+ Objects.equals(this.schemaLocation, characteristic.schemaLocation) &&
+ Objects.equals(this.uuid, characteristic.uuid) &&
+ Objects.equals(this.name, characteristic.name) &&
+ Objects.equals(this.valueType, characteristic.valueType) &&
+ Objects.equals(this.characteristicRelationship, characteristic.characteristicRelationship);
+ }
+
+ @Override
+ public int hashCode() {
+ return Objects.hash(type, baseType, schemaLocation, uuid, name, valueType, characteristicRelationship);
+ }
+
+ @Override
+ public String toString() {
+ StringBuilder sb = new StringBuilder();
+ sb.append("class Characteristic {\n");
+ sb.append(" type: ").append(toIndentedString(type)).append("\n");
+ sb.append(" baseType: ").append(toIndentedString(baseType)).append("\n");
+ sb.append(" schemaLocation: ").append(toIndentedString(schemaLocation)).append("\n");
+ sb.append(" id: ").append(toIndentedString(uuid)).append("\n");
+ sb.append(" name: ").append(toIndentedString(name)).append("\n");
+ sb.append(" valueType: ").append(toIndentedString(valueType)).append("\n");
+ sb.append(" characteristicRelationship: ").append(toIndentedString(characteristicRelationship)).append("\n");
+ sb.append("}");
+ return sb.toString();
+ }
+
+ /**
+ * Convert the given object to string with each line indented by 4 spaces
+ * (except the first line).
+ */
+ private String toIndentedString(Object o) {
+ if (o == null) {
+ return "null";
+ }
+ return o.toString().replace("\n", "\n ");
+ }
+}
\ No newline at end of file
diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/CharacteristicFVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/CharacteristicFVO.java
new file mode 100644
index 0000000000000000000000000000000000000000..912ae241e0e93e133e62a7c02a27aadaa6acd02e
--- /dev/null
+++ b/src/main/java/org/etsi/osl/tmf/pm628/model/CharacteristicFVO.java
@@ -0,0 +1,226 @@
+package org.etsi.osl.tmf.pm628.model;
+
+import com.fasterxml.jackson.annotation.JsonProperty;
+import io.swagger.v3.oas.annotations.media.Schema;
+import jakarta.validation.Valid;
+import jakarta.validation.constraints.NotNull;
+
+import javax.annotation.Generated;
+import java.util.ArrayList;
+import java.util.List;
+import java.util.Objects;
+
+/**
+ * CharacteristicFVO
+ */
+
+
+@Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-05-15T07:30:16.936523289Z[Etc/UTC]", comments = "Generator version: 7.6.0-SNAPSHOT")
+public class CharacteristicFVO {
+
+ @JsonProperty("@type")
+ private String type;
+
+ @JsonProperty("@baseType")
+ private String baseType;
+
+ @JsonProperty("@schemaLocation")
+ private String schemaLocation;
+
+ @JsonProperty("name")
+ private String name;
+
+ @JsonProperty("valueType")
+ private String valueType;
+
+ @JsonProperty("characteristicRelationship")
+ @Valid
+ private List characteristicRelationship = new ArrayList<>();
+
+ public CharacteristicFVO() {
+ super();
+ }
+
+ /**
+ * Constructor with only required parameters
+ */
+ public CharacteristicFVO(String type) {
+ this.type = type;
+ }
+
+ public CharacteristicFVO type(String type) {
+ this.type = type;
+ return this;
+ }
+
+ /**
+ * When sub-classing, this defines the sub-class Extensible name
+ * @return type
+ */
+ @NotNull
+ @Schema(name = "@type", description = "When sub-classing, this defines the sub-class Extensible name", requiredMode = Schema.RequiredMode.REQUIRED)
+ @JsonProperty("@type")
+ public String getType() {
+ return type;
+ }
+
+ public void setType(String type) {
+ this.type = type;
+ }
+
+ public CharacteristicFVO baseType(String baseType) {
+ this.baseType = baseType;
+ return this;
+ }
+
+ /**
+ * When sub-classing, this defines the super-class
+ * @return baseType
+ */
+
+ @Schema(name = "@baseType", description = "When sub-classing, this defines the super-class", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
+ @JsonProperty("@baseType")
+ public String getBaseType() {
+ return baseType;
+ }
+
+ public void setBaseType(String baseType) {
+ this.baseType = baseType;
+ }
+
+ public CharacteristicFVO schemaLocation(String schemaLocation) {
+ this.schemaLocation = schemaLocation;
+ return this;
+ }
+
+ /**
+ * A URI to a JSON-Schema file that defines additional attributes and relationships
+ * @return schemaLocation
+ */
+
+ @Schema(name = "@schemaLocation", description = "A URI to a JSON-Schema file that defines additional attributes and relationships", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
+ @JsonProperty("@schemaLocation")
+ public String getSchemaLocation() {
+ return schemaLocation;
+ }
+
+ public void setSchemaLocation(String schemaLocation) {
+ this.schemaLocation = schemaLocation;
+ }
+
+ public CharacteristicFVO name(String name) {
+ this.name = name;
+ return this;
+ }
+
+ /**
+ * Name of the characteristic
+ * @return name
+ */
+
+ @Schema(name = "name", description = "Name of the characteristic", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
+ @JsonProperty("name")
+ public String getName() {
+ return name;
+ }
+
+ public void setName(String name) {
+ this.name = name;
+ }
+
+ public CharacteristicFVO valueType(String valueType) {
+ this.valueType = valueType;
+ return this;
+ }
+
+ /**
+ * Data type of the value of the characteristic
+ * @return valueType
+ */
+
+ @Schema(name = "valueType", description = "Data type of the value of the characteristic", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
+ @JsonProperty("valueType")
+ public String getValueType() {
+ return valueType;
+ }
+
+ public void setValueType(String valueType) {
+ this.valueType = valueType;
+ }
+
+ public CharacteristicFVO characteristicRelationship(List characteristicRelationship) {
+ this.characteristicRelationship = characteristicRelationship;
+ return this;
+ }
+
+ public CharacteristicFVO addCharacteristicRelationshipItem(CharacteristicRelationshipFVO characteristicRelationshipItem) {
+ if (this.characteristicRelationship == null) {
+ this.characteristicRelationship = new ArrayList<>();
+ }
+ this.characteristicRelationship.add(characteristicRelationshipItem);
+ return this;
+ }
+
+ /**
+ * Collection of characteristic relationships
+ * @return characteristicRelationship
+ */
+ @Valid
+ @Schema(name = "characteristicRelationship", description = "Collection of characteristic relationships", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
+ @JsonProperty("characteristicRelationship")
+ public List getCharacteristicRelationship() {
+ return characteristicRelationship;
+ }
+
+ public void setCharacteristicRelationship(List characteristicRelationship) {
+ this.characteristicRelationship = characteristicRelationship;
+ }
+
+ @Override
+ public boolean equals(Object o) {
+ if (this == o) {
+ return true;
+ }
+ if (o == null || getClass() != o.getClass()) {
+ return false;
+ }
+ CharacteristicFVO characteristicFVO = (CharacteristicFVO) o;
+ return Objects.equals(this.type, characteristicFVO.type) &&
+ Objects.equals(this.baseType, characteristicFVO.baseType) &&
+ Objects.equals(this.schemaLocation, characteristicFVO.schemaLocation) &&
+ Objects.equals(this.name, characteristicFVO.name) &&
+ Objects.equals(this.valueType, characteristicFVO.valueType) &&
+ Objects.equals(this.characteristicRelationship, characteristicFVO.characteristicRelationship);
+ }
+
+ @Override
+ public int hashCode() {
+ return Objects.hash(type, baseType, schemaLocation, name, valueType, characteristicRelationship);
+ }
+
+ @Override
+ public String toString() {
+ StringBuilder sb = new StringBuilder();
+ sb.append("class CharacteristicFVO {\n");
+ sb.append(" type: ").append(toIndentedString(type)).append("\n");
+ sb.append(" baseType: ").append(toIndentedString(baseType)).append("\n");
+ sb.append(" schemaLocation: ").append(toIndentedString(schemaLocation)).append("\n");
+ sb.append(" name: ").append(toIndentedString(name)).append("\n");
+ sb.append(" valueType: ").append(toIndentedString(valueType)).append("\n");
+ sb.append(" characteristicRelationship: ").append(toIndentedString(characteristicRelationship)).append("\n");
+ sb.append("}");
+ return sb.toString();
+ }
+
+ /**
+ * Convert the given object to string with each line indented by 4 spaces
+ * (except the first line).
+ */
+ private String toIndentedString(Object o) {
+ if (o == null) {
+ return "null";
+ }
+ return o.toString().replace("\n", "\n ");
+ }
+}
+
diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/CharacteristicMVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/CharacteristicMVO.java
new file mode 100644
index 0000000000000000000000000000000000000000..bccda463e27d2bea6fd6767b507597576a19d5ad
--- /dev/null
+++ b/src/main/java/org/etsi/osl/tmf/pm628/model/CharacteristicMVO.java
@@ -0,0 +1,251 @@
+package org.etsi.osl.tmf.pm628.model;
+
+import com.fasterxml.jackson.annotation.JsonProperty;
+import io.swagger.v3.oas.annotations.media.Schema;
+import jakarta.validation.Valid;
+import jakarta.validation.constraints.NotNull;
+
+import javax.annotation.Generated;
+import java.util.ArrayList;
+import java.util.List;
+import java.util.Objects;
+
+/**
+ * CharacteristicMVO
+ */
+
+
+@Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-05-15T07:30:16.936523289Z[Etc/UTC]", comments = "Generator version: 7.6.0-SNAPSHOT")
+public class CharacteristicMVO {
+
+ @JsonProperty("@type")
+ private String type;
+
+ @JsonProperty("@baseType")
+ private String baseType;
+
+ @JsonProperty("@schemaLocation")
+ private String schemaLocation;
+
+ @JsonProperty("uuid")
+ private String uuid;
+
+ @JsonProperty("name")
+ private String name;
+
+ @JsonProperty("valueType")
+ private String valueType;
+
+ @JsonProperty("characteristicRelationship")
+ @Valid
+ private List characteristicRelationship = new ArrayList<>();
+
+ public CharacteristicMVO() {
+ super();
+ }
+
+ /**
+ * Constructor with only required parameters
+ */
+ public CharacteristicMVO(String type) {
+ this.type = type;
+ }
+
+ public CharacteristicMVO type(String type) {
+ this.type = type;
+ return this;
+ }
+
+ /**
+ * When sub-classing, this defines the sub-class Extensible name
+ * @return type
+ */
+ @NotNull
+ @Schema(name = "@type", description = "When sub-classing, this defines the sub-class Extensible name", requiredMode = Schema.RequiredMode.REQUIRED)
+ @JsonProperty("@type")
+ public String getType() {
+ return type;
+ }
+
+ public void setType(String type) {
+ this.type = type;
+ }
+
+ public CharacteristicMVO baseType(String baseType) {
+ this.baseType = baseType;
+ return this;
+ }
+
+ /**
+ * When sub-classing, this defines the super-class
+ * @return baseType
+ */
+
+ @Schema(name = "@baseType", description = "When sub-classing, this defines the super-class", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
+ @JsonProperty("@baseType")
+ public String getBaseType() {
+ return baseType;
+ }
+
+ public void setBaseType(String baseType) {
+ this.baseType = baseType;
+ }
+
+ public CharacteristicMVO schemaLocation(String schemaLocation) {
+ this.schemaLocation = schemaLocation;
+ return this;
+ }
+
+ /**
+ * A URI to a JSON-Schema file that defines additional attributes and relationships
+ * @return schemaLocation
+ */
+
+ @Schema(name = "@schemaLocation", description = "A URI to a JSON-Schema file that defines additional attributes and relationships", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
+ @JsonProperty("@schemaLocation")
+ public String getSchemaLocation() {
+ return schemaLocation;
+ }
+
+ public void setSchemaLocation(String schemaLocation) {
+ this.schemaLocation = schemaLocation;
+ }
+
+ public CharacteristicMVO uuid(String uuid) {
+ this.uuid = uuid;
+ return this;
+ }
+
+ /**
+ * Unique identifier of the characteristic
+ * @return id
+ */
+
+ @Schema(name = "uuid", description = "Unique identifier of the characteristic", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
+ @JsonProperty("uuid")
+ public String getUuid() {
+ return uuid;
+ }
+
+ public void setUuid(String uuid) {
+ this.uuid = uuid;
+ }
+
+ public CharacteristicMVO name(String name) {
+ this.name = name;
+ return this;
+ }
+
+ /**
+ * Name of the characteristic
+ * @return name
+ */
+
+ @Schema(name = "name", description = "Name of the characteristic", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
+ @JsonProperty("name")
+ public String getName() {
+ return name;
+ }
+
+ public void setName(String name) {
+ this.name = name;
+ }
+
+ public CharacteristicMVO valueType(String valueType) {
+ this.valueType = valueType;
+ return this;
+ }
+
+ /**
+ * Data type of the value of the characteristic
+ * @return valueType
+ */
+
+ @Schema(name = "valueType", description = "Data type of the value of the characteristic", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
+ @JsonProperty("valueType")
+ public String getValueType() {
+ return valueType;
+ }
+
+ public void setValueType(String valueType) {
+ this.valueType = valueType;
+ }
+
+ public CharacteristicMVO characteristicRelationship(List characteristicRelationship) {
+ this.characteristicRelationship = characteristicRelationship;
+ return this;
+ }
+
+ public CharacteristicMVO addCharacteristicRelationshipItem(CharacteristicRelationshipMVO characteristicRelationshipItem) {
+ if (this.characteristicRelationship == null) {
+ this.characteristicRelationship = new ArrayList<>();
+ }
+ this.characteristicRelationship.add(characteristicRelationshipItem);
+ return this;
+ }
+
+ /**
+ * Collection of characteristic relationships
+ * @return characteristicRelationship
+ */
+ @Valid
+ @Schema(name = "characteristicRelationship", description = "Collection of characteristic relationships", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
+ @JsonProperty("characteristicRelationship")
+ public List getCharacteristicRelationship() {
+ return characteristicRelationship;
+ }
+
+ public void setCharacteristicRelationship(List characteristicRelationship) {
+ this.characteristicRelationship = characteristicRelationship;
+ }
+
+ @Override
+ public boolean equals(Object o) {
+ if (this == o) {
+ return true;
+ }
+ if (o == null || getClass() != o.getClass()) {
+ return false;
+ }
+ CharacteristicMVO characteristicMVO = (CharacteristicMVO) o;
+ return Objects.equals(this.type, characteristicMVO.type) &&
+ Objects.equals(this.baseType, characteristicMVO.baseType) &&
+ Objects.equals(this.schemaLocation, characteristicMVO.schemaLocation) &&
+ Objects.equals(this.uuid, characteristicMVO.uuid) &&
+ Objects.equals(this.name, characteristicMVO.name) &&
+ Objects.equals(this.valueType, characteristicMVO.valueType) &&
+ Objects.equals(this.characteristicRelationship, characteristicMVO.characteristicRelationship);
+ }
+
+ @Override
+ public int hashCode() {
+ return Objects.hash(type, baseType, schemaLocation, uuid, name, valueType, characteristicRelationship);
+ }
+
+ @Override
+ public String toString() {
+ StringBuilder sb = new StringBuilder();
+ sb.append("class CharacteristicMVO {\n");
+ sb.append(" type: ").append(toIndentedString(type)).append("\n");
+ sb.append(" baseType: ").append(toIndentedString(baseType)).append("\n");
+ sb.append(" schemaLocation: ").append(toIndentedString(schemaLocation)).append("\n");
+ sb.append(" id: ").append(toIndentedString(uuid)).append("\n");
+ sb.append(" name: ").append(toIndentedString(name)).append("\n");
+ sb.append(" valueType: ").append(toIndentedString(valueType)).append("\n");
+ sb.append(" characteristicRelationship: ").append(toIndentedString(characteristicRelationship)).append("\n");
+ sb.append("}");
+ return sb.toString();
+ }
+
+ /**
+ * Convert the given object to string with each line indented by 4 spaces
+ * (except the first line).
+ */
+ private String toIndentedString(Object o) {
+ if (o == null) {
+ return "null";
+ }
+ return o.toString().replace("\n", "\n ");
+ }
+}
+
diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/CharacteristicRelationship.java b/src/main/java/org/etsi/osl/tmf/pm628/model/CharacteristicRelationship.java
new file mode 100644
index 0000000000000000000000000000000000000000..de47f79c2483b53b8903dabe15b7bdf79af69a06
--- /dev/null
+++ b/src/main/java/org/etsi/osl/tmf/pm628/model/CharacteristicRelationship.java
@@ -0,0 +1,103 @@
+package org.etsi.osl.tmf.pm628.model;
+
+import com.fasterxml.jackson.annotation.JsonProperty;
+import io.swagger.v3.oas.annotations.media.Schema;
+import jakarta.persistence.Entity;
+import org.etsi.osl.tmf.common.model.BaseRootEntity;
+
+import javax.annotation.Generated;
+import java.util.Objects;
+
+/**
+ * CharacteristicRelationship
+ */
+
+
+@Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-05-15T07:30:16.936523289Z[Etc/UTC]", comments = "Generator version: 7.6.0-SNAPSHOT")
+@Entity(name = "PM628_CharRel")
+public class CharacteristicRelationship extends BaseRootEntity {
+
+ @JsonProperty("relationshipType")
+ private String relationshipType;
+
+ public CharacteristicRelationship() {
+ super();
+ }
+
+ /**
+ * Constructor with only required parameters
+ */
+ public CharacteristicRelationship(String type) {
+ this.type = type;
+ }
+
+ public CharacteristicRelationship type(String type) {
+ this.type = type;
+ return this;
+ }
+
+ public CharacteristicRelationship relationshipType(String relationshipType) {
+ this.relationshipType = relationshipType;
+ return this;
+ }
+
+ /**
+ * The type of relationship
+ * @return relationshipType
+ */
+
+ @Schema(name = "relationshipType", description = "The type of relationship", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
+ @JsonProperty("relationshipType")
+ public String getRelationshipType() {
+ return relationshipType;
+ }
+
+ public void setRelationshipType(String relationshipType) {
+ this.relationshipType = relationshipType;
+ }
+
+ @Override
+ public boolean equals(Object o) {
+ if (this == o) {
+ return true;
+ }
+ if (o == null || getClass() != o.getClass()) {
+ return false;
+ }
+ CharacteristicRelationship characteristicRelationship = (CharacteristicRelationship) o;
+ return Objects.equals(this.type, characteristicRelationship.type) &&
+ Objects.equals(this.baseType, characteristicRelationship.baseType) &&
+ Objects.equals(this.schemaLocation, characteristicRelationship.schemaLocation) &&
+ Objects.equals(this.uuid, characteristicRelationship.uuid) &&
+ Objects.equals(this.relationshipType, characteristicRelationship.relationshipType);
+ }
+
+ @Override
+ public int hashCode() {
+ return Objects.hash(type, baseType, schemaLocation, uuid, relationshipType);
+ }
+
+ @Override
+ public String toString() {
+ StringBuilder sb = new StringBuilder();
+ sb.append("class CharacteristicRelationship {\n");
+ sb.append(" type: ").append(toIndentedString(type)).append("\n");
+ sb.append(" baseType: ").append(toIndentedString(baseType)).append("\n");
+ sb.append(" schemaLocation: ").append(toIndentedString(schemaLocation)).append("\n");
+ sb.append(" id: ").append(toIndentedString(uuid)).append("\n");
+ sb.append(" relationshipType: ").append(toIndentedString(relationshipType)).append("\n");
+ sb.append("}");
+ return sb.toString();
+ }
+
+ /**
+ * Convert the given object to string with each line indented by 4 spaces
+ * (except the first line).
+ */
+ private String toIndentedString(Object o) {
+ if (o == null) {
+ return "null";
+ }
+ return o.toString().replace("\n", "\n ");
+ }
+}
\ No newline at end of file
diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/CharacteristicRelationshipFVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/CharacteristicRelationshipFVO.java
new file mode 100644
index 0000000000000000000000000000000000000000..c34c4542c7780f5e3df8b1e32cd59213539cfa68
--- /dev/null
+++ b/src/main/java/org/etsi/osl/tmf/pm628/model/CharacteristicRelationshipFVO.java
@@ -0,0 +1,191 @@
+package org.etsi.osl.tmf.pm628.model;
+
+import com.fasterxml.jackson.annotation.JsonProperty;
+import io.swagger.v3.oas.annotations.media.Schema;
+import jakarta.validation.constraints.NotNull;
+
+import javax.annotation.Generated;
+import java.util.Objects;
+
+/**
+ * CharacteristicRelationshipFVO
+ */
+
+
+@Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-05-15T07:30:16.936523289Z[Etc/UTC]", comments = "Generator version: 7.6.0-SNAPSHOT")
+public class CharacteristicRelationshipFVO {
+
+ @JsonProperty("@type")
+ private String type;
+
+ @JsonProperty("@baseType")
+ private String baseType;
+
+ @JsonProperty("@schemaLocation")
+ private String schemaLocation;
+
+ @JsonProperty("uuid")
+ private String uuid;
+
+ @JsonProperty("relationshipType")
+ private String relationshipType;
+
+ public CharacteristicRelationshipFVO() {
+ super();
+ }
+
+ /**
+ * Constructor with only required parameters
+ */
+ public CharacteristicRelationshipFVO(String type, String uuid, String relationshipType) {
+ this.type = type;
+ this.uuid = uuid;
+ this.relationshipType = relationshipType;
+ }
+
+ public CharacteristicRelationshipFVO type(String type) {
+ this.type = type;
+ return this;
+ }
+
+ /**
+ * When sub-classing, this defines the sub-class Extensible name
+ * @return type
+ */
+ @NotNull
+ @Schema(name = "@type", description = "When sub-classing, this defines the sub-class Extensible name", requiredMode = Schema.RequiredMode.REQUIRED)
+ @JsonProperty("@type")
+ public String getType() {
+ return type;
+ }
+
+ public void setType(String type) {
+ this.type = type;
+ }
+
+ public CharacteristicRelationshipFVO baseType(String baseType) {
+ this.baseType = baseType;
+ return this;
+ }
+
+ /**
+ * When sub-classing, this defines the super-class
+ * @return baseType
+ */
+
+ @Schema(name = "@baseType", description = "When sub-classing, this defines the super-class", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
+ @JsonProperty("@baseType")
+ public String getBaseType() {
+ return baseType;
+ }
+
+ public void setBaseType(String baseType) {
+ this.baseType = baseType;
+ }
+
+ public CharacteristicRelationshipFVO schemaLocation(String schemaLocation) {
+ this.schemaLocation = schemaLocation;
+ return this;
+ }
+
+ /**
+ * A URI to a JSON-Schema file that defines additional attributes and relationships
+ * @return schemaLocation
+ */
+
+ @Schema(name = "@schemaLocation", description = "A URI to a JSON-Schema file that defines additional attributes and relationships", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
+ @JsonProperty("@schemaLocation")
+ public String getSchemaLocation() {
+ return schemaLocation;
+ }
+
+ public void setSchemaLocation(String schemaLocation) {
+ this.schemaLocation = schemaLocation;
+ }
+
+ public CharacteristicRelationshipFVO uuid(String uuid) {
+ this.uuid = uuid;
+ return this;
+ }
+
+ /**
+ * Unique identifier of the characteristic
+ * @return id
+ */
+ @NotNull
+ @Schema(name = "uuid", description = "Unique identifier of the characteristic", requiredMode = Schema.RequiredMode.REQUIRED)
+ @JsonProperty("uuid")
+ public String getUuid() {
+ return uuid;
+ }
+
+ public void setUuid(String uuid) {
+ this.uuid = uuid;
+ }
+
+ public CharacteristicRelationshipFVO relationshipType(String relationshipType) {
+ this.relationshipType = relationshipType;
+ return this;
+ }
+
+ /**
+ * The type of relationship
+ * @return relationshipType
+ */
+ @NotNull
+ @Schema(name = "relationshipType", description = "The type of relationship", requiredMode = Schema.RequiredMode.REQUIRED)
+ @JsonProperty("relationshipType")
+ public String getRelationshipType() {
+ return relationshipType;
+ }
+
+ public void setRelationshipType(String relationshipType) {
+ this.relationshipType = relationshipType;
+ }
+
+ @Override
+ public boolean equals(Object o) {
+ if (this == o) {
+ return true;
+ }
+ if (o == null || getClass() != o.getClass()) {
+ return false;
+ }
+ CharacteristicRelationshipFVO characteristicRelationshipFVO = (CharacteristicRelationshipFVO) o;
+ return Objects.equals(this.type, characteristicRelationshipFVO.type) &&
+ Objects.equals(this.baseType, characteristicRelationshipFVO.baseType) &&
+ Objects.equals(this.schemaLocation, characteristicRelationshipFVO.schemaLocation) &&
+ Objects.equals(this.uuid, characteristicRelationshipFVO.uuid) &&
+ Objects.equals(this.relationshipType, characteristicRelationshipFVO.relationshipType);
+ }
+
+ @Override
+ public int hashCode() {
+ return Objects.hash(type, baseType, schemaLocation, uuid, relationshipType);
+ }
+
+ @Override
+ public String toString() {
+ StringBuilder sb = new StringBuilder();
+ sb.append("class CharacteristicRelationshipFVO {\n");
+ sb.append(" type: ").append(toIndentedString(type)).append("\n");
+ sb.append(" baseType: ").append(toIndentedString(baseType)).append("\n");
+ sb.append(" schemaLocation: ").append(toIndentedString(schemaLocation)).append("\n");
+ sb.append(" id: ").append(toIndentedString(uuid)).append("\n");
+ sb.append(" relationshipType: ").append(toIndentedString(relationshipType)).append("\n");
+ sb.append("}");
+ return sb.toString();
+ }
+
+ /**
+ * Convert the given object to string with each line indented by 4 spaces
+ * (except the first line).
+ */
+ private String toIndentedString(Object o) {
+ if (o == null) {
+ return "null";
+ }
+ return o.toString().replace("\n", "\n ");
+ }
+}
+
diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/CharacteristicRelationshipMVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/CharacteristicRelationshipMVO.java
new file mode 100644
index 0000000000000000000000000000000000000000..7e9848ca0f28110d53a4aaa4d9c6d597531b1e3e
--- /dev/null
+++ b/src/main/java/org/etsi/osl/tmf/pm628/model/CharacteristicRelationshipMVO.java
@@ -0,0 +1,189 @@
+package org.etsi.osl.tmf.pm628.model;
+
+import com.fasterxml.jackson.annotation.JsonProperty;
+import io.swagger.v3.oas.annotations.media.Schema;
+import jakarta.validation.constraints.NotNull;
+
+import javax.annotation.Generated;
+import java.util.Objects;
+
+/**
+ * CharacteristicRelationshipMVO
+ */
+
+
+@Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-05-15T07:30:16.936523289Z[Etc/UTC]", comments = "Generator version: 7.6.0-SNAPSHOT")
+public class CharacteristicRelationshipMVO {
+
+ @JsonProperty("@type")
+ private String type;
+
+ @JsonProperty("@baseType")
+ private String baseType;
+
+ @JsonProperty("@schemaLocation")
+ private String schemaLocation;
+
+ @JsonProperty("uuid")
+ private String uuid;
+
+ @JsonProperty("relationshipType")
+ private String relationshipType;
+
+ public CharacteristicRelationshipMVO() {
+ super();
+ }
+
+ /**
+ * Constructor with only required parameters
+ */
+ public CharacteristicRelationshipMVO(String type) {
+ this.type = type;
+ }
+
+ public CharacteristicRelationshipMVO type(String type) {
+ this.type = type;
+ return this;
+ }
+
+ /**
+ * When sub-classing, this defines the sub-class Extensible name
+ * @return type
+ */
+ @NotNull
+ @Schema(name = "@type", description = "When sub-classing, this defines the sub-class Extensible name", requiredMode = Schema.RequiredMode.REQUIRED)
+ @JsonProperty("@type")
+ public String getType() {
+ return type;
+ }
+
+ public void setType(String type) {
+ this.type = type;
+ }
+
+ public CharacteristicRelationshipMVO baseType(String baseType) {
+ this.baseType = baseType;
+ return this;
+ }
+
+ /**
+ * When sub-classing, this defines the super-class
+ * @return baseType
+ */
+
+ @Schema(name = "@baseType", description = "When sub-classing, this defines the super-class", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
+ @JsonProperty("@baseType")
+ public String getBaseType() {
+ return baseType;
+ }
+
+ public void setBaseType(String baseType) {
+ this.baseType = baseType;
+ }
+
+ public CharacteristicRelationshipMVO schemaLocation(String schemaLocation) {
+ this.schemaLocation = schemaLocation;
+ return this;
+ }
+
+ /**
+ * A URI to a JSON-Schema file that defines additional attributes and relationships
+ * @return schemaLocation
+ */
+
+ @Schema(name = "@schemaLocation", description = "A URI to a JSON-Schema file that defines additional attributes and relationships", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
+ @JsonProperty("@schemaLocation")
+ public String getSchemaLocation() {
+ return schemaLocation;
+ }
+
+ public void setSchemaLocation(String schemaLocation) {
+ this.schemaLocation = schemaLocation;
+ }
+
+ public CharacteristicRelationshipMVO uuid(String uuid) {
+ this.uuid = uuid;
+ return this;
+ }
+
+ /**
+ * Unique identifier of the characteristic
+ * @return id
+ */
+
+ @Schema(name = "uuid", description = "Unique identifier of the characteristic", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
+ @JsonProperty("uuid")
+ public String getUuid() {
+ return uuid;
+ }
+
+ public void setUuid(String uuid) {
+ this.uuid = uuid;
+ }
+
+ public CharacteristicRelationshipMVO relationshipType(String relationshipType) {
+ this.relationshipType = relationshipType;
+ return this;
+ }
+
+ /**
+ * The type of relationship
+ * @return relationshipType
+ */
+
+ @Schema(name = "relationshipType", description = "The type of relationship", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
+ @JsonProperty("relationshipType")
+ public String getRelationshipType() {
+ return relationshipType;
+ }
+
+ public void setRelationshipType(String relationshipType) {
+ this.relationshipType = relationshipType;
+ }
+
+ @Override
+ public boolean equals(Object o) {
+ if (this == o) {
+ return true;
+ }
+ if (o == null || getClass() != o.getClass()) {
+ return false;
+ }
+ CharacteristicRelationshipMVO characteristicRelationshipMVO = (CharacteristicRelationshipMVO) o;
+ return Objects.equals(this.type, characteristicRelationshipMVO.type) &&
+ Objects.equals(this.baseType, characteristicRelationshipMVO.baseType) &&
+ Objects.equals(this.schemaLocation, characteristicRelationshipMVO.schemaLocation) &&
+ Objects.equals(this.uuid, characteristicRelationshipMVO.uuid) &&
+ Objects.equals(this.relationshipType, characteristicRelationshipMVO.relationshipType);
+ }
+
+ @Override
+ public int hashCode() {
+ return Objects.hash(type, baseType, schemaLocation, uuid, relationshipType);
+ }
+
+ @Override
+ public String toString() {
+ StringBuilder sb = new StringBuilder();
+ sb.append("class CharacteristicRelationshipMVO {\n");
+ sb.append(" type: ").append(toIndentedString(type)).append("\n");
+ sb.append(" baseType: ").append(toIndentedString(baseType)).append("\n");
+ sb.append(" schemaLocation: ").append(toIndentedString(schemaLocation)).append("\n");
+ sb.append(" id: ").append(toIndentedString(uuid)).append("\n");
+ sb.append(" relationshipType: ").append(toIndentedString(relationshipType)).append("\n");
+ sb.append("}");
+ return sb.toString();
+ }
+
+ /**
+ * Convert the given object to string with each line indented by 4 spaces
+ * (except the first line).
+ */
+ private String toIndentedString(Object o) {
+ if (o == null) {
+ return "null";
+ }
+ return o.toString().replace("\n", "\n ");
+ }
+}
+
diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/CollectionType.java b/src/main/java/org/etsi/osl/tmf/pm628/model/CollectionType.java
new file mode 100644
index 0000000000000000000000000000000000000000..fd78965924ac5bc357a3ceada60ae34c037a8d11
--- /dev/null
+++ b/src/main/java/org/etsi/osl/tmf/pm628/model/CollectionType.java
@@ -0,0 +1,51 @@
+package org.etsi.osl.tmf.pm628.model;
+
+import com.fasterxml.jackson.annotation.JsonCreator;
+import com.fasterxml.jackson.annotation.JsonValue;
+
+import javax.annotation.Generated;
+
+/**
+ * This is enumeration for CollectionType state
+ */
+
+@Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-05-15T07:30:16.936523289Z[Etc/UTC]", comments = "Generator version: 7.6.0-SNAPSHOT")
+public enum CollectionType {
+
+ CUMULATIVE("cumulative"),
+
+ DELTA("delta"),
+
+ DISCRETE_EVENT("discrete_event"),
+
+ GAUGE("gauge"),
+
+ STATUS_INSPECTION("status_inspection");
+
+ private String value;
+
+ CollectionType(String value) {
+ this.value = value;
+ }
+
+ @JsonValue
+ public String getValue() {
+ return value;
+ }
+
+ @Override
+ public String toString() {
+ return String.valueOf(value);
+ }
+
+ @JsonCreator
+ public static CollectionType fromValue(String value) {
+ for (CollectionType b : CollectionType.values()) {
+ if (b.value.equals(value)) {
+ return b;
+ }
+ }
+ throw new IllegalArgumentException("Unexpected value '" + value + "'");
+ }
+}
+
diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/CompressionEnumType.java b/src/main/java/org/etsi/osl/tmf/pm628/model/CompressionEnumType.java
new file mode 100644
index 0000000000000000000000000000000000000000..67a3f638db78db3ce30f04d022741bd03e694aac
--- /dev/null
+++ b/src/main/java/org/etsi/osl/tmf/pm628/model/CompressionEnumType.java
@@ -0,0 +1,49 @@
+package org.etsi.osl.tmf.pm628.model;
+
+import com.fasterxml.jackson.annotation.JsonCreator;
+import com.fasterxml.jackson.annotation.JsonValue;
+
+import javax.annotation.Generated;
+
+/**
+ * Enumeration of supported compressions. All extensions allowed.
+ */
+
+@Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-05-15T07:30:16.936523289Z[Etc/UTC]", comments = "Generator version: 7.6.0-SNAPSHOT")
+public enum CompressionEnumType {
+
+ NO_COMPRESSION("no_compression"),
+
+ GZIP("gzip"),
+
+ VENDOR_EXT("vendor_ext"),
+
+ MINOR_EXT("minor_ext");
+
+ private String value;
+
+ CompressionEnumType(String value) {
+ this.value = value;
+ }
+
+ @JsonValue
+ public String getValue() {
+ return value;
+ }
+
+ @Override
+ public String toString() {
+ return String.valueOf(value);
+ }
+
+ @JsonCreator
+ public static CompressionEnumType fromValue(String value) {
+ for (CompressionEnumType b : CompressionEnumType.values()) {
+ if (b.value.equals(value)) {
+ return b;
+ }
+ }
+ throw new IllegalArgumentException("Unexpected value '" + value + "'");
+ }
+}
+
diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/CompressionType.java b/src/main/java/org/etsi/osl/tmf/pm628/model/CompressionType.java
new file mode 100644
index 0000000000000000000000000000000000000000..c3818df3b6ed4f4270218e866af9f124331a5a8b
--- /dev/null
+++ b/src/main/java/org/etsi/osl/tmf/pm628/model/CompressionType.java
@@ -0,0 +1,80 @@
+package org.etsi.osl.tmf.pm628.model;
+
+import com.fasterxml.jackson.annotation.JsonProperty;
+import io.swagger.v3.oas.annotations.media.Schema;
+import jakarta.persistence.Embeddable;
+import jakarta.validation.Valid;
+
+import javax.annotation.Generated;
+import java.util.Objects;
+
+/**
+ * File compression type.
+ */
+
+@Schema(name = "CompressionType", description = "File compression type.")
+@Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-05-15T07:30:16.936523289Z[Etc/UTC]", comments = "Generator version: 7.6.0-SNAPSHOT")
+@Embeddable
+public class CompressionType {
+
+ @JsonProperty("compressionEnumType")
+ private CompressionEnumType compressionEnumType;
+
+ public CompressionType compressionEnumType(CompressionEnumType compressionEnumType) {
+ this.compressionEnumType = compressionEnumType;
+ return this;
+ }
+
+ /**
+ * Get compressionEnumType
+ * @return compressionEnumType
+ */
+ @Valid
+ @Schema(name = "compressionEnumType", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
+ @JsonProperty("compressionEnumType")
+ public CompressionEnumType getCompressionEnumType() {
+ return compressionEnumType;
+ }
+
+ public void setCompressionEnumType(CompressionEnumType compressionEnumType) {
+ this.compressionEnumType = compressionEnumType;
+ }
+
+ @Override
+ public boolean equals(Object o) {
+ if (this == o) {
+ return true;
+ }
+ if (o == null || getClass() != o.getClass()) {
+ return false;
+ }
+ CompressionType compressionType = (CompressionType) o;
+ return Objects.equals(this.compressionEnumType, compressionType.compressionEnumType);
+ }
+
+ @Override
+ public int hashCode() {
+ return Objects.hash(compressionEnumType);
+ }
+
+ @Override
+ public String toString() {
+ StringBuilder sb = new StringBuilder();
+ sb.append("class CompressionType {\n");
+ sb.append(" compressionEnumType: ").append(toIndentedString(compressionEnumType)).append("\n");
+ sb.append("}");
+ return sb.toString();
+ }
+
+ /**
+ * Convert the given object to string with each line indented by 4 spaces
+ * (except the first line).
+ */
+ private String toIndentedString(Object o) {
+ if (o == null) {
+ return "null";
+ }
+ return o.toString().replace("\n", "\n ");
+ }
+}
+
diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/DataAccessEndpoint.java b/src/main/java/org/etsi/osl/tmf/pm628/model/DataAccessEndpoint.java
new file mode 100644
index 0000000000000000000000000000000000000000..df95ffda51e7ce2132c5fd6a6ec0b81fc6870562
--- /dev/null
+++ b/src/main/java/org/etsi/osl/tmf/pm628/model/DataAccessEndpoint.java
@@ -0,0 +1,315 @@
+package org.etsi.osl.tmf.pm628.model;
+
+import com.fasterxml.jackson.annotation.JsonProperty;
+import io.swagger.v3.oas.annotations.media.Schema;
+import jakarta.persistence.Embedded;
+import jakarta.persistence.Entity;
+import jakarta.validation.Valid;
+import org.etsi.osl.tmf.common.model.AttachmentRef;
+import org.etsi.osl.tmf.common.model.TimePeriod;
+import org.etsi.osl.tmf.common.model.service.Note;
+import org.etsi.osl.tmf.rcm634.model.ResourceSpecificationRef;
+import org.etsi.osl.tmf.ri639.model.ResourceAdministrativeStateType;
+import org.etsi.osl.tmf.ri639.model.ResourceOperationalStateType;
+import org.etsi.osl.tmf.ri639.model.ResourceUsageStateType;
+
+import javax.annotation.Generated;
+import java.net.URI;
+import java.time.OffsetDateTime;
+import java.util.List;
+import java.util.Objects;
+
+/**
+ * DataAccessEndpoint
+ */
+
+
+@Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-05-15T07:30:16.936523289Z[Etc/UTC]", comments = "Generator version: 7.6.0-SNAPSHOT")
+@Entity(name = "PM628_DAE")
+public class DataAccessEndpoint extends LogicalResource {
+
+ @JsonProperty("uri")
+ private URI uri;
+
+ @Embedded
+ @JsonProperty("uriQueryFilter")
+ private DataFilterMap uriQueryFilter;
+
+ @JsonProperty("apiType")
+ private String apiType;
+
+ public DataAccessEndpoint() {
+ super();
+ }
+
+ /**
+ * Constructor with only required parameters
+ */
+ public DataAccessEndpoint(String atType) {
+ super(atType);
+ }
+
+ public DataAccessEndpoint uri(URI uri) {
+ this.uri = uri;
+ return this;
+ }
+
+ /**
+ * URI for using the data access API
+ * @return uri
+ */
+ @Valid
+ @Schema(name = "uri", description = "URI for using the data access API", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
+ @JsonProperty("uri")
+ public URI getUri() {
+ return uri;
+ }
+
+ public void setUri(URI uri) {
+ this.uri = uri;
+ }
+
+ public DataAccessEndpoint uriQueryFilter(DataFilterMap uriQueryFilter) {
+ this.uriQueryFilter = uriQueryFilter;
+ return this;
+ }
+
+ /**
+ * Get uriQueryFilter
+ * @return uriQueryFilter
+ */
+ @Valid
+ @Schema(name = "uriQueryFilter", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
+ @JsonProperty("uriQueryFilter")
+ public DataFilterMap getUriQueryFilter() {
+ return uriQueryFilter;
+ }
+
+ public void setUriQueryFilter(DataFilterMap uriQueryFilter) {
+ this.uriQueryFilter = uriQueryFilter;
+ }
+
+ public DataAccessEndpoint apiType(String apiType) {
+ this.apiType = apiType;
+ return this;
+ }
+
+ /**
+ * Get apiType
+ * @return apiType
+ */
+
+ @Schema(name = "apiType", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
+ @JsonProperty("apiType")
+ public String getApiType() {
+ return apiType;
+ }
+
+ public void setApiType(String apiType) {
+ this.apiType = apiType;
+ }
+
+
+ public DataAccessEndpoint value(String value) {
+ super.value(value);
+ return this;
+ }
+
+ public DataAccessEndpoint category(String category) {
+ super.category(category);
+ return this;
+ }
+
+ public DataAccessEndpoint description(String description) {
+ super.description(description);
+ return this;
+ }
+
+ public DataAccessEndpoint name(String name) {
+ super.name(name);
+ return this;
+ }
+
+ public DataAccessEndpoint endOperatingDate(OffsetDateTime endOperatingDate) {
+ super.endOperatingDate(endOperatingDate);
+ return this;
+ }
+
+ public DataAccessEndpoint administrativeState(ResourceAdministrativeStateType administrativeState) {
+ super.administrativeState(administrativeState);
+ return this;
+ }
+
+ public DataAccessEndpoint operationalState(ResourceOperationalStateType operationalState) {
+ super.operationalState(operationalState);
+ return this;
+ }
+
+ public DataAccessEndpoint resourceStatus(ResourceStatusType resourceStatus) {
+ super.resourceStatus(resourceStatus);
+ return this;
+ }
+
+ public DataAccessEndpoint usageState(ResourceUsageStateType usageState) {
+ super.usageState(usageState);
+ return this;
+ }
+
+ public DataAccessEndpoint validFor(TimePeriod validFor) {
+ super.validFor(validFor);
+ return this;
+ }
+
+ public DataAccessEndpoint note(List note) {
+ super.note(note);
+ return this;
+ }
+
+ public DataAccessEndpoint addNoteItem(Note noteItem) {
+ super.addNoteItem(noteItem);
+ return this;
+ }
+
+ public DataAccessEndpoint resourceOrderItem(List resourceOrderItem) {
+ super.resourceOrderItem(resourceOrderItem);
+ return this;
+ }
+
+ public DataAccessEndpoint addResourceOrderItemItem(RelatedResourceOrderItem resourceOrderItemItem) {
+ super.addResourceOrderItemItem(resourceOrderItemItem);
+ return this;
+ }
+
+ public DataAccessEndpoint place(List place) {
+ super.place(place);
+ return this;
+ }
+
+ public DataAccessEndpoint addPlaceItem(RelatedPlaceRef placeItem) {
+ super.addPlaceItem(placeItem);
+ return this;
+ }
+
+ public DataAccessEndpoint relatedParty(List relatedParty) {
+ super.relatedParty(relatedParty);
+ return this;
+ }
+
+ public DataAccessEndpoint addRelatedPartyItem(RelatedPartyRefOrPartyRoleRef relatedPartyItem) {
+ super.addRelatedPartyItem(relatedPartyItem);
+ return this;
+ }
+
+ public DataAccessEndpoint resourceRelationship(List resourceRelationship) {
+ super.resourceRelationship(resourceRelationship);
+ return this;
+ }
+
+ public DataAccessEndpoint addResourceRelationshipItem(ResourceRelationship resourceRelationshipItem) {
+ super.addResourceRelationshipItem(resourceRelationshipItem);
+ return this;
+ }
+
+ public DataAccessEndpoint resourceCharacteristic(List resourceCharacteristic) {
+ super.resourceCharacteristic(resourceCharacteristic);
+ return this;
+ }
+
+ public DataAccessEndpoint addResourceCharacteristicItem(Characteristic resourceCharacteristicItem) {
+ super.addResourceCharacteristicItem(resourceCharacteristicItem);
+ return this;
+ }
+
+ public DataAccessEndpoint attachment(List attachment) {
+ super.attachment(attachment);
+ return this;
+ }
+
+ public DataAccessEndpoint addAttachmentItem(AttachmentRef attachmentItem) {
+ super.addAttachmentItem(attachmentItem);
+ return this;
+ }
+
+ public DataAccessEndpoint resourceSpecification(ResourceSpecificationRef resourceSpecification) {
+ super.resourceSpecification(resourceSpecification);
+ return this;
+ }
+
+ public DataAccessEndpoint startOperatingDate(OffsetDateTime startOperatingDate) {
+ super.startOperatingDate(startOperatingDate);
+ return this;
+ }
+
+ public DataAccessEndpoint resourceVersion(String resourceVersion) {
+ super.resourceVersion(resourceVersion);
+ return this;
+ }
+
+ public DataAccessEndpoint activationFeature(List activationFeature) {
+ super.activationFeature(activationFeature);
+ return this;
+ }
+
+ public DataAccessEndpoint addActivationFeatureItem(Feature activationFeatureItem) {
+ super.addActivationFeatureItem(activationFeatureItem);
+ return this;
+ }
+
+ public DataAccessEndpoint intent(IntentRef intent) {
+ super.intent(intent);
+ return this;
+ }
+
+ public DataAccessEndpoint externalIdentifier(List externalIdentifier) {
+ super.externalIdentifier(externalIdentifier);
+ return this;
+ }
+
+ public DataAccessEndpoint addExternalIdentifierItem(ExternalIdentifier externalIdentifierItem) {
+ super.addExternalIdentifierItem(externalIdentifierItem);
+ return this;
+ }
+ @Override
+ public boolean equals(Object o) {
+ if (this == o) {
+ return true;
+ }
+ if (o == null || getClass() != o.getClass()) {
+ return false;
+ }
+ DataAccessEndpoint dataAccessEndpoint = (DataAccessEndpoint) o;
+ return Objects.equals(this.uri, dataAccessEndpoint.uri) &&
+ Objects.equals(this.uriQueryFilter, dataAccessEndpoint.uriQueryFilter) &&
+ Objects.equals(this.apiType, dataAccessEndpoint.apiType) &&
+ super.equals(o);
+ }
+
+ @Override
+ public int hashCode() {
+ return Objects.hash(uri, uriQueryFilter, apiType, super.hashCode());
+ }
+
+ @Override
+ public String toString() {
+ StringBuilder sb = new StringBuilder();
+ sb.append("class DataAccessEndpoint {\n");
+ sb.append(" ").append(toIndentedString(super.toString())).append("\n");
+ sb.append(" uri: ").append(toIndentedString(uri)).append("\n");
+ sb.append(" uriQueryFilter: ").append(toIndentedString(uriQueryFilter)).append("\n");
+ sb.append(" apiType: ").append(toIndentedString(apiType)).append("\n");
+ sb.append("}");
+ return sb.toString();
+ }
+
+ /**
+ * Convert the given object to string with each line indented by 4 spaces
+ * (except the first line).
+ */
+ private String toIndentedString(Object o) {
+ if (o == null) {
+ return "null";
+ }
+ return o.toString().replace("\n", "\n ");
+ }
+}
+
diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/DataAccessEndpointFVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/DataAccessEndpointFVO.java
new file mode 100644
index 0000000000000000000000000000000000000000..3637fc798523038489315b0a2e1343cd8b692da0
--- /dev/null
+++ b/src/main/java/org/etsi/osl/tmf/pm628/model/DataAccessEndpointFVO.java
@@ -0,0 +1,333 @@
+package org.etsi.osl.tmf.pm628.model;
+
+import com.fasterxml.jackson.annotation.JsonProperty;
+import io.swagger.v3.oas.annotations.media.Schema;
+import jakarta.validation.Valid;
+import org.etsi.osl.tmf.common.model.TimePeriod;
+import org.etsi.osl.tmf.ri639.model.ResourceAdministrativeStateType;
+import org.etsi.osl.tmf.ri639.model.ResourceOperationalStateType;
+import org.etsi.osl.tmf.ri639.model.ResourceUsageStateType;
+
+import javax.annotation.Generated;
+import java.net.URI;
+import java.time.OffsetDateTime;
+import java.util.List;
+import java.util.Objects;
+
+/**
+ * DataAccessEndpointFVO
+ */
+
+
+@Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-05-15T07:30:16.936523289Z[Etc/UTC]", comments = "Generator version: 7.6.0-SNAPSHOT")
+public class DataAccessEndpointFVO extends LogicalResourceFVO {
+
+ @JsonProperty("uri")
+ private URI uri;
+
+ @JsonProperty("uriQueryFilter")
+ private DataFilterMapFVO uriQueryFilter;
+
+ @JsonProperty("apiType")
+ private String apiType;
+
+ public DataAccessEndpointFVO() {
+ super();
+ }
+
+ /**
+ * Constructor with only required parameters
+ */
+ public DataAccessEndpointFVO(String atType) {
+ super(atType);
+ }
+
+ public DataAccessEndpointFVO uri(URI uri) {
+ this.uri = uri;
+ return this;
+ }
+
+ /**
+ * URI for using the data access API
+ * @return uri
+ */
+ @Valid
+ @Schema(name = "uri", description = "URI for using the data access API", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
+ @JsonProperty("uri")
+ public URI getUri() {
+ return uri;
+ }
+
+ public void setUri(URI uri) {
+ this.uri = uri;
+ }
+
+ public DataAccessEndpointFVO uriQueryFilter(DataFilterMapFVO uriQueryFilter) {
+ this.uriQueryFilter = uriQueryFilter;
+ return this;
+ }
+
+ /**
+ * Get uriQueryFilter
+ * @return uriQueryFilter
+ */
+ @Valid
+ @Schema(name = "uriQueryFilter", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
+ @JsonProperty("uriQueryFilter")
+ public DataFilterMapFVO getUriQueryFilter() {
+ return uriQueryFilter;
+ }
+
+ public void setUriQueryFilter(DataFilterMapFVO uriQueryFilter) {
+ this.uriQueryFilter = uriQueryFilter;
+ }
+
+ public DataAccessEndpointFVO apiType(String apiType) {
+ this.apiType = apiType;
+ return this;
+ }
+
+ /**
+ * Get apiType
+ * @return apiType
+ */
+
+ @Schema(name = "apiType", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
+ @JsonProperty("apiType")
+ public String getApiType() {
+ return apiType;
+ }
+
+ public void setApiType(String apiType) {
+ this.apiType = apiType;
+ }
+
+
+ public DataAccessEndpointFVO value(String value) {
+ super.value(value);
+ return this;
+ }
+
+ public DataAccessEndpointFVO type(String type) {
+ super.type(type);
+ return this;
+ }
+
+ public DataAccessEndpointFVO baseType(String baseType) {
+ super.baseType(baseType);
+ return this;
+ }
+
+ public DataAccessEndpointFVO schemaLocation(String schemaLocation) {
+ super.schemaLocation(schemaLocation);
+ return this;
+ }
+
+ public DataAccessEndpointFVO href(String href) {
+ super.href(href);
+ return this;
+ }
+
+ public DataAccessEndpointFVO uuid(String uuid) {
+ super.uuid(uuid);
+ return this;
+ }
+
+ public DataAccessEndpointFVO category(String category) {
+ super.category(category);
+ return this;
+ }
+
+ public DataAccessEndpointFVO description(String description) {
+ super.description(description);
+ return this;
+ }
+
+ public DataAccessEndpointFVO name(String name) {
+ super.name(name);
+ return this;
+ }
+
+ public DataAccessEndpointFVO endOperatingDate(OffsetDateTime endOperatingDate) {
+ super.endOperatingDate(endOperatingDate);
+ return this;
+ }
+
+ public DataAccessEndpointFVO administrativeState(ResourceAdministrativeStateType administrativeState) {
+ super.administrativeState(administrativeState);
+ return this;
+ }
+
+ public DataAccessEndpointFVO operationalState(ResourceOperationalStateType operationalState) {
+ super.operationalState(operationalState);
+ return this;
+ }
+
+ public DataAccessEndpointFVO resourceStatus(ResourceStatusType resourceStatus) {
+ super.resourceStatus(resourceStatus);
+ return this;
+ }
+
+ public DataAccessEndpointFVO usageState(ResourceUsageStateType usageState) {
+ super.usageState(usageState);
+ return this;
+ }
+
+ public DataAccessEndpointFVO validFor(TimePeriod validFor) {
+ super.validFor(validFor);
+ return this;
+ }
+
+ public DataAccessEndpointFVO note(List note) {
+ super.note(note);
+ return this;
+ }
+
+ public DataAccessEndpointFVO addNoteItem(NoteFVO noteItem) {
+ super.addNoteItem(noteItem);
+ return this;
+ }
+
+ public DataAccessEndpointFVO resourceOrderItem(List resourceOrderItem) {
+ super.resourceOrderItem(resourceOrderItem);
+ return this;
+ }
+
+ public DataAccessEndpointFVO addResourceOrderItemItem(RelatedResourceOrderItemFVO resourceOrderItemItem) {
+ super.addResourceOrderItemItem(resourceOrderItemItem);
+ return this;
+ }
+
+ public DataAccessEndpointFVO place(List place) {
+ super.place(place);
+ return this;
+ }
+
+ public DataAccessEndpointFVO addPlaceItem(RelatedPlaceRefFVO placeItem) {
+ super.addPlaceItem(placeItem);
+ return this;
+ }
+
+ public DataAccessEndpointFVO relatedParty(List relatedParty) {
+ super.relatedParty(relatedParty);
+ return this;
+ }
+
+ public DataAccessEndpointFVO addRelatedPartyItem(RelatedPartyRefOrPartyRoleRefFVO relatedPartyItem) {
+ super.addRelatedPartyItem(relatedPartyItem);
+ return this;
+ }
+
+ public DataAccessEndpointFVO resourceRelationship(List resourceRelationship) {
+ super.resourceRelationship(resourceRelationship);
+ return this;
+ }
+
+ public DataAccessEndpointFVO addResourceRelationshipItem(ResourceRelationshipFVO resourceRelationshipItem) {
+ super.addResourceRelationshipItem(resourceRelationshipItem);
+ return this;
+ }
+
+ public DataAccessEndpointFVO resourceCharacteristic(List resourceCharacteristic) {
+ super.resourceCharacteristic(resourceCharacteristic);
+ return this;
+ }
+
+ public DataAccessEndpointFVO addResourceCharacteristicItem(CharacteristicFVO resourceCharacteristicItem) {
+ super.addResourceCharacteristicItem(resourceCharacteristicItem);
+ return this;
+ }
+
+ public DataAccessEndpointFVO attachment(List attachment) {
+ super.attachment(attachment);
+ return this;
+ }
+
+ public DataAccessEndpointFVO addAttachmentItem(AttachmentRefFVO attachmentItem) {
+ super.addAttachmentItem(attachmentItem);
+ return this;
+ }
+
+ public DataAccessEndpointFVO resourceSpecification(ResourceSpecificationRefFVO resourceSpecification) {
+ super.resourceSpecification(resourceSpecification);
+ return this;
+ }
+
+ public DataAccessEndpointFVO startOperatingDate(OffsetDateTime startOperatingDate) {
+ super.startOperatingDate(startOperatingDate);
+ return this;
+ }
+
+ public DataAccessEndpointFVO resourceVersion(String resourceVersion) {
+ super.resourceVersion(resourceVersion);
+ return this;
+ }
+
+ public DataAccessEndpointFVO activationFeature(List activationFeature) {
+ super.activationFeature(activationFeature);
+ return this;
+ }
+
+ public DataAccessEndpointFVO addActivationFeatureItem(FeatureFVO activationFeatureItem) {
+ super.addActivationFeatureItem(activationFeatureItem);
+ return this;
+ }
+
+ public DataAccessEndpointFVO intent(IntentRefFVO intent) {
+ super.intent(intent);
+ return this;
+ }
+
+ public DataAccessEndpointFVO externalIdentifier(List externalIdentifier) {
+ super.externalIdentifier(externalIdentifier);
+ return this;
+ }
+
+ public DataAccessEndpointFVO addExternalIdentifierItem(ExternalIdentifierFVO externalIdentifierItem) {
+ super.addExternalIdentifierItem(externalIdentifierItem);
+ return this;
+ }
+ @Override
+ public boolean equals(Object o) {
+ if (this == o) {
+ return true;
+ }
+ if (o == null || getClass() != o.getClass()) {
+ return false;
+ }
+ DataAccessEndpointFVO dataAccessEndpointFVO = (DataAccessEndpointFVO) o;
+ return Objects.equals(this.uri, dataAccessEndpointFVO.uri) &&
+ Objects.equals(this.uriQueryFilter, dataAccessEndpointFVO.uriQueryFilter) &&
+ Objects.equals(this.apiType, dataAccessEndpointFVO.apiType) &&
+ super.equals(o);
+ }
+
+ @Override
+ public int hashCode() {
+ return Objects.hash(uri, uriQueryFilter, apiType, super.hashCode());
+ }
+
+ @Override
+ public String toString() {
+ StringBuilder sb = new StringBuilder();
+ sb.append("class DataAccessEndpointFVO {\n");
+ sb.append(" ").append(toIndentedString(super.toString())).append("\n");
+ sb.append(" uri: ").append(toIndentedString(uri)).append("\n");
+ sb.append(" uriQueryFilter: ").append(toIndentedString(uriQueryFilter)).append("\n");
+ sb.append(" apiType: ").append(toIndentedString(apiType)).append("\n");
+ sb.append("}");
+ return sb.toString();
+ }
+
+ /**
+ * Convert the given object to string with each line indented by 4 spaces
+ * (except the first line).
+ */
+ private String toIndentedString(Object o) {
+ if (o == null) {
+ return "null";
+ }
+ return o.toString().replace("\n", "\n ");
+ }
+}
+
diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/DataAccessEndpointMVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/DataAccessEndpointMVO.java
new file mode 100644
index 0000000000000000000000000000000000000000..0cd9a0424d227f3fd52400f54d4c577eeb520a62
--- /dev/null
+++ b/src/main/java/org/etsi/osl/tmf/pm628/model/DataAccessEndpointMVO.java
@@ -0,0 +1,333 @@
+package org.etsi.osl.tmf.pm628.model;
+
+import com.fasterxml.jackson.annotation.JsonProperty;
+import io.swagger.v3.oas.annotations.media.Schema;
+import jakarta.validation.Valid;
+import org.etsi.osl.tmf.common.model.TimePeriod;
+import org.etsi.osl.tmf.ri639.model.ResourceAdministrativeStateType;
+import org.etsi.osl.tmf.ri639.model.ResourceOperationalStateType;
+import org.etsi.osl.tmf.ri639.model.ResourceUsageStateType;
+
+import javax.annotation.Generated;
+import java.net.URI;
+import java.time.OffsetDateTime;
+import java.util.List;
+import java.util.Objects;
+
+/**
+ * DataAccessEndpointMVO
+ */
+
+
+@Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-05-15T07:30:16.936523289Z[Etc/UTC]", comments = "Generator version: 7.6.0-SNAPSHOT")
+public class DataAccessEndpointMVO extends LogicalResourceMVO {
+
+ @JsonProperty("uri")
+ private URI uri;
+
+ @JsonProperty("uriQueryFilter")
+ private DataFilterMapMVO uriQueryFilter;
+
+ @JsonProperty("apiType")
+ private String apiType;
+
+ public DataAccessEndpointMVO() {
+ super();
+ }
+
+ /**
+ * Constructor with only required parameters
+ */
+ public DataAccessEndpointMVO(String atType) {
+ super(atType);
+ }
+
+ public DataAccessEndpointMVO uri(URI uri) {
+ this.uri = uri;
+ return this;
+ }
+
+ /**
+ * URI for using the data access API
+ * @return uri
+ */
+ @Valid
+ @Schema(name = "uri", description = "URI for using the data access API", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
+ @JsonProperty("uri")
+ public URI getUri() {
+ return uri;
+ }
+
+ public void setUri(URI uri) {
+ this.uri = uri;
+ }
+
+ public DataAccessEndpointMVO uriQueryFilter(DataFilterMapMVO uriQueryFilter) {
+ this.uriQueryFilter = uriQueryFilter;
+ return this;
+ }
+
+ /**
+ * Get uriQueryFilter
+ * @return uriQueryFilter
+ */
+ @Valid
+ @Schema(name = "uriQueryFilter", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
+ @JsonProperty("uriQueryFilter")
+ public DataFilterMapMVO getUriQueryFilter() {
+ return uriQueryFilter;
+ }
+
+ public void setUriQueryFilter(DataFilterMapMVO uriQueryFilter) {
+ this.uriQueryFilter = uriQueryFilter;
+ }
+
+ public DataAccessEndpointMVO apiType(String apiType) {
+ this.apiType = apiType;
+ return this;
+ }
+
+ /**
+ * Get apiType
+ * @return apiType
+ */
+
+ @Schema(name = "apiType", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
+ @JsonProperty("apiType")
+ public String getApiType() {
+ return apiType;
+ }
+
+ public void setApiType(String apiType) {
+ this.apiType = apiType;
+ }
+
+
+ public DataAccessEndpointMVO value(String value) {
+ super.value(value);
+ return this;
+ }
+
+ public DataAccessEndpointMVO type(String type) {
+ super.type(type);
+ return this;
+ }
+
+ public DataAccessEndpointMVO baseType(String baseType) {
+ super.baseType(baseType);
+ return this;
+ }
+
+ public DataAccessEndpointMVO schemaLocation(String schemaLocation) {
+ super.schemaLocation(schemaLocation);
+ return this;
+ }
+
+ public DataAccessEndpointMVO href(String href) {
+ super.href(href);
+ return this;
+ }
+
+ public DataAccessEndpointMVO uuid(String uuid) {
+ super.uuid(uuid);
+ return this;
+ }
+
+ public DataAccessEndpointMVO category(String category) {
+ super.category(category);
+ return this;
+ }
+
+ public DataAccessEndpointMVO description(String description) {
+ super.description(description);
+ return this;
+ }
+
+ public DataAccessEndpointMVO name(String name) {
+ super.name(name);
+ return this;
+ }
+
+ public DataAccessEndpointMVO endOperatingDate(OffsetDateTime endOperatingDate) {
+ super.endOperatingDate(endOperatingDate);
+ return this;
+ }
+
+ public DataAccessEndpointMVO administrativeState(ResourceAdministrativeStateType administrativeState) {
+ super.administrativeState(administrativeState);
+ return this;
+ }
+
+ public DataAccessEndpointMVO operationalState(ResourceOperationalStateType operationalState) {
+ super.operationalState(operationalState);
+ return this;
+ }
+
+ public DataAccessEndpointMVO resourceStatus(ResourceStatusType resourceStatus) {
+ super.resourceStatus(resourceStatus);
+ return this;
+ }
+
+ public DataAccessEndpointMVO usageState(ResourceUsageStateType usageState) {
+ super.usageState(usageState);
+ return this;
+ }
+
+ public DataAccessEndpointMVO validFor(TimePeriod validFor) {
+ super.validFor(validFor);
+ return this;
+ }
+
+ public DataAccessEndpointMVO note(List note) {
+ super.note(note);
+ return this;
+ }
+
+ public DataAccessEndpointMVO addNoteItem(NoteMVO noteItem) {
+ super.addNoteItem(noteItem);
+ return this;
+ }
+
+ public DataAccessEndpointMVO resourceOrderItem(List resourceOrderItem) {
+ super.resourceOrderItem(resourceOrderItem);
+ return this;
+ }
+
+ public DataAccessEndpointMVO addResourceOrderItemItem(RelatedResourceOrderItemMVO resourceOrderItemItem) {
+ super.addResourceOrderItemItem(resourceOrderItemItem);
+ return this;
+ }
+
+ public DataAccessEndpointMVO place(List place) {
+ super.place(place);
+ return this;
+ }
+
+ public DataAccessEndpointMVO addPlaceItem(RelatedPlaceRefMVO placeItem) {
+ super.addPlaceItem(placeItem);
+ return this;
+ }
+
+ public DataAccessEndpointMVO relatedParty(List relatedParty) {
+ super.relatedParty(relatedParty);
+ return this;
+ }
+
+ public DataAccessEndpointMVO addRelatedPartyItem(RelatedPartyRefOrPartyRoleRefMVO relatedPartyItem) {
+ super.addRelatedPartyItem(relatedPartyItem);
+ return this;
+ }
+
+ public DataAccessEndpointMVO resourceRelationship(List resourceRelationship) {
+ super.resourceRelationship(resourceRelationship);
+ return this;
+ }
+
+ public DataAccessEndpointMVO addResourceRelationshipItem(ResourceRelationshipMVO resourceRelationshipItem) {
+ super.addResourceRelationshipItem(resourceRelationshipItem);
+ return this;
+ }
+
+ public DataAccessEndpointMVO resourceCharacteristic(List resourceCharacteristic) {
+ super.resourceCharacteristic(resourceCharacteristic);
+ return this;
+ }
+
+ public DataAccessEndpointMVO addResourceCharacteristicItem(CharacteristicMVO resourceCharacteristicItem) {
+ super.addResourceCharacteristicItem(resourceCharacteristicItem);
+ return this;
+ }
+
+ public DataAccessEndpointMVO attachment(List attachment) {
+ super.attachment(attachment);
+ return this;
+ }
+
+ public DataAccessEndpointMVO addAttachmentItem(AttachmentRefMVO attachmentItem) {
+ super.addAttachmentItem(attachmentItem);
+ return this;
+ }
+
+ public DataAccessEndpointMVO resourceSpecification(ResourceSpecificationRefMVO resourceSpecification) {
+ super.resourceSpecification(resourceSpecification);
+ return this;
+ }
+
+ public DataAccessEndpointMVO startOperatingDate(OffsetDateTime startOperatingDate) {
+ super.startOperatingDate(startOperatingDate);
+ return this;
+ }
+
+ public DataAccessEndpointMVO resourceVersion(String resourceVersion) {
+ super.resourceVersion(resourceVersion);
+ return this;
+ }
+
+ public DataAccessEndpointMVO activationFeature(List activationFeature) {
+ super.activationFeature(activationFeature);
+ return this;
+ }
+
+ public DataAccessEndpointMVO addActivationFeatureItem(FeatureMVO activationFeatureItem) {
+ super.addActivationFeatureItem(activationFeatureItem);
+ return this;
+ }
+
+ public DataAccessEndpointMVO intent(IntentRefMVO intent) {
+ super.intent(intent);
+ return this;
+ }
+
+ public DataAccessEndpointMVO externalIdentifier(List externalIdentifier) {
+ super.externalIdentifier(externalIdentifier);
+ return this;
+ }
+
+ public DataAccessEndpointMVO addExternalIdentifierItem(ExternalIdentifierMVO externalIdentifierItem) {
+ super.addExternalIdentifierItem(externalIdentifierItem);
+ return this;
+ }
+ @Override
+ public boolean equals(Object o) {
+ if (this == o) {
+ return true;
+ }
+ if (o == null || getClass() != o.getClass()) {
+ return false;
+ }
+ DataAccessEndpointMVO dataAccessEndpointMVO = (DataAccessEndpointMVO) o;
+ return Objects.equals(this.uri, dataAccessEndpointMVO.uri) &&
+ Objects.equals(this.uriQueryFilter, dataAccessEndpointMVO.uriQueryFilter) &&
+ Objects.equals(this.apiType, dataAccessEndpointMVO.apiType) &&
+ super.equals(o);
+ }
+
+ @Override
+ public int hashCode() {
+ return Objects.hash(uri, uriQueryFilter, apiType, super.hashCode());
+ }
+
+ @Override
+ public String toString() {
+ StringBuilder sb = new StringBuilder();
+ sb.append("class DataAccessEndpointMVO {\n");
+ sb.append(" ").append(toIndentedString(super.toString())).append("\n");
+ sb.append(" uri: ").append(toIndentedString(uri)).append("\n");
+ sb.append(" uriQueryFilter: ").append(toIndentedString(uriQueryFilter)).append("\n");
+ sb.append(" apiType: ").append(toIndentedString(apiType)).append("\n");
+ sb.append("}");
+ return sb.toString();
+ }
+
+ /**
+ * Convert the given object to string with each line indented by 4 spaces
+ * (except the first line).
+ */
+ private String toIndentedString(Object o) {
+ if (o == null) {
+ return "null";
+ }
+ return o.toString().replace("\n", "\n ");
+ }
+}
+
diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/DataAccessEndpointMapper.java b/src/main/java/org/etsi/osl/tmf/pm628/model/DataAccessEndpointMapper.java
new file mode 100644
index 0000000000000000000000000000000000000000..7e076d909e03b51a747dee783af28b11466b9bb8
--- /dev/null
+++ b/src/main/java/org/etsi/osl/tmf/pm628/model/DataAccessEndpointMapper.java
@@ -0,0 +1,25 @@
+package org.etsi.osl.tmf.pm628.model;
+
+import org.mapstruct.*;
+
+@Mapper(
+ nullValueMappingStrategy = NullValueMappingStrategy.RETURN_DEFAULT,
+ nullValueCheckStrategy = NullValueCheckStrategy.ALWAYS,
+ collectionMappingStrategy = CollectionMappingStrategy.ACCESSOR_ONLY, // Collection- or map-typed properties of the target bean to be updated will be cleared and then populated with the values from the corresponding source collection or map
+ uses = {
+ PartyRefOrPartyRoleRefMapper.class,
+ ResourceRefOrValueMapper.class
+ }
+)
+public interface DataAccessEndpointMapper {
+
+ DataAccessEndpoint createDataAccessEndpoint(DataAccessEndpointFVO dataAccessEndpointFVO);
+
+ @Mapping(target = "type", ignore = true)
+ @Mapping(target = "baseType", ignore = true)
+ @Mapping(target = "schemaLocation", ignore = true)
+ @Mapping(target = "href", ignore = true)
+ @Mapping(target = "uuid", ignore = true)
+ @BeanMapping(nullValuePropertyMappingStrategy = NullValuePropertyMappingStrategy.IGNORE)
+ DataAccessEndpoint updateDataAccessEndpoint(DataAccessEndpointMVO dataAccessEndpointMVO, @MappingTarget DataAccessEndpoint dataAccessEndpoint);
+}
diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/DataFilterAttribute.java b/src/main/java/org/etsi/osl/tmf/pm628/model/DataFilterAttribute.java
new file mode 100644
index 0000000000000000000000000000000000000000..5eab513025f9bf18b4d06835853d7a2ec9d8b560
--- /dev/null
+++ b/src/main/java/org/etsi/osl/tmf/pm628/model/DataFilterAttribute.java
@@ -0,0 +1,89 @@
+package org.etsi.osl.tmf.pm628.model;
+
+import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import com.fasterxml.jackson.annotation.JsonSubTypes;
+import com.fasterxml.jackson.annotation.JsonTypeInfo;
+import io.swagger.v3.oas.annotations.media.Schema;
+
+import javax.annotation.Generated;
+import java.util.Objects;
+
+/**
+ * give an attribute used for filtering
+ */
+
+@Schema(name = "DataFilterAttribute", description = "give an attribute used for filtering")
+@JsonIgnoreProperties(
+ value = "@type", // ignore manually set @type, it will be automatically generated by Jackson during serialization
+ allowSetters = true // allows the @type to be set during deserialization
+)
+@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "@type", visible = true)
+@JsonSubTypes({
+ @JsonSubTypes.Type(value = DataFilterAttributeStringArray.class, name = "DataFilterAttributeStringArray")
+})
+
+@Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-05-15T07:30:16.936523289Z[Etc/UTC]", comments = "Generator version: 7.6.0-SNAPSHOT")
+public class DataFilterAttribute {
+
+ @JsonProperty("valueType")
+ private String valueType;
+
+ public DataFilterAttribute valueType(String valueType) {
+ this.valueType = valueType;
+ return this;
+ }
+
+ /**
+ * Data type of the value of the attribute
+ * @return valueType
+ */
+
+ @Schema(name = "valueType", description = "Data type of the value of the attribute", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
+ @JsonProperty("valueType")
+ public String getValueType() {
+ return valueType;
+ }
+
+ public void setValueType(String valueType) {
+ this.valueType = valueType;
+ }
+
+ @Override
+ public boolean equals(Object o) {
+ if (this == o) {
+ return true;
+ }
+ if (o == null || getClass() != o.getClass()) {
+ return false;
+ }
+ DataFilterAttribute dataFilterAttribute = (DataFilterAttribute) o;
+ return Objects.equals(this.valueType, dataFilterAttribute.valueType);
+ }
+
+ @Override
+ public int hashCode() {
+ return Objects.hash(valueType);
+ }
+
+ @Override
+ public String toString() {
+ StringBuilder sb = new StringBuilder();
+ sb.append("class DataFilterAttribute {\n");
+ sb.append(" valueType: ").append(toIndentedString(valueType)).append("\n");
+ sb.append("}");
+ return sb.toString();
+ }
+
+ /**
+ * Convert the given object to string with each line indented by 4 spaces
+ * (except the first line).
+ */
+ private String toIndentedString(Object o) {
+ if (o == null) {
+ return "null";
+ }
+ return o.toString().replace("\n", "\n ");
+ }
+}
+
diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/DataFilterAttributeStringArray.java b/src/main/java/org/etsi/osl/tmf/pm628/model/DataFilterAttributeStringArray.java
new file mode 100644
index 0000000000000000000000000000000000000000..12cc0dd0b435d91b105adc7ce15902f6518b769c
--- /dev/null
+++ b/src/main/java/org/etsi/osl/tmf/pm628/model/DataFilterAttributeStringArray.java
@@ -0,0 +1,99 @@
+package org.etsi.osl.tmf.pm628.model;
+
+import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import io.swagger.v3.oas.annotations.media.Schema;
+import jakarta.persistence.Embeddable;
+import jakarta.validation.Valid;
+
+import javax.annotation.Generated;
+import java.util.ArrayList;
+import java.util.List;
+import java.util.Objects;
+
+/**
+ * DataFilterAttributeStringArray
+ */
+
+@Embeddable
+@JsonIgnoreProperties(ignoreUnknown = true)
+@Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-05-15T07:30:16.936523289Z[Etc/UTC]", comments = "Generator version: 7.6.0-SNAPSHOT")
+public class DataFilterAttributeStringArray extends DataFilterAttribute {
+
+ @JsonProperty("value")
+ @Valid
+ private List value = new ArrayList<>();
+
+ public DataFilterAttributeStringArray value(List value) {
+ this.value = value;
+ return this;
+ }
+
+ public DataFilterAttributeStringArray addValueItem(String valueItem) {
+ if (this.value == null) {
+ this.value = new ArrayList<>();
+ }
+ this.value.add(valueItem);
+ return this;
+ }
+
+ /**
+ * an array of field names
+ * @return value
+ */
+
+ @Schema(name = "value", example = "[\"Dallas\",\"Houston\",\"Paris\"]", description = "an array of field names", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
+ @JsonProperty("value")
+ public List getValue() {
+ return value;
+ }
+
+ public void setValue(List value) {
+ this.value = value;
+ }
+
+
+ public DataFilterAttributeStringArray valueType(String valueType) {
+ super.valueType(valueType);
+ return this;
+ }
+ @Override
+ public boolean equals(Object o) {
+ if (this == o) {
+ return true;
+ }
+ if (o == null || getClass() != o.getClass()) {
+ return false;
+ }
+ DataFilterAttributeStringArray dataFilterAttributeStringArray = (DataFilterAttributeStringArray) o;
+ return Objects.equals(this.value, dataFilterAttributeStringArray.value) &&
+ super.equals(o);
+ }
+
+ @Override
+ public int hashCode() {
+ return Objects.hash(value, super.hashCode());
+ }
+
+ @Override
+ public String toString() {
+ StringBuilder sb = new StringBuilder();
+ sb.append("class DataFilterAttributeStringArray {\n");
+ sb.append(" ").append(toIndentedString(super.toString())).append("\n");
+ sb.append(" value: ").append(toIndentedString(value)).append("\n");
+ sb.append("}");
+ return sb.toString();
+ }
+
+ /**
+ * Convert the given object to string with each line indented by 4 spaces
+ * (except the first line).
+ */
+ private String toIndentedString(Object o) {
+ if (o == null) {
+ return "null";
+ }
+ return o.toString().replace("\n", "\n ");
+ }
+}
+
diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/DataFilterMap.java b/src/main/java/org/etsi/osl/tmf/pm628/model/DataFilterMap.java
new file mode 100644
index 0000000000000000000000000000000000000000..5084ad58fb82072506afc6bd1691bff16b394e73
--- /dev/null
+++ b/src/main/java/org/etsi/osl/tmf/pm628/model/DataFilterMap.java
@@ -0,0 +1,181 @@
+package org.etsi.osl.tmf.pm628.model;
+
+import com.fasterxml.jackson.annotation.JsonProperty;
+import io.swagger.v3.oas.annotations.media.Schema;
+import jakarta.persistence.*;
+import jakarta.validation.Valid;
+import jakarta.validation.constraints.NotNull;
+
+import javax.annotation.Generated;
+import java.util.ArrayList;
+import java.util.List;
+import java.util.Objects;
+
+/**
+ * DataFilterMap
+ */
+
+@Embeddable
+@Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-05-15T07:30:16.936523289Z[Etc/UTC]", comments = "Generator version: 7.6.0-SNAPSHOT")
+public class DataFilterMap {
+
+ @JsonProperty("@type")
+ @Column(name = "dfm_type")
+ private String type;
+
+ @JsonProperty("@baseType")
+ @Column(name = "dfm_base_type")
+ private String baseType;
+
+ @JsonProperty("@schemaLocation")
+ @Column(name = "dfm_schema_location")
+ private String schemaLocation;
+
+ @ElementCollection(targetClass = DataFilterMapItem.class)
+ @JsonProperty("mappings")
+ private List<@Valid DataFilterMapItem> mappings = new ArrayList<>();
+
+ public DataFilterMap() {
+ super();
+ }
+
+ /**
+ * Constructor with only required parameters
+ */
+ public DataFilterMap(String type) {
+ this.type = type;
+ }
+
+ public DataFilterMap type(String type) {
+ this.type = type;
+ return this;
+ }
+
+ /**
+ * When sub-classing, this defines the sub-class Extensible name
+ * @return type
+ */
+ @NotNull
+ @Schema(name = "@type", description = "When sub-classing, this defines the sub-class Extensible name", requiredMode = Schema.RequiredMode.REQUIRED)
+ @JsonProperty("@type")
+ public String getType() {
+ return type;
+ }
+
+ public void setType(String type) {
+ this.type = type;
+ }
+
+ public DataFilterMap baseType(String baseType) {
+ this.baseType = baseType;
+ return this;
+ }
+
+ /**
+ * When sub-classing, this defines the super-class
+ * @return baseType
+ */
+
+ @Schema(name = "@baseType", description = "When sub-classing, this defines the super-class", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
+ @JsonProperty("@baseType")
+ public String getBaseType() {
+ return baseType;
+ }
+
+ public void setBaseType(String baseType) {
+ this.baseType = baseType;
+ }
+
+ public DataFilterMap schemaLocation(String schemaLocation) {
+ this.schemaLocation = schemaLocation;
+ return this;
+ }
+
+ /**
+ * A URI to a JSON-Schema file that defines additional attributes and relationships
+ * @return schemaLocation
+ */
+
+ @Schema(name = "@schemaLocation", description = "A URI to a JSON-Schema file that defines additional attributes and relationships", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
+ @JsonProperty("@schemaLocation")
+ public String getSchemaLocation() {
+ return schemaLocation;
+ }
+
+ public void setSchemaLocation(String schemaLocation) {
+ this.schemaLocation = schemaLocation;
+ }
+
+
+ public DataFilterMap mappings(List<@Valid DataFilterMapItem> mappings) {
+ this.mappings = mappings;
+ return this;
+ }
+
+ public DataFilterMap addMappingsItem(DataFilterMapItem mappingsItem) {
+ if (this.mappings == null) {
+ this.mappings = new ArrayList<>();
+ }
+ this.mappings.add(mappingsItem);
+ return this;
+ }
+
+ /**
+ * Get mappings
+ * @return mappings
+ */
+ @Valid
+ @Schema(name = "mappings", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
+ @JsonProperty("mappings")
+ public List<@Valid DataFilterMapItem> getMappings() {
+ return mappings;
+ }
+
+ public void setMappings(List<@Valid DataFilterMapItem> mappings) {
+ this.mappings = mappings;
+ }
+
+ @Override
+ public boolean equals(Object o) {
+ if (this == o) {
+ return true;
+ }
+ if (o == null || getClass() != o.getClass()) {
+ return false;
+ }
+ DataFilterMap dataFilterMap = (DataFilterMap) o;
+ return Objects.equals(this.type, dataFilterMap.type) &&
+ Objects.equals(this.baseType, dataFilterMap.baseType) &&
+ Objects.equals(this.schemaLocation, dataFilterMap.schemaLocation) &&
+ Objects.equals(this.mappings, dataFilterMap.mappings);
+ }
+
+ @Override
+ public int hashCode() {
+ return Objects.hash(type, baseType, schemaLocation, mappings);
+ }
+
+ @Override
+ public String toString() {
+ StringBuilder sb = new StringBuilder();
+ sb.append("class DataFilterMap {\n");
+ sb.append(" atType: ").append(toIndentedString(type)).append("\n");
+ sb.append(" atBaseType: ").append(toIndentedString(baseType)).append("\n");
+ sb.append(" atSchemaLocation: ").append(toIndentedString(schemaLocation)).append("\n");
+ sb.append(" mappings: ").append(toIndentedString(mappings)).append("\n");
+ sb.append("}");
+ return sb.toString();
+ }
+
+ /**
+ * Convert the given object to string with each line indented by 4 spaces
+ * (except the first line).
+ */
+ private String toIndentedString(Object o) {
+ if (o == null) {
+ return "null";
+ }
+ return o.toString().replace("\n", "\n ");
+ }
+}
+
diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/DataFilterMapFVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/DataFilterMapFVO.java
new file mode 100644
index 0000000000000000000000000000000000000000..66a26463c316db30b1fc3a415526ec5ec5b8b575
--- /dev/null
+++ b/src/main/java/org/etsi/osl/tmf/pm628/model/DataFilterMapFVO.java
@@ -0,0 +1,176 @@
+package org.etsi.osl.tmf.pm628.model;
+
+import com.fasterxml.jackson.annotation.JsonProperty;
+import io.swagger.v3.oas.annotations.media.Schema;
+import jakarta.validation.Valid;
+import jakarta.validation.constraints.NotNull;
+
+import javax.annotation.Generated;
+import java.util.ArrayList;
+import java.util.List;
+import java.util.Objects;
+
+/**
+ * DataFilterMapFVO
+ */
+
+
+@Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-05-15T07:30:16.936523289Z[Etc/UTC]", comments = "Generator version: 7.6.0-SNAPSHOT")
+public class DataFilterMapFVO {
+
+ @JsonProperty("@type")
+ private String type;
+
+ @JsonProperty("@baseType")
+ private String baseType;
+
+ @JsonProperty("@schemaLocation")
+ private String schemaLocation;
+
+ @JsonProperty("mappings")
+ @Valid
+ private List<@Valid DataFilterMapItemFVO> mappings = new ArrayList<>();
+
+ public DataFilterMapFVO() {
+ super();
+ }
+
+ /**
+ * Constructor with only required parameters
+ */
+ public DataFilterMapFVO(String type) {
+ this.type = type;
+ }
+
+ public DataFilterMapFVO type(String type) {
+ this.type = type;
+ return this;
+ }
+
+ /**
+ * When sub-classing, this defines the sub-class Extensible name
+ * @return type
+ */
+ @NotNull
+ @Schema(name = "@type", description = "When sub-classing, this defines the sub-class Extensible name", requiredMode = Schema.RequiredMode.REQUIRED)
+ @JsonProperty("@type")
+ public String getType() {
+ return type;
+ }
+
+ public void setType(String type) {
+ this.type = type;
+ }
+
+ public DataFilterMapFVO baseType(String baseType) {
+ this.baseType = baseType;
+ return this;
+ }
+
+ /**
+ * When sub-classing, this defines the super-class
+ * @return baseType
+ */
+
+ @Schema(name = "@baseType", description = "When sub-classing, this defines the super-class", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
+ @JsonProperty("@baseType")
+ public String getBaseType() {
+ return baseType;
+ }
+
+ public void setBaseType(String baseType) {
+ this.baseType = baseType;
+ }
+
+ public DataFilterMapFVO schemaLocation(String schemaLocation) {
+ this.schemaLocation = schemaLocation;
+ return this;
+ }
+
+ /**
+ * A URI to a JSON-Schema file that defines additional attributes and relationships
+ * @return schemaLocation
+ */
+
+ @Schema(name = "@schemaLocation", description = "A URI to a JSON-Schema file that defines additional attributes and relationships", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
+ @JsonProperty("@schemaLocation")
+ public String getSchemaLocation() {
+ return schemaLocation;
+ }
+
+ public void setSchemaLocation(String schemaLocation) {
+ this.schemaLocation = schemaLocation;
+ }
+
+ public DataFilterMapFVO mappings(List<@Valid DataFilterMapItemFVO> mappings) {
+ this.mappings = mappings;
+ return this;
+ }
+
+ public DataFilterMapFVO addMappingsItem(DataFilterMapItemFVO mappingsItem) {
+ if (this.mappings == null) {
+ this.mappings = new ArrayList<>();
+ }
+ this.mappings.add(mappingsItem);
+ return this;
+ }
+
+ /**
+ * Get mappings
+ * @return mappings
+ */
+ @Valid
+ @Schema(name = "mappings", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
+ @JsonProperty("mappings")
+ public List<@Valid DataFilterMapItemFVO> getMappings() {
+ return mappings;
+ }
+
+ public void setMappings(List<@Valid DataFilterMapItemFVO> mappings) {
+ this.mappings = mappings;
+ }
+
+ @Override
+ public boolean equals(Object o) {
+ if (this == o) {
+ return true;
+ }
+ if (o == null || getClass() != o.getClass()) {
+ return false;
+ }
+ DataFilterMapFVO dataFilterMapFVO = (DataFilterMapFVO) o;
+ return Objects.equals(this.type, dataFilterMapFVO.type) &&
+ Objects.equals(this.baseType, dataFilterMapFVO.baseType) &&
+ Objects.equals(this.schemaLocation, dataFilterMapFVO.schemaLocation) &&
+ Objects.equals(this.mappings, dataFilterMapFVO.mappings);
+ }
+
+ @Override
+ public int hashCode() {
+ return Objects.hash(type, baseType, schemaLocation, mappings);
+ }
+
+ @Override
+ public String toString() {
+ StringBuilder sb = new StringBuilder();
+ sb.append("class DataFilterMapFVO {\n");
+ sb.append(" type: ").append(toIndentedString(type)).append("\n");
+ sb.append(" baseType: ").append(toIndentedString(baseType)).append("\n");
+ sb.append(" schemaLocation: ").append(toIndentedString(schemaLocation)).append("\n");
+ sb.append(" mappings: ").append(toIndentedString(mappings)).append("\n");
+ sb.append("}");
+ return sb.toString();
+ }
+
+ /**
+ * Convert the given object to string with each line indented by 4 spaces
+ * (except the first line).
+ */
+ private String toIndentedString(Object o) {
+ if (o == null) {
+ return "null";
+ }
+ return o.toString().replace("\n", "\n ");
+ }
+}
+
diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/DataFilterMapItem.java b/src/main/java/org/etsi/osl/tmf/pm628/model/DataFilterMapItem.java
new file mode 100644
index 0000000000000000000000000000000000000000..cb84be04f03a552a8f9468ef297509474aeb5621
--- /dev/null
+++ b/src/main/java/org/etsi/osl/tmf/pm628/model/DataFilterMapItem.java
@@ -0,0 +1,107 @@
+package org.etsi.osl.tmf.pm628.model;
+
+import com.fasterxml.jackson.annotation.JsonProperty;
+import io.swagger.v3.oas.annotations.media.Schema;
+import jakarta.persistence.*;
+import jakarta.validation.Valid;
+
+import javax.annotation.Generated;
+import java.util.Objects;
+
+/**
+ * definition of a field used for filtering template with the associated attributes.
+ */
+
+@Embeddable
+@Schema(name = "DataFilterMapItem", description = "definition of a field used for filtering template with the associated attributes.")
+@Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-05-15T07:30:16.936523289Z[Etc/UTC]", comments = "Generator version: 7.6.0-SNAPSHOT")
+public class DataFilterMapItem {
+
+ @Embedded
+ @JsonProperty("filterTemplate")
+ private DataFilterTemplate filterTemplate;
+
+ @Embedded
+ @JsonProperty("stringArray")
+ private DataFilterAttributeStringArray stringArray;
+
+ public DataFilterMapItem filterTemplate(DataFilterTemplate filterTemplate) {
+ this.filterTemplate = filterTemplate;
+ return this;
+ }
+
+ /**
+ * Get filterTemplate
+ * @return filterTemplate
+ */
+ @Valid
+ @Schema(name = "filterTemplate", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
+ @JsonProperty("filterTemplate")
+ public DataFilterTemplate getFilterTemplate() {
+ return filterTemplate;
+ }
+
+ public void setFilterTemplate(DataFilterTemplate filterTemplate) {
+ this.filterTemplate = filterTemplate;
+ }
+
+ public DataFilterMapItem stringArray(DataFilterAttributeStringArray stringArray) {
+ this.stringArray = stringArray;
+ return this;
+ }
+
+ /**
+ * Get stringArray
+ * @return stringArray
+ */
+ @Valid
+ @Schema(name = "stringArray", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
+ @JsonProperty("stringArray")
+ public DataFilterAttributeStringArray getStringArray() {
+ return stringArray;
+ }
+
+ public void setStringArray(DataFilterAttributeStringArray stringArray) {
+ this.stringArray = stringArray;
+ }
+
+ @Override
+ public boolean equals(Object o) {
+ if (this == o) {
+ return true;
+ }
+ if (o == null || getClass() != o.getClass()) {
+ return false;
+ }
+ DataFilterMapItem dataFilterMapItem = (DataFilterMapItem) o;
+ return Objects.equals(this.filterTemplate, dataFilterMapItem.filterTemplate) &&
+ Objects.equals(this.stringArray, dataFilterMapItem.stringArray);
+ }
+
+ @Override
+ public int hashCode() {
+ return Objects.hash(filterTemplate, stringArray);
+ }
+
+ @Override
+ public String toString() {
+ StringBuilder sb = new StringBuilder();
+ sb.append("class DataFilterMapItem {\n");
+ sb.append(" filterTemplate: ").append(toIndentedString(filterTemplate)).append("\n");
+ sb.append(" stringArray: ").append(toIndentedString(stringArray)).append("\n");
+ sb.append("}");
+ return sb.toString();
+ }
+
+ /**
+ * Convert the given object to string with each line indented by 4 spaces
+ * (except the first line).
+ */
+ private String toIndentedString(Object o) {
+ if (o == null) {
+ return "null";
+ }
+ return o.toString().replace("\n", "\n ");
+ }
+}
+
diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/DataFilterMapItemFVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/DataFilterMapItemFVO.java
new file mode 100644
index 0000000000000000000000000000000000000000..90fb5e91b24caf46c642e3434756ca481e210643
--- /dev/null
+++ b/src/main/java/org/etsi/osl/tmf/pm628/model/DataFilterMapItemFVO.java
@@ -0,0 +1,105 @@
+package org.etsi.osl.tmf.pm628.model;
+
+import com.fasterxml.jackson.annotation.JsonProperty;
+import com.fasterxml.jackson.annotation.JsonTypeName;
+import io.swagger.v3.oas.annotations.media.Schema;
+import jakarta.validation.Valid;
+
+import javax.annotation.Generated;
+import java.util.Objects;
+
+/**
+ * definition of a field used for filtering template with the associated attributes.
+ */
+
+@Schema(name = "DataFilterMapItem_FVO", description = "definition of a field used for filtering template with the associated attributes.")
+@JsonTypeName("DataFilterMapItem_FVO")
+@Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-05-15T07:30:16.936523289Z[Etc/UTC]", comments = "Generator version: 7.6.0-SNAPSHOT")
+public class DataFilterMapItemFVO {
+
+ @JsonProperty("filterTemplate")
+ private DataFilterTemplateFVO filterTemplate;
+
+ @JsonProperty("stringArray")
+ private DataFilterAttributeStringArray stringArray;
+
+ public DataFilterMapItemFVO filterTemplate(DataFilterTemplateFVO filterTemplate) {
+ this.filterTemplate = filterTemplate;
+ return this;
+ }
+
+ /**
+ * Get filterTemplate
+ * @return filterTemplate
+ */
+ @Valid
+ @Schema(name = "filterTemplate", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
+ @JsonProperty("filterTemplate")
+ public DataFilterTemplateFVO getFilterTemplate() {
+ return filterTemplate;
+ }
+
+ public void setFilterTemplate(DataFilterTemplateFVO filterTemplate) {
+ this.filterTemplate = filterTemplate;
+ }
+
+ public DataFilterMapItemFVO stringArray(DataFilterAttributeStringArray stringArray) {
+ this.stringArray = stringArray;
+ return this;
+ }
+
+ /**
+ * Get stringArray
+ * @return stringArray
+ */
+ @Valid
+ @Schema(name = "stringArray", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
+ @JsonProperty("stringArray")
+ public DataFilterAttributeStringArray getStringArray() {
+ return stringArray;
+ }
+
+ public void setStringArray(DataFilterAttributeStringArray stringArray) {
+ this.stringArray = stringArray;
+ }
+
+ @Override
+ public boolean equals(Object o) {
+ if (this == o) {
+ return true;
+ }
+ if (o == null || getClass() != o.getClass()) {
+ return false;
+ }
+ DataFilterMapItemFVO dataFilterMapItemFVO = (DataFilterMapItemFVO) o;
+ return Objects.equals(this.filterTemplate, dataFilterMapItemFVO.filterTemplate) &&
+ Objects.equals(this.stringArray, dataFilterMapItemFVO.stringArray);
+ }
+
+ @Override
+ public int hashCode() {
+ return Objects.hash(filterTemplate, stringArray);
+ }
+
+ @Override
+ public String toString() {
+ StringBuilder sb = new StringBuilder();
+ sb.append("class DataFilterMapItemFVO {\n");
+ sb.append(" filterTemplate: ").append(toIndentedString(filterTemplate)).append("\n");
+ sb.append(" stringArray: ").append(toIndentedString(stringArray)).append("\n");
+ sb.append("}");
+ return sb.toString();
+ }
+
+ /**
+ * Convert the given object to string with each line indented by 4 spaces
+ * (except the first line).
+ */
+ private String toIndentedString(Object o) {
+ if (o == null) {
+ return "null";
+ }
+ return o.toString().replace("\n", "\n ");
+ }
+}
+
diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/DataFilterMapItemMVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/DataFilterMapItemMVO.java
new file mode 100644
index 0000000000000000000000000000000000000000..f7d1739955cd66d867172da834e0462d672b1be6
--- /dev/null
+++ b/src/main/java/org/etsi/osl/tmf/pm628/model/DataFilterMapItemMVO.java
@@ -0,0 +1,103 @@
+package org.etsi.osl.tmf.pm628.model;
+
+import com.fasterxml.jackson.annotation.JsonProperty;
+import com.fasterxml.jackson.annotation.JsonTypeName;
+import io.swagger.v3.oas.annotations.media.Schema;
+import jakarta.validation.Valid;
+
+import javax.annotation.Generated;
+import java.util.Objects;
+
+/**
+ * definition of a field used for filtering template with the associated attributes.
+ */
+
+@Schema(name = "DataFilterMapItem_MVO", description = "definition of a field used for filtering template with the associated attributes.")
+@JsonTypeName("DataFilterMapItem_MVO")
+@Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-05-15T07:30:16.936523289Z[Etc/UTC]", comments = "Generator version: 7.6.0-SNAPSHOT")
+public class DataFilterMapItemMVO {
+
+ private DataFilterTemplateMVO filterTemplate;
+
+ private DataFilterAttributeStringArray stringArray;
+
+ public DataFilterMapItemMVO filterTemplate(DataFilterTemplateMVO filterTemplate) {
+ this.filterTemplate = filterTemplate;
+ return this;
+ }
+
+ /**
+ * Get filterTemplate
+ * @return filterTemplate
+ */
+ @Valid
+ @Schema(name = "filterTemplate", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
+ @JsonProperty("filterTemplate")
+ public DataFilterTemplateMVO getFilterTemplate() {
+ return filterTemplate;
+ }
+
+ public void setFilterTemplate(DataFilterTemplateMVO filterTemplate) {
+ this.filterTemplate = filterTemplate;
+ }
+
+ public DataFilterMapItemMVO stringArray(DataFilterAttributeStringArray stringArray) {
+ this.stringArray = stringArray;
+ return this;
+ }
+
+ /**
+ * Get stringArray
+ * @return stringArray
+ */
+ @Valid
+ @Schema(name = "stringArray", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
+ @JsonProperty("stringArray")
+ public DataFilterAttributeStringArray getStringArray() {
+ return stringArray;
+ }
+
+ public void setStringArray(DataFilterAttributeStringArray stringArray) {
+ this.stringArray = stringArray;
+ }
+
+ @Override
+ public boolean equals(Object o) {
+ if (this == o) {
+ return true;
+ }
+ if (o == null || getClass() != o.getClass()) {
+ return false;
+ }
+ DataFilterMapItemMVO dataFilterMapItemMVO = (DataFilterMapItemMVO) o;
+ return Objects.equals(this.filterTemplate, dataFilterMapItemMVO.filterTemplate) &&
+ Objects.equals(this.stringArray, dataFilterMapItemMVO.stringArray);
+ }
+
+ @Override
+ public int hashCode() {
+ return Objects.hash(filterTemplate, stringArray);
+ }
+
+ @Override
+ public String toString() {
+ StringBuilder sb = new StringBuilder();
+ sb.append("class DataFilterMapItemMVO {\n");
+ sb.append(" filterTemplate: ").append(toIndentedString(filterTemplate)).append("\n");
+ sb.append(" stringArray: ").append(toIndentedString(stringArray)).append("\n");
+ sb.append("}");
+ return sb.toString();
+ }
+
+ /**
+ * Convert the given object to string with each line indented by 4 spaces
+ * (except the first line).
+ */
+ private String toIndentedString(Object o) {
+ if (o == null) {
+ return "null";
+ }
+ return o.toString().replace("\n", "\n ");
+ }
+}
+
diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/DataFilterMapMVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/DataFilterMapMVO.java
new file mode 100644
index 0000000000000000000000000000000000000000..f7eed3d1035aaf84d29c1f4fd1836a65f12ff056
--- /dev/null
+++ b/src/main/java/org/etsi/osl/tmf/pm628/model/DataFilterMapMVO.java
@@ -0,0 +1,176 @@
+package org.etsi.osl.tmf.pm628.model;
+
+import com.fasterxml.jackson.annotation.JsonProperty;
+import io.swagger.v3.oas.annotations.media.Schema;
+import jakarta.validation.Valid;
+import jakarta.validation.constraints.NotNull;
+
+import javax.annotation.Generated;
+import java.util.ArrayList;
+import java.util.List;
+import java.util.Objects;
+
+/**
+ * DataFilterMapMVO
+ */
+
+
+@Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-05-15T07:30:16.936523289Z[Etc/UTC]", comments = "Generator version: 7.6.0-SNAPSHOT")
+public class DataFilterMapMVO {
+
+ @JsonProperty("@type")
+ private String type;
+
+ @JsonProperty("@baseType")
+ private String baseType;
+
+ @JsonProperty("@schemaLocation")
+ private String schemaLocation;
+
+ @JsonProperty("mappings")
+ @Valid
+ private List<@Valid DataFilterMapItemMVO> mappings = new ArrayList<>();
+
+ public DataFilterMapMVO() {
+ super();
+ }
+
+ /**
+ * Constructor with only required parameters
+ */
+ public DataFilterMapMVO(String type) {
+ this.type = type;
+ }
+
+ public DataFilterMapMVO type(String type) {
+ this.type = type;
+ return this;
+ }
+
+ /**
+ * When sub-classing, this defines the sub-class Extensible name
+ * @return type
+ */
+ @NotNull
+ @Schema(name = "@type", description = "When sub-classing, this defines the sub-class Extensible name", requiredMode = Schema.RequiredMode.REQUIRED)
+ @JsonProperty("@type")
+ public String getType() {
+ return type;
+ }
+
+ public void setType(String type) {
+ this.type = type;
+ }
+
+ public DataFilterMapMVO baseType(String baseType) {
+ this.baseType = baseType;
+ return this;
+ }
+
+ /**
+ * When sub-classing, this defines the super-class
+ * @return baseType
+ */
+
+ @Schema(name = "@baseType", description = "When sub-classing, this defines the super-class", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
+ @JsonProperty("@baseType")
+ public String getBaseType() {
+ return baseType;
+ }
+
+ public void setBaseType(String baseType) {
+ this.baseType = baseType;
+ }
+
+ public DataFilterMapMVO schemaLocation(String schemaLocation) {
+ this.schemaLocation = schemaLocation;
+ return this;
+ }
+
+ /**
+ * A URI to a JSON-Schema file that defines additional attributes and relationships
+ * @return schemaLocation
+ */
+
+ @Schema(name = "@schemaLocation", description = "A URI to a JSON-Schema file that defines additional attributes and relationships", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
+ @JsonProperty("@schemaLocation")
+ public String getSchemaLocation() {
+ return schemaLocation;
+ }
+
+ public void setSchemaLocation(String schemaLocation) {
+ this.schemaLocation = schemaLocation;
+ }
+
+ public DataFilterMapMVO mappings(List<@Valid DataFilterMapItemMVO> mappings) {
+ this.mappings = mappings;
+ return this;
+ }
+
+ public DataFilterMapMVO addMappingsItem(DataFilterMapItemMVO mappingsItem) {
+ if (this.mappings == null) {
+ this.mappings = new ArrayList<>();
+ }
+ this.mappings.add(mappingsItem);
+ return this;
+ }
+
+ /**
+ * Get mappings
+ * @return mappings
+ */
+ @Valid
+ @Schema(name = "mappings", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
+ @JsonProperty("mappings")
+ public List<@Valid DataFilterMapItemMVO> getMappings() {
+ return mappings;
+ }
+
+ public void setMappings(List<@Valid DataFilterMapItemMVO> mappings) {
+ this.mappings = mappings;
+ }
+
+ @Override
+ public boolean equals(Object o) {
+ if (this == o) {
+ return true;
+ }
+ if (o == null || getClass() != o.getClass()) {
+ return false;
+ }
+ DataFilterMapMVO dataFilterMapMVO = (DataFilterMapMVO) o;
+ return Objects.equals(this.type, dataFilterMapMVO.type) &&
+ Objects.equals(this.baseType, dataFilterMapMVO.baseType) &&
+ Objects.equals(this.schemaLocation, dataFilterMapMVO.schemaLocation) &&
+ Objects.equals(this.mappings, dataFilterMapMVO.mappings);
+ }
+
+ @Override
+ public int hashCode() {
+ return Objects.hash(type, baseType, schemaLocation, mappings);
+ }
+
+ @Override
+ public String toString() {
+ StringBuilder sb = new StringBuilder();
+ sb.append("class DataFilterMapMVO {\n");
+ sb.append(" type: ").append(toIndentedString(type)).append("\n");
+ sb.append(" baseType: ").append(toIndentedString(baseType)).append("\n");
+ sb.append(" schemaLocation: ").append(toIndentedString(schemaLocation)).append("\n");
+ sb.append(" mappings: ").append(toIndentedString(mappings)).append("\n");
+ sb.append("}");
+ return sb.toString();
+ }
+
+ /**
+ * Convert the given object to string with each line indented by 4 spaces
+ * (except the first line).
+ */
+ private String toIndentedString(Object o) {
+ if (o == null) {
+ return "null";
+ }
+ return o.toString().replace("\n", "\n ");
+ }
+}
+
diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/DataFilterTemplate.java b/src/main/java/org/etsi/osl/tmf/pm628/model/DataFilterTemplate.java
new file mode 100644
index 0000000000000000000000000000000000000000..5c020282e5cc360a78d67b128c5e7e29740c844f
--- /dev/null
+++ b/src/main/java/org/etsi/osl/tmf/pm628/model/DataFilterTemplate.java
@@ -0,0 +1,241 @@
+package org.etsi.osl.tmf.pm628.model;
+
+import com.fasterxml.jackson.annotation.JsonProperty;
+import io.swagger.v3.oas.annotations.media.Schema;
+import jakarta.persistence.Embeddable;
+import jakarta.validation.Valid;
+import jakarta.validation.constraints.NotNull;
+
+import javax.annotation.Generated;
+import java.util.Objects;
+
+/**
+ * DataFilterTemplate
+ */
+
+
+@Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-05-15T07:30:16.936523289Z[Etc/UTC]", comments = "Generator version: 7.6.0-SNAPSHOT")
+@Embeddable
+public class DataFilterTemplate {
+
+ @JsonProperty("@type")
+ protected String type;
+
+ @JsonProperty("@baseType")
+ protected String baseType;
+
+ @JsonProperty("@schemaLocation")
+ protected String schemaLocation;
+
+ @JsonProperty("id")
+ protected String id;
+
+ @JsonProperty("href")
+ protected String href;
+
+ @JsonProperty("name")
+ protected String name;
+
+ @JsonProperty("description")
+ protected String description;
+
+ public DataFilterTemplate() {
+ super();
+ }
+
+ /**
+ * Constructor with only required parameters
+ */
+ public DataFilterTemplate(String type) {
+ this.type = type;
+ }
+
+ public DataFilterTemplate type(String type) {
+ this.type = type;
+ return this;
+ }
+
+ /**
+ * When sub-classing, this defines the sub-class Extensible name
+ * @return type
+ */
+ @NotNull
+ @Schema(name = "@type", description = "When sub-classing, this defines the sub-class Extensible name", requiredMode = Schema.RequiredMode.REQUIRED)
+ @JsonProperty("@type")
+ public String getType() {
+ return type;
+ }
+
+ public void setType(String type) {
+ this.type = type;
+ }
+
+ public DataFilterTemplate baseType(String baseType) {
+ this.baseType = baseType;
+ return this;
+ }
+
+ /**
+ * When sub-classing, this defines the super-class
+ * @return baseType
+ */
+
+ @Schema(name = "@baseType", description = "When sub-classing, this defines the super-class", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
+ @JsonProperty("@baseType")
+ public String getBaseType() {
+ return baseType;
+ }
+
+ public void setBaseType(String baseType) {
+ this.baseType = baseType;
+ }
+
+ public DataFilterTemplate schemaLocation(String schemaLocation) {
+ this.schemaLocation = schemaLocation;
+ return this;
+ }
+
+ /**
+ * A URI to a JSON-Schema file that defines additional attributes and relationships
+ * @return schemaLocation
+ */
+
+ @Schema(name = "@schemaLocation", description = "A URI to a JSON-Schema file that defines additional attributes and relationships", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
+ @JsonProperty("@schemaLocation")
+ public String getSchemaLocation() {
+ return schemaLocation;
+ }
+
+ public void setSchemaLocation(String schemaLocation) {
+ this.schemaLocation = schemaLocation;
+ }
+
+ public DataFilterTemplate id(String id) {
+ this.id = id;
+ return this;
+ }
+
+ /**
+ * Unique identifier of this DataFilterTemplate
+ * @return id
+ */
+
+ @Schema(name = "id", example = "6c088cf7f1bc", description = "Unique identifier of this DataFilterTemplate", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
+ @JsonProperty("id")
+ public String getId() {
+ return id;
+ }
+
+ public void setId(String id) {
+ this.id = id;
+ }
+
+ public DataFilterTemplate href(String href) {
+ this.href = href;
+ return this;
+ }
+
+ /**
+ * Hyperlink reference to this DataFilterTemplate
+ * @return href
+ */
+ @Valid
+ @Schema(name = "href", example = "https://host/dataFilerTemplate/6c088cf7f1bc", description = "Hyperlink reference to this DataFilterTemplate", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
+ @JsonProperty("href")
+ public String getHref() {
+ return href;
+ }
+
+ public void setHref(String href) {
+ this.href = href;
+ }
+
+ public DataFilterTemplate name(String name) {
+ this.name = name;
+ return this;
+ }
+
+ /**
+ * Name given to this DataFilterTemplate
+ * @return name
+ */
+
+ @Schema(name = "name", description = "Name given to this DataFilterTemplate", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
+ @JsonProperty("name")
+ public String getName() {
+ return name;
+ }
+
+ public void setName(String name) {
+ this.name = name;
+ }
+
+ public DataFilterTemplate description(String description) {
+ this.description = description;
+ return this;
+ }
+
+ /**
+ * Description of this DataFilterTemplate
+ * @return description
+ */
+
+ @Schema(name = "description", description = "Description of this DataFilterTemplate", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
+ public String getDescription() {
+ return description;
+ }
+
+ public void setDescription(String description) {
+ this.description = description;
+ }
+
+ @Override
+ public boolean equals(Object o) {
+ if (this == o) {
+ return true;
+ }
+ if (o == null || getClass() != o.getClass()) {
+ return false;
+ }
+ DataFilterTemplate dataFilterTemplate = (DataFilterTemplate) o;
+ return Objects.equals(this.type, dataFilterTemplate.type) &&
+ Objects.equals(this.baseType, dataFilterTemplate.baseType) &&
+ Objects.equals(this.schemaLocation, dataFilterTemplate.schemaLocation) &&
+ Objects.equals(this.id, dataFilterTemplate.id) &&
+ Objects.equals(this.href, dataFilterTemplate.href) &&
+ Objects.equals(this.name, dataFilterTemplate.name) &&
+ Objects.equals(this.description, dataFilterTemplate.description);
+ }
+
+ @Override
+ public int hashCode() {
+ return Objects.hash(type, baseType, schemaLocation, id, href, name, description);
+ }
+
+ @Override
+ public String toString() {
+ StringBuilder sb = new StringBuilder();
+ sb.append("class DataFilterTemplate {\n");
+ sb.append(" type: ").append(toIndentedString(type)).append("\n");
+ sb.append(" baseType: ").append(toIndentedString(baseType)).append("\n");
+ sb.append(" schemaLocation: ").append(toIndentedString(schemaLocation)).append("\n");
+ sb.append(" id: ").append(toIndentedString(id)).append("\n");
+ sb.append(" href: ").append(toIndentedString(href)).append("\n");
+ sb.append(" name: ").append(toIndentedString(name)).append("\n");
+ sb.append(" description: ").append(toIndentedString(description)).append("\n");
+ sb.append("}");
+ return sb.toString();
+ }
+
+ /**
+ * Convert the given object to string with each line indented by 4 spaces
+ * (except the first line).
+ */
+ private String toIndentedString(Object o) {
+ if (o == null) {
+ return "null";
+ }
+ return o.toString().replace("\n", "\n ");
+ }
+}
+
diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/DataFilterTemplateFVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/DataFilterTemplateFVO.java
new file mode 100644
index 0000000000000000000000000000000000000000..ecd0fc69e2d76cc790f8d045121f3edc951541af
--- /dev/null
+++ b/src/main/java/org/etsi/osl/tmf/pm628/model/DataFilterTemplateFVO.java
@@ -0,0 +1,206 @@
+package org.etsi.osl.tmf.pm628.model;
+
+import com.fasterxml.jackson.annotation.JsonProperty;
+import io.swagger.v3.oas.annotations.media.Schema;
+import jakarta.validation.constraints.NotNull;
+
+import javax.annotation.Generated;
+import java.util.Objects;
+
+/**
+ * DataFilterTemplateFVO
+ */
+
+
+@Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-05-15T07:30:16.936523289Z[Etc/UTC]", comments = "Generator version: 7.6.0-SNAPSHOT")
+public class DataFilterTemplateFVO {
+
+ @JsonProperty("@type")
+ private String type;
+
+ @JsonProperty("@baseType")
+ private String baseType;
+
+ @JsonProperty("@schemaLocation")
+ private String schemaLocation;
+
+ @JsonProperty("href")
+ private String href = null;
+
+ @JsonProperty("name")
+ private String name;
+
+ @JsonProperty("description")
+ private String description;
+
+ public DataFilterTemplateFVO() {
+ super();
+ }
+
+ /**
+ * Constructor with only required parameters
+ */
+ public DataFilterTemplateFVO(String type) {
+ this.type = type;
+ }
+
+ public DataFilterTemplateFVO type(String type) {
+ this.type = type;
+ return this;
+ }
+
+ /**
+ * When sub-classing, this defines the sub-class Extensible name
+ * @return type
+ */
+ @NotNull
+ @Schema(name = "@type", description = "When sub-classing, this defines the sub-class Extensible name", requiredMode = Schema.RequiredMode.REQUIRED)
+ @JsonProperty("@type")
+ public String getType() {
+ return type;
+ }
+
+ public void setType(String type) {
+ this.type = type;
+ }
+
+ public DataFilterTemplateFVO baseType(String baseType) {
+ this.baseType = baseType;
+ return this;
+ }
+
+ /**
+ * When sub-classing, this defines the super-class
+ * @return baseType
+ */
+
+ @Schema(name = "@baseType", description = "When sub-classing, this defines the super-class", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
+ @JsonProperty("@baseType")
+ public String getBaseType() {
+ return baseType;
+ }
+
+ public void setBaseType(String baseType) {
+ this.baseType = baseType;
+ }
+
+ public DataFilterTemplateFVO schemaLocation(String schemaLocation) {
+ this.schemaLocation = schemaLocation;
+ return this;
+ }
+
+ /**
+ * A URI to a JSON-Schema file that defines additional attributes and relationships
+ * @return schemaLocation
+ */
+
+ @Schema(name = "@schemaLocation", description = "A URI to a JSON-Schema file that defines additional attributes and relationships", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
+ @JsonProperty("@schemaLocation")
+ public String getSchemaLocation() {
+ return schemaLocation;
+ }
+
+ public void setSchemaLocation(String schemaLocation) {
+ this.schemaLocation = schemaLocation;
+ }
+
+ /**
+ * Unique reference of the entity
+ *
+ * @return href
+ **/
+ @Schema(description = "Unique reference of the entity")
+ public String getHref() {
+ return href;
+ }
+
+ public void setHref(String href) {
+ this.href = href;
+ }
+
+ public DataFilterTemplateFVO name(String name) {
+ this.name = name;
+ return this;
+ }
+
+ /**
+ * Name given to this DataFilterTemplate
+ * @return name
+ */
+
+ @Schema(name = "name", description = "Name given to this DataFilterTemplate", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
+ @JsonProperty("name")
+ public String getName() {
+ return name;
+ }
+
+ public void setName(String name) {
+ this.name = name;
+ }
+
+ public DataFilterTemplateFVO description(String description) {
+ this.description = description;
+ return this;
+ }
+
+ /**
+ * Description of this DataFilterTemplate
+ * @return description
+ */
+
+ @Schema(name = "description", description = "Description of this DataFilterTemplate", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
+ @JsonProperty("description")
+ public String getDescription() {
+ return description;
+ }
+
+ public void setDescription(String description) {
+ this.description = description;
+ }
+
+ @Override
+ public boolean equals(Object o) {
+ if (this == o) {
+ return true;
+ }
+ if (o == null || getClass() != o.getClass()) {
+ return false;
+ }
+ DataFilterTemplateFVO dataFilterTemplateFVO = (DataFilterTemplateFVO) o;
+ return Objects.equals(this.type, dataFilterTemplateFVO.type) &&
+ Objects.equals(this.baseType, dataFilterTemplateFVO.baseType) &&
+ Objects.equals(this.schemaLocation, dataFilterTemplateFVO.schemaLocation) &&
+ Objects.equals(this.name, dataFilterTemplateFVO.name) &&
+ Objects.equals(this.description, dataFilterTemplateFVO.description);
+ }
+
+ @Override
+ public int hashCode() {
+ return Objects.hash(type, baseType, schemaLocation, name, description);
+ }
+
+ @Override
+ public String toString() {
+ StringBuilder sb = new StringBuilder();
+ sb.append("class DataFilterTemplateFVO {\n");
+ sb.append(" type: ").append(toIndentedString(type)).append("\n");
+ sb.append(" baseType: ").append(toIndentedString(baseType)).append("\n");
+ sb.append(" schemaLocation: ").append(toIndentedString(schemaLocation)).append("\n");
+ sb.append(" name: ").append(toIndentedString(name)).append("\n");
+ sb.append(" description: ").append(toIndentedString(description)).append("\n");
+ sb.append("}");
+ return sb.toString();
+ }
+
+ /**
+ * Convert the given object to string with each line indented by 4 spaces
+ * (except the first line).
+ */
+ private String toIndentedString(Object o) {
+ if (o == null) {
+ return "null";
+ }
+ return o.toString().replace("\n", "\n ");
+ }
+}
+
diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/DataFilterTemplateMVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/DataFilterTemplateMVO.java
new file mode 100644
index 0000000000000000000000000000000000000000..98162e0ca0f2f3fb6b97dea050aa202530a10aed
--- /dev/null
+++ b/src/main/java/org/etsi/osl/tmf/pm628/model/DataFilterTemplateMVO.java
@@ -0,0 +1,231 @@
+package org.etsi.osl.tmf.pm628.model;
+
+import com.fasterxml.jackson.annotation.JsonProperty;
+import io.swagger.v3.oas.annotations.media.Schema;
+import jakarta.validation.constraints.NotNull;
+
+import javax.annotation.Generated;
+import java.util.Objects;
+
+/**
+ * DataFilterTemplateMVO
+ */
+
+
+@Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-05-15T07:30:16.936523289Z[Etc/UTC]", comments = "Generator version: 7.6.0-SNAPSHOT")
+public class DataFilterTemplateMVO {
+
+ @JsonProperty("@type")
+ private String type;
+
+ @JsonProperty("@baseType")
+ private String baseType;
+
+ @JsonProperty("@schemaLocation")
+ private String schemaLocation;
+
+ @JsonProperty("href")
+ protected String href = null;
+
+ @JsonProperty("id")
+ private String id;
+
+ @JsonProperty("name")
+ private String name;
+
+ @JsonProperty("description")
+ private String description;
+
+ public DataFilterTemplateMVO() {
+ super();
+ }
+
+ /**
+ * Constructor with only required parameters
+ */
+ public DataFilterTemplateMVO(String type) {
+ this.type = type;
+ }
+
+ public DataFilterTemplateMVO type(String type) {
+ this.type = type;
+ return this;
+ }
+
+ /**
+ * When sub-classing, this defines the sub-class Extensible name
+ * @return type
+ */
+ @NotNull
+ @Schema(name = "@type", description = "When sub-classing, this defines the sub-class Extensible name", requiredMode = Schema.RequiredMode.REQUIRED)
+ @JsonProperty("@type")
+ public String getType() {
+ return type;
+ }
+
+ public void setType(String type) {
+ this.type = type;
+ }
+
+ public DataFilterTemplateMVO baseType(String baseType) {
+ this.baseType = baseType;
+ return this;
+ }
+
+ /**
+ * When sub-classing, this defines the super-class
+ * @return baseType
+ */
+
+ @Schema(name = "@baseType", description = "When sub-classing, this defines the super-class", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
+ @JsonProperty("@baseType")
+ public String getBaseType() {
+ return baseType;
+ }
+
+ public void setBaseType(String baseType) {
+ this.baseType = baseType;
+ }
+
+ public DataFilterTemplateMVO schemaLocation(String schemaLocation) {
+ this.schemaLocation = schemaLocation;
+ return this;
+ }
+
+ /**
+ * A URI to a JSON-Schema file that defines additional attributes and relationships
+ * @return schemaLocation
+ */
+
+ @Schema(name = "@schemaLocation", description = "A URI to a JSON-Schema file that defines additional attributes and relationships", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
+ @JsonProperty("@schemaLocation")
+ public String getSchemaLocation() {
+ return schemaLocation;
+ }
+
+ public void setSchemaLocation(String schemaLocation) {
+ this.schemaLocation = schemaLocation;
+ }
+
+ /**
+ * Unique reference of the entity
+ *
+ * @return href
+ **/
+ @Schema(description = "Unique reference of the entity")
+ public String getHref() {
+ return href;
+ }
+
+ public void setHref(String href) {
+ this.href = href;
+ }
+
+ public DataFilterTemplateMVO id(String id) {
+ this.id = id;
+ return this;
+ }
+
+ /**
+ * Unique identifier of this DataFilterTemplate
+ * @return id
+ */
+
+ @Schema(name = "id", example = "6c088cf7f1bc", description = "Unique identifier of this DataFilterTemplate", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
+ @JsonProperty("id")
+ public String getId() {
+ return id;
+ }
+
+ public void setId(String id) {
+ this.id = id;
+ }
+
+ public DataFilterTemplateMVO name(String name) {
+ this.name = name;
+ return this;
+ }
+
+ /**
+ * Name given to this DataFilterTemplate
+ * @return name
+ */
+
+ @Schema(name = "name", description = "Name given to this DataFilterTemplate", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
+ @JsonProperty("name")
+ public String getName() {
+ return name;
+ }
+
+ public void setName(String name) {
+ this.name = name;
+ }
+
+ public DataFilterTemplateMVO description(String description) {
+ this.description = description;
+ return this;
+ }
+
+ /**
+ * Description of this DataFilterTemplate
+ * @return description
+ */
+
+ @Schema(name = "description", description = "Description of this DataFilterTemplate", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
+ @JsonProperty("description")
+ public String getDescription() {
+ return description;
+ }
+
+ public void setDescription(String description) {
+ this.description = description;
+ }
+
+ @Override
+ public boolean equals(Object o) {
+ if (this == o) {
+ return true;
+ }
+ if (o == null || getClass() != o.getClass()) {
+ return false;
+ }
+ DataFilterTemplateMVO dataFilterTemplateMVO = (DataFilterTemplateMVO) o;
+ return Objects.equals(this.type, dataFilterTemplateMVO.type) &&
+ Objects.equals(this.baseType, dataFilterTemplateMVO.baseType) &&
+ Objects.equals(this.schemaLocation, dataFilterTemplateMVO.schemaLocation) &&
+ Objects.equals(this.id, dataFilterTemplateMVO.id) &&
+ Objects.equals(this.name, dataFilterTemplateMVO.name) &&
+ Objects.equals(this.description, dataFilterTemplateMVO.description);
+ }
+
+ @Override
+ public int hashCode() {
+ return Objects.hash(type, baseType, schemaLocation, id, name, description);
+ }
+
+ @Override
+ public String toString() {
+ StringBuilder sb = new StringBuilder();
+ sb.append("class DataFilterTemplateMVO {\n");
+ sb.append(" type: ").append(toIndentedString(type)).append("\n");
+ sb.append(" baseType: ").append(toIndentedString(baseType)).append("\n");
+ sb.append(" schemaLocation: ").append(toIndentedString(schemaLocation)).append("\n");
+ sb.append(" id: ").append(toIndentedString(id)).append("\n");
+ sb.append(" name: ").append(toIndentedString(name)).append("\n");
+ sb.append(" description: ").append(toIndentedString(description)).append("\n");
+ sb.append("}");
+ return sb.toString();
+ }
+
+ /**
+ * Convert the given object to string with each line indented by 4 spaces
+ * (except the first line).
+ */
+ private String toIndentedString(Object o) {
+ if (o == null) {
+ return "null";
+ }
+ return o.toString().replace("\n", "\n ");
+ }
+}
+
diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/DayOfMonthRecurrence.java b/src/main/java/org/etsi/osl/tmf/pm628/model/DayOfMonthRecurrence.java
new file mode 100644
index 0000000000000000000000000000000000000000..ef8d3d59be86689c130feea2c216642e36688059
--- /dev/null
+++ b/src/main/java/org/etsi/osl/tmf/pm628/model/DayOfMonthRecurrence.java
@@ -0,0 +1,183 @@
+package org.etsi.osl.tmf.pm628.model;
+
+import com.fasterxml.jackson.annotation.JsonProperty;
+import io.swagger.v3.oas.annotations.media.Schema;
+import jakarta.persistence.Column;
+import jakarta.persistence.Embeddable;
+import jakarta.validation.Valid;
+import jakarta.validation.constraints.NotNull;
+import org.springframework.format.annotation.DateTimeFormat;
+
+import javax.annotation.Generated;
+import java.time.OffsetDateTime;
+import java.util.Objects;
+
+/**
+ * DayOfMonthRecurrence
+ */
+
+
+@Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-05-15T07:30:16.936523289Z[Etc/UTC]", comments = "Generator version: 7.6.0-SNAPSHOT")
+@Embeddable
+public class DayOfMonthRecurrence {
+
+ @JsonProperty("@type")
+ @Column(name = "domr_type")
+ private String type;
+
+ @JsonProperty("@baseType")
+ @Column(name = "domr_base_type")
+ private String baseType;
+
+ @JsonProperty("@schemaLocation")
+ @Column(name = "domr_schema_location")
+ private String schemaLocation;
+
+ @DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME)
+ private OffsetDateTime dates;
+
+ public DayOfMonthRecurrence() {
+ super();
+ }
+
+ /**
+ * Constructor with only required parameters
+ */
+ public DayOfMonthRecurrence(String type) {
+ this.type = type;
+ }
+
+ public DayOfMonthRecurrence type(String type) {
+ this.type = type;
+ return this;
+ }
+
+ /**
+ * When sub-classing, this defines the sub-class Extensible name
+ * @return type
+ */
+ @NotNull
+ @Schema(name = "@type", description = "When sub-classing, this defines the sub-class Extensible name", requiredMode = Schema.RequiredMode.REQUIRED)
+ @JsonProperty("@type")
+ public String getType() {
+ return type;
+ }
+
+ public void setType(String type) {
+ this.type = type;
+ }
+
+ public DayOfMonthRecurrence baseType(String baseType) {
+ this.baseType = baseType;
+ return this;
+ }
+
+ /**
+ * When sub-classing, this defines the super-class
+ * @return baseType
+ */
+
+ @Schema(name = "@baseType", description = "When sub-classing, this defines the super-class", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
+ @JsonProperty("@baseType")
+ public String getBaseType() {
+ return baseType;
+ }
+
+ public void setBaseType(String baseType) {
+ this.baseType = baseType;
+ }
+
+ public DayOfMonthRecurrence schemaLocation(String schemaLocation) {
+ this.schemaLocation = schemaLocation;
+ return this;
+ }
+
+ /**
+ * A URI to a JSON-Schema file that defines additional attributes and relationships
+ * @return schemaLocation
+ */
+
+ @Schema(name = "@schemaLocation", description = "A URI to a JSON-Schema file that defines additional attributes and relationships", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
+ @JsonProperty("@schemaLocation")
+ public String getSchemaLocation() {
+ return schemaLocation;
+ }
+
+ public void setSchemaLocation(String schemaLocation) {
+ this.schemaLocation = schemaLocation;
+ }
+
+ public DayOfMonthRecurrence dates(OffsetDateTime dates) {
+ this.dates = dates;
+ return this;
+ }
+
+ /**
+ * Get dates
+ * @return dates
+ */
+ @Valid
+ @Schema(name = "dates", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
+ @JsonProperty("dates")
+ public String getDatesString() {
+ return dates.toString();
+ }
+
+ public void setDates(String dates) {
+ if ( dates!= null ) {
+ this.dates = OffsetDateTime.parse( dates );
+ }
+ }
+
+ public OffsetDateTime getDates() {
+ return dates;
+ }
+
+ public void setDates(OffsetDateTime dates) {
+ this.dates = dates;
+ }
+
+ @Override
+ public boolean equals(Object o) {
+ if (this == o) {
+ return true;
+ }
+ if (o == null || getClass() != o.getClass()) {
+ return false;
+ }
+ DayOfMonthRecurrence dayOfMonthRecurrence = (DayOfMonthRecurrence) o;
+ return Objects.equals(this.type, dayOfMonthRecurrence.type) &&
+ Objects.equals(this.baseType, dayOfMonthRecurrence.baseType) &&
+ Objects.equals(this.schemaLocation, dayOfMonthRecurrence.schemaLocation) &&
+ Objects.equals(this.dates, dayOfMonthRecurrence.dates);
+ }
+
+ @Override
+ public int hashCode() {
+ return Objects.hash(type, baseType, schemaLocation, dates);
+ }
+
+ @Override
+ public String toString() {
+ StringBuilder sb = new StringBuilder();
+ sb.append("class DayOfMonthRecurrence {\n");
+ sb.append(" type: ").append(toIndentedString(type)).append("\n");
+ sb.append(" baseType: ").append(toIndentedString(baseType)).append("\n");
+ sb.append(" schemaLocation: ").append(toIndentedString(schemaLocation)).append("\n");
+ sb.append(" dates: ").append(toIndentedString(dates)).append("\n");
+ sb.append("}");
+ return sb.toString();
+ }
+
+ /**
+ * Convert the given object to string with each line indented by 4 spaces
+ * (except the first line).
+ */
+ private String toIndentedString(Object o) {
+ if (o == null) {
+ return "null";
+ }
+ return o.toString().replace("\n", "\n ");
+ }
+}
+
diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/DayOfMonthRecurrenceFVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/DayOfMonthRecurrenceFVO.java
new file mode 100644
index 0000000000000000000000000000000000000000..1cee0eb3b27985eb6acbd39e174ac981dd63ac0d
--- /dev/null
+++ b/src/main/java/org/etsi/osl/tmf/pm628/model/DayOfMonthRecurrenceFVO.java
@@ -0,0 +1,168 @@
+package org.etsi.osl.tmf.pm628.model;
+
+import com.fasterxml.jackson.annotation.JsonProperty;
+import io.swagger.v3.oas.annotations.media.Schema;
+import jakarta.validation.Valid;
+import jakarta.validation.constraints.NotNull;
+import org.springframework.format.annotation.DateTimeFormat;
+
+import javax.annotation.Generated;
+import java.time.OffsetDateTime;
+import java.util.Objects;
+
+/**
+ * DayOfMonthRecurrenceFVO
+ */
+
+
+@Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-05-15T07:30:16.936523289Z[Etc/UTC]", comments = "Generator version: 7.6.0-SNAPSHOT")
+public class DayOfMonthRecurrenceFVO {
+
+ @JsonProperty("@type")
+ private String type;
+
+ @JsonProperty("@baseType")
+ private String baseType;
+
+ @JsonProperty("@schemaLocation")
+ private String schemaLocation;
+
+ @JsonProperty("dates")
+ @DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME)
+ private OffsetDateTime dates;
+
+ public DayOfMonthRecurrenceFVO() {
+ super();
+ }
+
+ /**
+ * Constructor with only required parameters
+ */
+ public DayOfMonthRecurrenceFVO(String type) {
+ this.type = type;
+ }
+
+ public DayOfMonthRecurrenceFVO type(String type) {
+ this.type = type;
+ return this;
+ }
+
+ /**
+ * When sub-classing, this defines the sub-class Extensible name
+ * @return type
+ */
+ @NotNull
+ @Schema(name = "@type", description = "When sub-classing, this defines the sub-class Extensible name", requiredMode = Schema.RequiredMode.REQUIRED)
+ @JsonProperty("@type")
+ public String getType() {
+ return type;
+ }
+
+ public void setType(String type) {
+ this.type = type;
+ }
+
+ public DayOfMonthRecurrenceFVO baseType(String baseType) {
+ this.baseType = baseType;
+ return this;
+ }
+
+ /**
+ * When sub-classing, this defines the super-class
+ * @return baseType
+ */
+
+ @Schema(name = "@baseType", description = "When sub-classing, this defines the super-class", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
+ @JsonProperty("@baseType")
+ public String getBaseType() {
+ return baseType;
+ }
+
+ public void setBaseType(String baseType) {
+ this.baseType = baseType;
+ }
+
+ public DayOfMonthRecurrenceFVO schemaLocation(String schemaLocation) {
+ this.schemaLocation = schemaLocation;
+ return this;
+ }
+
+ /**
+ * A URI to a JSON-Schema file that defines additional attributes and relationships
+ * @return schemaLocation
+ */
+
+ @Schema(name = "@schemaLocation", description = "A URI to a JSON-Schema file that defines additional attributes and relationships", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
+ @JsonProperty("@schemaLocation")
+ public String getSchemaLocation() {
+ return schemaLocation;
+ }
+
+ public void setSchemaLocation(String schemaLocation) {
+ this.schemaLocation = schemaLocation;
+ }
+
+ public DayOfMonthRecurrenceFVO dates(OffsetDateTime dates) {
+ this.dates = dates;
+ return this;
+ }
+
+ /**
+ * Get dates
+ * @return dates
+ */
+ @Valid
+ @Schema(name = "dates", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
+ @JsonProperty("dates")
+ public OffsetDateTime getDates() {
+ return dates;
+ }
+
+ public void setDates(OffsetDateTime dates) {
+ this.dates = dates;
+ }
+
+ @Override
+ public boolean equals(Object o) {
+ if (this == o) {
+ return true;
+ }
+ if (o == null || getClass() != o.getClass()) {
+ return false;
+ }
+ DayOfMonthRecurrenceFVO dayOfMonthRecurrenceFVO = (DayOfMonthRecurrenceFVO) o;
+ return Objects.equals(this.type, dayOfMonthRecurrenceFVO.type) &&
+ Objects.equals(this.baseType, dayOfMonthRecurrenceFVO.baseType) &&
+ Objects.equals(this.schemaLocation, dayOfMonthRecurrenceFVO.schemaLocation) &&
+ Objects.equals(this.dates, dayOfMonthRecurrenceFVO.dates);
+ }
+
+ @Override
+ public int hashCode() {
+ return Objects.hash(type, baseType, schemaLocation, dates);
+ }
+
+ @Override
+ public String toString() {
+ StringBuilder sb = new StringBuilder();
+ sb.append("class DayOfMonthRecurrenceFVO {\n");
+ sb.append(" type: ").append(toIndentedString(type)).append("\n");
+ sb.append(" baseType: ").append(toIndentedString(baseType)).append("\n");
+ sb.append(" schemaLocation: ").append(toIndentedString(schemaLocation)).append("\n");
+ sb.append(" dates: ").append(toIndentedString(dates)).append("\n");
+ sb.append("}");
+ return sb.toString();
+ }
+
+ /**
+ * Convert the given object to string with each line indented by 4 spaces
+ * (except the first line).
+ */
+ private String toIndentedString(Object o) {
+ if (o == null) {
+ return "null";
+ }
+ return o.toString().replace("\n", "\n ");
+ }
+}
+
diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/DayOfMonthRecurrenceMVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/DayOfMonthRecurrenceMVO.java
new file mode 100644
index 0000000000000000000000000000000000000000..0a8506a0cc3df55953a7e7e614158f5a9e72ec42
--- /dev/null
+++ b/src/main/java/org/etsi/osl/tmf/pm628/model/DayOfMonthRecurrenceMVO.java
@@ -0,0 +1,168 @@
+package org.etsi.osl.tmf.pm628.model;
+
+import com.fasterxml.jackson.annotation.JsonProperty;
+import io.swagger.v3.oas.annotations.media.Schema;
+import jakarta.validation.Valid;
+import jakarta.validation.constraints.NotNull;
+import org.springframework.format.annotation.DateTimeFormat;
+
+import javax.annotation.Generated;
+import java.time.OffsetDateTime;
+import java.util.Objects;
+
+/**
+ * DayOfMonthRecurrenceMVO
+ */
+
+
+@Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-05-15T07:30:16.936523289Z[Etc/UTC]", comments = "Generator version: 7.6.0-SNAPSHOT")
+public class DayOfMonthRecurrenceMVO {
+
+ @JsonProperty("@type")
+ private String type;
+
+ @JsonProperty("@baseType")
+ private String baseType;
+
+ @JsonProperty("@schemaLocation")
+ private String schemaLocation;
+
+ @JsonProperty("dates")
+ @DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME)
+ private OffsetDateTime dates;
+
+ public DayOfMonthRecurrenceMVO() {
+ super();
+ }
+
+ /**
+ * Constructor with only required parameters
+ */
+ public DayOfMonthRecurrenceMVO(String type) {
+ this.type = type;
+ }
+
+ public DayOfMonthRecurrenceMVO type(String type) {
+ this.type = type;
+ return this;
+ }
+
+ /**
+ * When sub-classing, this defines the sub-class Extensible name
+ * @return type
+ */
+ @NotNull
+ @Schema(name = "@type", description = "When sub-classing, this defines the sub-class Extensible name", requiredMode = Schema.RequiredMode.REQUIRED)
+ @JsonProperty("@type")
+ public String getType() {
+ return type;
+ }
+
+ public void setType(String type) {
+ this.type = type;
+ }
+
+ public DayOfMonthRecurrenceMVO baseType(String baseType) {
+ this.baseType = baseType;
+ return this;
+ }
+
+ /**
+ * When sub-classing, this defines the super-class
+ * @return baseType
+ */
+
+ @Schema(name = "@baseType", description = "When sub-classing, this defines the super-class", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
+ @JsonProperty("@baseType")
+ public String getBaseType() {
+ return baseType;
+ }
+
+ public void setBaseType(String baseType) {
+ this.baseType = baseType;
+ }
+
+ public DayOfMonthRecurrenceMVO schemaLocation(String schemaLocation) {
+ this.schemaLocation = schemaLocation;
+ return this;
+ }
+
+ /**
+ * A URI to a JSON-Schema file that defines additional attributes and relationships
+ * @return schemaLocation
+ */
+
+ @Schema(name = "@schemaLocation", description = "A URI to a JSON-Schema file that defines additional attributes and relationships", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
+ @JsonProperty("@schemaLocation")
+ public String getSchemaLocation() {
+ return schemaLocation;
+ }
+
+ public void setSchemaLocation(String schemaLocation) {
+ this.schemaLocation = schemaLocation;
+ }
+
+ public DayOfMonthRecurrenceMVO dates(OffsetDateTime dates) {
+ this.dates = dates;
+ return this;
+ }
+
+ /**
+ * Get dates
+ * @return dates
+ */
+ @Valid
+ @Schema(name = "dates", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
+ @JsonProperty("dates")
+ public OffsetDateTime getDates() {
+ return dates;
+ }
+
+ public void setDates(OffsetDateTime dates) {
+ this.dates = dates;
+ }
+
+ @Override
+ public boolean equals(Object o) {
+ if (this == o) {
+ return true;
+ }
+ if (o == null || getClass() != o.getClass()) {
+ return false;
+ }
+ DayOfMonthRecurrenceMVO dayOfMonthRecurrenceMVO = (DayOfMonthRecurrenceMVO) o;
+ return Objects.equals(this.type, dayOfMonthRecurrenceMVO.type) &&
+ Objects.equals(this.baseType, dayOfMonthRecurrenceMVO.baseType) &&
+ Objects.equals(this.schemaLocation, dayOfMonthRecurrenceMVO.schemaLocation) &&
+ Objects.equals(this.dates, dayOfMonthRecurrenceMVO.dates);
+ }
+
+ @Override
+ public int hashCode() {
+ return Objects.hash(type, baseType, schemaLocation, dates);
+ }
+
+ @Override
+ public String toString() {
+ StringBuilder sb = new StringBuilder();
+ sb.append("class DayOfMonthRecurrenceMVO {\n");
+ sb.append(" type: ").append(toIndentedString(type)).append("\n");
+ sb.append(" baseType: ").append(toIndentedString(baseType)).append("\n");
+ sb.append(" schemaLocation: ").append(toIndentedString(schemaLocation)).append("\n");
+ sb.append(" dates: ").append(toIndentedString(dates)).append("\n");
+ sb.append("}");
+ return sb.toString();
+ }
+
+ /**
+ * Convert the given object to string with each line indented by 4 spaces
+ * (except the first line).
+ */
+ private String toIndentedString(Object o) {
+ if (o == null) {
+ return "null";
+ }
+ return o.toString().replace("\n", "\n ");
+ }
+}
+
diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/DayOfWeekRecurrence.java b/src/main/java/org/etsi/osl/tmf/pm628/model/DayOfWeekRecurrence.java
new file mode 100644
index 0000000000000000000000000000000000000000..b8bfefe230ba65796f495f3a3709efa974261ed3
--- /dev/null
+++ b/src/main/java/org/etsi/osl/tmf/pm628/model/DayOfWeekRecurrence.java
@@ -0,0 +1,183 @@
+package org.etsi.osl.tmf.pm628.model;
+
+import com.fasterxml.jackson.annotation.JsonProperty;
+import io.swagger.v3.oas.annotations.media.Schema;
+import jakarta.persistence.Column;
+import jakarta.persistence.Embeddable;
+import jakarta.validation.Valid;
+import jakarta.validation.constraints.NotNull;
+import org.springframework.format.annotation.DateTimeFormat;
+
+import javax.annotation.Generated;
+import java.time.OffsetDateTime;
+import java.util.Objects;
+
+/**
+ * DayOfWeekRecurrence
+ */
+
+
+@Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-05-15T07:30:16.936523289Z[Etc/UTC]", comments = "Generator version: 7.6.0-SNAPSHOT")
+@Embeddable
+public class DayOfWeekRecurrence {
+
+ @JsonProperty("@type")
+ @Column(name = "dowr_type")
+ private String type;
+
+ @JsonProperty("@baseType")
+ @Column(name = "dowr_base_type")
+ private String baseType;
+
+ @JsonProperty("@schemaLocation")
+ @Column(name = "dowr_schema_location")
+ private String schemaLocation;
+
+ @DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME)
+ private OffsetDateTime dates;
+
+ public DayOfWeekRecurrence() {
+ super();
+ }
+
+ /**
+ * Constructor with only required parameters
+ */
+ public DayOfWeekRecurrence(String type) {
+ this.type = type;
+ }
+
+ public DayOfWeekRecurrence type(String type) {
+ this.type = type;
+ return this;
+ }
+
+ /**
+ * When sub-classing, this defines the sub-class Extensible name
+ * @return type
+ */
+ @NotNull
+ @Schema(name = "@type", description = "When sub-classing, this defines the sub-class Extensible name", requiredMode = Schema.RequiredMode.REQUIRED)
+ @JsonProperty("@type")
+ public String getType() {
+ return type;
+ }
+
+ public void setType(String type) {
+ this.type = type;
+ }
+
+ public DayOfWeekRecurrence baseType(String baseType) {
+ this.baseType = baseType;
+ return this;
+ }
+
+ /**
+ * When sub-classing, this defines the super-class
+ * @return baseType
+ */
+
+ @Schema(name = "@baseType", description = "When sub-classing, this defines the super-class", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
+ @JsonProperty("@baseType")
+ public String getBaseType() {
+ return baseType;
+ }
+
+ public void setBaseType(String baseType) {
+ this.baseType = baseType;
+ }
+
+ public DayOfWeekRecurrence schemaLocation(String schemaLocation) {
+ this.schemaLocation = schemaLocation;
+ return this;
+ }
+
+ /**
+ * A URI to a JSON-Schema file that defines additional attributes and relationships
+ * @return schemaLocation
+ */
+
+ @Schema(name = "@schemaLocation", description = "A URI to a JSON-Schema file that defines additional attributes and relationships", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
+ @JsonProperty("@schemaLocation")
+ public String getSchemaLocation() {
+ return schemaLocation;
+ }
+
+ public void setSchemaLocation(String schemaLocation) {
+ this.schemaLocation = schemaLocation;
+ }
+
+ public DayOfWeekRecurrence dates(OffsetDateTime dates) {
+ this.dates = dates;
+ return this;
+ }
+
+ /**
+ * Get dates
+ * @return dates
+ */
+ @Valid
+ @Schema(name = "dates", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
+ public OffsetDateTime getDates() {
+ return dates;
+ }
+
+ @JsonProperty("dates")
+ public String getDatesString() {
+ return dates.toString();
+ }
+
+ public void setDates(String dates) {
+ if ( dates!= null ) {
+ this.dates = OffsetDateTime.parse( dates );
+ }
+ }
+
+ public void setDates(OffsetDateTime dates) {
+ this.dates = dates;
+ }
+
+ @Override
+ public boolean equals(Object o) {
+ if (this == o) {
+ return true;
+ }
+ if (o == null || getClass() != o.getClass()) {
+ return false;
+ }
+ DayOfWeekRecurrence dayOfWeekRecurrence = (DayOfWeekRecurrence) o;
+ return Objects.equals(this.type, dayOfWeekRecurrence.type) &&
+ Objects.equals(this.baseType, dayOfWeekRecurrence.baseType) &&
+ Objects.equals(this.schemaLocation, dayOfWeekRecurrence.schemaLocation) &&
+ Objects.equals(this.dates, dayOfWeekRecurrence.dates);
+ }
+
+ @Override
+ public int hashCode() {
+ return Objects.hash(type, baseType, schemaLocation, dates);
+ }
+
+ @Override
+ public String toString() {
+ StringBuilder sb = new StringBuilder();
+ sb.append("class DayOfWeekRecurrence {\n");
+ sb.append(" type: ").append(toIndentedString(type)).append("\n");
+ sb.append(" baseType: ").append(toIndentedString(baseType)).append("\n");
+ sb.append(" schemaLocation: ").append(toIndentedString(schemaLocation)).append("\n");
+ sb.append(" dates: ").append(toIndentedString(dates)).append("\n");
+ sb.append("}");
+ return sb.toString();
+ }
+
+ /**
+ * Convert the given object to string with each line indented by 4 spaces
+ * (except the first line).
+ */
+ private String toIndentedString(Object o) {
+ if (o == null) {
+ return "null";
+ }
+ return o.toString().replace("\n", "\n ");
+ }
+}
+
diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/DayOfWeekRecurrenceFVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/DayOfWeekRecurrenceFVO.java
new file mode 100644
index 0000000000000000000000000000000000000000..33c57949f9ca5281b9793b1ae443bf63e006111e
--- /dev/null
+++ b/src/main/java/org/etsi/osl/tmf/pm628/model/DayOfWeekRecurrenceFVO.java
@@ -0,0 +1,168 @@
+package org.etsi.osl.tmf.pm628.model;
+
+import com.fasterxml.jackson.annotation.JsonProperty;
+import io.swagger.v3.oas.annotations.media.Schema;
+import jakarta.validation.Valid;
+import jakarta.validation.constraints.NotNull;
+import org.springframework.format.annotation.DateTimeFormat;
+
+import javax.annotation.Generated;
+import java.time.OffsetDateTime;
+import java.util.Objects;
+
+/**
+ * DayOfWeekRecurrenceFVO
+ */
+
+
+@Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-05-15T07:30:16.936523289Z[Etc/UTC]", comments = "Generator version: 7.6.0-SNAPSHOT")
+public class DayOfWeekRecurrenceFVO {
+
+ @JsonProperty("@type")
+ private String type;
+
+ @JsonProperty("@baseType")
+ private String baseType;
+
+ @JsonProperty("@schemaLocation")
+ private String schemaLocation;
+
+ @JsonProperty("dates")
+ @DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME)
+ private OffsetDateTime dates;
+
+ public DayOfWeekRecurrenceFVO() {
+ super();
+ }
+
+ /**
+ * Constructor with only required parameters
+ */
+ public DayOfWeekRecurrenceFVO(String type) {
+ this.type = type;
+ }
+
+ public DayOfWeekRecurrenceFVO type(String type) {
+ this.type = type;
+ return this;
+ }
+
+ /**
+ * When sub-classing, this defines the sub-class Extensible name
+ * @return type
+ */
+ @NotNull
+ @Schema(name = "@type", description = "When sub-classing, this defines the sub-class Extensible name", requiredMode = Schema.RequiredMode.REQUIRED)
+ @JsonProperty("@type")
+ public String getType() {
+ return type;
+ }
+
+ public void setType(String type) {
+ this.type = type;
+ }
+
+ public DayOfWeekRecurrenceFVO baseType(String baseType) {
+ this.baseType = baseType;
+ return this;
+ }
+
+ /**
+ * When sub-classing, this defines the super-class
+ * @return baseType
+ */
+
+ @Schema(name = "@baseType", description = "When sub-classing, this defines the super-class", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
+ @JsonProperty("@baseType")
+ public String getBaseType() {
+ return baseType;
+ }
+
+ public void setBaseType(String baseType) {
+ this.baseType = baseType;
+ }
+
+ public DayOfWeekRecurrenceFVO schemaLocation(String schemaLocation) {
+ this.schemaLocation = schemaLocation;
+ return this;
+ }
+
+ /**
+ * A URI to a JSON-Schema file that defines additional attributes and relationships
+ * @return schemaLocation
+ */
+
+ @Schema(name = "@schemaLocation", description = "A URI to a JSON-Schema file that defines additional attributes and relationships", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
+ @JsonProperty("@schemaLocation")
+ public String getSchemaLocation() {
+ return schemaLocation;
+ }
+
+ public void setSchemaLocation(String schemaLocation) {
+ this.schemaLocation = schemaLocation;
+ }
+
+ public DayOfWeekRecurrenceFVO dates(OffsetDateTime dates) {
+ this.dates = dates;
+ return this;
+ }
+
+ /**
+ * Get dates
+ * @return dates
+ */
+ @Valid
+ @Schema(name = "dates", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
+ @JsonProperty("dates")
+ public OffsetDateTime getDates() {
+ return dates;
+ }
+
+ public void setDates(OffsetDateTime dates) {
+ this.dates = dates;
+ }
+
+ @Override
+ public boolean equals(Object o) {
+ if (this == o) {
+ return true;
+ }
+ if (o == null || getClass() != o.getClass()) {
+ return false;
+ }
+ DayOfWeekRecurrenceFVO dayOfWeekRecurrenceFVO = (DayOfWeekRecurrenceFVO) o;
+ return Objects.equals(this.type, dayOfWeekRecurrenceFVO.type) &&
+ Objects.equals(this.baseType, dayOfWeekRecurrenceFVO.baseType) &&
+ Objects.equals(this.schemaLocation, dayOfWeekRecurrenceFVO.schemaLocation) &&
+ Objects.equals(this.dates, dayOfWeekRecurrenceFVO.dates);
+ }
+
+ @Override
+ public int hashCode() {
+ return Objects.hash(type, baseType, schemaLocation, dates);
+ }
+
+ @Override
+ public String toString() {
+ StringBuilder sb = new StringBuilder();
+ sb.append("class DayOfWeekRecurrenceFVO {\n");
+ sb.append(" type: ").append(toIndentedString(type)).append("\n");
+ sb.append(" baseType: ").append(toIndentedString(baseType)).append("\n");
+ sb.append(" schemaLocation: ").append(toIndentedString(schemaLocation)).append("\n");
+ sb.append(" dates: ").append(toIndentedString(dates)).append("\n");
+ sb.append("}");
+ return sb.toString();
+ }
+
+ /**
+ * Convert the given object to string with each line indented by 4 spaces
+ * (except the first line).
+ */
+ private String toIndentedString(Object o) {
+ if (o == null) {
+ return "null";
+ }
+ return o.toString().replace("\n", "\n ");
+ }
+}
+
diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/DayOfWeekRecurrenceMVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/DayOfWeekRecurrenceMVO.java
new file mode 100644
index 0000000000000000000000000000000000000000..2ef8783a7073ef822bbe17386bcf1cb44d2db53d
--- /dev/null
+++ b/src/main/java/org/etsi/osl/tmf/pm628/model/DayOfWeekRecurrenceMVO.java
@@ -0,0 +1,168 @@
+package org.etsi.osl.tmf.pm628.model;
+
+import com.fasterxml.jackson.annotation.JsonProperty;
+import io.swagger.v3.oas.annotations.media.Schema;
+import jakarta.validation.Valid;
+import jakarta.validation.constraints.NotNull;
+import org.springframework.format.annotation.DateTimeFormat;
+
+import javax.annotation.Generated;
+import java.time.OffsetDateTime;
+import java.util.Objects;
+
+/**
+ * DayOfWeekRecurrenceMVO
+ */
+
+
+@Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-05-15T07:30:16.936523289Z[Etc/UTC]", comments = "Generator version: 7.6.0-SNAPSHOT")
+public class DayOfWeekRecurrenceMVO {
+
+ @JsonProperty("@type")
+ private String type;
+
+ @JsonProperty("@baseType")
+ private String baseType;
+
+ @JsonProperty("@schemaLocation")
+ private String schemaLocation;
+
+ @JsonProperty("dates")
+ @DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME)
+ private OffsetDateTime dates;
+
+ public DayOfWeekRecurrenceMVO() {
+ super();
+ }
+
+ /**
+ * Constructor with only required parameters
+ */
+ public DayOfWeekRecurrenceMVO(String type) {
+ this.type = type;
+ }
+
+ public DayOfWeekRecurrenceMVO type(String type) {
+ this.type = type;
+ return this;
+ }
+
+ /**
+ * When sub-classing, this defines the sub-class Extensible name
+ * @return type
+ */
+ @NotNull
+ @Schema(name = "@type", description = "When sub-classing, this defines the sub-class Extensible name", requiredMode = Schema.RequiredMode.REQUIRED)
+ @JsonProperty("@type")
+ public String getType() {
+ return type;
+ }
+
+ public void setType(String type) {
+ this.type = type;
+ }
+
+ public DayOfWeekRecurrenceMVO baseType(String baseType) {
+ this.baseType = baseType;
+ return this;
+ }
+
+ /**
+ * When sub-classing, this defines the super-class
+ * @return baseType
+ */
+
+ @Schema(name = "@baseType", description = "When sub-classing, this defines the super-class", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
+ @JsonProperty("@baseType")
+ public String getBaseType() {
+ return baseType;
+ }
+
+ public void setBaseType(String baseType) {
+ this.baseType = baseType;
+ }
+
+ public DayOfWeekRecurrenceMVO schemaLocation(String schemaLocation) {
+ this.schemaLocation = schemaLocation;
+ return this;
+ }
+
+ /**
+ * A URI to a JSON-Schema file that defines additional attributes and relationships
+ * @return schemaLocation
+ */
+
+ @Schema(name = "@schemaLocation", description = "A URI to a JSON-Schema file that defines additional attributes and relationships", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
+ @JsonProperty("@schemaLocation")
+ public String getSchemaLocation() {
+ return schemaLocation;
+ }
+
+ public void setSchemaLocation(String schemaLocation) {
+ this.schemaLocation = schemaLocation;
+ }
+
+ public DayOfWeekRecurrenceMVO dates(OffsetDateTime dates) {
+ this.dates = dates;
+ return this;
+ }
+
+ /**
+ * Get dates
+ * @return dates
+ */
+ @Valid
+ @Schema(name = "dates", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
+ @JsonProperty("dates")
+ public OffsetDateTime getDates() {
+ return dates;
+ }
+
+ public void setDates(OffsetDateTime dates) {
+ this.dates = dates;
+ }
+
+ @Override
+ public boolean equals(Object o) {
+ if (this == o) {
+ return true;
+ }
+ if (o == null || getClass() != o.getClass()) {
+ return false;
+ }
+ DayOfWeekRecurrenceMVO dayOfWeekRecurrenceMVO = (DayOfWeekRecurrenceMVO) o;
+ return Objects.equals(this.type, dayOfWeekRecurrenceMVO.type) &&
+ Objects.equals(this.baseType, dayOfWeekRecurrenceMVO.baseType) &&
+ Objects.equals(this.schemaLocation, dayOfWeekRecurrenceMVO.schemaLocation) &&
+ Objects.equals(this.dates, dayOfWeekRecurrenceMVO.dates);
+ }
+
+ @Override
+ public int hashCode() {
+ return Objects.hash(type, baseType, schemaLocation, dates);
+ }
+
+ @Override
+ public String toString() {
+ StringBuilder sb = new StringBuilder();
+ sb.append("class DayOfWeekRecurrenceMVO {\n");
+ sb.append(" type: ").append(toIndentedString(type)).append("\n");
+ sb.append(" baseType: ").append(toIndentedString(baseType)).append("\n");
+ sb.append(" schemaLocation: ").append(toIndentedString(schemaLocation)).append("\n");
+ sb.append(" dates: ").append(toIndentedString(dates)).append("\n");
+ sb.append("}");
+ return sb.toString();
+ }
+
+ /**
+ * Convert the given object to string with each line indented by 4 spaces
+ * (except the first line).
+ */
+ private String toIndentedString(Object o) {
+ if (o == null) {
+ return "null";
+ }
+ return o.toString().replace("\n", "\n ");
+ }
+}
+
diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/Duration.java b/src/main/java/org/etsi/osl/tmf/pm628/model/Duration.java
new file mode 100644
index 0000000000000000000000000000000000000000..65323de60503f96817ab4a382d67f9933f3716cf
--- /dev/null
+++ b/src/main/java/org/etsi/osl/tmf/pm628/model/Duration.java
@@ -0,0 +1,103 @@
+package org.etsi.osl.tmf.pm628.model;
+
+import com.fasterxml.jackson.annotation.JsonProperty;
+import io.swagger.v3.oas.annotations.media.Schema;
+import jakarta.persistence.Embeddable;
+
+import javax.annotation.Generated;
+import java.util.Objects;
+
+/**
+ * A time interval in a given unit of time
+ */
+
+@Schema(name = "Duration", description = "A time interval in a given unit of time")
+@Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-05-15T07:30:16.936523289Z[Etc/UTC]", comments = "Generator version: 7.6.0-SNAPSHOT")
+@Embeddable
+public class Duration {
+
+ @JsonProperty("amount")
+ private Integer amount;
+
+ @JsonProperty("units")
+ private String units;
+
+ public Duration amount(Integer amount) {
+ this.amount = amount;
+ return this;
+ }
+
+ /**
+ * Time interval (number of seconds, minutes, hours, etc.)
+ * @return amount
+ */
+
+ @Schema(name = "amount", description = "Time interval (number of seconds, minutes, hours, etc.)", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
+ @JsonProperty("amount")
+ public Integer getAmount() {
+ return amount;
+ }
+
+ public void setAmount(Integer amount) {
+ this.amount = amount;
+ }
+
+ public Duration units(String units) {
+ this.units = units;
+ return this;
+ }
+
+ /**
+ * Unit of time (seconds, minutes, hours, etc.)
+ * @return units
+ */
+
+ @Schema(name = "units", description = "Unit of time (seconds, minutes, hours, etc.)", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
+ @JsonProperty("units")
+ public String getUnits() {
+ return units;
+ }
+
+ public void setUnits(String units) {
+ this.units = units;
+ }
+
+ @Override
+ public boolean equals(Object o) {
+ if (this == o) {
+ return true;
+ }
+ if (o == null || getClass() != o.getClass()) {
+ return false;
+ }
+ Duration duration = (Duration) o;
+ return Objects.equals(this.amount, duration.amount) &&
+ Objects.equals(this.units, duration.units);
+ }
+
+ @Override
+ public int hashCode() {
+ return Objects.hash(amount, units);
+ }
+
+ @Override
+ public String toString() {
+ StringBuilder sb = new StringBuilder();
+ sb.append("class Duration {\n");
+ sb.append(" amount: ").append(toIndentedString(amount)).append("\n");
+ sb.append(" units: ").append(toIndentedString(units)).append("\n");
+ sb.append("}");
+ return sb.toString();
+ }
+
+ /**
+ * Convert the given object to string with each line indented by 4 spaces
+ * (except the first line).
+ */
+ private String toIndentedString(Object o) {
+ if (o == null) {
+ return "null";
+ }
+ return o.toString().replace("\n", "\n ");
+ }
+}
\ No newline at end of file
diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/EntityMVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/EntityMVO.java
new file mode 100644
index 0000000000000000000000000000000000000000..26e3da5fc4ff5e57f8013909e7ce7cd7d59cdbd1
--- /dev/null
+++ b/src/main/java/org/etsi/osl/tmf/pm628/model/EntityMVO.java
@@ -0,0 +1,138 @@
+package org.etsi.osl.tmf.pm628.model;
+
+import com.fasterxml.jackson.annotation.JsonProperty;
+import com.fasterxml.jackson.annotation.JsonTypeName;
+import io.swagger.v3.oas.annotations.media.Schema;
+import jakarta.validation.constraints.NotNull;
+
+import javax.annotation.Generated;
+import java.util.Objects;
+
+/**
+ * Base entity schema for use in TMForum Open-APIs. Property.
+ */
+
+@Schema(name = "Entity_MVO", description = "Base entity schema for use in TMForum Open-APIs. Property.")
+@JsonTypeName("Entity_MVO")
+@Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-05-15T07:30:16.936523289Z[Etc/UTC]", comments = "Generator version: 7.6.0-SNAPSHOT")
+public class EntityMVO {
+
+ private String atType;
+
+ private String atBaseType;
+
+ private String atSchemaLocation;
+
+ public EntityMVO() {
+ super();
+ }
+
+ /**
+ * Constructor with only required parameters
+ */
+ public EntityMVO(String atType) {
+ this.atType = atType;
+ }
+
+ public EntityMVO atType(String atType) {
+ this.atType = atType;
+ return this;
+ }
+
+ /**
+ * When sub-classing, this defines the sub-class Extensible name
+ * @return atType
+ */
+ @NotNull
+ @Schema(name = "@type", description = "When sub-classing, this defines the sub-class Extensible name", requiredMode = Schema.RequiredMode.REQUIRED)
+ @JsonProperty("@type")
+ public String getAtType() {
+ return atType;
+ }
+
+ public void setAtType(String atType) {
+ this.atType = atType;
+ }
+
+ public EntityMVO atBaseType(String atBaseType) {
+ this.atBaseType = atBaseType;
+ return this;
+ }
+
+ /**
+ * When sub-classing, this defines the super-class
+ * @return atBaseType
+ */
+
+ @Schema(name = "@baseType", description = "When sub-classing, this defines the super-class", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
+ @JsonProperty("@baseType")
+ public String getAtBaseType() {
+ return atBaseType;
+ }
+
+ public void setAtBaseType(String atBaseType) {
+ this.atBaseType = atBaseType;
+ }
+
+ public EntityMVO atSchemaLocation(String atSchemaLocation) {
+ this.atSchemaLocation = atSchemaLocation;
+ return this;
+ }
+
+ /**
+ * A URI to a JSON-Schema file that defines additional attributes and relationships
+ * @return atSchemaLocation
+ */
+
+ @Schema(name = "@schemaLocation", description = "A URI to a JSON-Schema file that defines additional attributes and relationships", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
+ @JsonProperty("@schemaLocation")
+ public String getAtSchemaLocation() {
+ return atSchemaLocation;
+ }
+
+ public void setAtSchemaLocation(String atSchemaLocation) {
+ this.atSchemaLocation = atSchemaLocation;
+ }
+
+ @Override
+ public boolean equals(Object o) {
+ if (this == o) {
+ return true;
+ }
+ if (o == null || getClass() != o.getClass()) {
+ return false;
+ }
+ EntityMVO entityMVO = (EntityMVO) o;
+ return Objects.equals(this.atType, entityMVO.atType) &&
+ Objects.equals(this.atBaseType, entityMVO.atBaseType) &&
+ Objects.equals(this.atSchemaLocation, entityMVO.atSchemaLocation);
+ }
+
+ @Override
+ public int hashCode() {
+ return Objects.hash(atType, atBaseType, atSchemaLocation);
+ }
+
+ @Override
+ public String toString() {
+ StringBuilder sb = new StringBuilder();
+ sb.append("class EntityMVO {\n");
+ sb.append(" atType: ").append(toIndentedString(atType)).append("\n");
+ sb.append(" atBaseType: ").append(toIndentedString(atBaseType)).append("\n");
+ sb.append(" atSchemaLocation: ").append(toIndentedString(atSchemaLocation)).append("\n");
+ sb.append("}");
+ return sb.toString();
+ }
+
+ /**
+ * Convert the given object to string with each line indented by 4 spaces
+ * (except the first line).
+ */
+ private String toIndentedString(Object o) {
+ if (o == null) {
+ return "null";
+ }
+ return o.toString().replace("\n", "\n ");
+ }
+}
+
diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/EntityRefFVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/EntityRefFVO.java
new file mode 100644
index 0000000000000000000000000000000000000000..c516676c0f405746fc7b1b6f476d3df202808eb9
--- /dev/null
+++ b/src/main/java/org/etsi/osl/tmf/pm628/model/EntityRefFVO.java
@@ -0,0 +1,233 @@
+package org.etsi.osl.tmf.pm628.model;
+
+import com.fasterxml.jackson.annotation.JsonProperty;
+import com.fasterxml.jackson.annotation.JsonTypeName;
+import io.swagger.v3.oas.annotations.media.Schema;
+import jakarta.validation.constraints.NotNull;
+
+import javax.annotation.Generated;
+import java.util.Objects;
+
+/**
+ * EntityRefFVO
+ */
+
+@JsonTypeName("EntityRef_FVO")
+@Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-05-15T07:30:16.936523289Z[Etc/UTC]", comments = "Generator version: 7.6.0-SNAPSHOT")
+public class EntityRefFVO {
+
+ private String atType;
+
+ private String atBaseType;
+
+ private String atSchemaLocation;
+
+ private String href;
+
+ private String id;
+
+ private String name;
+
+ private String _atReferredType;
+
+ public EntityRefFVO() {
+ super();
+ }
+
+ /**
+ * Constructor with only required parameters
+ */
+ public EntityRefFVO(String atType) {
+ this.atType = atType;
+ }
+
+ public EntityRefFVO atType(String atType) {
+ this.atType = atType;
+ return this;
+ }
+
+ /**
+ * When sub-classing, this defines the sub-class Extensible name
+ * @return atType
+ */
+ @NotNull
+ @Schema(name = "@type", description = "When sub-classing, this defines the sub-class Extensible name", requiredMode = Schema.RequiredMode.REQUIRED)
+ @JsonProperty("@type")
+ public String getAtType() {
+ return atType;
+ }
+
+ public void setAtType(String atType) {
+ this.atType = atType;
+ }
+
+ public EntityRefFVO atBaseType(String atBaseType) {
+ this.atBaseType = atBaseType;
+ return this;
+ }
+
+ /**
+ * When sub-classing, this defines the super-class
+ * @return atBaseType
+ */
+
+ @Schema(name = "@baseType", description = "When sub-classing, this defines the super-class", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
+ @JsonProperty("@baseType")
+ public String getAtBaseType() {
+ return atBaseType;
+ }
+
+ public void setAtBaseType(String atBaseType) {
+ this.atBaseType = atBaseType;
+ }
+
+ public EntityRefFVO atSchemaLocation(String atSchemaLocation) {
+ this.atSchemaLocation = atSchemaLocation;
+ return this;
+ }
+
+ /**
+ * A URI to a JSON-Schema file that defines additional attributes and relationships
+ * @return atSchemaLocation
+ */
+
+ @Schema(name = "@schemaLocation", description = "A URI to a JSON-Schema file that defines additional attributes and relationships", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
+ @JsonProperty("@schemaLocation")
+ public String getAtSchemaLocation() {
+ return atSchemaLocation;
+ }
+
+ public void setAtSchemaLocation(String atSchemaLocation) {
+ this.atSchemaLocation = atSchemaLocation;
+ }
+
+ public EntityRefFVO href(String href) {
+ this.href = href;
+ return this;
+ }
+
+ /**
+ * Hyperlink reference
+ * @return href
+ */
+
+ @Schema(name = "href", description = "Hyperlink reference", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
+ @JsonProperty("href")
+ public String getHref() {
+ return href;
+ }
+
+ public void setHref(String href) {
+ this.href = href;
+ }
+
+ public EntityRefFVO id(String id) {
+ this.id = id;
+ return this;
+ }
+
+ /**
+ * unique identifier
+ * @return id
+ */
+
+ @Schema(name = "id", description = "unique identifier", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
+ @JsonProperty("id")
+ public String getId() {
+ return id;
+ }
+
+ public void setId(String id) {
+ this.id = id;
+ }
+
+ public EntityRefFVO name(String name) {
+ this.name = name;
+ return this;
+ }
+
+ /**
+ * Name of the referred entity.
+ * @return name
+ */
+
+ @Schema(name = "name", description = "Name of the referred entity.", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
+ @JsonProperty("name")
+ public String getName() {
+ return name;
+ }
+
+ public void setName(String name) {
+ this.name = name;
+ }
+
+ public EntityRefFVO _atReferredType(String _atReferredType) {
+ this._atReferredType = _atReferredType;
+ return this;
+ }
+
+ /**
+ * The actual type of the target instance when needed for disambiguation.
+ * @return _atReferredType
+ */
+
+ @Schema(name = "@referredType", description = "The actual type of the target instance when needed for disambiguation.", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
+ @JsonProperty("@referredType")
+ public String getAtReferredType() {
+ return _atReferredType;
+ }
+
+ public void setAtReferredType(String _atReferredType) {
+ this._atReferredType = _atReferredType;
+ }
+
+ @Override
+ public boolean equals(Object o) {
+ if (this == o) {
+ return true;
+ }
+ if (o == null || getClass() != o.getClass()) {
+ return false;
+ }
+ EntityRefFVO entityRefFVO = (EntityRefFVO) o;
+ return Objects.equals(this.atType, entityRefFVO.atType) &&
+ Objects.equals(this.atBaseType, entityRefFVO.atBaseType) &&
+ Objects.equals(this.atSchemaLocation, entityRefFVO.atSchemaLocation) &&
+ Objects.equals(this.href, entityRefFVO.href) &&
+ Objects.equals(this.id, entityRefFVO.id) &&
+ Objects.equals(this.name, entityRefFVO.name) &&
+ Objects.equals(this._atReferredType, entityRefFVO._atReferredType);
+ }
+
+ @Override
+ public int hashCode() {
+ return Objects.hash(atType, atBaseType, atSchemaLocation, href, id, name, _atReferredType);
+ }
+
+ @Override
+ public String toString() {
+ StringBuilder sb = new StringBuilder();
+ sb.append("class EntityRefFVO {\n");
+ sb.append(" atType: ").append(toIndentedString(atType)).append("\n");
+ sb.append(" atBaseType: ").append(toIndentedString(atBaseType)).append("\n");
+ sb.append(" atSchemaLocation: ").append(toIndentedString(atSchemaLocation)).append("\n");
+ sb.append(" href: ").append(toIndentedString(href)).append("\n");
+ sb.append(" id: ").append(toIndentedString(id)).append("\n");
+ sb.append(" name: ").append(toIndentedString(name)).append("\n");
+ sb.append(" _atReferredType: ").append(toIndentedString(_atReferredType)).append("\n");
+ sb.append("}");
+ return sb.toString();
+ }
+
+ /**
+ * Convert the given object to string with each line indented by 4 spaces
+ * (except the first line).
+ */
+ private String toIndentedString(Object o) {
+ if (o == null) {
+ return "null";
+ }
+ return o.toString().replace("\n", "\n ");
+ }
+}
+
diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/EntityRefMVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/EntityRefMVO.java
new file mode 100644
index 0000000000000000000000000000000000000000..819eb1285be3badce74aefef57549441ab5c773c
--- /dev/null
+++ b/src/main/java/org/etsi/osl/tmf/pm628/model/EntityRefMVO.java
@@ -0,0 +1,233 @@
+package org.etsi.osl.tmf.pm628.model;
+
+import com.fasterxml.jackson.annotation.JsonProperty;
+import com.fasterxml.jackson.annotation.JsonTypeName;
+import io.swagger.v3.oas.annotations.media.Schema;
+import jakarta.validation.constraints.NotNull;
+
+import javax.annotation.Generated;
+import java.util.Objects;
+
+/**
+ * EntityRefMVO
+ */
+
+@JsonTypeName("EntityRef_MVO")
+@Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-05-15T07:30:16.936523289Z[Etc/UTC]", comments = "Generator version: 7.6.0-SNAPSHOT")
+public class EntityRefMVO {
+
+ private String atType;
+
+ private String atBaseType;
+
+ private String atSchemaLocation;
+
+ private String href;
+
+ private String id;
+
+ private String name;
+
+ private String _atReferredType;
+
+ public EntityRefMVO() {
+ super();
+ }
+
+ /**
+ * Constructor with only required parameters
+ */
+ public EntityRefMVO(String atType) {
+ this.atType = atType;
+ }
+
+ public EntityRefMVO atType(String atType) {
+ this.atType = atType;
+ return this;
+ }
+
+ /**
+ * When sub-classing, this defines the sub-class Extensible name
+ * @return atType
+ */
+ @NotNull
+ @Schema(name = "@type", description = "When sub-classing, this defines the sub-class Extensible name", requiredMode = Schema.RequiredMode.REQUIRED)
+ @JsonProperty("@type")
+ public String getAtType() {
+ return atType;
+ }
+
+ public void setAtType(String atType) {
+ this.atType = atType;
+ }
+
+ public EntityRefMVO atBaseType(String atBaseType) {
+ this.atBaseType = atBaseType;
+ return this;
+ }
+
+ /**
+ * When sub-classing, this defines the super-class
+ * @return atBaseType
+ */
+
+ @Schema(name = "@baseType", description = "When sub-classing, this defines the super-class", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
+ @JsonProperty("@baseType")
+ public String getAtBaseType() {
+ return atBaseType;
+ }
+
+ public void setAtBaseType(String atBaseType) {
+ this.atBaseType = atBaseType;
+ }
+
+ public EntityRefMVO atSchemaLocation(String atSchemaLocation) {
+ this.atSchemaLocation = atSchemaLocation;
+ return this;
+ }
+
+ /**
+ * A URI to a JSON-Schema file that defines additional attributes and relationships
+ * @return atSchemaLocation
+ */
+
+ @Schema(name = "@schemaLocation", description = "A URI to a JSON-Schema file that defines additional attributes and relationships", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
+ @JsonProperty("@schemaLocation")
+ public String getAtSchemaLocation() {
+ return atSchemaLocation;
+ }
+
+ public void setAtSchemaLocation(String atSchemaLocation) {
+ this.atSchemaLocation = atSchemaLocation;
+ }
+
+ public EntityRefMVO href(String href) {
+ this.href = href;
+ return this;
+ }
+
+ /**
+ * Hyperlink reference
+ * @return href
+ */
+
+ @Schema(name = "href", description = "Hyperlink reference", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
+ @JsonProperty("href")
+ public String getHref() {
+ return href;
+ }
+
+ public void setHref(String href) {
+ this.href = href;
+ }
+
+ public EntityRefMVO id(String id) {
+ this.id = id;
+ return this;
+ }
+
+ /**
+ * The identifier of the referred entity.
+ * @return id
+ */
+
+ @Schema(name = "id", description = "The identifier of the referred entity.", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
+ @JsonProperty("id")
+ public String getId() {
+ return id;
+ }
+
+ public void setId(String id) {
+ this.id = id;
+ }
+
+ public EntityRefMVO name(String name) {
+ this.name = name;
+ return this;
+ }
+
+ /**
+ * Name of the referred entity.
+ * @return name
+ */
+
+ @Schema(name = "name", description = "Name of the referred entity.", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
+ @JsonProperty("name")
+ public String getName() {
+ return name;
+ }
+
+ public void setName(String name) {
+ this.name = name;
+ }
+
+ public EntityRefMVO _atReferredType(String _atReferredType) {
+ this._atReferredType = _atReferredType;
+ return this;
+ }
+
+ /**
+ * The actual type of the target instance when needed for disambiguation.
+ * @return _atReferredType
+ */
+
+ @Schema(name = "@referredType", description = "The actual type of the target instance when needed for disambiguation.", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
+ @JsonProperty("@referredType")
+ public String getAtReferredType() {
+ return _atReferredType;
+ }
+
+ public void setAtReferredType(String _atReferredType) {
+ this._atReferredType = _atReferredType;
+ }
+
+ @Override
+ public boolean equals(Object o) {
+ if (this == o) {
+ return true;
+ }
+ if (o == null || getClass() != o.getClass()) {
+ return false;
+ }
+ EntityRefMVO entityRefMVO = (EntityRefMVO) o;
+ return Objects.equals(this.atType, entityRefMVO.atType) &&
+ Objects.equals(this.atBaseType, entityRefMVO.atBaseType) &&
+ Objects.equals(this.atSchemaLocation, entityRefMVO.atSchemaLocation) &&
+ Objects.equals(this.href, entityRefMVO.href) &&
+ Objects.equals(this.id, entityRefMVO.id) &&
+ Objects.equals(this.name, entityRefMVO.name) &&
+ Objects.equals(this._atReferredType, entityRefMVO._atReferredType);
+ }
+
+ @Override
+ public int hashCode() {
+ return Objects.hash(atType, atBaseType, atSchemaLocation, href, id, name, _atReferredType);
+ }
+
+ @Override
+ public String toString() {
+ StringBuilder sb = new StringBuilder();
+ sb.append("class EntityRefMVO {\n");
+ sb.append(" atType: ").append(toIndentedString(atType)).append("\n");
+ sb.append(" atBaseType: ").append(toIndentedString(atBaseType)).append("\n");
+ sb.append(" atSchemaLocation: ").append(toIndentedString(atSchemaLocation)).append("\n");
+ sb.append(" href: ").append(toIndentedString(href)).append("\n");
+ sb.append(" id: ").append(toIndentedString(id)).append("\n");
+ sb.append(" name: ").append(toIndentedString(name)).append("\n");
+ sb.append(" _atReferredType: ").append(toIndentedString(_atReferredType)).append("\n");
+ sb.append("}");
+ return sb.toString();
+ }
+
+ /**
+ * Convert the given object to string with each line indented by 4 spaces
+ * (except the first line).
+ */
+ private String toIndentedString(Object o) {
+ if (o == null) {
+ return "null";
+ }
+ return o.toString().replace("\n", "\n ");
+ }
+}
+
diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/Event.java b/src/main/java/org/etsi/osl/tmf/pm628/model/Event.java
new file mode 100644
index 0000000000000000000000000000000000000000..15be3c35973d08528623c61e655332d22b0c7fbc
--- /dev/null
+++ b/src/main/java/org/etsi/osl/tmf/pm628/model/Event.java
@@ -0,0 +1,577 @@
+package org.etsi.osl.tmf.pm628.model;
+
+import com.fasterxml.jackson.annotation.JsonProperty;
+import io.swagger.v3.oas.annotations.media.Schema;
+import jakarta.validation.Valid;
+import jakarta.validation.constraints.NotNull;
+import org.etsi.osl.tmf.ri639.model.EntityRef;
+import org.springframework.format.annotation.DateTimeFormat;
+
+import javax.annotation.Generated;
+import java.time.OffsetDateTime;
+import java.time.ZoneOffset;
+import java.util.ArrayList;
+import java.util.List;
+import java.util.Objects;
+import java.util.UUID;
+
+/**
+ * Event
+ */
+
+@Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-05-15T07:30:16.936523289Z[Etc/UTC]", comments = "Generator version: 7.6.0-SNAPSHOT")
+public class Event {
+
+ @JsonProperty("@type")
+ protected String type;
+
+ @JsonProperty("@baseType")
+ protected String baseType;
+
+ @JsonProperty("@schemaLocation")
+ protected String schemaLocation;
+
+ @JsonProperty("href")
+ protected String href;
+
+ @JsonProperty("id")
+ protected String id= UUID.randomUUID().toString();
+
+ @JsonProperty("correlationId")
+ protected String correlationId;
+
+ @JsonProperty("domain")
+ protected String domain;
+
+ @JsonProperty("title")
+ protected String title;
+
+ @JsonProperty("description")
+ protected String description;
+
+ @JsonProperty("priority")
+ protected String priority;
+
+ @JsonProperty("timeOccurred")
+ @DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME)
+ protected OffsetDateTime timeOccurred;
+
+ @JsonProperty("source")
+ protected EntityRef source;
+
+ @JsonProperty("reportingSystem")
+ protected EntityRef reportingSystem;
+
+ @JsonProperty("relatedParty")
+ @Valid
+ protected List